From e02bd1b5aa22c463fbb985df546edc94e63a7c98 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Wed, 3 Jun 2020 21:33:24 +0530 Subject: 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/+/98066 Tested-by: Jenkins CollaboraOffice Reviewed-by: Dennis Francis --- include/editeng/editeng.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 4c603a1b8b07..c5baa182e2e1 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -623,6 +623,9 @@ public: // the same type expands the original instead of inserting another. But the // spell check dialog doesn't want that behaviour void DisableAttributeExpanding(); + + void SetLOKSpecialPaperSize(const Size& rSize); + const Size& GetLOKSpecialPaperSize() const; }; #endif // INCLUDED_EDITENG_EDITENG_HXX -- cgit