Are there changes to the resourceURL 's ?

Fernand Vanrie <[email protected]> Tue, 21 Dec 2010 18:42:55 +0100
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
I trie to remove some buttons on the standard Toolbar

I found some BASIC code made by Andrew Pitonyack,  but i run in a error, 
saying that  "private:resource/toolbar/standardbar" is no valid element 
for settings in the UIConfigurationManager

Please try this simple code from in a writerdoc

  oDoc = ThisComponent

    iToolType = com.sun.star.ui.UIElementType.TOOLBAR

    oFrame = oDoc.getCurrentController().getFrame()
    oCfgManager = oDoc.getUIConfigurationManager()
    oToolInfo = oCfgManager.getUIElementsInfo( iToolType )
    For Each x in oFrame.LayoutManager.getElements()
    print x.ResourceURL
   REM private:resource/toolbar/standardbar" is prentent
      stoolbar = "private:resource/menubar/menubar"
       if x.ResourceURL = sToolBar Then

          oImageMgr = oCfgManager.getImageManager()
          xray oCfgManager

          oToolbarSettings = oCfgManager.getSettings(sToolbar, true)
REM here i hot the erro that there is no 
"private:resource/menubar/menubar"to use for setting  ????
        end if



Thanks for any hint !

Fernand