Hello Ariel,

I have one more question. I think it last question.

Now I know how to operate with toolbar items. But I need to know how to hide
or show some toolbar and then save it in document storage.
As I understand it should looks like

Sub Hide_Standard_Toolbar()
>   Dim oDoc As Object
>   Dim oFrame
>   Dim element
>   Dim layoutmanager
>
>   oDoc = ThisComponent
>
>   Dim oUIConfigurationManager as Object
>   oUIConfigurationManager = oDoc.getUIConfigurationManager()
>
>   oFrame = oDoc.getCurrentController().getFrame()
>   layoutmanager = oFrame.LayoutManager
>
>   element =
> layoutmanager.getElement("private:resource/toolbar/standardbar")
>   element.ConfigurationSource = oUIConfigurationManager

  element.Persistent = true
>

>   layoutmanager.hideElement("private:resource/toolbar/standardbar")
> End Sub
>

But this code hide standard toolbar in global storage, although I have
changed ConfigurationSource to document storage. I don't understand why.

Thank you in advance for your kind reply

-- 
-- 
.''`.   With best regards,
: :' :  Alexander Anisimov
`. `'   JID [email protected]
   `-    Debian - when you have better things to do than fixing systems

Reply via email to