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 /sd/source | |
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 'sd/source')
-rw-r--r-- | sd/source/ui/func/futext.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 4f9955ceea3a..e22615cb5728 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -1055,7 +1055,9 @@ void FuText::SetInEditMode(const MouseEvent& rMEvt, bool bQuickDrag) if( pTextObj ) { OutlinerParaObject* pOPO = pTextObj->GetOutlinerParaObject(); - if( ( pOPO && pOPO->IsVertical() ) || (nSlotId == SID_ATTR_CHAR_VERTICAL) || (nSlotId == SID_TEXT_FITTOSIZE_VERTICAL) ) + if( pOPO && pOPO->IsVertical() ) + pOutl->SetVertical( true, pOPO->IsTopToBottom()); + else if (nSlotId == SID_ATTR_CHAR_VERTICAL || nSlotId == SID_TEXT_FITTOSIZE_VERTICAL) pOutl->SetVertical( true ); if( pTextObj->getTextCount() > 1 ) |