summaryrefslogtreecommitdiffstats
path: root/editeng/source/editeng/impedit.hxx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2019-11-26 18:37:38 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2019-11-27 09:32:42 +0100
commit653b53287ca09a9ffe3f5ce0242919e719c1086c (patch)
tree83a3de8a5940e122be51dcebe0aa6cefef028ab5 /editeng/source/editeng/impedit.hxx
parentjsdialogs: export FillStyle command to JSON (diff)
downloadcore-653b53287ca09a9ffe3f5ce0242919e719c1086c.tar.gz
core-653b53287ca09a9ffe3f5ce0242919e719c1086c.zip
Better handling of text rotation attribute.
We need to have a separate attribute for vertical option and for rotation option. So rotation won't be lost by setting the text direction. So I added a rotation member variable and use that as an orthogonal variable to the vertical text direction. A follow-up fix for tdf#100926. The problem was that the rotation was imported / exported correctly from/in ODP, but the text was not displayed as rotated. Change-Id: Icddc0689f06fdcd52df6dc911e02a9a948c42654 Reviewed-on: https://gerrit.libreoffice.org/83809 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'editeng/source/editeng/impedit.hxx')
-rw-r--r--editeng/source/editeng/impedit.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 6980e39d0824..5d3db66f5e18 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -744,9 +744,12 @@ public:
const Size& GetPaperSize() const { return aPaperSize; }
void SetPaperSize( const Size& rSz ) { aPaperSize = rSz; }
- void SetVertical( bool bVertical, bool bTopToBottom);
+ void SetVertical( bool bVertical);
bool IsVertical() const { return GetEditDoc().IsVertical(); }
bool IsTopToBottom() const { return GetEditDoc().IsTopToBottom(); }
+ bool GetDirectVertical() const { return GetEditDoc().GetDirectVertical(); }
+ void SetRotation( TextRotation nRotation);
+ TextRotation GetRotation() const { return GetEditDoc().GetRotation(); }
bool IsPageOverflow( ) const;