Hey, I tried to get access to a toolbar created via addon.xcu of an extension.
Part of my addon.xcu: .. <node oor:name="AddonUI"> <node oor:name="OfficeToolBar"> <node oor:name="MAK017_AL.OfficeToolBar" oor:op="replace"> <node oor:name="m1" oor:op="replace"> ... Trying to access later this toolbar using configuration-manager: ... aModTB = array("com.sun.star.text.TextDocument") oModuleCfgMgrSupplier = createUnoService("com.sun.star.ui.ModuleUIConfigurationManagerSupplier") 'xray oModuleCfgMgr For i = 0 to uBound(aModTB) 'für jedes Modul oModuleCfgMgr = oModuleCfgMgrSupplier.getUIConfigurationManager(aModTB(i) ) if ( oModuleCfgMgr.hasSettings("private:resource/toolbar/addon_MAK017_AL.OfficeToolBar")) then oMod = oModuleCfgMgr.getSettings( "private:resource/toolbar/addon_MAK017_AL.OfficeToolBar" , true).getByIndex(0) ... There is no setting in container. The code will work, if the toolbar-name starts with "custom_", but this is only possible if I create the toolbar via macro. Is there another way to get access to this "addon-" toolbar? Thanks in advance Thomas -- ## Marketing deutschsprachiges Projekt ## http://de.openoffice.org - www.openoffice.org ## Vorstand OpenOffice.org Deutschland e.V. ## Mitglieder willkommen: www.OOoDeV.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org