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+unsubscr...@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