diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-06-02 00:42:24 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2020-07-06 17:27:57 +0200 |
commit | a3d3e85cfd292fcbe00d5d59347bc5ecff95a826 (patch) | |
tree | 07d0eb35ed5d23548a5e191e66918662362f0c3a /sc/inc | |
parent | d9e3b08d83cfadbff12da2fbba6a37830fb6f7cf (diff) |
Allow print-twips version of ScDocument::GetNeededSize()...
via an optional boolean argument bInPrintTwips which is false by default.
This is needed for edit-area calculation in print twips which will
aid in the generation of edit-cursor/edit-selection messages in print
twips for LOK clients.
Change-Id: Ibb15411278b9196d956ac952444d6e31c62dccda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98053
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/column.hxx | 3 | ||||
-rw-r--r-- | sc/inc/document.hxx | 3 | ||||
-rw-r--r-- | sc/inc/table.hxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 4f839d0063dd..64485ccd5f2c 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -519,7 +519,8 @@ public: long GetNeededSize( SCROW nRow, OutputDevice* pDev, double nPPTX, double nPPTY, const Fraction& rZoomX, const Fraction& rZoomY, - bool bWidth, const ScNeededSizeOptions& rOptions, const ScPatternAttr** pPatternChange ) const; + bool bWidth, const ScNeededSizeOptions& rOptions, const ScPatternAttr** pPatternChange, + bool bInPrintTwips = false ) const; sal_uInt16 GetOptimalColWidth( OutputDevice* pDev, double nPPTX, double nPPTY, diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 52946b919f6a..d1df7f299660 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1896,7 +1896,8 @@ public: OutputDevice* pDev, double nPPTX, double nPPTY, const Fraction& rZoomX, const Fraction& rZoomY, - bool bWidth, bool bTotalSize = false ); + bool bWidth, bool bTotalSize = false, + bool bInPrintTwips = false ); SC_DLLPUBLIC void ShowCol(SCCOL nCol, SCTAB nTab, bool bShow); SC_DLLPUBLIC void ShowRow(SCROW nRow, SCTAB nTab, bool bShow); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 30c4b174b2ff..d744ec5df174 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -785,7 +785,8 @@ public: OutputDevice* pDev, double nPPTX, double nPPTY, const Fraction& rZoomX, const Fraction& rZoomY, - bool bWidth, bool bTotalSize ); + bool bWidth, bool bTotalSize, + bool bInPrintTwips = false); void SetColWidth( SCCOL nCol, sal_uInt16 nNewWidth ); void SetColWidthOnly( SCCOL nCol, sal_uInt16 nNewWidth ); void SetRowHeight( SCROW nRow, sal_uInt16 nNewHeight ); |