I’m using LibreOffice 4.0.1 SDK, and while trying to run a program using the API as mentioned in the question, I’m not able to figure out how to read text from a .odt file with properties. Using XTextViewCursorSupplier and XTextViewCursor, I’m able to read the text individually as lines rather than a block of text as achieved through xTextDocument->gettext(). But I’m not able to use this interface for accessing the multiple properties in that text file. Using XPropertySet, I’m able to achieve this, but that is cumbersome as I have to individually write a line for getting/setting properties. Can anyone help me with this?