Am 03.05.2015 um 08:41 schrieb Keith Bates:
The version of LO that ships with Ubuntu 15.04 is 4.4.2.
Since upgrading Ubuntu the other day I have noticed that forms- which
are meant to open in read-only mode- now come with a big yellow bar
which says "This document is in read only mode" with a big button to
press to enter Edit mode.
Is there a way to get rid of this thing permanently?
The following is a dirty hack to hide this nasty subwindow (and possibly
others). Store it somewhere in "My Macros".
Open a form in editable mode.
Save in: <the respective document>
Bind the macro to event "View created".
Save, close, reload the form document.
Dim CompWin, acRole, cHeight, wins, i, w, ac
CompWin = e.Source.CurrentController.Frame.ComponentWindow
acRole = com.sun.star.accessibility.AccessibleRole.PANEL
cHeight = com.sun.star.awt.PosSize.HEIGHT
wins() = CompWin.getWindows()
for i = 1 to uBound(wins())
w = wins(i)
ac = w.AccessibleContext
if ac.AccessibleRole = acRole then
The macro hides all subwindows of certain type. Let me know if the macro
hides any wanted items which may happen.
Hope this helps,
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy