Hi Tobias,
I try to set the printer tray for documents an need the
XStyleFamiliesSupplier for a presentation and a drawing document.
With a
XTextDocument I do it this way:
-----%<-----
// Get the StyleFamiliesSupplier interface of the document
XStyleFamiliesSupplier xSupplier = (XStyleFamiliesSupplier)
UnoRuntime.queryInterface(XStyleFamiliesSupplier.class,
xTextDocument);
-----%<-----
Can you tell my, how to retrieve it for a presentation and a drawing?
Both Draw and Impress documents implement the interface
XStyleFamiliesSupplier ( see for example http://api.openoffice.org/
docs/common/ref/com/sun/star/drawing/
GenericDrawingDocument.html ) ... so you should be able to gather it
in the same way you do it for the Writer document.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]