Hi Felix,
So the discussed test could do the following for each of the formats
mentioned in the issue i60116:
- store a new document into a tempfile ( the extension is not important
for this test ) in the format with a specific title
- create StandaloneDocumentInfo object and load it from the file
- get the title from the object and check it
- set a new title to the object
- store the object to the same file
- create a new StandaloneDocumentInfo object and load it from the file
- get the title and check it
The first step could be implemented in the following way:
- create a new temporary file
- create an instance of the service "com.sun.star.text.TextDocument" and
call XLoadable::initNew() on it
- store the instance to the temporary file URL using
XStorable::storeToURL() with the "DocumentTitle" property set to the
media descriptor and "FilterName" set to the according filter ( the
filter names for the formats are "writer8" for ODF format, "StarOffice
XML (Writer)" for OOo6 format and "StarWriter 5.0" for the old binary
format )
Further part could be implemented based on the test provided in the issue.
If there are any question please do not hesitate to ask.
Best Regards,
Mikhail.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]