diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-14 17:29:03 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-14 15:52:53 +0000 |
commit | 1c035f1b0eb6f5e5fbb6c54bf2eea9a6c983eb8f (patch) | |
tree | c2364142c01b3c639bea94ab4044f94ffd874245 /sc/source/ui | |
parent | c31b6e1a154d3bf94b5346343104cbc00378e51d (diff) |
tdf#93837 Convert some Calc context menus to xml
TODO:
- Clean the now unused defines/resources.
- Several submenus are duplicated (in the menubar too). Makes
sense to refactor them to separate popup menu controllers.
Change-Id: I85505eda1c5fb707b1e6064007f27af7b31452bf
Reviewed-on: https://gerrit.libreoffice.org/20704
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/drawfunc/chartsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/drawsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/drformsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/drtxtob.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/graphsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/mediash.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/oleobjsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/auditsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/pgbrksh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/pivotsh.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/ui/drawfunc/chartsh.cxx b/sc/source/ui/drawfunc/chartsh.cxx index 47482cf0ff29..56cdadb10ff9 100644 --- a/sc/source/ui/drawfunc/chartsh.cxx +++ b/sc/source/ui/drawfunc/chartsh.cxx @@ -52,7 +52,7 @@ void ScChartShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_SERVER, RID_DRAW_OBJECTBAR); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_CHART)); + GetStaticInterface()->RegisterPopupMenu("chart"); } diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index d9c5c331a00e..971936555d7d 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -68,7 +68,7 @@ void ScDrawShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, RID_DRAW_OBJECTBAR); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAW)); + GetStaticInterface()->RegisterPopupMenu("draw"); GetStaticInterface()->RegisterChildWindow(SvxFontWorkChildWindow::GetChildWindowId()); } diff --git a/sc/source/ui/drawfunc/drformsh.cxx b/sc/source/ui/drawfunc/drformsh.cxx index 1054f6811204..bea35a866d7b 100644 --- a/sc/source/ui/drawfunc/drformsh.cxx +++ b/sc/source/ui/drawfunc/drformsh.cxx @@ -47,7 +47,7 @@ void ScDrawFormShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, RID_OBJECTBAR_FORMAT); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAWFORM)); + GetStaticInterface()->RegisterPopupMenu("form"); } diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx index 35184b74ebff..ad25cd7ea48d 100644 --- a/sc/source/ui/drawfunc/drtxtob.cxx +++ b/sc/source/ui/drawfunc/drtxtob.cxx @@ -90,7 +90,7 @@ void ScDrawTextObjectBar::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, RID_TEXT_TOOLBOX); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_DRAWTEXT)); + GetStaticInterface()->RegisterPopupMenu("drawtext"); GetStaticInterface()->RegisterChildWindow(ScGetFontWorkId()); } diff --git a/sc/source/ui/drawfunc/graphsh.cxx b/sc/source/ui/drawfunc/graphsh.cxx index fef6ec8d22fb..b8032fb07474 100644 --- a/sc/source/ui/drawfunc/graphsh.cxx +++ b/sc/source/ui/drawfunc/graphsh.cxx @@ -48,7 +48,7 @@ void ScGraphicShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, RID_GRAPHIC_OBJECTBAR); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_GRAPHIC)); + GetStaticInterface()->RegisterPopupMenu("graphic"); } diff --git a/sc/source/ui/drawfunc/mediash.cxx b/sc/source/ui/drawfunc/mediash.cxx index db0f5e7dd3c2..e89733a84701 100644 --- a/sc/source/ui/drawfunc/mediash.cxx +++ b/sc/source/ui/drawfunc/mediash.cxx @@ -41,7 +41,7 @@ void ScMediaShell::InitInterface_Impl() { GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, RID_MEDIA_OBJECTBAR); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_MEDIA)); + GetStaticInterface()->RegisterPopupMenu("media"); } diff --git a/sc/source/ui/drawfunc/oleobjsh.cxx b/sc/source/ui/drawfunc/oleobjsh.cxx index 120fa65878ed..6c2ff3d34bff 100644 --- a/sc/source/ui/drawfunc/oleobjsh.cxx +++ b/sc/source/ui/drawfunc/oleobjsh.cxx @@ -47,7 +47,7 @@ void ScOleObjectShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER, RID_DRAW_OBJECTBAR); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_OLE)); + GetStaticInterface()->RegisterPopupMenu("oleobject"); } diff --git a/sc/source/ui/view/auditsh.cxx b/sc/source/ui/view/auditsh.cxx index a61d4a064439..bba0b46db499 100644 --- a/sc/source/ui/view/auditsh.cxx +++ b/sc/source/ui/view/auditsh.cxx @@ -39,7 +39,7 @@ SFX_IMPL_INTERFACE(ScAuditingShell, SfxShell) void ScAuditingShell::InitInterface_Impl() { - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_AUDIT)); + GetStaticInterface()->RegisterPopupMenu("audit"); } ScAuditingShell::ScAuditingShell(ScViewData* pData) : diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 877f38822640..60a92b6b7b16 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -70,7 +70,7 @@ void ScCellShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT | SFX_VISIBILITY_STANDARD | SFX_VISIBILITY_SERVER, RID_OBJECTBAR_FORMAT); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_CELLS)); + GetStaticInterface()->RegisterPopupMenu("cell"); } ScCellShell::ScCellShell(ScViewData* pData) : diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index d0e1b4d369e8..109376b75a1f 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -87,7 +87,7 @@ SFX_IMPL_INTERFACE(ScEditShell, SfxShell) void ScEditShell::InitInterface_Impl() { - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_EDIT)); + GetStaticInterface()->RegisterPopupMenu("celledit"); } ScEditShell::ScEditShell(EditView* pView, ScViewData* pData) : diff --git a/sc/source/ui/view/pgbrksh.cxx b/sc/source/ui/view/pgbrksh.cxx index 0a0766bd10ee..57254d7cce1a 100644 --- a/sc/source/ui/view/pgbrksh.cxx +++ b/sc/source/ui/view/pgbrksh.cxx @@ -39,7 +39,7 @@ SFX_IMPL_INTERFACE(ScPageBreakShell, SfxShell) void ScPageBreakShell::InitInterface_Impl() { - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PAGEBREAK)); + GetStaticInterface()->RegisterPopupMenu("pagebreak"); } ScPageBreakShell::ScPageBreakShell( ScTabViewShell* pViewSh ) : diff --git a/sc/source/ui/view/pivotsh.cxx b/sc/source/ui/view/pivotsh.cxx index a25cad370ad2..b5c13839438a 100644 --- a/sc/source/ui/view/pivotsh.cxx +++ b/sc/source/ui/view/pivotsh.cxx @@ -48,7 +48,7 @@ SFX_IMPL_INTERFACE(ScPivotShell, SfxShell) void ScPivotShell::InitInterface_Impl() { - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PIVOT)); + GetStaticInterface()->RegisterPopupMenu("pivot"); } ScPivotShell::ScPivotShell( ScTabViewShell* pViewSh ) : diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 8d0f7150d848..641fca377d3e 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -91,7 +91,7 @@ void ScPreviewShell::InitInterface_Impl() GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT|SFX_VISIBILITY_STANDARD|SFX_VISIBILITY_SERVER|SFX_VISIBILITY_READONLYDOC, RID_OBJECTBAR_PREVIEW); - GetStaticInterface()->RegisterPopupMenu(ScResId(RID_POPUP_PREVIEW)); + GetStaticInterface()->RegisterPopupMenu("preview"); } SFX_IMPL_NAMED_VIEWFACTORY( ScPreviewShell, "PrintPreview" ) |