Hi, I have to process a Writer document with a lot of TextFields. I know how to get globally all TextFields, like:
Reference<XTextFieldsSupplier> xSupp (xWriterComponent, UNO_QUERY); Reference<XEnumerationAccess> enumerationAcc = xSupp->getTextFields(); Reference<XEnumeration> 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: Reference<XCell> cell = table->getCellByName(OUString::createFromAscii(cellName)); Reference<XText > xtext (cell, UNO_QUERY); Reference<XTextCursor > 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