I have tried some macros after some research on the internet, but it’s not working…
Example:
Sub hideallBars()
Dim doc As Object
Dim frame As Object
Dim lmgr As Object
Dim LayoutElements(4) As String
Dim i As Integer
LayoutElements(0) = "private:resource/toolbar/standardbar"
LayoutElements(1) = "private:resource/toolbar/findbar"
LayoutElements(2) = "private:resource/toolbar/formatobjectbar"
LayoutElements(3) = "private:resource/menubar/menubar"
LayoutElements(4) = "private:resource/statusbar/statusbar"
doc = ThisComponent
frame = doc.CurrentController.Frame
lmgr = frame.LayoutManager
for i = 0 to 4
lmgr.hideElement(LayoutElements(i))
next i
End Sub
Any help?