diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-30 10:05:06 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-12-30 09:31:22 +0000 |
commit | 41dde8319cbbdc4a8224d348a3969d34841845ed (patch) | |
tree | 72948eddcd898dc0dc13f74a752cb09e857db3de | |
parent | 7368803e540d530a157d3c4234ca5428a44cbc4a (diff) |
Kill remaining plugin bits
Change-Id: Icd99757b48626ef43313e8de42c4e5462f85a958
Reviewed-on: https://gerrit.libreoffice.org/21008
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
34 files changed, 6 insertions, 494 deletions
diff --git a/configmgr/qa/unit/data.xcd b/configmgr/qa/unit/data.xcd index c4da17c3bf02..8453c3b7df24 100644 --- a/configmgr/qa/unit/data.xcd +++ b/configmgr/qa/unit/data.xcd @@ -3174,14 +3174,6 @@ <value xml:lang="x-no-translate"></value><value xml:lang="en-US">Insert business cards</value> </prop> </node> - <node oor:name=".uno:InsertPlugin" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Plug-in...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> <node oor:name=".uno:BringToFront" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Bring to Front</value> @@ -3214,22 +3206,6 @@ <value>1</value> </prop> </node> - <node oor:name=".uno:InsertSound" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Sound...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> - <node oor:name=".uno:InsertVideo" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Video...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> <node oor:name=".uno:HyperlinkDialog" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="x-no-translate"></value><value xml:lang="en-US">~Hyperlink</value> diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk index 36f59421afe8..b0f72cb6a9ea 100644 --- a/cui/UIConfig_cui.mk +++ b/cui/UIConfig_cui.mk @@ -87,7 +87,6 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\ cui/uiconfig/ui/iconselectordialog \ cui/uiconfig/ui/insertfloatingframe \ cui/uiconfig/ui/insertoleobject \ - cui/uiconfig/ui/insertplugin \ cui/uiconfig/ui/insertrowcolumn \ cui/uiconfig/ui/javaclasspathdialog \ cui/uiconfig/ui/javastartparametersdialog \ diff --git a/cui/uiconfig/ui/insertplugin.ui b/cui/uiconfig/ui/insertplugin.ui deleted file mode 100644 index c20100a70bdb..000000000000 --- a/cui/uiconfig/ui/insertplugin.ui +++ /dev/null @@ -1,222 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.18.3 --> -<interface> - <requires lib="gtk+" version="3.0"/> - <object class="GtkDialog" id="InsertPluginDialog"> - <property name="can_focus">False</property> - <property name="border_width">6</property> - <property name="title" translatable="yes">Insert Plug-in</property> - <property name="type_hint">dialog</property> - <child internal-child="vbox"> - <object class="GtkBox" id="dialog-vbox1"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child internal-child="action_area"> - <object class="GtkButtonBox" id="dialog-action_area1"> - <property name="can_focus">False</property> - <property name="layout_style">end</property> - <child> - <object class="GtkButton" id="ok"> - <property name="label">gtk-ok</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="can_default">True</property> - <property name="has_default">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkButton" id="cancel"> - <property name="label">gtk-cancel</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="help"> - <property name="label">gtk-help</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="use_stock">True</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">2</property> - <property name="secondary">True</property> - </packing> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack_type">end</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkBox" id="box3"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child> - <object class="GtkLabel" id="label3"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Warning: Plugins may not work on all platforms and may be removed in the future</property> - <attributes> - <attribute name="style" value="oblique"/> - </attributes> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkFrame" id="frame1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> - <child> - <object class="GtkAlignment" id="alignment1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="GtkGrid" id="grid1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkEntry" id="urled"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="valign">center</property> - <property name="hexpand">True</property> - <property name="invisible_char">•</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkButton" id="urlbtn"> - <property name="label" translatable="yes">Browse...</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="valign">center</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - </packing> - </child> - </object> - </child> - </object> - </child> - <child type="label"> - <object class="GtkLabel" id="label1"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">File/URL</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkFrame" id="frame2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> - <child> - <object class="GtkAlignment" id="alignment2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="GtkScrolledWindow" id="scrolledwindow1"> - <property name="width_request">400</property> - <property name="height_request">80</property> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="hscrollbar_policy">never</property> - <property name="shadow_type">in</property> - <child> - <object class="GtkTextView" id="pluginoptions:border"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="wrap_mode">char</property> - </object> - </child> - </object> - </child> - </object> - </child> - <child type="label"> - <object class="GtkLabel" id="label2"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Options</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">2</property> - </packing> - </child> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - </object> - </child> - <action-widgets> - <action-widget response="0">ok</action-widget> - <action-widget response="0">cancel</action-widget> - <action-widget response="0">help</action-widget> - </action-widgets> - </object> -</interface> diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index e288708b3f1c..717f5dfccaf4 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -348,9 +348,9 @@ #define SID_INSERT_OBJECT (SID_SFX_START + 561) #define SID_INSERT_FLOATINGFRAME (SID_SFX_START + 563) -#define SID_INSERT_PLUGIN (SID_SFX_START + 672) -#define SID_INSERT_SOUND (SID_SFX_START + 676) -#define SID_INSERT_VIDEO (SID_SFX_START + 677) +// FREE (SID_SFX_START + 672) +// FREE (SID_SFX_START + 676) +// FREE (SID_SFX_START + 677) #define SID_HYPERLINK_DIALOG (SID_SFX_START + 678) diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 6e9b7257faa3..8c8812dd3d9e 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -3559,14 +3559,6 @@ <value xml:lang="en-US">Insert business cards</value> </prop> </node> - <node oor:name=".uno:InsertPlugin" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">~Plug-in...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> <node oor:name=".uno:BringToFront" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">~Bring to Front</value> @@ -3591,22 +3583,6 @@ <value>9</value> </prop> </node> - <node oor:name=".uno:InsertSound" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">~Audio...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> - <node oor:name=".uno:InsertVideo" oor:op="replace"> - <prop oor:name="Label" oor:type="xs:string"> - <value xml:lang="en-US">~Video...</value> - </prop> - <prop oor:name="Properties" oor:type="xs:int"> - <value>1</value> - </prop> - </node> <node oor:name=".uno:HyperlinkDialog" oor:op="replace"> <prop oor:name="Label" oor:type="xs:string"> <value xml:lang="en-US">~Hyperlink...</value> diff --git a/sc/sdi/tabvwsh.sdi b/sc/sdi/tabvwsh.sdi index eeb9019ff362..8999ad8fb293 100644 --- a/sc/sdi/tabvwsh.sdi +++ b/sc/sdi/tabvwsh.sdi @@ -64,9 +64,6 @@ interface BaseSelection SID_INSERT_GRAPHIC [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] SID_INSERT_FRAME [ ExecMethod = ExecDraw; StateMethod = GetDrawState; Export = FALSE; ] SID_INSERT_OBJECT [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] - SID_INSERT_PLUGIN [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] - SID_INSERT_SOUND [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] - SID_INSERT_VIDEO [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] SID_INSERT_FLOATINGFRAME [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] SID_INSERT_AVMEDIA [ ExecMethod = ExecDrawIns; StateMethod = GetDrawInsState; ] diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index c89b0c84a3ab..b98890e6c730 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -237,7 +237,6 @@ FuInsertOLE::FuInsertOLE(ScTabViewShell* pViewSh, vcl::Window* pWin, ScDrawView* aServerLst.FillInsertObjects(); aServerLst.Remove( ScDocShell::Factory().GetClassId() ); // Starcalc nicht anzeigen //TODO/LATER: currently no inserting of ClassId into SfxRequest! - case SID_INSERT_PLUGIN : case SID_INSERT_FLOATINGFRAME : { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx index 36fd74af0258..c2356aafed1f 100644 --- a/sc/source/ui/view/tabvwshb.cxx +++ b/sc/source/ui/view/tabvwshb.cxx @@ -295,9 +295,6 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq) break; case SID_INSERT_OBJECT: - case SID_INSERT_PLUGIN: - case SID_INSERT_SOUND: - case SID_INSERT_VIDEO: case SID_INSERT_SMATH: case SID_INSERT_FLOATINGFRAME: FuInsertOLE(this, pWin, pView, pDrModel, rReq); @@ -456,21 +453,11 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet) break; case SID_INSERT_OBJECT: - case SID_INSERT_PLUGIN: case SID_INSERT_FLOATINGFRAME: if ( bOle || bTabProt || bShared ) rSet.DisableItem( nWhich ); break; - case SID_INSERT_SOUND: - case SID_INSERT_VIDEO: - /* #i102735# discussed with NN: removed for performance reasons - || !SvxPluginFileDlg::IsAvailable(nWhich) - */ - if ( bOle || bTabProt || bShared ) - rSet.DisableItem( nWhich ); - break; - case SID_INSERT_GRAPHIC: case SID_INSERT_AVMEDIA: case SID_FONTWORK_GALLERY_FLOATER: diff --git a/sc/uiconfig/scalc/menubar/menubar.xml b/sc/uiconfig/scalc/menubar/menubar.xml index d1113e4bef29..13fa14047d1b 100644 --- a/sc/uiconfig/scalc/menubar/menubar.xml +++ b/sc/uiconfig/scalc/menubar/menubar.xml @@ -167,7 +167,6 @@ <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectChartFromFile"/> </menu:menupopup> </menu:menu> diff --git a/sd/sdi/_drvwsh.sdi b/sd/sdi/_drvwsh.sdi index 9482da05ac94..ce8ceb0c4c63 100644 --- a/sd/sdi/_drvwsh.sdi +++ b/sd/sdi/_drvwsh.sdi @@ -399,21 +399,6 @@ interface DrawView ExecMethod = FuTemporary ; StateMethod = GetMenuState ; ] - SID_INSERT_PLUGIN // ole : yes, status : ? - [ - ExecMethod = FuTemporary ; - StateMethod = GetMenuState ; - ] - SID_INSERT_SOUND // ole : yes, status : ? - [ - ExecMethod = FuTemporary ; - StateMethod = GetMenuState ; - ] - SID_INSERT_VIDEO // ole : yes, status : ? - [ - ExecMethod = FuTemporary ; - StateMethod = GetMenuState ; - ] SID_INSERT_FLOATINGFRAME // ole : yes, status : ? [ ExecMethod = FuTemporary ; diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx index 073efde5578e..7e5b08abd804 100644 --- a/sd/source/ui/func/fuinsert.cxx +++ b/sd/source/ui/func/fuinsert.cxx @@ -482,7 +482,6 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq ) // intentionally no break! } - case SID_INSERT_PLUGIN : case SID_INSERT_FLOATINGFRAME : { SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index cebb95bc1d91..72cbb03e5d54 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -1117,9 +1117,6 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq) break; case SID_INSERT_OBJECT: - case SID_INSERT_PLUGIN: - case SID_INSERT_SOUND: - case SID_INSERT_VIDEO: case SID_INSERT_FLOATINGFRAME: case SID_INSERT_MATH: case SID_INSERT_DIAGRAM: diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 2f38a3043138..6ae5994a3b6c 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -882,9 +882,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) if ( GetDocSh()->IsUIActive() ) { rSet.DisableItem( SID_INSERT_OBJECT ); - rSet.DisableItem( SID_INSERT_PLUGIN ); - rSet.DisableItem( SID_INSERT_SOUND ); - rSet.DisableItem( SID_INSERT_VIDEO ); rSet.DisableItem( SID_INSERT_FLOATINGFRAME ); rSet.DisableItem( SID_INSERT_MATH ); rSet.DisableItem( SID_INSERT_DIAGRAM ); @@ -1001,9 +998,6 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) rSet.DisableItem( SID_INSERT_AVMEDIA ); rSet.DisableItem( SID_INSERT_DIAGRAM ); rSet.DisableItem( SID_INSERT_OBJECT ); - rSet.DisableItem( SID_INSERT_PLUGIN ); - rSet.DisableItem( SID_INSERT_SOUND ); - rSet.DisableItem( SID_INSERT_VIDEO ); rSet.DisableItem( SID_INSERT_FLOATINGFRAME ); rSet.DisableItem( SID_INSERT_MATH ); diff --git a/sd/uiconfig/sdraw/menubar/menubar.xml b/sd/uiconfig/sdraw/menubar/menubar.xml index 13ee9727bd6d..3868304a847c 100644 --- a/sd/uiconfig/sdraw/menubar/menubar.xml +++ b/sd/uiconfig/sdraw/menubar/menubar.xml @@ -205,7 +205,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertMath"/> </menu:menupopup> </menu:menu> diff --git a/sd/uiconfig/sdraw/toolbar/insertbar.xml b/sd/uiconfig/sdraw/toolbar/insertbar.xml index dda314972162..19ea9ce3d9b7 100644 --- a/sd/uiconfig/sdraw/toolbar/insertbar.xml +++ b/sd/uiconfig/sdraw/toolbar/insertbar.xml @@ -27,11 +27,8 @@ <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:InsertGraphic"/> <toolbar:toolbaritem xlink:href=".uno:InsertAVMedia"/> - <toolbar:toolbaritem xlink:href=".uno:InsertSound" toolbar:visible="false"/> - <toolbar:toolbaritem xlink:href=".uno:InsertVideo" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:InsertMath"/> <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin" toolbar:visible="false"/> <toolbar:toolbarseparator/> </toolbar:toolbar>
\ No newline at end of file diff --git a/sd/uiconfig/simpress/menubar/menubar.xml b/sd/uiconfig/simpress/menubar/menubar.xml index 81431265f91f..14086ca7fed6 100644 --- a/sd/uiconfig/simpress/menubar/menubar.xml +++ b/sd/uiconfig/simpress/menubar/menubar.xml @@ -182,7 +182,6 @@ <menu:menuitem menu:id=".uno:InsertMath"/> <menu:menuitem menu:id=".uno:Insert3DModel"/> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> </menu:menupopup> </menu:menu> <menu:menu menu:id=".uno:ShapesMenu"> diff --git a/sd/uiconfig/simpress/toolbar/insertbar.xml b/sd/uiconfig/simpress/toolbar/insertbar.xml index 6513e9fb4770..bb09b17e05e7 100644 --- a/sd/uiconfig/simpress/toolbar/insertbar.xml +++ b/sd/uiconfig/simpress/toolbar/insertbar.xml @@ -27,11 +27,8 @@ <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:InsertGraphic"/> <toolbar:toolbaritem xlink:href=".uno:InsertAVMedia"/> - <toolbar:toolbaritem xlink:href=".uno:InsertSound" toolbar:visible="false"/> - <toolbar:toolbaritem xlink:href=".uno:InsertVideo" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:InsertMath"/> <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart"/> - <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false" /> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin" toolbar:visible="false"/> + <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false"/> </toolbar:toolbar> diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index 51b6e8091ffe..e62333e794a2 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -6719,57 +6719,6 @@ SfxVoidItem InsertObjectChartFromFile SID_INSERT_DIAGRAM_FROM_FILE ] -SfxVoidItem InsertPlugin SID_INSERT_PLUGIN -(SfxStringItem ClassLocation FN_PARAM_2, - SfxStringItem Commands FN_PARAM_3) -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = TRUE, - ReadOnlyDoc = FALSE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Asynchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_INSERT; -] - - -SfxVoidItem InsertSound SID_INSERT_SOUND -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = TRUE, - ReadOnlyDoc = FALSE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Asynchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_INSERT; -] - - SfxVoidItem InsertSymbol SID_CHARMAP (SfxStringItem Symbols SID_CHARMAP, SfxStringItem FontName SID_ATTR_SPECIALCHAR) [ @@ -6874,31 +6823,6 @@ SfxVoidItem InsertTextFrame SID_INSERT_FRAME ] -SfxVoidItem InsertVideo SID_INSERT_VIDEO -() -[ - /* flags: */ - AutoUpdate = FALSE, - Cachable = Cachable, - FastCall = FALSE, - HasCoreId = FALSE, - HasDialog = TRUE, - ReadOnlyDoc = FALSE, - Toggle = FALSE, - Container = FALSE, - RecordAbsolute = FALSE, - RecordPerSet; - Asynchron; - - /* config: */ - AccelConfig = TRUE, - MenuConfig = TRUE, - StatusBarConfig = FALSE, - ToolBoxConfig = TRUE, - GroupId = GID_INSERT; -] - - SfxVoidItem InternetDialog SID_INET_DLG () [ diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi index d27eae2981f5..cbbffb3c157d 100644 --- a/sw/sdi/_textsh.sdi +++ b/sw/sdi/_textsh.sdi @@ -277,18 +277,6 @@ interface BaseText StateMethod = StateInsert ; DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; ] - SID_INSERT_SOUND - [ - ExecMethod = ExecInsert ; - StateMethod = StateInsert ; - DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; - ] - SID_INSERT_VIDEO - [ - ExecMethod = ExecInsert ; - StateMethod = StateInsert ; - DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; - ] FN_INSERT_SMA // status(final|play) [ ExecMethod = ExecInsert ; @@ -307,12 +295,6 @@ interface BaseText StateMethod = StateInsert ; DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; ] - SID_INSERT_PLUGIN // status(final|play) - [ - ExecMethod = ExecInsert ; - StateMethod = StateInsert ; - DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; - ] FN_INSERT_TABLE // status(final|play) [ ExecMethod = ExecInsert ; diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index a587aff13892..3a91e23780e2 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -238,7 +238,6 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) #endif case SID_INSERT_OBJECT: - case SID_INSERT_PLUGIN: { const SfxGlobalNameItem* pNameItem = rReq.GetArg<SfxGlobalNameItem>(SID_INSERT_OBJECT); SvGlobalName *pName = nullptr; @@ -249,63 +248,9 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) pName = &aName; } - const SfxStringItem* pClassLocationItem = rReq.GetArg<SfxStringItem>(FN_PARAM_2); - const SfxStringItem* pCommandsItem = rReq.GetArg<SfxStringItem>(FN_PARAM_3); - //TODO/LATER: recording currently not working, need code for Commandlist svt::EmbeddedObjectRef xObj; - if( nSlot == SID_INSERT_PLUGIN && ( pClassLocationItem || pCommandsItem ) ) - { - OUString sClassLocation; - if(pClassLocationItem) - sClassLocation = pClassLocationItem->GetValue(); - - SvCommandList aCommandList; - if(pCommandsItem) - { - sal_Int32 nTemp; - aCommandList.AppendCommands( pCommandsItem->GetValue(), &nTemp ); - } - - { - comphelper::EmbeddedObjectContainer aCnt; - OUString sName; - xObj.Assign( aCnt.CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), sName ), - embed::Aspects::MSOLE_CONTENT ); - svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() ); - uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY ); - if ( xSet.is() ) - { - try - { - if ( !sClassLocation.isEmpty() ) - xSet->setPropertyValue("PluginURL", - uno::makeAny( - OUString( - URIHelper::SmartRel2Abs( - INetURLObject(), sClassLocation, - URIHelper::GetMaybeFileHdl()) ) ) ); - uno::Sequence< beans::PropertyValue > aSeq; - if ( aCommandList.size() ) - { - aCommandList.FillSequence( aSeq ); - xSet->setPropertyValue("PluginCommands", uno::makeAny( aSeq ) ); - } - } - catch (const uno::Exception&) - { - } - } - } - - if(xObj.is()) - rSh.InsertOleObject( xObj ); - } - else - { - OSL_ENSURE( !pNameItem || nSlot == SID_INSERT_OBJECT, "Superfluous argument!" ); - rSh.InsertObject( xObj, pName, true, nSlot); - rReq.Done(); - } + rSh.InsertObject( xObj, pName, true, nSlot); + rReq.Done(); break; } case SID_INSERT_FLOATINGFRAME: @@ -631,8 +576,6 @@ void SwTextShell::StateInsert( SfxItemSet &rSet ) switch ( nWhich ) { case SID_INSERT_AVMEDIA: - case SID_INSERT_SOUND: - case SID_INSERT_VIDEO: if ( GetShell().IsSelFrameMode() || GetShell().CursorInsideInputField() || SfxObjectCreateMode::EMBEDDED == eCreateMode @@ -664,7 +607,6 @@ void SwTextShell::StateInsert( SfxItemSet &rSet ) case SID_INSERT_FLOATINGFRAME: case SID_INSERT_OBJECT: - case SID_INSERT_PLUGIN: { if( eCreateMode == SfxObjectCreateMode::EMBEDDED || bCursorInHidden ) { diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx index b98305fe2894..f47ffbc81a43 100644 --- a/sw/source/uibase/wrtsh/wrtsh1.cxx +++ b/sw/source/uibase/wrtsh/wrtsh1.cxx @@ -366,7 +366,6 @@ void SwWrtShell::InsertObject( const svt::EmbeddedObjectRef& xRef, SvGlobalName } // TODO/LATER: recording! Convert properties to items - case SID_INSERT_PLUGIN: case SID_INSERT_FLOATINGFRAME: { SfxSlotPool* pSlotPool = SW_MOD()->GetSlotPool(); diff --git a/sw/uiconfig/sglobal/menubar/menubar.xml b/sw/uiconfig/sglobal/menubar/menubar.xml index 4a27b2814053..7c6e1a28c1f0 100644 --- a/sw/uiconfig/sglobal/menubar/menubar.xml +++ b/sw/uiconfig/sglobal/menubar/menubar.xml @@ -230,7 +230,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObjectChart"/> </menu:menupopup> diff --git a/sw/uiconfig/sglobal/toolbar/insertbar.xml b/sw/uiconfig/sglobal/toolbar/insertbar.xml index 75b491549c06..14d1baf12558 100644 --- a/sw/uiconfig/sglobal/toolbar/insertbar.xml +++ b/sw/uiconfig/sglobal/toolbar/insertbar.xml @@ -40,7 +40,6 @@ <toolbar:toolbaritem xlink:href=".uno:InsertObjectStarMath" toolbar:helpid="20369"/> <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart" toolbar:helpid="10140"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin" toolbar:visible="false"/> <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:InsertMultiIndex" toolbar:helpid="21420"/> <toolbar:toolbaritem xlink:href=".uno:InsertIndexesEntry" toolbar:helpid="20335"/> diff --git a/sw/uiconfig/sglobal/toolbar/insertobjectbar.xml b/sw/uiconfig/sglobal/toolbar/insertobjectbar.xml index f210a6601251..7d821372f2e2 100644 --- a/sw/uiconfig/sglobal/toolbar/insertobjectbar.xml +++ b/sw/uiconfig/sglobal/toolbar/insertobjectbar.xml @@ -20,5 +20,4 @@ <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar"> <toolbar:toolbaritem xlink:href=".uno:InsertObjectFloatingFrame"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin"/> </toolbar:toolbar>
\ No newline at end of file diff --git a/sw/uiconfig/sweb/menubar/menubar.xml b/sw/uiconfig/sweb/menubar/menubar.xml index 922b0cf5595e..41f82571310c 100644 --- a/sw/uiconfig/sweb/menubar/menubar.xml +++ b/sw/uiconfig/sweb/menubar/menubar.xml @@ -176,7 +176,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObjectChart"/> </menu:menupopup> diff --git a/sw/uiconfig/sweb/toolbar/standardbar.xml b/sw/uiconfig/sweb/toolbar/standardbar.xml index be11b5b1ee6f..f00b54960e08 100644 --- a/sw/uiconfig/sweb/toolbar/standardbar.xml +++ b/sw/uiconfig/sweb/toolbar/standardbar.xml @@ -58,7 +58,6 @@ <toolbar:toolbaritem xlink:href=".uno:InsertBookmark"/> <toolbar:toolbaritem xlink:href=".uno:InsertFootnote"/> <toolbar:toolbarseparator/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin"/> <toolbar:toolbaritem xlink:href=".uno:InsertScript" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:InsertFieldCtrl" toolbar:visible="false"/> <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart"/> diff --git a/sw/uiconfig/swform/menubar/menubar.xml b/sw/uiconfig/swform/menubar/menubar.xml index 4795e4476b33..e824b00acd04 100644 --- a/sw/uiconfig/swform/menubar/menubar.xml +++ b/sw/uiconfig/swform/menubar/menubar.xml @@ -229,7 +229,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObjectChart"/> </menu:menupopup> diff --git a/sw/uiconfig/swform/toolbar/insertobjectbar.xml b/sw/uiconfig/swform/toolbar/insertobjectbar.xml index f210a6601251..7d821372f2e2 100644 --- a/sw/uiconfig/swform/toolbar/insertobjectbar.xml +++ b/sw/uiconfig/swform/toolbar/insertobjectbar.xml @@ -20,5 +20,4 @@ <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar"> <toolbar:toolbaritem xlink:href=".uno:InsertObjectFloatingFrame"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin"/> </toolbar:toolbar>
\ No newline at end of file diff --git a/sw/uiconfig/swreport/menubar/menubar.xml b/sw/uiconfig/swreport/menubar/menubar.xml index f9d3fececa89..3b090bdf7779 100644 --- a/sw/uiconfig/swreport/menubar/menubar.xml +++ b/sw/uiconfig/swreport/menubar/menubar.xml @@ -231,7 +231,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObjectChart"/> </menu:menupopup> diff --git a/sw/uiconfig/swreport/toolbar/insertobjectbar.xml b/sw/uiconfig/swreport/toolbar/insertobjectbar.xml index f210a6601251..7d821372f2e2 100644 --- a/sw/uiconfig/swreport/toolbar/insertobjectbar.xml +++ b/sw/uiconfig/swreport/toolbar/insertobjectbar.xml @@ -20,5 +20,4 @@ <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar"> <toolbar:toolbaritem xlink:href=".uno:InsertObjectFloatingFrame"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin"/> </toolbar:toolbar>
\ No newline at end of file diff --git a/sw/uiconfig/swriter/menubar/menubar.xml b/sw/uiconfig/swriter/menubar/menubar.xml index 4ebdaab1b1c5..2c8403243fc4 100644 --- a/sw/uiconfig/swriter/menubar/menubar.xml +++ b/sw/uiconfig/swriter/menubar/menubar.xml @@ -223,7 +223,6 @@ <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> </menu:menupopup> </menu:menu> <menu:menu menu:id=".uno:ShapesMenu"> diff --git a/sw/uiconfig/swriter/toolbar/insertbar.xml b/sw/uiconfig/swriter/toolbar/insertbar.xml index 7c910fe42ad3..6668d73f3901 100644 --- a/sw/uiconfig/swriter/toolbar/insertbar.xml +++ b/sw/uiconfig/swriter/toolbar/insertbar.xml @@ -40,7 +40,6 @@ <toolbar:toolbaritem xlink:href=".uno:InsertObjectStarMath" toolbar:helpid="20369"/> <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart" toolbar:helpid="10140"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject" toolbar:visible="false"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin" toolbar:visible="false"/> <toolbar:toolbarseparator/> <toolbar:toolbaritem xlink:href=".uno:InsertMultiIndex" toolbar:helpid="21420"/> <toolbar:toolbaritem xlink:href=".uno:InsertIndexesEntry" toolbar:helpid="20335"/> diff --git a/sw/uiconfig/swxform/menubar/menubar.xml b/sw/uiconfig/swxform/menubar/menubar.xml index c6cf58f31702..883ec24b8c9f 100644 --- a/sw/uiconfig/swxform/menubar/menubar.xml +++ b/sw/uiconfig/swxform/menubar/menubar.xml @@ -231,7 +231,6 @@ <menu:menu menu:id=".uno:ObjectMenu"> <menu:menupopup> <menu:menuitem menu:id=".uno:InsertObject"/> - <menu:menuitem menu:id=".uno:InsertPlugin"/> <menu:menuitem menu:id=".uno:InsertObjectStarMath"/> <menu:menuitem menu:id=".uno:InsertObjectChart"/> </menu:menupopup> diff --git a/sw/uiconfig/swxform/toolbar/insertobjectbar.xml b/sw/uiconfig/swxform/toolbar/insertobjectbar.xml index f210a6601251..7d821372f2e2 100644 --- a/sw/uiconfig/swxform/toolbar/insertobjectbar.xml +++ b/sw/uiconfig/swxform/toolbar/insertobjectbar.xml @@ -20,5 +20,4 @@ <toolbar:toolbar xmlns:toolbar="http://openoffice.org/2001/toolbar" xmlns:xlink="http://www.w3.org/1999/xlink" toolbar:id="toolbar"> <toolbar:toolbaritem xlink:href=".uno:InsertObjectFloatingFrame"/> <toolbar:toolbaritem xlink:href=".uno:InsertObject"/> - <toolbar:toolbaritem xlink:href=".uno:InsertPlugin"/> </toolbar:toolbar>
\ No newline at end of file |