Ask Your Question
0

Standalone switchboard in LibreOffice Base with out toolbar display possible?

asked 2017-05-31 05:03:08 +0200

cleo27 gravatar image

How do you create a standalone switchboard in LibreOffice Base where you don't see the tool bars when you open up the switch board, that is you only see the switch board when you open it?

I was watching the following video on YouTube from the TheFrugalComputerGuy that shows how you would create a switchboard with LO (but his version has the tool bars when you open the switch board): https://www.youtube.com/watch?v=U4cIp...

and in the comments he mentions that it is possible with the use of macros, but I am not sure how to implement it. Does anyone know how I would go about this?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-05-31 07:20:18 +0200

Ratslinger gravatar image

updated 2017-05-31 20:05:37 +0200

Just tested this on a standalone document. The macro will remove all toolbars and return the menu to be visible. Activation of the macro depends upon how your entire setup is designed. However, for the single form I used, I attached the macro to the Open Document event of the document. Then when the document is opened, the macro runs and the toolbars are removed. Here is the macro:

Sub RemoveToolbars
    Dim oMenuBar as Object
    If thisComponent.CurrentController.isFormDesignMode Then Exit Sub
    thisComponent.CurrentController.Frame.LayoutManager.visible = false
    thisComponent.CurrentController.Frame.LayoutManager.showElement("private:resource/menubar/menubar")
End Sub

It is very short. If you know little or nothing about macros, I'd advise looking at the LO documentation - click here especially chapter 9.

Tested sample:image description

If this answers your question please click on the ✔ (upper left area of answer).

edit flag offensive delete link more

Comments

Thanks for replying, I will try this and come back if I have any questions

cleo27 gravatar imagecleo27 ( 2017-05-31 21:40:46 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-05-31 05:03:08 +0200

Seen: 546 times

Last updated: May 31 '17