1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XPluginContext.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_plugin_XPluginContext_idl__
31 #define __com_sun_star_plugin_XPluginContext_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 #ifndef __com_sun_star_plugin_XPlugin_idl__
38 #include
<com
/sun
/star
/plugin
/XPlugin.idl
>
41 #ifndef __com_sun_star_plugin_PluginVariable_idl__
42 #include
<com
/sun
/star
/plugin
/PluginVariable.idl
>
45 #ifndef __com_sun_star_plugin_PluginException_idl__
46 #include
<com
/sun
/star
/plugin
/PluginException.idl
>
49 #ifndef __com_sun_star_lang_XEventListener_idl__
50 #include
<com
/sun
/star
/lang
/XEventListener.idl
>
53 #ifndef __com_sun_star_io_XActiveDataSource_idl__
54 #include
<com
/sun
/star
/io
/XActiveDataSource.idl
>
58 //=============================================================================
60 module com
{ module sun
{ module star
{ module plugin
{
62 //=============================================================================
64 /** Interface receiving calls from a plugin library.
65 A default context can be created using the <type>PluginManager</type>.
67 published
interface XPluginContext
: com
::sun
::star
::uno
::XInterface
69 /** Requests global application parameters like display connection
78 string getValue
( [in] com
::sun
::star
::plugin
::XPlugin xPlugin
,
79 [in] com
::sun
::star
::plugin
::PluginVariable aVariable
)
80 raises
( com
::sun
::star
::plugin
::PluginException
);
82 /** Requests a notification of completion of the operation on an URL.
93 void getURLNotify
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
96 [in] com
::sun
::star
::lang
::XEventListener listener
)
97 raises
( com
::sun
::star
::plugin
::PluginException
);
99 /** Requests an URL to be loaded into the frame target.
108 void getURL
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
111 raises
( com
::sun
::star
::plugin
::PluginException
);
113 /** Posts data from a buffer or file to an URL and receives a
114 notification upon completion.
125 whether data is from file
129 void postURLNotify
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
132 [in] sequence
<byte> buf
,
134 [in] com
::sun
::star
::lang
::XEventListener listener
)
135 raises
( com
::sun
::star
::plugin
::PluginException
);
137 /** Posts data from a buffer or file to an URL.
148 whether data is from file
150 void postURL
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
153 [in] sequence
<byte> buf
,
155 raises
( com
::sun
::star
::plugin
::PluginException
);
157 /** Requests a new stream that is created by the plugin and consumed
169 void newStream
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
170 [in] string mimetype
,
172 [in] com
::sun
::star
::io
::XActiveDataSource aSource
)
173 raises
( com
::sun
::star
::plugin
::PluginException
);
175 /** Displays a message in the browser status line.
182 void displayStatusText
( [in] com
::sun
::star
::plugin
::XPlugin plugin
,
183 [in] string message )
184 raises
( com
::sun
::star
::plugin
::PluginException
);
186 /** Returns an application dependent identification string.
187 This is the same string that is transmitted by a browser to an http server.
193 string getUserAgent
( [in] com
::sun
::star
::plugin
::XPlugin plugin
)
194 raises
( com
::sun
::star
::plugin
::PluginException
);
197 //=============================================================================