1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_plugin_XPluginManager_idl__ 24#define __com_sun_star_plugin_XPluginManager_idl__ 25 26#ifndef __com_sun_star_uno_XInterface_idl__ 27#include <com/sun/star/uno/XInterface.idl> 28#endif 29 30#ifndef __com_sun_star_plugin_XPluginContext_idl__ 31#include <com/sun/star/plugin/XPluginContext.idl> 32#endif 33 34#ifndef __com_sun_star_plugin_PluginDescription_idl__ 35#include <com/sun/star/plugin/PluginDescription.idl> 36#endif 37 38#ifndef __com_sun_star_plugin_XPlugin_idl__ 39#include <com/sun/star/plugin/XPlugin.idl> 40#endif 41 42#ifndef __com_sun_star_plugin_PluginException_idl__ 43#include <com/sun/star/plugin/PluginException.idl> 44#endif 45 46#ifndef __com_sun_star_awt_XToolkit_idl__ 47#include <com/sun/star/awt/XToolkit.idl> 48#endif 49 50#ifndef __com_sun_star_awt_XWindowPeer_idl__ 51#include <com/sun/star/awt/XWindowPeer.idl> 52#endif 53 54 55//============================================================================= 56 57 module com { module sun { module star { module plugin { 58 59//============================================================================= 60 61/** Interface accessing all recognized Netscape plugins. 62*/ 63published interface XPluginManager: com::sun::star::uno::XInterface 64{ 65 /** Creates a default context. This context depends on the service 66 <type scope="com::sun::star::frame">Desktop</type>.</p> 67 68 @return plugin context 69 */ 70 com::sun::star::plugin::XPluginContext createPluginContext(); 71 72 /** Returns the descriptions for all recognized plugins. 73 74 @return plugin descriptions 75 */ 76 sequence<com::sun::star::plugin::PluginDescription> getPluginDescriptions(); 77 78 /** Creates a new plugin instance. 79 80 @param acontext 81 plugin context 82 @param mode 83 plugin mode 84 @param argn 85 argument name list provided to plugin 86 @param argv 87 argument value list provided to plugin 88 @param plugintype 89 plugin description 90 @return plugin instance 91 */ 92 com::sun::star::plugin::XPlugin createPlugin( 93 [in] com::sun::star::plugin::XPluginContext acontext, 94 [in] short mode, 95 [in] sequence<string> argn, 96 [in] sequence<string> argv, 97 [in] com::sun::star::plugin::PluginDescription plugintype ) 98 raises( com::sun::star::plugin::PluginException ); 99 100 /** Creates a new plugin instance. 101 102 @param acontext 103 plugin context 104 @param mode 105 plugin mode 106 @param argn 107 argument name list provided to plugin 108 @param argv 109 argument value list provided to plugin 110 @param toolkit 111 toolkit to be used to get system window handle for plugin 112 @param parent 113 parent window 114 @param url 115 url 116 @return plugin instance 117 */ 118 com::sun::star::plugin::XPlugin createPluginFromURL( 119 [in] com::sun::star::plugin::XPluginContext acontext, 120 [in] short mode, 121 [in] sequence<string> argn, 122 [in] sequence<string> argv, 123 [in] com::sun::star::awt::XToolkit toolkit, 124 [in] com::sun::star::awt::XWindowPeer parent, 125 [in] string url ); 126 127}; 128 129//============================================================================= 130 131}; }; }; }; 132 133#endif 134