From 00f96e88a7c6feea98d446e82a2718c5aae6256c Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Wed, 13 Mar 2019 19:18:49 +0100 Subject: tdf#112411 Remove all that remains of the More controls toolbars Change-Id: I82a348c7be067e777dced15dd014b8139cc9b1dc Reviewed-on: https://gerrit.libreoffice.org/69224 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- svx/sdi/fmslots.sdi | 5 ----- svx/sdi/svx.sdi | 19 ------------------- svx/source/form/fmshell.cxx | 7 ------- svx/source/form/formtoolbars.cxx | 10 ++-------- 4 files changed, 2 insertions(+), 39 deletions(-) (limited to 'svx') diff --git a/svx/sdi/fmslots.sdi b/svx/sdi/fmslots.sdi index 8eda2c5d981d..d1dd4fdb4678 100644 --- a/svx/sdi/fmslots.sdi +++ b/svx/sdi/fmslots.sdi @@ -625,11 +625,6 @@ shell FmFormShell SID_FM_CONFIG // ole : no, status : ? [] - SID_FM_MORE_CONTROLS - [ - ExecMethod = Execute ; - StateMethod = GetState ; - ] SID_FM_FORM_DESIGN_TOOLS [ ExecMethod = Execute ; diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index c21c376b2db6..3aaf07b9bb5c 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -1634,25 +1634,6 @@ SfxVoidItem Config SID_FM_CONFIG ] -SfxBoolItem MoreControls SID_FM_MORE_CONTROLS - -[ - AutoUpdate = TRUE, - FastCall = FALSE, - ReadOnlyDoc = FALSE, - Toggle = TRUE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - - - AccelConfig = FALSE, - MenuConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = SfxGroupId::Controls; -] - - SfxBoolItem FormDesignTools SID_FM_FORM_DESIGN_TOOLS [ diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index 67191161c8af..3b8187cba8f9 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -173,10 +173,6 @@ void FmFormShell::InitInterface_Impl() ToolbarId::SvxTbx_Controls, SfxShellFeature::FormTBControls); - GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Standard, - ToolbarId::SvxTbx_MoreControls, - SfxShellFeature::FormTBMoreControls); - GetStaticInterface()->RegisterObjectBar(SFX_OBJECTBAR_OBJECT, SfxVisibilityFlags::Standard, ToolbarId::SvxTbx_FormDesign, SfxShellFeature::FormTBDesign); @@ -331,7 +327,6 @@ bool FmFormShell::HasUIFeature(SfxShellFeature nFeature) const bResult = GetImpl()->isEnhancedForm_Lock(); } else if ( (nFeature & SfxShellFeature::FormTBControls) - || (nFeature & SfxShellFeature::FormTBMoreControls) || (nFeature & SfxShellFeature::FormTBDesign) ) { @@ -512,7 +507,6 @@ void FmFormShell::Execute(SfxRequest &rReq) // individual actions switch( nSlot ) { - case SID_FM_MORE_CONTROLS: case SID_FM_FORM_DESIGN_TOOLS: { FormToolboxes aToolboxAccess(GetImpl()->getHostFrame_Lock()); @@ -809,7 +803,6 @@ void FmFormShell::GetState(SfxItemSet &rSet) { switch( nWhich ) { - case SID_FM_MORE_CONTROLS: case SID_FM_FORM_DESIGN_TOOLS: { FormToolboxes aToolboxAccess(GetImpl()->getHostFrame_Lock()); diff --git a/svx/source/form/formtoolbars.cxx b/svx/source/form/formtoolbars.cxx index fdf299b5ac18..52ee51101681 100644 --- a/svx/source/form/formtoolbars.cxx +++ b/svx/source/form/formtoolbars.cxx @@ -79,16 +79,10 @@ namespace svxform OUString FormToolboxes::getToolboxResourceName( sal_uInt16 _nSlotId ) { - OSL_ENSURE( ( _nSlotId == SID_FM_MORE_CONTROLS ) || ( _nSlotId == SID_FM_FORM_DESIGN_TOOLS ), + OSL_ENSURE( _nSlotId == SID_FM_FORM_DESIGN_TOOLS , "FormToolboxes::getToolboxResourceName: unsupported slot!" ); - const sal_Char* pToolBarName = "moreformcontrols"; - if ( _nSlotId == SID_FM_FORM_DESIGN_TOOLS ) - pToolBarName = "formdesign"; - - OUString aToolBarResStr( "private:resource/toolbar/" ); - aToolBarResStr += OUString::createFromAscii( pToolBarName ); - return aToolBarResStr; + return "private:resource/toolbar/formdesign"; } -- cgit