diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-07-10 12:35:44 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-07-11 08:49:31 +0200 |
commit | e09f22aa2626267e01b9e759c152f3a0d70ddc68 (patch) | |
tree | 0761a9acb878c12e30d3747f56dcaab2ffdc2af3 /include/svx | |
parent | 4450137924eb8626a57283e1ab4f4ad62dd2d595 (diff) |
editengine-columns: tdf#143258 Fix handling rotated text
This reverts modifications to existing unit tests made in commit
d0a1616ccad0dd5f5a02c1b0204f537b57d0b4b5. My idea that those changes
were required because of more correct calculations was wrong, and in
fact they were caused by off-by-1 error in height calculations.
Change-Id: Ib94878a911238c977c35a8f8e3e5694cedc79a89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118705
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdotext.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index 210839c179e4..e6f183a6569b 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -386,6 +386,8 @@ public: // the one of the EditOutliner) and sets the PaperSize. virtual void TakeTextRect( SdrOutliner& rOutliner, tools::Rectangle& rTextRect, bool bNoEditText, tools::Rectangle* pAnchorRect, bool bLineWidth = true ) const; + // Takes writing direction into account when adjusting the rectangle + void AdjustRectToTextDistance(tools::Rectangle& rAnchorRect) const; virtual void TakeTextAnchorRect(::tools::Rectangle& rAnchorRect) const; const GeoStat& GetGeoStat() const { return maGeo; } @@ -535,6 +537,7 @@ public: void ForceOutlinerParaObject(); virtual bool IsVerticalWriting() const; virtual void SetVerticalWriting(bool bVertical); + bool IsTopToBottom() const; /** called from the SdrObjEditView during text edit when the status of the edit outliner changes */ virtual void onEditOutlinerStatusEvent( EditStatus* pEditStatus ); |