diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-04-05 15:12:11 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-04-15 15:40:56 +0200 |
commit | c671094154ecec6f3ba5beea9d26ff0d2d4d86ad (patch) | |
tree | 3a7d65d16e9161cc5326235041a35ff3e488e54e /include/editeng | |
parent | 727bf1bdd516dc826620ea9254de1b0b76805907 (diff) |
Introduce text rotation for Impress tables
* Introduce new table property for text rotation
* Support only two rotation angle (270° and 90°)
* Implement editing and rendering of 270° rotated
text (90° rotation was already implemented)
Change-Id: Ifc2e0f171e9c840e86b365e9af2c30aa97ecd92e
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/charrotateitem.hxx | 1 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 3 | ||||
-rw-r--r-- | include/editeng/editobj.hxx | 3 | ||||
-rw-r--r-- | include/editeng/outliner.hxx | 2 | ||||
-rw-r--r-- | include/editeng/outlobj.hxx | 3 |
5 files changed, 8 insertions, 4 deletions
diff --git a/include/editeng/charrotateitem.hxx b/include/editeng/charrotateitem.hxx index fec33b5d4944..292712cc6823 100644 --- a/include/editeng/charrotateitem.hxx +++ b/include/editeng/charrotateitem.hxx @@ -63,6 +63,7 @@ public: void SetBottomToTop() { SetValue(900); } bool IsTopToBottom() const { return 2700 == GetValue(); } bool IsBottomToTop() const { return 900 == GetValue(); } + bool IsVertical() const { return IsTopToBottom() || IsBottomToTop(); } void dumpAsXml(struct _xmlTextWriter* pWriter) const override; }; diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index a8fa950a6805..6b3ba51a6578 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -242,8 +242,9 @@ public: void SetPaperSize( const Size& rSize ); const Size& GetPaperSize() const; - void SetVertical( bool bVertical ); + void SetVertical( bool bVertical, bool bTopToBottom = true ); bool IsVertical() const; + bool IsTopToBottom() const; void SetFixedCellHeight( bool bUseFixedCellHeight ); diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx index 509954069b09..2833be068fa7 100644 --- a/include/editeng/editobj.hxx +++ b/include/editeng/editobj.hxx @@ -86,7 +86,8 @@ public: void SetUserType( OutlinerMode n ); bool IsVertical() const; - void SetVertical( bool bVertical ); + bool IsTopToBottom() const; + void SetVertical( bool bVertical, bool bTopToBottom = true); SvtScriptType GetScriptType() const; diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx index 665497ed33a3..5d2ce0044517 100644 --- a/include/editeng/outliner.hxx +++ b/include/editeng/outliner.hxx @@ -684,7 +684,7 @@ public: void Init( OutlinerMode nOutlinerMode ); OutlinerMode GetMode() const { return nOutlinerMode; } - void SetVertical( bool bVertical ); + void SetVertical( bool bVertical, bool bTopToBottom = true); bool IsVertical() const; void SetFixedCellHeight( bool bUseFixedCellHeight ); diff --git a/include/editeng/outlobj.hxx b/include/editeng/outlobj.hxx index b296d7907376..1477e38d8b5b 100644 --- a/include/editeng/outlobj.hxx +++ b/include/editeng/outlobj.hxx @@ -81,7 +81,8 @@ public: // vertical access bool IsVertical() const; - void SetVertical(bool bNew); + bool IsTopToBottom() const; + void SetVertical(bool bNew, bool bTopToBottom = true); // data read access sal_Int32 Count() const; |