Hallo Gerhard,
>
> SUB Test
> DIM oFrame AS OBJECT
> oFrame = StarDesktop.getCurrentFrame()
> oWin = oFrame.getContainerWindow()
> aElemente = oFrame.LayoutManager.getElements()
> FOR i = LBound(aElemente) TO UBound(aElemente)
> obj = aElemente(i)
> invoc = CreateUnoService("com.sun.star.script.Invocation")
> invocCurrObj = invoc.createInstanceWithArguments(Array(obj))
> resourceURL= invocCurrObj.getValue("ResourceURL")
> if resourceURL=
> "private:resource/toolbar/addon_LibreLogo.OfficeToolBar" then
> oFrame.LayoutManager.hideElement(resourceURL)
> wait 2000
> oFrame.LayoutManager.showElement(resourceURL)
> end if
> next
> end sub
>
> Das Makro ist sicher noch nicht wasserdicht, aber das Prinzip ist klar.
Wieso nicht wasserdicht? Wenn es den Fall mit abdeckt, den ich Dir
genannt habe, ist es doch besser geeignet als das Script, das ich nutze.
Gruß
Robert
--
Homepage: https://www.familiegrosskopf.de/robert
--
Liste abmelden mit E-Mail an: [email protected]
Probleme?
https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy