diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-04-18 15:28:44 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-04-18 22:49:27 +0200 |
commit | 9f83ea4bc61c051473aeaed9849cba4627aceadb (patch) | |
tree | a74b93ca66a9c46c1376283f45767938106d72a8 | |
parent | 7acb27081c6da9fc0ae64f4d145d8744c81d4b0a (diff) |
sfx2: Kill SFX_POPUPMENU_REGISTRATION macro.
Change-Id: Ie68ccbe5874ec7c7e1bb73cb2937e06bb4910cd0
37 files changed, 64 insertions, 49 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 7a69e025d4cb..6f15f08d7b1c 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -140,7 +140,8 @@ SFX_IMPL_INTERFACE( basctl_Shell, SfxViewShell, IDEResId( RID_STR_IDENAME ) ) { SFX_CHILDWINDOW_REGISTRATION( SID_SEARCH_DLG ); SFX_FEATURED_CHILDWINDOW_REGISTRATION(SID_SHOW_PROPERTYBROWSER, BASICIDE_UI_FEATURE_SHOW_BROWSER); - SFX_POPUPMENU_REGISTRATION( IDEResId( RID_POPUP_DLGED ) ); + + GetStaticInterface()->RegisterPopupMenu(IDEResId(RID_POPUP_DLGED)); } diff --git a/include/sfx2/shell.hxx b/include/sfx2/shell.hxx index 365383ce0653..97055b25ffe2 100644 --- a/include/sfx2/shell.hxx +++ b/include/sfx2/shell.hxx @@ -364,9 +364,6 @@ inline void SfxShell::SetPool #define SFX_CHILDWINDOW_CONTEXT_REGISTRATION(nId) \ GetStaticInterface()->RegisterChildWindow( nId, true ) -#define SFX_POPUPMENU_REGISTRATION(rResId) \ - GetStaticInterface()->RegisterPopupMenu( rResId ) - #define SFX_STATUSBAR_REGISTRATION(rResId) \ GetStaticInterface()->RegisterStatusBar( rResId ) diff --git a/sc/source/ui/drawfunc/chartsh.cxx b/sc/source/ui/drawfunc/chartsh.cxx index e15d279aac2d..396264e3925a 100644 --- a/sc/source/ui/drawfunc/chartsh.cxx +++ b/sc/source/ui/drawfunc/chartsh.cxx @@ -50,7 +50,7 @@ SFX_IMPL_INTERFACE(ScChartShell, ScDrawShell, ScResId(SCSTR_CHARTSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_SERVER, ScResId(RID_DRAW_OBJECTBAR)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_CHART) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_CHART)); } TYPEINIT1( ScChartShell, ScDrawShell ); diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index 06e9185f53a2..49c9b36d991a 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -66,7 +66,7 @@ SFX_IMPL_INTERFACE(ScDrawShell, SfxShell, ScResId(SCSTR_DRAWSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_DRAW_OBJECTBAR)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_DRAW) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAW)); SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() ); } diff --git a/sc/source/ui/drawfunc/drformsh.cxx b/sc/source/ui/drawfunc/drformsh.cxx index 3e871de39424..754b668c9a88 100644 --- a/sc/source/ui/drawfunc/drformsh.cxx +++ b/sc/source/ui/drawfunc/drformsh.cxx @@ -46,7 +46,7 @@ SFX_IMPL_INTERFACE(ScDrawFormShell, ScDrawShell, ScResId(SCSTR_DRAWFORMSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_OBJECTBAR_FORMAT)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_DRAWFORM) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAWFORM)); } TYPEINIT1( ScDrawFormShell, ScDrawShell ); diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx index 3a08f79c7a4c..e9965ff8c6c4 100644 --- a/sc/source/ui/drawfunc/drtxtob.cxx +++ b/sc/source/ui/drawfunc/drtxtob.cxx @@ -85,7 +85,7 @@ SFX_IMPL_INTERFACE( ScDrawTextObjectBar, SfxShell, ScResId(SCSTR_DRAWTEXTSHELL) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_TEXT_TOOLBOX)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_DRAWTEXT) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAWTEXT)); SFX_CHILDWINDOW_REGISTRATION( ScGetFontWorkId() ); } diff --git a/sc/source/ui/drawfunc/graphsh.cxx b/sc/source/ui/drawfunc/graphsh.cxx index 778c90fc2673..bb2d6273a0a4 100644 --- a/sc/source/ui/drawfunc/graphsh.cxx +++ b/sc/source/ui/drawfunc/graphsh.cxx @@ -69,7 +69,7 @@ SFX_IMPL_INTERFACE(ScGraphicShell, ScDrawShell, ScResId(SCSTR_GRAPHICSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_GRAPHIC_OBJECTBAR)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_GRAPHIC) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_GRAPHIC)); } TYPEINIT1( ScGraphicShell, ScDrawShell ); diff --git a/sc/source/ui/drawfunc/mediash.cxx b/sc/source/ui/drawfunc/mediash.cxx index ec3d7264c98f..d8bb003dead6 100644 --- a/sc/source/ui/drawfunc/mediash.cxx +++ b/sc/source/ui/drawfunc/mediash.cxx @@ -40,7 +40,7 @@ SFX_IMPL_INTERFACE(ScMediaShell, ScDrawShell, ScResId(SCSTR_GRAPHICSHELL) ) { GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, ScResId(RID_MEDIA_OBJECTBAR)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_MEDIA) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_MEDIA)); } TYPEINIT1( ScMediaShell, ScDrawShell ); diff --git a/sc/source/ui/drawfunc/oleobjsh.cxx b/sc/source/ui/drawfunc/oleobjsh.cxx index 89f33ddbef36..d3a583c8dd1b 100644 --- a/sc/source/ui/drawfunc/oleobjsh.cxx +++ b/sc/source/ui/drawfunc/oleobjsh.cxx @@ -46,7 +46,7 @@ SFX_IMPL_INTERFACE(ScOleObjectShell, ScDrawShell, ScResId(SCSTR_OLEOBJECTSHELL) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, ScResId(RID_DRAW_OBJECTBAR)); - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_OLE) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_OLE)); } TYPEINIT1( ScOleObjectShell, ScDrawShell ); diff --git a/sc/source/ui/view/auditsh.cxx b/sc/source/ui/view/auditsh.cxx index fd4e9d1704a5..a150d13d63a6 100644 --- a/sc/source/ui/view/auditsh.cxx +++ b/sc/source/ui/view/auditsh.cxx @@ -38,7 +38,7 @@ TYPEINIT1( ScAuditingShell, SfxShell ); SFX_IMPL_INTERFACE(ScAuditingShell, SfxShell, ScResId(SCSTR_AUDITSHELL)) { - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_AUDIT) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_AUDIT)); } diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 3579152d5f5b..1fcc28d8e5a5 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -68,7 +68,7 @@ SFX_IMPL_INTERFACE(ScCellShell, ScFormatShell , ScResId(SCSTR_CELLSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_SERVER, ScResId(RID_OBJECTBAR_FORMAT)); - SFX_POPUPMENU_REGISTRATION(ScResId(RID_POPUP_CELLS)); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_CELLS)); } diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index f3131d440021..d5600939721e 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -83,7 +83,7 @@ TYPEINIT1( ScEditShell, SfxShell ); SFX_IMPL_INTERFACE(ScEditShell, SfxShell, ScResId(SCSTR_EDITSHELL)) { - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_EDIT) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_EDIT)); } diff --git a/sc/source/ui/view/pgbrksh.cxx b/sc/source/ui/view/pgbrksh.cxx index d9f55f47c7c2..2b1db9ed0246 100644 --- a/sc/source/ui/view/pgbrksh.cxx +++ b/sc/source/ui/view/pgbrksh.cxx @@ -38,7 +38,7 @@ TYPEINIT1( ScPageBreakShell, SfxShell ); SFX_IMPL_INTERFACE(ScPageBreakShell, SfxShell, ScResId(SCSTR_PAGEBREAKSHELL)) { - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_PAGEBREAK) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PAGEBREAK)); } ScPageBreakShell::ScPageBreakShell( ScTabViewShell* pViewSh ) : diff --git a/sc/source/ui/view/pivotsh.cxx b/sc/source/ui/view/pivotsh.cxx index 8f2dfdc91513..79b87bd9b915 100644 --- a/sc/source/ui/view/pivotsh.cxx +++ b/sc/source/ui/view/pivotsh.cxx @@ -46,7 +46,7 @@ TYPEINIT1( ScPivotShell, SfxShell ); SFX_IMPL_INTERFACE(ScPivotShell, SfxShell, ScResId(SCSTR_PIVOTSHELL)) { - SFX_POPUPMENU_REGISTRATION( ScResId(RID_POPUP_PIVOT) ); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PIVOT)); } ScPivotShell::ScPivotShell( ScTabViewShell* pViewSh ) : diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 914cabc14722..016015fd07ba 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -88,7 +88,7 @@ SFX_IMPL_INTERFACE( ScPreviewShell, SfxViewShell, ScResId(SCSTR_PREVIEWSHELL) ) GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER|SFX_VISIBILITY_READONLYDOC, ScResId(RID_OBJECTBAR_PREVIEW)); - SFX_POPUPMENU_REGISTRATION(ScResId(RID_POPUP_PREVIEW)); + GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PREVIEW)); } SFX_IMPL_NAMED_VIEWFACTORY( ScPreviewShell, "PrintPreview" ) diff --git a/sd/source/ui/view/drvwshrg.cxx b/sd/source/ui/view/drvwshrg.cxx index bb2037008874..0f267ccf95e6 100644 --- a/sd/source/ui/view/drvwshrg.cxx +++ b/sd/source/ui/view/drvwshrg.cxx @@ -65,7 +65,8 @@ namespace sd { SFX_IMPL_INTERFACE(DrawViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) { - SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) ); + GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP)); + SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR ); SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() ); SFX_CHILDWINDOW_REGISTRATION( SfxInfoBarContainerChild::GetChildWindowId() ); @@ -92,7 +93,8 @@ TYPEINIT1( DrawViewShell, ViewShell ); SFX_IMPL_INTERFACE(GraphicViewShell, SfxShell, SdResId(STR_DRAWVIEWSHELL)) //SOH... { - SFX_POPUPMENU_REGISTRATION( SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP) ); + GetStaticInterface()->RegisterPopupMenu(SdResId(RID_DRAW_TEXTOBJ_INSIDE_POPUP)); + SFX_CHILDWINDOW_CONTEXT_REGISTRATION( SID_NAVIGATOR ); SFX_CHILDWINDOW_REGISTRATION( SfxTemplateDialogWrapper::GetChildWindowId() ); SFX_CHILDWINDOW_REGISTRATION( SvxFontWorkChildWindow::GetChildWindowId() ); diff --git a/sd/source/ui/view/outlnvsh.cxx b/sd/source/ui/view/outlnvsh.cxx index 163418b8ee83..4203b985e4b0 100644 --- a/sd/source/ui/view/outlnvsh.cxx +++ b/sd/source/ui/view/outlnvsh.cxx @@ -111,7 +111,7 @@ namespace sd { */ SFX_IMPL_INTERFACE(OutlineViewShell, SfxShell, SdResId(STR_OUTLINEVIEWSHELL)) { - SFX_POPUPMENU_REGISTRATION( SdResId(RID_OUTLINE_POPUP) ); + GetStaticInterface()->RegisterPopupMenu(SdResId(RID_OUTLINE_POPUP)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_FULLSCREEN | SFX_VISIBILITY_SERVER, SdResId(RID_OUTLINE_TOOLBOX)); diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 00452a62e9e1..bef01ea7a7fb 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -111,8 +111,8 @@ TYPEINIT1( SmDocShell, SfxObjectShell ); SFX_IMPL_INTERFACE(SmDocShell, SfxObjectShell, SmResId(0)) { - SFX_POPUPMENU_REGISTRATION(SmResId(RID_VIEWMENU)); - SFX_POPUPMENU_REGISTRATION(SmResId(RID_COMMANDMENU)); + GetStaticInterface()->RegisterPopupMenu(SmResId(RID_VIEWMENU)); + GetStaticInterface()->RegisterPopupMenu(SmResId(RID_COMMANDMENU)); } SFX_IMPL_OBJECTFACTORY(SmDocShell, SvGlobalName(SO3_SM_CLASSID), SFXOBJECTSHELL_STD_NORMAL, "smath" ) diff --git a/sw/source/core/uibase/shells/annotsh.cxx b/sw/source/core/uibase/shells/annotsh.cxx index cde9c1fc0887..eaba65bc2069 100644 --- a/sw/source/core/uibase/shells/annotsh.cxx +++ b/sw/source/core/uibase/shells/annotsh.cxx @@ -140,7 +140,7 @@ SFX_IMPL_INTERFACE(SwAnnotationShell, SfxShell, SW_RES(STR_SHELLNAME_DRAW_TEXT)) { GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX)); - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_ANNOTATION_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_ANNOTATION_POPUPMENU)); } TYPEINIT1(SwAnnotationShell,SfxShell) diff --git a/sw/source/core/uibase/shells/beziersh.cxx b/sw/source/core/uibase/shells/beziersh.cxx index b8e6a68d84b8..8a42b1c0ce1f 100644 --- a/sw/source/core/uibase/shells/beziersh.cxx +++ b/sw/source/core/uibase/shells/beziersh.cxx @@ -45,7 +45,7 @@ SFX_IMPL_INTERFACE(SwBezierShell, SwBaseShell, SW_RES(STR_SHELLNAME_BEZIER)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAW_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_DRAW_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_BEZIER_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/drawsh.cxx b/sw/source/core/uibase/shells/drawsh.cxx index 548ba33a5b93..9f01c97dabf6 100644 --- a/sw/source/core/uibase/shells/drawsh.cxx +++ b/sw/source/core/uibase/shells/drawsh.cxx @@ -76,7 +76,7 @@ using namespace ::com::sun::star::uno; SFX_IMPL_INTERFACE(SwDrawShell, SwDrawBaseShell, SW_RES(STR_SHELLNAME_DRAW)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAW_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_DRAW_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAW_TOOLBOX)); diff --git a/sw/source/core/uibase/shells/drformsh.cxx b/sw/source/core/uibase/shells/drformsh.cxx index d2b1cafd6ccc..55ebc7bbba92 100644 --- a/sw/source/core/uibase/shells/drformsh.cxx +++ b/sw/source/core/uibase/shells/drformsh.cxx @@ -59,7 +59,7 @@ using namespace ::com::sun::star; SFX_IMPL_INTERFACE(SwDrawFormShell, SwDrawBaseShell, SW_RES(STR_SHELLNAME_DRAWFORM)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAWFORM_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_DRAWFORM_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/drwtxtsh.cxx b/sw/source/core/uibase/shells/drwtxtsh.cxx index c5b273473d67..2af6858de6f1 100644 --- a/sw/source/core/uibase/shells/drwtxtsh.cxx +++ b/sw/source/core/uibase/shells/drwtxtsh.cxx @@ -81,7 +81,7 @@ using namespace ::com::sun::star::i18n; SFX_IMPL_INTERFACE(SwDrawTextShell, SfxShell, SW_RES(STR_SHELLNAME_DRAW_TEXT)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRWTXT_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_DRWTXT_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_DRAW_TEXT_TOOLBOX)); diff --git a/sw/source/core/uibase/shells/frmsh.cxx b/sw/source/core/uibase/shells/frmsh.cxx index bede835844fa..f3e9615f00e4 100644 --- a/sw/source/core/uibase/shells/frmsh.cxx +++ b/sw/source/core/uibase/shells/frmsh.cxx @@ -106,7 +106,7 @@ static const SwFrmFmt* lcl_GetFrmFmtByName(SwWrtShell& rSh, const OUString& rNam SFX_IMPL_INTERFACE(SwFrameShell, SwBaseShell, SW_RES(STR_SHELLNAME_FRAME)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_FRM_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_FRM_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_FRAME_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/grfsh.cxx b/sw/source/core/uibase/shells/grfsh.cxx index c368f18accae..a75c61c34a71 100644 --- a/sw/source/core/uibase/shells/grfsh.cxx +++ b/sw/source/core/uibase/shells/grfsh.cxx @@ -97,7 +97,7 @@ namespace SFX_IMPL_INTERFACE(SwGrfShell, SwBaseShell, SW_RES(STR_SHELLNAME_GRAPHIC)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_GRF_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_GRF_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_GRAFIK_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/mediash.cxx b/sw/source/core/uibase/shells/mediash.cxx index 77673b3e9e82..cc59d2e40dff 100644 --- a/sw/source/core/uibase/shells/mediash.cxx +++ b/sw/source/core/uibase/shells/mediash.cxx @@ -70,7 +70,7 @@ SFX_IMPL_INTERFACE(SwMediaShell, SwBaseShell, SW_RES(STR_SHELLNAME_MEDIA)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_MEDIA_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_MEDIA_POPUPMENU)); GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_MEDIA_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/olesh.cxx b/sw/source/core/uibase/shells/olesh.cxx index 87a6ec67b005..be3f3d3d0f84 100644 --- a/sw/source/core/uibase/shells/olesh.cxx +++ b/sw/source/core/uibase/shells/olesh.cxx @@ -39,7 +39,8 @@ SFX_IMPL_INTERFACE(SwOleShell, SwFrameShell, SW_RES(STR_SHELLNAME_OBJECT)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_OLE_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_OLE_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/tabsh.cxx b/sw/source/core/uibase/shells/tabsh.cxx index 032d68caefe6..033ba9f78693 100644 --- a/sw/source/core/uibase/shells/tabsh.cxx +++ b/sw/source/core/uibase/shells/tabsh.cxx @@ -91,7 +91,8 @@ using namespace ::com::sun::star; SFX_IMPL_INTERFACE(SwTableShell, SwBaseShell, SW_RES(STR_SHELLNAME_TABLE)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TAB_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_TAB_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TABLE_TOOLBOX)); } diff --git a/sw/source/core/uibase/shells/textsh.cxx b/sw/source/core/uibase/shells/textsh.cxx index 087994e6ebbf..32ed6b934de5 100644 --- a/sw/source/core/uibase/shells/textsh.cxx +++ b/sw/source/core/uibase/shells/textsh.cxx @@ -116,8 +116,10 @@ using namespace ::com::sun::star; SFX_IMPL_INTERFACE(SwTextShell, SwBaseShell, SW_RES(STR_SHELLNAME_TEXT)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TEXT_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_TEXT_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX)); + SFX_CHILDWINDOW_REGISTRATION(FN_EDIT_FORMULA); SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_FIELD); SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_IDX_ENTRY_DLG); diff --git a/sw/source/core/uibase/uiview/pview.cxx b/sw/source/core/uibase/uiview/pview.cxx index fe183d016d5a..d70878bfdcad 100644 --- a/sw/source/core/uibase/uiview/pview.cxx +++ b/sw/source/core/uibase/uiview/pview.cxx @@ -90,11 +90,10 @@ SFX_IMPL_NAMED_VIEWFACTORY(SwPagePreview, "PrintPreview") SFX_IMPL_INTERFACE(SwPagePreview, SfxViewShell, SW_RES(RID_PVIEW_TOOLBOX)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_PPREVIEW_POPUPMENU)); - GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD| - SFX_VISIBILITY_CLIENT|SFX_VISIBILITY_FULLSCREEN| - SFX_VISIBILITY_READONLYDOC, - SW_RES(RID_PVIEW_TOOLBOX)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_PPREVIEW_POPUPMENU)); + + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_CLIENT|SFX_VISIBILITY_FULLSCREEN|SFX_VISIBILITY_READONLYDOC, + SW_RES(RID_PVIEW_TOOLBOX)); } TYPEINIT1(SwPagePreview,SfxViewShell) @@ -111,18 +110,22 @@ static sal_uInt16 lcl_GetNextZoomStep(sal_uInt16 nCurrentZoom, sal_Bool bZoomIn) 25, 50, 75, 100, 150, 200, 400, 600 }; const sal_uInt16 nZoomArrSize = sizeof(aZoomArr)/sizeof(sal_uInt16); - if(bZoomIn) + if (bZoomIn) + { for(int i = nZoomArrSize - 1; i >= 0; --i) { if(nCurrentZoom > aZoomArr[i] || !i) return aZoomArr[i]; } + } else + { for(int i = 0; i < nZoomArrSize; ++i) { if(nCurrentZoom < aZoomArr[i]) return aZoomArr[i]; } + } return bZoomIn ? MAX_PREVIEW_ZOOM : MIN_PREVIEW_ZOOM; }; diff --git a/sw/source/core/uibase/uiview/srcview.cxx b/sw/source/core/uibase/uiview/srcview.cxx index 38f4f9cb494a..1f1d238989c5 100644 --- a/sw/source/core/uibase/uiview/srcview.cxx +++ b/sw/source/core/uibase/uiview/srcview.cxx @@ -114,10 +114,11 @@ SFX_IMPL_NAMED_VIEWFACTORY(SwSrcView, "SourceView") SFX_IMPL_INTERFACE( SwSrcView, SfxViewShell, SW_RES(0) ) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_SRCVIEW_POPUPMENU)); - GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS| - SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, - SW_RES(RID_WEBTOOLS_TOOLBOX) ); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_SRCVIEW_POPUPMENU)); + + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_TOOLS|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, + SW_RES(RID_WEBTOOLS_TOOLBOX) ); + SFX_CHILDWINDOW_REGISTRATION(SvxSearchDialogWrapper::GetChildWindowId()); } diff --git a/sw/source/core/uibase/web/wformsh.cxx b/sw/source/core/uibase/web/wformsh.cxx index c35f292b1c57..e112fd7c4742 100644 --- a/sw/source/core/uibase/web/wformsh.cxx +++ b/sw/source/core/uibase/web/wformsh.cxx @@ -38,7 +38,8 @@ SFX_IMPL_INTERFACE(SwWebDrawFormShell, SwDrawFormShell, SW_RES(0)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_DRAWFORM_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_DRAWFORM_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX)); } diff --git a/sw/source/core/uibase/web/wfrmsh.cxx b/sw/source/core/uibase/web/wfrmsh.cxx index c6addc826aab..795644c4c7d8 100644 --- a/sw/source/core/uibase/web/wfrmsh.cxx +++ b/sw/source/core/uibase/web/wfrmsh.cxx @@ -37,7 +37,8 @@ SFX_IMPL_INTERFACE(SwWebFrameShell, SwFrameShell, SW_RES(STR_SHELLNAME_WEBFRAME)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_FRM_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_FRM_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBFRAME_TOOLBOX)); } diff --git a/sw/source/core/uibase/web/wgrfsh.cxx b/sw/source/core/uibase/web/wgrfsh.cxx index 0e6d2c420131..295ea3bd5984 100644 --- a/sw/source/core/uibase/web/wgrfsh.cxx +++ b/sw/source/core/uibase/web/wgrfsh.cxx @@ -40,7 +40,8 @@ SFX_IMPL_INTERFACE(SwWebGrfShell, SwGrfShell, SW_RES(STR_SHELLNAME_GRAPHIC)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_GRF_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_GRF_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBGRAPHIC_TOOLBOX)); } diff --git a/sw/source/core/uibase/web/wolesh.cxx b/sw/source/core/uibase/web/wolesh.cxx index 57b70ec9764e..13143b205547 100644 --- a/sw/source/core/uibase/web/wolesh.cxx +++ b/sw/source/core/uibase/web/wolesh.cxx @@ -37,7 +37,8 @@ SFX_IMPL_INTERFACE(SwWebOleShell, SwOleShell, SW_RES(STR_SHELLNAME_OBJECT)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_OLE_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_OLE_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_WEBOLE_TOOLBOX)); } diff --git a/sw/source/core/uibase/web/wtabsh.cxx b/sw/source/core/uibase/web/wtabsh.cxx index 99ba669b5604..2d87bfce8b8f 100644 --- a/sw/source/core/uibase/web/wtabsh.cxx +++ b/sw/source/core/uibase/web/wtabsh.cxx @@ -40,7 +40,8 @@ SFX_IMPL_INTERFACE(SwWebTableShell, SwTableShell, SW_RES(STR_SHELLNAME_TABLE)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TAB_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_TAB_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TABLE_TOOLBOX)); } diff --git a/sw/source/core/uibase/web/wtextsh.cxx b/sw/source/core/uibase/web/wtextsh.cxx index 9c1af4123e8e..3fb5d9d37bd2 100644 --- a/sw/source/core/uibase/web/wtextsh.cxx +++ b/sw/source/core/uibase/web/wtextsh.cxx @@ -43,8 +43,10 @@ SFX_IMPL_INTERFACE(SwWebTextShell, SwBaseShell, SW_RES(STR_SHELLNAME_WEBTEXT)) { - SFX_POPUPMENU_REGISTRATION(SW_RES(MN_TEXT_POPUPMENU)); + GetStaticInterface()->RegisterPopupMenu(SW_RES(MN_TEXT_POPUPMENU)); + GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SW_RES(RID_TEXT_TOOLBOX)); + SFX_CHILDWINDOW_REGISTRATION(FN_EDIT_FORMULA); SFX_CHILDWINDOW_REGISTRATION(FN_INSERT_FIELD); } |