Hi,
I have to process a Writer document with a lot of TextFields. I know how to
get globally all TextFields, like:
ReferenceXTextFieldsSupplier xSupp (xWriterComponent, UNO_QUERY);
ReferenceXEnumerationAccess enumerationAcc = xSupp-getTextFields();
ReferenceXEnumeration enumeration = enumerationAcc-createEnumeration();
BUT: I need to process the TextFields in tables differently. So I have to
know which
TextFields are in the tables of the document. I can access the text in the
table cell
like that:
ReferenceXCell cell =
table-getCellByName(OUString::createFromAscii(cellName));
ReferenceXText xtext (cell, UNO_QUERY);
ReferenceXTextCursor xtextc = xtext-createTextCursor();
CString name = OUStringToOString(xtextc-getString(),
RTL_TEXTENCODING_ASCII_US).getStr();
But how can I access the content of the TextField in the cell?!
Thanks for your help.
Regards, Michael