how to hide the read-only and Edit Button

asked 2018-07-05 15:35:09 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello. I work with LO 6.0.5 and same version SDK.

When open document with "ReadOnly" propertyValue, always appear read-only comments and "Edit Button" above main editor window.

I want to hide that but, don't know how to. When I get "LayoutManager" object and use setVisible( false ) like

xLayoutManager.setVisible( false );

Then all user interface elements hide and doesn't see. But I want to only hide that "Edit Button" and yellow label. I want to know that how to hide only that use hideElemet function like

xLayoutManager.hideElement( "private:resource/menubar/menubar" );

or my approch isNot correct?

edit retag flag offensive close merge delete


@unangel: In the future, please do not post as community wiki. See guidelines for asking.

Jim K gravatar imageJim K ( 2018-07-05 21:18:24 +0200 )edit