diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-06-13 15:53:49 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-06-13 18:29:40 +0200 |
commit | cc46e7b9c75ddbcaaefde5f396ba76b0b866fa58 (patch) | |
tree | 23c762f4de82f4de8593c42d6906b0a1bc64f2fb /sw/inc/crsrsh.hxx | |
parent | dc5a7f14cb44c06c19772249973d06df1f4eccaa (diff) |
tdf#116537: use page #s excluding empty pages when they are ignored
Since commit 3c1a343f6936f1dcefdf79a677f8c26ce29676e6,
SwDoc::CalculatePagesForPrinting expects that PageRange contains
page numbers that don't include empty pages' numbers, when the
org.openoffice.Office.Writer/Print/EmptyPages is false.
Change-Id: I4057d6e36765707affbd5f3a4507ae03f4a27171
Reviewed-on: https://gerrit.libreoffice.org/55756
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r-- | sw/inc/crsrsh.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 98a83f08b1f2..531452561fe9 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -512,6 +512,9 @@ public: // false: which is visible at the upper margin. void GetPageNum( sal_uInt16 &rnPhyNum, sal_uInt16 &rnVirtNum, bool bAtCursorPos = true, const bool bCalcFrame = true ); + // Returns current page's sequential number (1-based), ignoring autoinserted empty pages + // Returns 0 on error + sal_uInt16 GetPageNumSeqNonEmpty(bool bAtCursorPos, bool bCalcFrame); // Determine how "empty pages" are handled // (used in PhyPage). sal_uInt16 GetNextPrevPageNum( bool bNext = true ); |