1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_plugin_XPluginManager_idl__
29 #define __com_sun_star_plugin_XPluginManager_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
33 #include
<com
/sun
/star
/plugin
/XPluginContext.idl
>
35 #include
<com
/sun
/star
/plugin
/PluginDescription.idl
>
37 #include
<com
/sun
/star
/plugin
/XPlugin.idl
>
39 #include
<com
/sun
/star
/plugin
/PluginException.idl
>
41 #include
<com
/sun
/star
/awt
/XToolkit.idl
>
43 #include
<com
/sun
/star
/awt
/XWindowPeer.idl
>
46 //=============================================================================
48 module com
{ module sun
{ module star
{ module plugin
{
50 //=============================================================================
52 /** Interface accessing all recognized Netscape plugins.
54 published
interface XPluginManager
: com
::sun
::star
::uno
::XInterface
56 /** Creates a default context. This context depends on the service
57 <type scope="com::sun::star::frame">Desktop</type>.</p>
59 @return plugin context
61 com
::sun
::star
::plugin
::XPluginContext createPluginContext
();
63 /** Returns the descriptions for all recognized plugins.
65 @return plugin descriptions
67 sequence
<com
::sun
::star
::plugin
::PluginDescription
> getPluginDescriptions
();
69 /** Creates a new plugin instance.
76 argument name list provided to plugin
78 argument value list provided to plugin
81 @return plugin instance
83 com
::sun
::star
::plugin
::XPlugin createPlugin
(
84 [in] com
::sun
::star
::plugin
::XPluginContext acontext
,
86 [in] sequence
<string> argn
,
87 [in] sequence
<string> argv
,
88 [in] com
::sun
::star
::plugin
::PluginDescription plugintype
)
89 raises
( com
::sun
::star
::plugin
::PluginException
);
91 /** Creates a new plugin instance.
98 argument name list provided to plugin
100 argument value list provided to plugin
102 toolkit to be used to get system window handle for plugin
107 @return plugin instance
109 com
::sun
::star
::plugin
::XPlugin createPluginFromURL
(
110 [in] com
::sun
::star
::plugin
::XPluginContext acontext
,
112 [in] sequence
<string> argn
,
113 [in] sequence
<string> argv
,
114 [in] com
::sun
::star
::awt
::XToolkit toolkit
,
115 [in] com
::sun
::star
::awt
::XWindowPeer parent
,
120 //=============================================================================
126 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */