diff options
author | Yousuf Philips <philipz85@hotmail.com> | 2014-12-18 13:02:45 +0400 |
---|---|---|
committer | Yousuf Philips <philipz85@hotmail.com> | 2014-12-22 14:43:32 +0000 |
commit | 29bb99c5e735aa1d23e15816bb44f56e79e9bbc7 (patch) | |
tree | d982096889067930a23334af66c1f862c91643d7 | |
parent | 07b303bc14d33619782fcfef0c7d94b14b1a1e55 (diff) |
fdo#87185 reorganize the image context menu
Change-Id: I31e8f713f65b05e0a17fa79785bed6834dc973b4
Reviewed-on: https://gerrit.libreoffice.org/13570
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
-rw-r--r-- | sw/source/ui/app/mn.src | 88 |
1 files changed, 45 insertions, 43 deletions
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src index 22b278e4d7b0..2dce680f58cc 100644 --- a/sw/source/ui/app/mn.src +++ b/sw/source/ui/app/mn.src @@ -1121,7 +1121,7 @@ String MN_GRF_POPUPMENU Text [ en-US ] = "Graphic" ; }; -#define MN_ALIGN_FRAME \ +#define MN_ARRANGE_FRAME \ MenuItem\ {\ Identifier = MN_SUB_ALIGN ; \ @@ -1143,11 +1143,14 @@ String MN_GRF_POPUPMENU };\ };\ };\ - };\ + };\ + +#define MN_ALIGNMENT_FRAME \ MenuItem\ {\ Identifier = MN_FORMAT_FRM_HORZ ; \ Command = ".uno:AlignFrameMenu" ; \ + Text [ en-US ] = "A~lignment" ; \ SubMenu = Menu\ {\ ItemList = \ @@ -1191,62 +1194,61 @@ String MN_GRF_POPUPMENU };\ };\ };\ - Text [ en-US ] = "A~lignment" ; \ + };\ + +#define MN_ROTATE_IMAGE \ + MenuItem\ + {\ + Identifier = SID_MENU_MANAGE_GRAPHIC ; \ + Command = ".uno:ManageGraphicMenu" ; \ + Text [ en-US ] = "~Rotate Image" ; \ + SubMenu = Menu\ + {\ + ItemList = \ + {\ + MenuItem\ + {\ + Identifier = SID_ROTATE_GRAPHIC_LEFT ; \ + Command = ".uno:RotateLeft" ; \ + Text [ en-US ] = "Rotate 90° Left" ; \ + };\ + MenuItem\ + {\ + Identifier = SID_ROTATE_GRAPHIC_RIGHT ; \ + Command = ".uno:RotateRight" ; \ + Text [ en-US ] = "Rotate 90° Right" ; \ + };\ + };\ };\ + };\ + +#define MN_ALIGN_FRAME \ + MN_ARRANGE_FRAME + MN_ALIGNMENT_FRAME MN_ANCHOR Menu MN_GRF_POPUPMENU { ItemList = { - MN_ALIGN_FRAME - MN_MOUSE_FRAME_WITH_CONTOUR - SEPARATOR ; - MN_TITLE_DESCRIPTION_SHAPE + MenuItem { ITEM_EXTERNAL_EDIT }; + MenuItem { ITEM_CHANGE_PICTURE }; + MenuItem { ITEM_COMPRESS_GRAPHIC }; + MenuItem { ITEM_SAVE_GRAPHIC }; + MN_ROTATE_IMAGE SEPARATOR ; + + MN_FRM_CAPTION_ITEM MenuItem { Identifier = FN_FORMAT_GRAFIC_DLG ; HelpId = CMD_FN_FORMAT_GRAFIC_DLG ; Text [ en-US ] = "~Image..." ; }; - MN_FRM_CAPTION_ITEM - SEPARATOR; - MenuItem { ITEM_SAVE_GRAPHIC }; - MenuItem { ITEM_CHANGE_PICTURE }; - MenuItem { ITEM_COMPRESS_GRAPHIC }; - MenuItem { ITEM_EXTERNAL_EDIT }; - - MenuItem - { - Identifier = SID_MENU_MANAGE_GRAPHIC ; - Command = ".uno:ManageGraphicMenu" ; - Text [ en-US ] = "~Rotate Image" ; - SubMenu = Menu - { - ItemList = - { - MenuItem - { - Identifier = SID_ROTATE_GRAPHIC_LEFT ; - Command = ".uno:RotateLeft" ; - Text [ en-US ] = "Rotate 90° Left" ; - }; - MenuItem - { - Identifier = SID_ROTATE_GRAPHIC_RIGHT ; - Command = ".uno:RotateRight" ; - Text [ en-US ] = "Rotate 90° Right" ; - }; - }; - }; - }; + SEPARATOR ; - SEPARATOR; - MenuItem - { - ITEM_EDIT_IMAP - }; + MN_ALIGN_FRAME + MN_MOUSE_FRAME_WITH_CONTOUR }; }; |