Form controls and tables

Slawomir Kuzniar slawomir.kuzniar at
Thu Jul 25 19:14:46 PDT 2013

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

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

Looks like I should be able to link the cell table and the control model 
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 at
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at

More information about the LibreOffice mailing list