diff options
author | Gulsah Kose <gulsah.1004@gmail.com> | 2016-08-08 22:11:22 +0300 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-09-10 17:39:27 +0000 |
commit | 594182ce7c2551dd1d13a014cfdfd96a057e63de (patch) | |
tree | e320c6718a705bd050141e8c701b2bd0ca58fdf4 /sw/source/uibase/shells/grfsh.cxx | |
parent | 04695b95491b7e866298bf4231fb9cca25a35a93 (diff) |
tdf#73797 Enable object rotation (.uno:ToggleObjectRotateMode) for writer
Change-Id: Ida868d0fc077d6697a0c3754b1add6a48c5d426c
Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/27995
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'sw/source/uibase/shells/grfsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/grfsh.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx index db916633f505..dd64d1346ca3 100644 --- a/sw/source/uibase/shells/grfsh.cxx +++ b/sw/source/uibase/shells/grfsh.cxx @@ -840,6 +840,15 @@ void SwGrfShell::ExecuteRotation(SfxRequest &rReq) SwWrtShell& rShell = GetShell(); + if (rReq.GetSlot() == SID_OBJECT_ROTATE) + { + if (GetView().IsDrawRotate()) + rShell.SetDragMode(SdrDragMode::Move); + else + rShell.SetDragMode(SdrDragMode::Rotate); + + GetView().FlipDrawRotate(); + } if (rReq.GetSlot() == SID_ROTATE_GRAPHIC_LEFT) { aRotation = 900; @@ -908,6 +917,7 @@ void SwGrfShell::GetAttrStateForRotation(SfxItemSet &rSet) bool bDisable = bIsParentContentProtected; switch( nWhich ) { + case SID_OBJECT_ROTATE: case SID_ROTATE_GRAPHIC_LEFT: case SID_ROTATE_GRAPHIC_RIGHT: if( rShell.GetGraphicType() == GraphicType::NONE ) |