Kaydet (Commit) 7db76988 authored tarafından Philippe Jung's avatar Philippe Jung Kaydeden (comit) Norbert Thiebaud

tdf#34555 Moving SID_OBJECT_CROP out of sd

The crop action in impress is defined in impress but uses code shared in
svx. This patch move the declaration of the Crop action in svx so that
it can be shared with sc & writer.

This is part of a serie of 4 patches that adds Save graphic, Change Picture,
Edit with external tool, Crop (by handles) in all products (scalc, sdraw,
simpress, swriter).
Main menus, toolbars and contextual menus are updated accordingly.


Change-Id: Idb6907aa09c0efd456c2ad51232cf37edb28d977
Reviewed-on: https://gerrit.libreoffice.org/15587Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst bf52d195
...@@ -1006,8 +1006,10 @@ ...@@ -1006,8 +1006,10 @@
#define SID_PARASPACE_INCREASE ( SID_SVX_START + 1145 ) #define SID_PARASPACE_INCREASE ( SID_SVX_START + 1145 )
#define SID_PARASPACE_DECREASE ( SID_SVX_START + 1146 ) #define SID_PARASPACE_DECREASE ( SID_SVX_START + 1146 )
#define SID_OBJECT_CROP ( SID_SVX_START + 1147 )
// IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id // IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id
#define SID_SVX_FIRSTFREE (SID_PARASPACE_DECREASE + 1) #define SID_SVX_FIRSTFREE ( SID_OBJECT_CROP + 1 )
// Overflow check for slot IDs // Overflow check for slot IDs
......
...@@ -421,7 +421,6 @@ ...@@ -421,7 +421,6 @@
#define SID_SLIDE_SORTER_MULTI_PANE_GUI (SID_SD_START+421) #define SID_SLIDE_SORTER_MULTI_PANE_GUI (SID_SD_START+421)
#define SID_SELECT_BACKGROUND (SID_SD_START+422) #define SID_SELECT_BACKGROUND (SID_SD_START+422)
#define SID_OBJECT_CROP (SID_SD_START+423)
// Slots for the tool pane popup // Slots for the tool pane popup
#define SID_TP_APPLY_TO_ALL_SLIDES (SID_SD_START+425) #define SID_TP_APPLY_TO_ALL_SLIDES (SID_SD_START+425)
......
...@@ -6174,33 +6174,6 @@ SfxVoidItem Mirror SID_OBJECT_MIRROR ...@@ -6174,33 +6174,6 @@ SfxVoidItem Mirror SID_OBJECT_MIRROR
GroupId = GID_DOCUMENT ; GroupId = GID_DOCUMENT ;
] ]
SfxVoidItem Crop SID_OBJECT_CROP
()
[
/* flags: */
AutoUpdate = TRUE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* status: */
SlotType = SfxBoolItem
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_DOCUMENT ;
]
SfxVoidItem HeaderAndFooter SID_HEADER_AND_FOOTER SfxVoidItem HeaderAndFooter SID_HEADER_AND_FOOTER
() ()
[ [
......
...@@ -6038,6 +6038,33 @@ SfxVoidItem RotateRight SID_ROTATE_GRAPHIC_RIGHT ...@@ -6038,6 +6038,33 @@ SfxVoidItem RotateRight SID_ROTATE_GRAPHIC_RIGHT
GroupId = GID_GRAPHIC; GroupId = GID_GRAPHIC;
] ]
SfxVoidItem Crop SID_OBJECT_CROP
()
[
/* flags: */
AutoUpdate = TRUE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* status: */
SlotType = SfxBoolItem
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_DOCUMENT ;
]
SfxVoidItem ChangePicture SID_CHANGE_PICTURE SfxVoidItem ChangePicture SID_CHANGE_PICTURE
() ()
[ [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment