1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_plugin_XPluginManager_idl__
28#define __com_sun_star_plugin_XPluginManager_idl__
29
30#ifndef __com_sun_star_uno_XInterface_idl__
31#include <com/sun/star/uno/XInterface.idl>
32#endif
33
34#ifndef __com_sun_star_plugin_XPluginContext_idl__
35#include <com/sun/star/plugin/XPluginContext.idl>
36#endif
37
38#ifndef __com_sun_star_plugin_PluginDescription_idl__
39#include <com/sun/star/plugin/PluginDescription.idl>
40#endif
41
42#ifndef __com_sun_star_plugin_XPlugin_idl__
43#include <com/sun/star/plugin/XPlugin.idl>
44#endif
45
46#ifndef __com_sun_star_plugin_PluginException_idl__
47#include <com/sun/star/plugin/PluginException.idl>
48#endif
49
50#ifndef __com_sun_star_awt_XToolkit_idl__
51#include <com/sun/star/awt/XToolkit.idl>
52#endif
53
54#ifndef __com_sun_star_awt_XWindowPeer_idl__
55#include <com/sun/star/awt/XWindowPeer.idl>
56#endif
57
58
59//=============================================================================
60
61 module com {  module sun {  module star {  module plugin {
62
63//=============================================================================
64
65/** Interface accessing all recognized Netscape plugins.
66*/
67published interface XPluginManager: com::sun::star::uno::XInterface
68{
69	/** Creates a default context.  This context depends on the service
70		<type scope="com::sun::star::frame">Desktop</type>.</p>
71
72		@return plugin context
73    */
74	com::sun::star::plugin::XPluginContext createPluginContext();
75
76	/** Returns the descriptions for all recognized plugins.
77
78        @return plugin descriptions
79    */
80	sequence<com::sun::star::plugin::PluginDescription> getPluginDescriptions();
81
82	/** Creates a new plugin instance.
83
84        @param acontext
85               plugin context
86        @param mode
87               plugin mode
88        @param argn
89               argument name list provided to plugin
90        @param argv
91               argument value list provided to plugin
92        @param plugintype
93               plugin description
94        @return plugin instance
95    */
96	com::sun::star::plugin::XPlugin createPlugin(
97        [in] com::sun::star::plugin::XPluginContext acontext,
98        [in] short mode,
99        [in] sequence<string> argn,
100        [in] sequence<string> argv,
101        [in] com::sun::star::plugin::PluginDescription plugintype )
102        raises( com::sun::star::plugin::PluginException );
103
104	/** Creates a new plugin instance.
105
106        @param acontext
107               plugin context
108        @param mode
109               plugin mode
110        @param argn
111               argument name list provided to plugin
112        @param argv
113               argument value list provided to plugin
114        @param toolkit
115               toolkit to be used to get system window handle for plugin
116        @param parent
117               parent window
118        @param url
119               url
120        @return plugin instance
121    */
122	com::sun::star::plugin::XPlugin createPluginFromURL(
123        [in] com::sun::star::plugin::XPluginContext acontext,
124        [in] short mode,
125        [in] sequence<string> argn,
126        [in] sequence<string> argv,
127        [in] com::sun::star::awt::XToolkit toolkit,
128        [in] com::sun::star::awt::XWindowPeer parent,
129        [in] string url );
130
131};
132
133//=============================================================================
134
135}; }; }; };
136
137#endif
138