diff options
author | Rene Engelhard <rene@debian.org> | 2015-12-12 11:36:25 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-12-17 15:31:17 +0000 |
commit | 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4 (patch) | |
tree | 5ff484eada8d6782b70c323a340bf197709ecc1e /offapi/com/sun/star | |
parent | 57b1cf5862429d86a82158eb5e8cf425fd2f4527 (diff) |
tdf#96398 kill remaining NPAPI support for plugins _inside_ LO
- probably out of date
- links against Gtk2 and thus causes a GTk2 dependency in core packages
- the only serious usecase (Flash) is doomed anyway
Change-Id: I7264ab5eb04c2f4b6c31a815e45b9818209e5ae2
Reviewed-on: https://gerrit.libreoffice.org/20658
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: Bryan Quigley <gquigs@gmail.com>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'offapi/com/sun/star')
-rw-r--r-- | offapi/com/sun/star/mozilla/XPluginInstance.idl | 109 | ||||
-rw-r--r-- | offapi/com/sun/star/mozilla/XPluginInstanceNotifySink.idl | 49 | ||||
-rw-r--r-- | offapi/com/sun/star/mozilla/XPluginInstancePeer.idl | 132 | ||||
-rw-r--r-- | offapi/com/sun/star/mozilla/XPluginInstanceSyncPeer.idl | 54 | ||||
-rw-r--r-- | offapi/com/sun/star/mozilla/XPluginWindowPeer.idl | 46 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/PluginDescription.idl | 47 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/PluginException.idl | 46 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/PluginManager.idl | 38 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/PluginMode.idl | 40 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/PluginVariable.idl | 48 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/XPlugin.idl | 67 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/XPluginContext.idl | 177 | ||||
-rw-r--r-- | offapi/com/sun/star/plugin/XPluginManager.idl | 114 |
13 files changed, 0 insertions, 967 deletions
diff --git a/offapi/com/sun/star/mozilla/XPluginInstance.idl b/offapi/com/sun/star/mozilla/XPluginInstance.idl deleted file mode 100644 index 82f94a52e768..000000000000 --- a/offapi/com/sun/star/mozilla/XPluginInstance.idl +++ /dev/null @@ -1,109 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_mozilla_XPluginInstance_idl__ -#define __com_sun_star_mozilla_XPluginInstance_idl__ - -#include <com/sun/star/uno/XInterface.idl> -#include <com/sun/star/io/XInputStream.idl> - - - module com { module sun { module star { module mozilla { - - -/** Allows to control an office side plugin instance and to communicate with it. - This interface is oriented for communication with browsers plugins. - */ -published interface XPluginInstance: com::sun::star::uno::XInterface -{ - - /** Starts plugin operation. This is called after a plugin instance is - created. - */ - void start(); - - - /** Stops plugin operation. This is called when the user goes to another web - page. The XPluginInstance::destroy() method is directly called - afterwards. - */ - void stop(); - - - /** Destroy the plugin instance. This method is called when it is no - longer possible to return to the plugin instance, because it was - destroyed by the browser (e.g., window close). - */ - void destroy(); - - - /** Creates a new window for plugin operation. - - @param PlatformParentData [in]: platform dependent window data - @param embedded [in]: selects embedded or full page plugin mode - - */ - void createWindow( [in] any PlatformParentData, [in] boolean embedded ); - - - /** Notifies the plugin of a new stream to display. - - @param MIMEDesc [in]: the MIMEtype of the data stream - @param theURL [in]: the URL that denotes the stream - @param filter [in]: a filter string to suggest a component that should handle the document - @param stream [in]: the data stream - @param sessionData [in]: the data specifying the current session - - */ - void newStream( - [in] string MIMEDesc, - [in] string theURL, - [in] string filter, - [in] ::com::sun::star::io::XInputStream stream , - [in] any sessionData - ); - - - /** Notifies the plugin of a new url to open as document. - - @param MIMEDesc [in]: the MIMEtype of the data stream - @param theURL [in]: the URL to be opened - @param filter [in]: a filter string to suggest a component that should handle the document - @param sessionData [in]: the data specifying the current session - - */ - void newURL( [in] string MIMEDesc, [in] string theURL, [in] string filter, [in] any sessionData ); - - - /** Retrieves the URL of the HTTP Load balancing Slave. - - @param aHost [out]: the full qualified host name of the LBS - @param aPort [out]: the port number - @param aPrefix [out]: the url prefix to the portal - - */ - void getHttpServerURL( [out] string aHost, [out] unsigned short aPort, - [out] string aPrefix); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/mozilla/XPluginInstanceNotifySink.idl b/offapi/com/sun/star/mozilla/XPluginInstanceNotifySink.idl deleted file mode 100644 index 085da0565f89..000000000000 --- a/offapi/com/sun/star/mozilla/XPluginInstanceNotifySink.idl +++ /dev/null @@ -1,49 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_mozilla_XPluginInstanceNotifySink_idl__ -#define __com_sun_star_mozilla_XPluginInstanceNotifySink_idl__ - -#include <com/sun/star/uno/XInterface.idl> - - - module com { module sun { module star { module mozilla { - - -/** Allows a plugin to get notification from office side - about status of new document opening. - This interface is oriented for communication with browsers plugins. - */ -published interface XPluginInstanceNotifySink: com::sun::star::uno::XInterface -{ - - /** Notifies the plugin that a getURL / postURL operation on the - corresponding XPluginInstancePeer was finished. - - @param theURL [in]: name of the URL that was used during a previous getURL or postURL call - - */ - void notifyURL( [in] string theURL ); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/mozilla/XPluginInstancePeer.idl b/offapi/com/sun/star/mozilla/XPluginInstancePeer.idl deleted file mode 100644 index 1c87cf241c28..000000000000 --- a/offapi/com/sun/star/mozilla/XPluginInstancePeer.idl +++ /dev/null @@ -1,132 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_mozilla_XPluginInstancePeer_idl__ -#define __com_sun_star_mozilla_XPluginInstancePeer_idl__ - -#include <com/sun/star/uno/XInterface.idl> - -#include <com/sun/star/io/XActiveDataSource.idl> - -#include <com/sun/star/io/XInputStream.idl> - -#include <com/sun/star/lang/XMultiServiceFactory.idl> - - - module com { module sun { module star { module mozilla { - - - published interface XPluginInstanceNotifySink; - - -/** Allows to communicate with a plugin from the office side. - This interface is oriented for communication with browsers plugins. - */ -published interface XPluginInstancePeer: com::sun::star::uno::XInterface -{ - - /** Alters the plugin's window size in the browser window. - - @param width [in]: the new window width - @param height [in]: the new window height - - @return <CODE>TRUE</CODE> on success - */ - boolean setWindowSize( [in] long width, [in] long height ); - - - /** Show status / hint message in browser's message area. - - @param message [in]: the string to be displayed - */ - void showStatusMessage( [in] string message ); - - - /** Indicates to the plugin that the document was loaded successfully and scripting - interfaces are now available. - - @param document [in]: the active document - @param servicemanager [in]: the office servicemanager - - */ - void enableScripting( [in] com::sun::star::uno::XInterface document, [in] com::sun::star::lang::XMultiServiceFactory servicemanager ); - - - /** Creates a new stream of data produced by the plug-in and consumed by - the browser. - - @param MIMEDesc [in]: the MIME type of the plug-in to create - @param target [in]: the name of the target window or frame (supports _blank, _self) - @param data [in]: on success the output stream will be associated with this instance - - */ - void newStream( - [in] string MIMEDesc, - [in] string target, - [in] com::sun::star::io::XActiveDataSource data - ); - - - /** Fetches an URL into the target window. The parameters and their meaning map to the - corresponding Netscape-API call. - - @param aURL [in]: the URL to be fetched - @param target [in]: the name of the target window or frame (supports _blank, _self) - @param alternativeHost [in]: alternativeHost - @param referrer [in]: referrer - @param sink [in]: the sink is notified on success - - */ - void getURL ( - [in] string aURL, - [in] string target, - [in] string alternativeHost, - [in] string referrer, - [in] XPluginInstanceNotifySink sink - ); - - - /** Posts to a URL with post data and/or post headers. The parameters and their meaning - map to the corresponding Netscape-API call. - - @param aURL [in]: the URL to be posted to - @param postData [in]: the data to be posted - @param target [in]: the name of the target window or frame (supports _blank, _self) - @param alternativeHost [in]: alternativeHost - @param referrer [in]: referrer - @param postHeaders [in]: the header to be posted - @param sink [in]: the sink is notified on success - - */ - void postURL ( - [in] string aURL, - [in] com::sun::star::io::XInputStream postData, - [in] string target, - [in] string alternativeHost, - [in] string referrer, - [in] com::sun::star::io::XInputStream postHeaders, - [in] XPluginInstanceNotifySink sink - ); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/mozilla/XPluginInstanceSyncPeer.idl b/offapi/com/sun/star/mozilla/XPluginInstanceSyncPeer.idl deleted file mode 100644 index 2aeb3e522a63..000000000000 --- a/offapi/com/sun/star/mozilla/XPluginInstanceSyncPeer.idl +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_mozilla_XPluginInstanceSyncPeer_idl__ -#define __com_sun_star_mozilla_XPluginInstanceSyncPeer_idl__ - -#include <com/sun/star/uno/XInterface.idl> -#include <com/sun/star/mozilla/XPluginInstance.idl> - - - module com { module sun { module star { module mozilla { - -/** This interface is an extension for XPluginInstancePeer interface. - An object can support this interface in addition to XPluginInstancePeer interface. - */ -published interface XPluginInstanceSyncPeer : com::sun::star::uno::XInterface -{ - - /** Opens a new browser window with a plugin instance synchronously. - - @param aInstance [out]: new plugin instance in case of success - @param aLinkage [out]: linkage to the window data - @param embedded [out]: selects embedded or full page plugin mode - - - */ - void openNewBrowserWindow( - [out] XPluginInstance aInstance, - [out] any aLinkage, - [out] boolean embedded); - -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/mozilla/XPluginWindowPeer.idl b/offapi/com/sun/star/mozilla/XPluginWindowPeer.idl deleted file mode 100644 index de9c21b0da1e..000000000000 --- a/offapi/com/sun/star/mozilla/XPluginWindowPeer.idl +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_mozilla_XPluginWindowPeer_idl__ -#define __com_sun_star_mozilla_XPluginWindowPeer_idl__ - -#include <com/sun/star/uno/XInterface.idl> - - - module com { module sun { module star { module mozilla { - -/** Allows to notify a plugin from the office side about plugin window's child window creation. - This interface is oriented for communication with browsers plugins. - */ -published interface XPluginWindowPeer: com::sun::star::uno::XInterface -{ - - /** Notifies the peer of the created child window. - - @param SystemWindowData [in]: platform dependent window data - - */ - void setChildWindow( [in] any SystemWindowData ); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/PluginDescription.idl b/offapi/com/sun/star/plugin/PluginDescription.idl deleted file mode 100644 index b40467235231..000000000000 --- a/offapi/com/sun/star/plugin/PluginDescription.idl +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_PluginDescription_idl__ -#define __com_sun_star_plugin_PluginDescription_idl__ - - - - module com { module sun { module star { module plugin { - - -/** Describes a specific plugin. If there are multiple mimetypes and/or - extensions, multiple PluginDescriptions will be created. -*/ -published struct PluginDescription -{ - /** the plugin's name (usually the shared object file name) */ - string PluginName; - /** a mimetype for which this plugin should be registered */ - string Mimetype; - /** the file extension for files the plugin can handle */ - string Extension; - /** text description of the plugin */ - string Description; -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/PluginException.idl b/offapi/com/sun/star/plugin/PluginException.idl deleted file mode 100644 index 5da2477e3d0f..000000000000 --- a/offapi/com/sun/star/plugin/PluginException.idl +++ /dev/null @@ -1,46 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_PluginException_idl__ -#define __com_sun_star_plugin_PluginException_idl__ - -#include <com/sun/star/uno/Exception.idl> - - - - module com { module sun { module star { module plugin { - - -/** Indicates that an error occurred in an NPN or NPP function call. - - @see XPlugin - @see XPluginContext - @see XPluginManager -*/ -published exception PluginException: com::sun::star::uno::Exception -{ - /** original Netscape plugin error code */ - short ErrorCode; -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/PluginManager.idl b/offapi/com/sun/star/plugin/PluginManager.idl deleted file mode 100644 index 0013978b3399..000000000000 --- a/offapi/com/sun/star/plugin/PluginManager.idl +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_PluginManager_idl__ -#define __com_sun_star_plugin_PluginManager_idl__ - -#include <com/sun/star/plugin/XPluginManager.idl> - - - - module com { module sun { module star { module plugin { - - -/** This service manages all recognized Netscape plugins. -*/ -published service PluginManager : XPluginManager; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/PluginMode.idl b/offapi/com/sun/star/plugin/PluginMode.idl deleted file mode 100644 index 25b543f1dccc..000000000000 --- a/offapi/com/sun/star/plugin/PluginMode.idl +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_PluginMode_idl__ -#define __com_sun_star_plugin_PluginMode_idl__ - - - - module com { module sun { module star { module plugin { - - -published constants PluginMode -{ - /** embedded into document */ - const short EMBED = 1; - /** full size */ - const short FULL = 2; -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/PluginVariable.idl b/offapi/com/sun/star/plugin/PluginVariable.idl deleted file mode 100644 index 35bad6174c86..000000000000 --- a/offapi/com/sun/star/plugin/PluginVariable.idl +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_PluginVariable_idl__ -#define __com_sun_star_plugin_PluginVariable_idl__ - - - - module com { module sun { module star { module plugin { - - -/** Describes the possible parameters to XPluginContext::getValue. - It describes what kind of object is requested. -*/ -published enum PluginVariable -{ - /** XPluginContext::getValue will return the XWindow display pointer of - a display connection (UNIX only) - */ - VxDisplay, - - /** XPluginContext::getValue will return the global Xt application context - (UNIX only) - */ - VxtAppContext -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/XPlugin.idl b/offapi/com/sun/star/plugin/XPlugin.idl deleted file mode 100644 index d494455cb206..000000000000 --- a/offapi/com/sun/star/plugin/XPlugin.idl +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_XPlugin_idl__ -#define __com_sun_star_plugin_XPlugin_idl__ - -#include <com/sun/star/uno/XInterface.idl> - -#include <com/sun/star/io/XActiveDataSource.idl> - -#include <com/sun/star/plugin/PluginException.idl> - - - - module com { module sun { module star { module plugin { - - -/** This interface allows the container, e.g. document to control the plugin. -*/ -published interface XPlugin: com::sun::star::uno::XInterface -{ - /** Tells the plugin instance that a new stream is requested. - - @param mimetype - mime type of provided data - @param aSource - data source - @param url - url - @param length - number of bytes (if file) - @param lastmodified - time stamp of last modification (if file) - @param isfile - whether data comes from a file - @return true upon success - */ - boolean provideNewStream( [in] string mimetype, - [in] com::sun::star::io::XActiveDataSource aSource, - [in] string url, - [in] long length, - [in] long lastmodified, - [in] boolean isfile ) - raises( com::sun::star::plugin::PluginException ); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/XPluginContext.idl b/offapi/com/sun/star/plugin/XPluginContext.idl deleted file mode 100644 index 1fd6103e7cd9..000000000000 --- a/offapi/com/sun/star/plugin/XPluginContext.idl +++ /dev/null @@ -1,177 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_XPluginContext_idl__ -#define __com_sun_star_plugin_XPluginContext_idl__ - -#include <com/sun/star/uno/XInterface.idl> - -#include <com/sun/star/plugin/XPlugin.idl> - -#include <com/sun/star/plugin/PluginVariable.idl> - -#include <com/sun/star/plugin/PluginException.idl> - -#include <com/sun/star/lang/XEventListener.idl> - -#include <com/sun/star/io/XActiveDataSource.idl> - - - - module com { module sun { module star { module plugin { - - -/** Interface receiving calls from a plugin library. - A default context can be created using the PluginManager. -*/ -published interface XPluginContext: com::sun::star::uno::XInterface -{ - /** Requests global application parameters like display connection - on UNIX systems. - - @param xPlugin - plugin - @param aVariable - variable - @return value - */ - string getValue( [in] com::sun::star::plugin::XPlugin xPlugin, - [in] com::sun::star::plugin::PluginVariable aVariable ) - raises( com::sun::star::plugin::PluginException ); - - /** Requests a notification of completion of the operation on an URL. - - @param plugin - plugin - @param url - url - @param target - target frame - @param listener - event listener - */ - void getURLNotify( [in] com::sun::star::plugin::XPlugin plugin, - [in] string url, - [in] string target, - [in] com::sun::star::lang::XEventListener listener ) - raises( com::sun::star::plugin::PluginException ); - - /** Requests an URL to be loaded into the frame target. - - @param plugin - plugin - @param url - url - @param target - target frame - */ - void getURL( [in] com::sun::star::plugin::XPlugin plugin, - [in] string url, - [in] string target ) - raises( com::sun::star::plugin::PluginException ); - - /** Posts data from a buffer or file to an URL and receives a - notification upon completion. - - @param plugin - plugin - @param url - url - @param target - target frame - @param buf - data - @param file - whether data is from file - @param listener - event listener - */ - void postURLNotify( [in] com::sun::star::plugin::XPlugin plugin, - [in] string url, - [in] string target, - [in] sequence<byte> buf, - [in] boolean file, - [in] com::sun::star::lang::XEventListener listener ) - raises( com::sun::star::plugin::PluginException ); - - /** Posts data from a buffer or file to an URL. - - @param plugin - plugin - @param url - url - @param target - target frame - @param buf - data - @param file - whether data is from file - */ - void postURL( [in] com::sun::star::plugin::XPlugin plugin, - [in] string url, - [in] string target, - [in] sequence<byte> buf, - [in] boolean file ) - raises( com::sun::star::plugin::PluginException ); - - /** Requests a new stream that is created by the plugin and consumed - by the browser. - - @param plugin - plugin - @param mimetype - mime type - @param target - target frame - @param aSource - data source - */ - void newStream( [in] com::sun::star::plugin::XPlugin plugin, - [in] string mimetype, - [in] string target, - [in] com::sun::star::io::XActiveDataSource aSource ) - raises( com::sun::star::plugin::PluginException ); - - /** Displays a message in the browser status line. - - @param plugin - plugin - @param message - message - */ - void displayStatusText( [in] com::sun::star::plugin::XPlugin plugin, - [in] string message ) - raises( com::sun::star::plugin::PluginException ); - - /** Returns an application dependent identification string. - This is the same string that is transmitted by a browser to an http server. - - @param plugin - plugin - @return id - */ - string getUserAgent( [in] com::sun::star::plugin::XPlugin plugin ) - raises( com::sun::star::plugin::PluginException ); -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/plugin/XPluginManager.idl b/offapi/com/sun/star/plugin/XPluginManager.idl deleted file mode 100644 index 7a3b3f68d5d0..000000000000 --- a/offapi/com/sun/star/plugin/XPluginManager.idl +++ /dev/null @@ -1,114 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -#ifndef __com_sun_star_plugin_XPluginManager_idl__ -#define __com_sun_star_plugin_XPluginManager_idl__ - -#include <com/sun/star/uno/XInterface.idl> - -#include <com/sun/star/plugin/XPluginContext.idl> - -#include <com/sun/star/plugin/PluginDescription.idl> - -#include <com/sun/star/plugin/XPlugin.idl> - -#include <com/sun/star/plugin/PluginException.idl> - -#include <com/sun/star/awt/XToolkit.idl> - -#include <com/sun/star/awt/XWindowPeer.idl> - - - - module com { module sun { module star { module plugin { - - -/** Interface accessing all recognized Netscape plugins. -*/ -published interface XPluginManager: com::sun::star::uno::XInterface -{ - /** Creates a default context. This context depends on the service - com::sun::star::frame::Desktop.</p> - - @return plugin context - */ - com::sun::star::plugin::XPluginContext createPluginContext(); - - /** Returns the descriptions for all recognized plugins. - - @return plugin descriptions - */ - sequence<com::sun::star::plugin::PluginDescription> getPluginDescriptions(); - - /** Creates a new plugin instance. - - @param acontext - plugin context - @param mode - plugin mode - @param argn - argument name list provided to plugin - @param argv - argument value list provided to plugin - @param plugintype - plugin description - @return plugin instance - */ - com::sun::star::plugin::XPlugin createPlugin( - [in] com::sun::star::plugin::XPluginContext acontext, - [in] short mode, - [in] sequence<string> argn, - [in] sequence<string> argv, - [in] com::sun::star::plugin::PluginDescription plugintype ) - raises( com::sun::star::plugin::PluginException ); - - /** Creates a new plugin instance. - - @param acontext - plugin context - @param mode - plugin mode - @param argn - argument name list provided to plugin - @param argv - argument value list provided to plugin - @param toolkit - toolkit to be used to get system window handle for plugin - @param parent - parent window - @param url - url - @return plugin instance - */ - com::sun::star::plugin::XPlugin createPluginFromURL( - [in] com::sun::star::plugin::XPluginContext acontext, - [in] short mode, - [in] sequence<string> argn, - [in] sequence<string> argv, - [in] com::sun::star::awt::XToolkit toolkit, - [in] com::sun::star::awt::XWindowPeer parent, - [in] string url ); - -}; - - -}; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |