summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/drawsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/drawsh.cxx')
-rw-r--r--sw/source/ui/shells/drawsh.cxx28
1 files changed, 20 insertions, 8 deletions
diff --git a/sw/source/ui/shells/drawsh.cxx b/sw/source/ui/shells/drawsh.cxx
index e55459801130..36c758a0bf2d 100644
--- a/sw/source/ui/shells/drawsh.cxx
+++ b/sw/source/ui/shells/drawsh.cxx
@@ -159,12 +159,10 @@ void SwDrawShell::Execute(SfxRequest &rReq)
}
break;
- case FN_FLIP_HORZ_GRAFIC:
- case SID_FLIP_HORIZONTAL:
+ case SID_FLIP_VERTICAL:
bMirror = false;
/* no break */
- case FN_FLIP_VERT_GRAFIC:
- case SID_FLIP_VERTICAL:
+ case SID_FLIP_HORIZONTAL:
rSh.MirrorSelection( bMirror );
break;
@@ -324,16 +322,30 @@ void SwDrawShell::GetState(SfxItemSet& rSet)
rSet.Put( SfxBoolItem( nWhich, !GetView().IsDrawSelMode()));
break;
- case FN_FLIP_HORZ_GRAFIC:
- case SID_FLIP_HORIZONTAL:
+ case SID_FLIP_VERTICAL:
if ( !pSdrView->IsMirrorAllowed() || bProtected )
+ {
rSet.DisableItem( nWhich );
+ }
+ else
+ {
+ // TTTT - needs to be adapted in aw080:
+ // state is not kept for drawing objects --> provide not flipped state
+ rSet.Put( SfxBoolItem( nWhich, sal_False ) );
+ }
break;
- case FN_FLIP_VERT_GRAFIC:
- case SID_FLIP_VERTICAL:
+ case SID_FLIP_HORIZONTAL:
if ( !pSdrView->IsMirrorAllowed() || bProtected )
+ {
rSet.DisableItem( nWhich );
+ }
+ else
+ {
+ // TTTT - needs to be adapted in aw080:
+ // state is not kept for drawing objects --> provide not flipped state
+ rSet.Put( SfxBoolItem( nWhich, sal_False ) );
+ }
break;
case SID_FONTWORK: