Hallo Andreas
leider bekomme ich danach eine Fehlermeldung
com.sun.star.uno.RuntimeExceptionError during invoking function hidePanelWindows in module
file:///home/gottfried/.config/libreoffice/4/user/Scripts/python/hidePanelWindows.py (<class
'AttributeError'>: 'NoneType' object has no attribute 'Frame'
/home/gottfried/.config/libreoffice/4/user/Scripts/python/hidePanelWindows.py:5 in function
hidePanelWindows() [compwin = e.Source.CurrentController.Frame.ComponentWindow]
/opt/libreoffice5.1/program/pythonscript.py:870 in function invoke() [ret = self.func( *args )]
)
Am 28.11.2016 um 10:20 schrieb Andreas Säger:
Hallo,
1. Speicher den folgenden Code unter <Nutzerprofil>/Scripts/python/
2. Öffne Dein Dokument mit Schreibzugriff.
3. Menü:Extras>Anpassen... Tab:Ereignisse
4. Klick auf das Ergeignis "Docoment loading finished"
5. [Macro...] Weise dem Ereignis zu:
"Meine Macros">hidePanelWindows>hidePanelWindows
6. Speicher das Dokument und lade es neu.
----------<SCHNIPP>-----------------
from com.sun.star.accessibility.AccessibleRole import PANEL
from com.sun.star.awt.PosSize import HEIGHT
def hidePanelWindows(e):
compwin = e.Source.CurrentController.Frame.ComponentWindow
wx = compwin.getWindows()
for w in wx:
ac = w.AccessibleContext
if ac.AccessibleRole == PANEL:
w.setPosSize(0,0,0,0,HEIGHT)
----------<SCHNAPP>-----------------
--
Liste abmelden mit E-Mail an: discuss+unsubscribe@de.libreoffice.org
Probleme? http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/discuss/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert
Context
- Re: [de-discuss] Schreibgeschützte externe Formulare (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: 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.