diff options
author | Justin Luth <justin.luth@collabora.com> | 2023-04-26 13:29:25 -0400 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-04-28 08:08:06 +0200 |
commit | 21fad629e72791f6cc1791fdba858bf52b9bfeff (patch) | |
tree | 0352ed38b87dfd1a5a24258c4c73007c814b711a /sw/inc | |
parent | d4cf5814146e375805df98eafba2baf321b9b005 (diff) |
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 <jluth@mail.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/crsrsh.hxx | 2 | ||||
-rw-r--r-- | sw/inc/swabstdlg.hxx | 1 |
2 files changed, 2 insertions, 1 deletions
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; }; |