From 2c2919cb591d88b11bb2e25e45d6f75923821457 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Tue, 13 Feb 2018 17:47:23 +0100 Subject: PPTX export scale for TextFitToSize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MSO requires to save fontScale attribute to have all the text shown properly (with FitToSize property) Values are approximated, after any modification in MSO scale is recalculated. Change-Id: I73657fdd663b540b436747cfeeef3c76e8fe388c Reviewed-on: https://gerrit.libreoffice.org/49742 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- include/svx/svdotext.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index 4f862638ce8b..dd9972b3ce56 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -213,6 +213,7 @@ protected: virtual SdrObject* getFullDragClone() const override; + public: const Point& GetTextEditOffset() const { return maTextEditOffset; } void SetTextEditOffset(const Point& rNew) { maTextEditOffset = rNew; } @@ -385,6 +386,7 @@ public: // FitToSize and Fontwork are not taken into account in GetTextSize()! virtual const Size& GetTextSize() const; void FitFrameToTextSize(); + double GetFontScaleY() const; // Simultaneously sets the text into the Outliner (possibly // the one of the EditOutliner) and sets the PaperSize. -- cgit