Hi there,

in order to make a successfully created Toolbar for TextDocuments
persistent
<http://java.sun.com/developer/technicalArticles/J2SE/Desktop/menus_toolbars/>
hints at using the <com.sun.star.ui.XUIConfigurationPersistence>
interface's "store()" method.

Invoking the store() method unfortunately yields an exception
"com.sun.star.ui.XUIConfigurationPersistence".

This is running OOo 3.3 for Windows under XP:

    * the program uses a bootstrap supplied XContext to query the
      ServiceManager and its XMultiServiceFactory interface to create a
      "com.sun.star.ui.ModuleUIConfigurationManagerSupplier"
    * then the "XModuleUIConfigurationManagerSupplier" interface gets
      queried,
    * then the method
      "getUIConfigurationManager("com.sun.star.text.TextDocument")" is
      successfully carried out
    * this is then used to run the method "createSettings()", which then
      is used to add all toolbar items that get defined.

Everything works (the toolbar is shown in swriter components and is
operational), however the defined toolbar vanishes after OOo gets closed
and reopened. Therefore the need for making this definition persistent.

Using the UIConfigurationManager's "getUIConfigurationManager" interface
and invoking the "store()" method throws that
"com.sun.star.io.IOException: ]" exception.

This is using the Java APIs of OOo from a commandline program.

---

Would anyone have any ideas what the cause of this may be? What could I
try/do ?

TIA,

---rony

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help

Reply via email to