Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 07/25/2013 04:38 AM, Fernand Vanrie wrote:
 Slawomir,

when the controll is selected then:

 thiscomponent.currentselection.getbyindex(0).anchor.cell

the cell object is empty or not
Indeed, when I put the form in the Design Mode and select the control I can get
XShape object by calling
    thiscomponent.currentselection.getbyindex(0)

This links to the table cell and the control model through 'anchor.cell' and
'control' properties.

Looks like I should be able to link the cell table and the control model object
through the XShape object for a given control.

Thanks for your help.




I am working with Writer document that contains a table. In this table
there are form control elements - check boxes and radio buttons.
I would like to iterate over the table cells and access control elements
that 'live' in these cells.

I have no problem iterating over the table and over the form separately,
but I would like to know if it is possible to find a link between a table cell
and the form control object in that cell.

Slavek




_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.