diff --git a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu index f51dcf7a4185..38c4485d565c 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/DrawImpressCommands.xcu @@ -1786,6 +1786,28 @@ 1 + + + ~Center on Page + + + Center object vertically and horizontally + + + 1 + + + + + ~Center on Slide + + + Center object vertically and horizontally + + + .uno:AlignOnPage + + diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 703e2c476365..5c92e5147718 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -2633,7 +2633,7 @@ bit 3 (0x8): #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8 - C~enter + ~Middle 1 diff --git a/sd/inc/app.hrc b/sd/inc/app.hrc index 7a2334b47ed8..56cfc31ede21 100644 --- a/sd/inc/app.hrc +++ b/sd/inc/app.hrc @@ -451,5 +451,6 @@ #define SID_HIDE_LAST_LEVEL (SID_SD_START+448) #define SID_SHOW_NEXT_LEVEL (SID_SD_START+449) #define SID_PRESENTATION_MINIMIZER (SID_SD_START+450) +#define SID_ALIGN_PAGE (SID_SD_START+451) /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi index 159b5ffc75e4..76fde4080010 100644 --- a/sd/sdi/_drvwsh.sdi +++ b/sd/sdi/_drvwsh.sdi @@ -2977,4 +2977,9 @@ interface DrawView ExecMethod = FuTemporary; StateMethod = GetAttrState; ] + SID_ALIGN_PAGE + [ + ExecMethod = FuTemporary ; + StateMethod = GetMenuState; + ] } diff --git a/sd/sdi/sdraw.sdi b/sd/sdi/sdraw.sdi index bfc38f92e51d..d98a938c1cfd 100644 --- a/sd/sdi/sdraw.sdi +++ b/sd/sdi/sdraw.sdi @@ -4720,3 +4720,19 @@ SfxBoolItem UnderlineDotted SID_ULINE_VAL_DOTTED ToolBoxConfig = TRUE, GroupId = SfxGroupId::Format; ] + +SfxVoidItem AlignOnPage SID_ALIGN_PAGE +[ + AutoUpdate = TRUE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Modify; +] diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 2803fb0721eb..ce9359fbebc3 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -3139,6 +3139,14 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) } break; + case SID_ALIGN_PAGE: + { + mpDrawView->AlignMarkedObjects(SdrHorAlign::Center, SdrVertAlign::Center); + Cancel(); + rReq.Done (); + } + break; + case SID_OBJECT_ALIGN_DOWN: // BASIC { mpDrawView->AlignMarkedObjects(SdrHorAlign::NONE, SdrVertAlign::Bottom); diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index b63253fa36e4..a561bf46f411 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -1337,6 +1337,7 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) rSet.ClearItem(SID_3D_WIN); rSet.DisableItem(SID_OBJECT_ALIGN); + rSet.DisableItem(SID_ALIGN_PAGE); rSet.DisableItem(SID_ZOOM_TOOLBOX); rSet.DisableItem(SID_OBJECT_CHOOSE_MODE); rSet.DisableItem(SID_DRAWTBX_TEXT); diff --git a/sd/uiconfig/sdraw/popupmenu/objectalign.xml b/sd/uiconfig/sdraw/popupmenu/objectalign.xml index 4bb17386d158..446bd974bed3 100644 --- a/sd/uiconfig/sdraw/popupmenu/objectalign.xml +++ b/sd/uiconfig/sdraw/popupmenu/objectalign.xml @@ -15,4 +15,6 @@ + + diff --git a/sd/uiconfig/sdraw/toolbar/alignmentbar.xml b/sd/uiconfig/sdraw/toolbar/alignmentbar.xml index 38d0340a3d15..91eba5f2a09c 100644 --- a/sd/uiconfig/sdraw/toolbar/alignmentbar.xml +++ b/sd/uiconfig/sdraw/toolbar/alignmentbar.xml @@ -25,4 +25,5 @@ + \ No newline at end of file diff --git a/sd/uiconfig/sdraw/toolbar/drawingobjectbar.xml b/sd/uiconfig/sdraw/toolbar/drawingobjectbar.xml index 5dfd2a43849c..ba71c63c6a28 100644 --- a/sd/uiconfig/sdraw/toolbar/drawingobjectbar.xml +++ b/sd/uiconfig/sdraw/toolbar/drawingobjectbar.xml @@ -29,6 +29,7 @@ + diff --git a/sd/uiconfig/sdraw/toolbar/graphicobjectbar.xml b/sd/uiconfig/sdraw/toolbar/graphicobjectbar.xml index 95113efc9f7d..fa7f90e05700 100644 --- a/sd/uiconfig/sdraw/toolbar/graphicobjectbar.xml +++ b/sd/uiconfig/sdraw/toolbar/graphicobjectbar.xml @@ -29,6 +29,7 @@ + diff --git a/sd/uiconfig/simpress/popupmenu/objectalign.xml b/sd/uiconfig/simpress/popupmenu/objectalign.xml index 4bb17386d158..168cd891ad43 100644 --- a/sd/uiconfig/simpress/popupmenu/objectalign.xml +++ b/sd/uiconfig/simpress/popupmenu/objectalign.xml @@ -15,4 +15,6 @@ + + diff --git a/sd/uiconfig/simpress/toolbar/alignmentbar.xml b/sd/uiconfig/simpress/toolbar/alignmentbar.xml index 38d0340a3d15..206dd8bed4a0 100644 --- a/sd/uiconfig/simpress/toolbar/alignmentbar.xml +++ b/sd/uiconfig/simpress/toolbar/alignmentbar.xml @@ -25,4 +25,5 @@ + \ No newline at end of file diff --git a/sd/uiconfig/simpress/toolbar/drawingobjectbar.xml b/sd/uiconfig/simpress/toolbar/drawingobjectbar.xml index 83203c672473..829657583355 100644 --- a/sd/uiconfig/simpress/toolbar/drawingobjectbar.xml +++ b/sd/uiconfig/simpress/toolbar/drawingobjectbar.xml @@ -29,6 +29,7 @@ + diff --git a/sd/uiconfig/simpress/toolbar/graphicobjectbar.xml b/sd/uiconfig/simpress/toolbar/graphicobjectbar.xml index e11ce441752a..a9f5d1c17b45 100644 --- a/sd/uiconfig/simpress/toolbar/graphicobjectbar.xml +++ b/sd/uiconfig/simpress/toolbar/graphicobjectbar.xml @@ -29,6 +29,7 @@ +