From 21fad629e72791f6cc1791fdba858bf52b9bfeff Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Wed, 26 Apr 2023 13:29:25 -0400 Subject: tdf#86630 sw page number wizard: mirror right/left If the user puts the page numbers on the left or right side of the page, they usually want that mirrored on even and odd pages. This got rather tricky, but in the end I have enough safeguards that it seems to work logically and stablely. So I think it is ready to be submitted. Change-Id: I321e575cd9f6718579ffee99f1258bffe26581f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151152 Reviewed-by: Justin Luth Tested-by: Jenkins --- sw/inc/crsrsh.hxx | 2 +- sw/inc/swabstdlg.hxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/inc') diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 319911a33e65..5f99deff126b 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -675,7 +675,7 @@ public: bool GotoHeaderText(); ///< jump from the content to the header bool GotoFooterText(); ///< jump from the content to the footer // jump to the header/footer of the given or current PageDesc - bool SetCursorInHdFt( size_t nDescNo, bool bInHeader ); + bool SetCursorInHdFt(size_t nDescNo, bool bInHeader, bool bEven = false, bool bFirst = false); // is point of cursor in header/footer. pbInHeader return true if it is // in a headerframe otherwise in a footerframe bool IsInHeaderFooter( bool* pbInHeader = nullptr ) const; diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx index 9749539c5643..49eefef5e4a3 100644 --- a/sw/inc/swabstdlg.hxx +++ b/sw/inc/swabstdlg.hxx @@ -238,6 +238,7 @@ protected: public: virtual int GetPageNumberPosition() const = 0; virtual int GetPageNumberAlignment() const = 0; + virtual bool GetMirrorOnEvenPages() const = 0; virtual SvxNumType GetPageNumberType() const = 0; virtual void SetPageNumberType(SvxNumType nSet) = 0; }; -- cgit