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?
> 
> Thanks
> 

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.
menu:Tools>Customize>Events,
Save in: <the respective document>
Bind the macro to event "View created".
Save, close, reload the form document.


> Sub hidePanelWindows(e)
> Dim CompWin, acRole, cHeight, wins, i, w, ac
> wait(1000)
> 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 
>               w.setPosSize(0,0,0,0,cHeight)
>       endif
> next
> End Sub

The macro hides all subwindows of certain type. Let me know if the macro
hides any wanted items which may happen.

Hope this helps,
Andreas


-- 
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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

Reply via email to