summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@CIB.de>2015-12-17 19:30:22 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-12-17 19:45:00 +0000
commit06726aa39eaeba71701742d28a1a81bd1574f883 (patch)
treebd00ee353b3f914935223bf286d3f8966c985516 /sw/source
parent6dd7798f57dfb29cda4a6d164f4884071fdc7f35 (diff)
[API CHANGE] Remove NPAPI-related UNO API
Follow-up to 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4, related to tdf#96398, removing more client code. The following published interfaces are removed: com::sun::star::mozilla::XPluginInstance com::sun::star::mozilla::XPluginInstanceNotifySink com::sun::star::mozilla::XPluginInstancePeer com::sun::star::mozilla::XPluginInstanceSyncPeer com::sun::star::mozilla::XPluginWindowPeer com::sun::star::plugin::PluginDescription com::sun::star::plugin::PluginException com::sun::star::plugin::PluginManager com::sun::star::plugin::PluginMode com::sun::star::plugin::PluginVariable com::sun::star::plugin::XPlugin com::sun::star::plugin::XPluginContext com::sun::star::plugin::XPluginManager Change-Id: I3818a23e0f46fd01bfe9be11b57f6a551c013441 Reviewed-on: https://gerrit.libreoffice.org/20780 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/shells/textsh.cxx40
1 files changed, 0 insertions, 40 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 4834685bc6f1..d30838e98b2e 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -236,46 +236,6 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
case SID_INSERT_AVMEDIA:
rReq.SetReturnValue(SfxBoolItem(nSlot, InsertMediaDlg( rReq )));
break;
-
- case SID_INSERT_SOUND:
- case SID_INSERT_VIDEO:
- {
- SvxPluginFileDlg aDlg( &GetView().GetViewFrame()->GetWindow(), nSlot );
- aDlg.SetContext( nSlot == SID_INSERT_SOUND? sfx2::FileDialogHelper::SW_INSERT_SOUND : sfx2::FileDialogHelper::SW_INSERT_VIDEO );
-
- if ( ERRCODE_NONE == aDlg.Execute() )
- {
- // Determine URL
- OUString aStrURL( aDlg.GetPath() );
- aStrURL = URIHelper::SmartRel2Abs(
- INetURLObject(), aStrURL, URIHelper::GetMaybeFileHdl() );
-
- INetURLObject url;
- url.SetSmartProtocol( INetProtocol::File );
-
- if ( url.SetURL( aStrURL ) )
- {
- OUString aName;
- comphelper::EmbeddedObjectContainer aCnt;
- svt::EmbeddedObjectRef xObj( aCnt.CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), aName ), embed::Aspects::MSOLE_CONTENT );
- if ( xObj.is() )
- {
- svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
-
- // set properties from dialog
- uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY );
- if ( xSet.is() )
- {
- xSet->setPropertyValue("PluginURL",
- uno::makeAny( OUString( url.GetMainURL( INetURLObject::NO_DECODE ) ) ) );
- }
- }
-
- rSh.InsertObject( xObj, nullptr, true, nSlot);
- }
- }
- }
- break;
#endif
case SID_INSERT_OBJECT: