diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2024-10-18 12:59:17 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-10-21 11:42:40 +0200 |
commit | 25d6bd3ebcf4a5d6003288863620565749433787 (patch) | |
tree | eef1a9af31dcef5444c4e5126d37e181181802fb /svx/inc/sdr | |
parent | ac90d5a823ef95617e79f78dd83571b26f9ff662 (diff) |
Support FixedCellHeight in SdrAutoFitTextPrimitive2D
That was missing with the result that for some cases the
painted text (where it was missing) differed from the
text in EditEngine mode (was set there).
Change-Id: I23ddf8e90be2335c56e5a485308c753dfe72a878
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175127
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'svx/inc/sdr')
-rw-r--r-- | svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx index 43c6aadaf7f7..ddb0a4075d3d 100644 --- a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx +++ b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx @@ -269,6 +269,7 @@ namespace drawinglayer::primitive2d ::basegfx::B2DHomMatrix maTextRangeTransform; // text range transformation from unit range ([0.0 .. 1.0]) to text range bool mbWordWrap : 1; // for CustomShapes text layout + bool mbFixedCellHeight : 1; // local decomposition. virtual Primitive2DReference create2DDecomposition(const geometry::ViewInformation2D& aViewInformation) const override; @@ -278,11 +279,13 @@ namespace drawinglayer::primitive2d const SdrText* pSdrText, const OutlinerParaObject& rOutlinerParaObjectPtr, ::basegfx::B2DHomMatrix aTextRangeTransform, - bool bWordWrap); + bool bWordWrap, + bool bFixedCellHeight); // get data const basegfx::B2DHomMatrix& getTextRangeTransform() const { return maTextRangeTransform; } bool getWordWrap() const { return mbWordWrap; } + bool isFixedCellHeight() const { return mbFixedCellHeight; } // compare operator virtual bool operator==(const BasePrimitive2D& rPrimitive) const override; |