Date: prev next · Thread: first prev next last
2026 Archives by date, by thread · List index


Und noch ein Nachtrag:

Makro, das die Ansicht je nach Zoom umschaltet

SUB Seitenuebersicht
        DIM oDocument AS OBJECT, oDispatcher AS OBJECT
        DIM inZoomMulti AS INTEGER, inZoomDefault AS INTEGER
        DIM Array()
        DIM Array1(0) AS NEW com.sun.star.beans.PropertyValue
        inZoomMulti = 40
        inZoomDefault = 100
        oDocument = ThisComponent.CurrentController.Frame
        IF ThisComponent.CurrentController.ViewSettings.ZoomValue > 80 THEN          
                oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
oDispatcher.executeDispatch(oDocument, ".uno:MultiplePagesPerRow", "", 0,Array())
                Array1(0).Name = "Zoom.Value"
                Array1(0).Value = inZoomMulti
                oDispatcher.executeDispatch(oDocument, ".uno:Zoom", "", 0, Array1())
        ELSE    
                oDispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
oDispatcher.executeDispatch(oDocument, ".uno:SinglePagePerRow", "", 0,Array())
                Array1(0).Name = "Zoom.Value"
                Array1(0).Value = inZoomDefault
                oDispatcher.executeDispatch(oDocument, ".uno:Zoom", "", 0, Array1())
        END IF
END SUB

Anzahl der Seiten nebeneinander gibt es wohl nicht. Das scheinen maximal 4 Seiten zu sein.

Gruß

Robert
--
Homepage: https://www.familiegrosskopf.de/robert

--
Liste abmelden mit E-Mail an: discuss+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/discuss/
Datenschutzerklärung: https://www.documentfoundation.org/privacy

Context


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.