diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-10-13 12:00:50 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-10-13 14:39:17 +0200 |
commit | b2e5f9ead2bb7f2979afe4ba13e3950e8a3cc278 (patch) | |
tree | 72e2eb4d7d4ec5ef5be471e32369c9f0ffe41463 /sd | |
parent | 9e4cbac83094c13ffbfd117f534d4275cc1ffb16 (diff) |
tdf#125566 Add arrangement functions to position & size sidebar
Adds arrangement actions to position & size sidebar so it is
possible to move the object up/down in the stack.
As Draw/Impress uses it's own action names for the same UNO action
(Forward/Back in Draw and ObjectForwardOne and ObjectBackOne in
Writer/Calc) also add the global ones to Draw/Impress and connect
them to the same function as Forward/Back. This commit does not
unify them however (Forward/Back are still used in menus/toolbars)
but this could be done in the future.
Change-Id: Ibb152f29dbe11dfb1b6a057e6ea60b21029912e2
Reviewed-on: https://gerrit.libreoffice.org/80729
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/sdi/_drvwsh.sdi | 10 | ||||
-rw-r--r-- | sd/sdi/sdraw.sdi | 34 | ||||
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsj.cxx | 8 |
4 files changed, 54 insertions, 0 deletions
diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi index e746482960aa..b49088f395c0 100644 --- a/sd/sdi/_drvwsh.sdi +++ b/sd/sdi/_drvwsh.sdi @@ -554,6 +554,11 @@ interface DrawView ExecMethod = FuTemporary ; StateMethod = GetMenuState ; ] + SID_FRAME_UP // ole : no, status : play rec + [ + ExecMethod = FuTemporary ; + StateMethod = GetMenuState ; + ] SID_BEFORE_OBJ // ole : no, status : no [ ExecMethod = FuTemporary ; @@ -574,6 +579,11 @@ interface DrawView ExecMethod = FuTemporary ; StateMethod = GetMenuState ; ] + SID_FRAME_DOWN // ole : no, status : play rec + [ + ExecMethod = FuTemporary ; + StateMethod = GetMenuState ; + ] SID_FRAME_TO_BOTTOM // ole : no, status : play rec [ ExecMethod = FuTemporary ; diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi index bbaff36c3d1b..b73fa0d779f1 100644 --- a/sd/sdi/sdraw.sdi +++ b/sd/sdi/sdraw.sdi @@ -175,6 +175,23 @@ SfxVoidItem Backward SID_MOREBACK GroupId = SfxGroupId::Modify; ] +SfxVoidItem ObjectBackOne SID_FRAME_DOWN +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Modify; +] + SfxVoidItem BeforeObject SID_BEFORE_OBJ () [ @@ -1458,6 +1475,23 @@ SfxVoidItem Forward SID_MOREFRONT GroupId = SfxGroupId::Modify; ] +SfxVoidItem ObjectForwardOne SID_FRAME_UP +() +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Modify; +] + SfxVoidItem GetBlue SID_GETBLUE (SfxUInt32Item WhatKind ID_VAL_WHATKIND) [ diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 0928056174de..bd4f39205b3d 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -2899,6 +2899,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) break; case SID_MOREFRONT: // BASIC + case SID_FRAME_UP: // BASIC { mpDrawView->MovMarkedToTop(); Cancel(); @@ -2907,6 +2908,7 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) break; case SID_MOREBACK: // BASIC + case SID_FRAME_DOWN: // BASIC { mpDrawView->MovMarkedToBtm(); Cancel(); diff --git a/sd/source/ui/view/drviewsj.cxx b/sd/source/ui/view/drviewsj.cxx index 165a9c3038d5..addc54e4fc9f 100644 --- a/sd/source/ui/view/drviewsj.cxx +++ b/sd/source/ui/view/drviewsj.cxx @@ -83,7 +83,9 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) SfxItemState::DEFAULT == rSet.GetItemState( SID_OBJECT_ALIGN_DOWN ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_FRAME_TO_TOP ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_MOREFRONT ) || + SfxItemState::DEFAULT == rSet.GetItemState( SID_FRAME_UP ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_MOREBACK ) || + SfxItemState::DEFAULT == rSet.GetItemState( SID_FRAME_DOWN ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_FRAME_TO_BOTTOM ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_BEFORE_OBJ ) || SfxItemState::DEFAULT == rSet.GetItemState( SID_BEHIND_OBJ ) || @@ -220,7 +222,9 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) rSet.DisableItem( SID_OBJECT_ALIGN_DOWN ); rSet.DisableItem( SID_FRAME_TO_TOP ); rSet.DisableItem( SID_MOREFRONT ); + rSet.DisableItem( SID_FRAME_UP ); rSet.DisableItem( SID_MOREBACK ); + rSet.DisableItem( SID_FRAME_DOWN ); rSet.DisableItem( SID_FRAME_TO_BOTTOM ); rSet.DisableItem( SID_BEFORE_OBJ ); rSet.DisableItem( SID_BEHIND_OBJ ); @@ -398,7 +402,9 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) rSet.DisableItem( SID_OBJECT_ALIGN_DOWN ); rSet.DisableItem( SID_FRAME_TO_TOP ); rSet.DisableItem( SID_MOREFRONT ); + rSet.DisableItem( SID_FRAME_UP ); rSet.DisableItem( SID_MOREBACK ); + rSet.DisableItem( SID_FRAME_DOWN ); rSet.DisableItem( SID_FRAME_TO_BOTTOM ); rSet.DisableItem( SID_BEFORE_OBJ ); rSet.DisableItem( SID_BEHIND_OBJ ); @@ -458,7 +464,9 @@ void DrawViewShell::GetMenuStateSel( SfxItemSet &rSet ) rSet.DisableItem( SID_FRAME_TO_TOP ); rSet.DisableItem( SID_MOREFRONT ); + rSet.DisableItem( SID_FRAME_UP ); rSet.DisableItem( SID_MOREBACK ); + rSet.DisableItem( SID_FRAME_DOWN ); rSet.DisableItem( SID_FRAME_TO_BOTTOM ); rSet.DisableItem( SID_BEFORE_OBJ ); rSet.DisableItem( SID_BEHIND_OBJ ); |