diff options
author | Dennis Francis <dennis.francis@collabora.com> | 2020-06-03 21:33:24 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2020-07-08 18:08:25 +0200 |
commit | 6907817b83e37d40be491cc10b2e5b99cc0f48fc (patch) | |
tree | cf0e12cd78780bc45fdb3f5a2ad57bc7b5e8ca12 /editeng/source/editeng/impedit.hxx | |
parent | svx: create instances with uno constructors (diff) | |
download | core-6907817b83e37d40be491cc10b2e5b99cc0f48fc.tar.gz core-6907817b83e37d40be491cc10b2e5b99cc0f48fc.zip |
scPrintTwipsMsgs: Use print-twips paper-size
Paper size for the EditEngine is calculated based on per-cell pixel
alignment. So lets use the exact print-twips version whenever we need it
to compute/adjust output-area and visible-area of EditView.
Change-Id: I7da6db9363d09965315ff5ca9d01f0fea141a533
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98130
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'editeng/source/editeng/impedit.hxx')
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 5f67ecd9b22a..0e2b6df1d790 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -562,6 +562,8 @@ private: // If it is detected at one point that the StatusHdl has to be called, but // this should not happen immediately (critical section): Timer aStatusTimer; + Size aLOKSpecialPaperSize; + Link<EditStatus&,void> aStatusHdlLink; Link<EENotify&,void> aNotifyHdl; Link<HtmlImportInfo&,void> aHtmlImportHdl; @@ -1109,6 +1111,8 @@ public: bool IsNbspRunNext() const { return mbNbspRunNext; } void Dispose(); + void SetLOKSpecialPaperSize(const Size& rSize) { aLOKSpecialPaperSize = rSize; } + const Size& GetLOKSpecialPaperSize() const { return aLOKSpecialPaperSize; } }; inline EPaM ImpEditEngine::CreateEPaM( const EditPaM& rPaM ) |