I'm sorry, missed that code in the last e-mail. But which one are you talking about? This is my component initialisation and all I get is the xMCF but no xMSF which I need. It's only possible to create the xMSF with an XTextDocument, isn't it?

public Editor(XComponentContext xCompContext) {
       xComponentContext = xCompContext;
       try {
           xMCF = xComponentContext.getServiceManager();

           desktop = xMCF.createInstanceWithContext(
                   "com.sun.star.frame.Desktop", xComponentContext);

           xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class,
                   desktop);

           xCLoader = (XComponentLoader) UnoRuntime.queryInterface(
                   XComponentLoader.class, desktop);

} catch (java.lang.Exception e) {
           e.printStackTrace(System.err);
       }
   }

Mathias Bauer schrieb:
Ah, I see: you took the wrong service manager. For global objects you
must take the one you have bootstrapped, not the one from the document.
The MultiServiceFactory at the document model is only for some special
objects.

If you had posted this in your first mail ...

Best regards,
Mathias


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to