summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/source/ui/func/fuinsert.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sd/source/ui/func/fuinsert.cxx b/sd/source/ui/func/fuinsert.cxx
index be90f49dd3cb..e93fa84597bc 100644
--- a/sd/source/ui/func/fuinsert.cxx
+++ b/sd/source/ui/func/fuinsert.cxx
@@ -501,45 +501,6 @@ void FuInsertOLE::DoExecute( SfxRequest& rReq )
break;
}
- case SID_INSERT_SOUND :
- case SID_INSERT_VIDEO :
- {
- // create special filedialog for plugins
- SvxPluginFileDlg aPluginFileDialog (mpWindow, nSlotId);
- if( ERRCODE_NONE == aPluginFileDialog.Execute () )
- {
- // get URL
- OUString aStrURL(aPluginFileDialog.GetPath());
- INetURLObject aURL( aStrURL, INetProtocol::File );
- if( aURL.GetProtocol() != INetProtocol::NotValid )
- {
- // create a plugin object
- xObj = mpViewShell->GetObjectShell()->GetEmbeddedObjectContainer().CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), aName );
- }
-
- if ( xObj.is() && svt::EmbeddedObjectRef::TryRunningState( xObj ) )
- {
- // set properties from dialog
- uno::Reference < embed::XComponentSupplier > xSup( xObj, uno::UNO_QUERY );
- if ( xSup.is() )
- {
- uno::Reference < beans::XPropertySet > xSet( xSup->getComponent(), uno::UNO_QUERY );
- if ( xSet.is() )
- {
- xSet->setPropertyValue("PluginURL",
- uno::makeAny( OUString( aURL.GetMainURL( INetURLObject::NO_DECODE ) ) ) );
- }
- }
- }
- else
- {
- // unable to create PlugIn
- OUString aStrErr( SdResId( STR_ERROR_OBJNOCREATE_PLUGIN ) );
- aStrErr = aStrErr.replaceFirst( "%", aStrURL );
- ScopedVclPtrInstance<MessageDialog>::Create(mpWindow, aStrErr)->Execute();
- }
- }
- }
}
}