with this macro i can toggle off Form Design and Form Controls bars but the Form Navigation bar is not showing
Code: Select all
Public Sub InitToolbars
Dim oComponent as Object
Dim oFrame As Object
Dim oLayoutManager As Object
Dim oController as Object
Set oComponent = ThisComponent
Set oController = ThisComponent.CurrentController
Set oFrame = ThisComponent.CurrentController.Frame
Set oLayoutManager = oFrame.LayoutManager
oLayoutManager.ShowElement("private:resource/toolbar/formsnavigationbar")
oLayoutManager.HideElement("private:resource/toolbar/formdesign")
oLayoutManager.HideElement("private:resource/toolbar/formcontrols")
End Sub