diff options
author | Attila Szűcs <szucs.attila3@nisz.hu> | 2021-01-27 17:43:43 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2021-02-09 16:37:51 +0100 |
commit | 2bf3e0d00e3bccb5b250642ee0d3fdbe6cae8ecc (patch) | |
tree | d789235fb774e6109276b657e836b8c9dc9d710e /sc/inc/table.hxx | |
parent | 0f89ce31eda36a05d295504a521b27907b798490 (diff) |
tdf#104502 sc: skip hidden columns at printing pages
Page calculation counted the hidden columns, resulted
printing blank pages by accident.
Extend GetPrintArea() and GetTableArea() to count pages
without the hidden columns, too.
Co-authored-by: Tibor Nagy (NISZ)
Change-Id: I4817965a675e059cdc8f81ca3bb6e128af874f2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110028
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 309d49d4f140..fed4d4b12388 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -198,6 +198,8 @@ private: mutable SCCOL nTableAreaX; mutable SCROW nTableAreaY; + mutable SCCOL nTableAreaVisibleX; + mutable SCROW nTableAreaVisibleY; SCTAB nTab; ScDocument& rDocument; @@ -232,6 +234,7 @@ private: bool bLoadingRTL:1; bool bPageSizeValid:1; mutable bool bTableAreaValid:1; + mutable bool bTableAreaVisibleValid:1; bool bVisible:1; bool bStreamValid:1; bool bPendingRowHeights:1; @@ -567,8 +570,8 @@ public: void InvalidatePageBreaks(); bool GetCellArea( SCCOL& rEndCol, SCROW& rEndRow ) const; // FALSE = empty - bool GetTableArea( SCCOL& rEndCol, SCROW& rEndRow ) const; - bool GetPrintArea( SCCOL& rEndCol, SCROW& rEndRow, bool bNotes ) const; + bool GetTableArea( SCCOL& rEndCol, SCROW& rEndRow, bool bCalcHiddens = false) const; + bool GetPrintArea( SCCOL& rEndCol, SCROW& rEndRow, bool bNotes, bool bCalcHiddens = false) const; bool GetPrintAreaHor( SCROW nStartRow, SCROW nEndRow, SCCOL& rEndCol ) const; bool GetPrintAreaVer( SCCOL nStartCol, SCCOL nEndCol, |