1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir#ifndef __com_sun_star_plugin_XPluginContext_idl__
28*cdf0e10cSrcweir#define __com_sun_star_plugin_XPluginContext_idl__
29*cdf0e10cSrcweir
30*cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
31*cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
32*cdf0e10cSrcweir#endif
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir#ifndef __com_sun_star_plugin_XPlugin_idl__
35*cdf0e10cSrcweir#include <com/sun/star/plugin/XPlugin.idl>
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#ifndef __com_sun_star_plugin_PluginVariable_idl__
39*cdf0e10cSrcweir#include <com/sun/star/plugin/PluginVariable.idl>
40*cdf0e10cSrcweir#endif
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#ifndef __com_sun_star_plugin_PluginException_idl__
43*cdf0e10cSrcweir#include <com/sun/star/plugin/PluginException.idl>
44*cdf0e10cSrcweir#endif
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#ifndef __com_sun_star_lang_XEventListener_idl__
47*cdf0e10cSrcweir#include <com/sun/star/lang/XEventListener.idl>
48*cdf0e10cSrcweir#endif
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir#ifndef __com_sun_star_io_XActiveDataSource_idl__
51*cdf0e10cSrcweir#include <com/sun/star/io/XActiveDataSource.idl>
52*cdf0e10cSrcweir#endif
53*cdf0e10cSrcweir
54*cdf0e10cSrcweir
55*cdf0e10cSrcweir//=============================================================================
56*cdf0e10cSrcweir
57*cdf0e10cSrcweir module com {  module sun {  module star {  module plugin {
58*cdf0e10cSrcweir
59*cdf0e10cSrcweir//=============================================================================
60*cdf0e10cSrcweir
61*cdf0e10cSrcweir/** Interface receiving calls from a plugin library.
62*cdf0e10cSrcweir    A default context can be created using the <type>PluginManager</type>.
63*cdf0e10cSrcweir*/
64*cdf0e10cSrcweirpublished interface XPluginContext: com::sun::star::uno::XInterface
65*cdf0e10cSrcweir{
66*cdf0e10cSrcweir	/** Requests global application parameters like display connection
67*cdf0e10cSrcweir        on UNIX systems.
68*cdf0e10cSrcweir
69*cdf0e10cSrcweir        @param xPlugin
70*cdf0e10cSrcweir               plugin
71*cdf0e10cSrcweir        @param aVariable
72*cdf0e10cSrcweir               variable
73*cdf0e10cSrcweir        @return value
74*cdf0e10cSrcweir    */
75*cdf0e10cSrcweir	string getValue( [in] com::sun::star::plugin::XPlugin xPlugin,
76*cdf0e10cSrcweir			 [in] com::sun::star::plugin::PluginVariable aVariable )
77*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
78*cdf0e10cSrcweir
79*cdf0e10cSrcweir	/** Requests a notification of completion of the operation on an URL.
80*cdf0e10cSrcweir
81*cdf0e10cSrcweir        @param plugin
82*cdf0e10cSrcweir               plugin
83*cdf0e10cSrcweir        @param url
84*cdf0e10cSrcweir               url
85*cdf0e10cSrcweir        @param target
86*cdf0e10cSrcweir               target frame
87*cdf0e10cSrcweir        @param listener
88*cdf0e10cSrcweir               event listener
89*cdf0e10cSrcweir    */
90*cdf0e10cSrcweir	void getURLNotify( [in] com::sun::star::plugin::XPlugin plugin,
91*cdf0e10cSrcweir			 [in] string url,
92*cdf0e10cSrcweir			 [in] string target,
93*cdf0e10cSrcweir			 [in] com::sun::star::lang::XEventListener listener )
94*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
95*cdf0e10cSrcweir
96*cdf0e10cSrcweir	/** Requests an URL to be loaded into the frame target.
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir        @param plugin
99*cdf0e10cSrcweir               plugin
100*cdf0e10cSrcweir        @param url
101*cdf0e10cSrcweir               url
102*cdf0e10cSrcweir        @param target
103*cdf0e10cSrcweir               target frame
104*cdf0e10cSrcweir    */
105*cdf0e10cSrcweir	void getURL( [in] com::sun::star::plugin::XPlugin plugin,
106*cdf0e10cSrcweir			 [in] string url,
107*cdf0e10cSrcweir			 [in] string target )
108*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
109*cdf0e10cSrcweir
110*cdf0e10cSrcweir	/** Posts data from a buffer or file to an URL and receives a
111*cdf0e10cSrcweir		notification upon completion.
112*cdf0e10cSrcweir
113*cdf0e10cSrcweir        @param plugin
114*cdf0e10cSrcweir               plugin
115*cdf0e10cSrcweir        @param url
116*cdf0e10cSrcweir               url
117*cdf0e10cSrcweir        @param target
118*cdf0e10cSrcweir               target frame
119*cdf0e10cSrcweir        @param buf
120*cdf0e10cSrcweir               data
121*cdf0e10cSrcweir        @param file
122*cdf0e10cSrcweir               whether data is from file
123*cdf0e10cSrcweir        @param listener
124*cdf0e10cSrcweir               event listener
125*cdf0e10cSrcweir    */
126*cdf0e10cSrcweir	void postURLNotify( [in] com::sun::star::plugin::XPlugin plugin,
127*cdf0e10cSrcweir			 [in] string url,
128*cdf0e10cSrcweir			 [in] string target,
129*cdf0e10cSrcweir			 [in] sequence<byte> buf,
130*cdf0e10cSrcweir			 [in] boolean file,
131*cdf0e10cSrcweir			 [in] com::sun::star::lang::XEventListener listener )
132*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
133*cdf0e10cSrcweir
134*cdf0e10cSrcweir	/** Posts data from a buffer or file to an URL.
135*cdf0e10cSrcweir
136*cdf0e10cSrcweir        @param plugin
137*cdf0e10cSrcweir               plugin
138*cdf0e10cSrcweir        @param url
139*cdf0e10cSrcweir               url
140*cdf0e10cSrcweir        @param target
141*cdf0e10cSrcweir               target frame
142*cdf0e10cSrcweir        @param buf
143*cdf0e10cSrcweir               data
144*cdf0e10cSrcweir        @param file
145*cdf0e10cSrcweir               whether data is from file
146*cdf0e10cSrcweir    */
147*cdf0e10cSrcweir	void postURL( [in] com::sun::star::plugin::XPlugin plugin,
148*cdf0e10cSrcweir			 [in] string url,
149*cdf0e10cSrcweir			 [in] string target,
150*cdf0e10cSrcweir			 [in] sequence<byte> buf,
151*cdf0e10cSrcweir			 [in] boolean file )
152*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
153*cdf0e10cSrcweir
154*cdf0e10cSrcweir	/** Requests a new stream that is created by the plugin and consumed
155*cdf0e10cSrcweir		by the browser.
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir        @param plugin
158*cdf0e10cSrcweir               plugin
159*cdf0e10cSrcweir        @param mimetype
160*cdf0e10cSrcweir               mime type
161*cdf0e10cSrcweir        @param target
162*cdf0e10cSrcweir               target frame
163*cdf0e10cSrcweir        @param aSource
164*cdf0e10cSrcweir               data source
165*cdf0e10cSrcweir    */
166*cdf0e10cSrcweir	void newStream( [in] com::sun::star::plugin::XPlugin plugin,
167*cdf0e10cSrcweir			 [in] string mimetype,
168*cdf0e10cSrcweir			 [in] string target,
169*cdf0e10cSrcweir			 [in] com::sun::star::io::XActiveDataSource aSource )
170*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
171*cdf0e10cSrcweir
172*cdf0e10cSrcweir	/** Displays a message in the browser status line.
173*cdf0e10cSrcweir
174*cdf0e10cSrcweir        @param plugin
175*cdf0e10cSrcweir               plugin
176*cdf0e10cSrcweir        @param message
177*cdf0e10cSrcweir               message
178*cdf0e10cSrcweir    */
179*cdf0e10cSrcweir	void displayStatusText( [in] com::sun::star::plugin::XPlugin plugin,
180*cdf0e10cSrcweir			 [in] string message )
181*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
182*cdf0e10cSrcweir
183*cdf0e10cSrcweir	/** Returns an application dependent identification string.
184*cdf0e10cSrcweir		This is the same string that is transmitted by a browser to an http server.
185*cdf0e10cSrcweir
186*cdf0e10cSrcweir        @param plugin
187*cdf0e10cSrcweir               plugin
188*cdf0e10cSrcweir		@return id
189*cdf0e10cSrcweir    */
190*cdf0e10cSrcweir	string getUserAgent( [in] com::sun::star::plugin::XPlugin plugin )
191*cdf0e10cSrcweir			raises( com::sun::star::plugin::PluginException );
192*cdf0e10cSrcweir};
193*cdf0e10cSrcweir
194*cdf0e10cSrcweir//=============================================================================
195*cdf0e10cSrcweir
196*cdf0e10cSrcweir}; }; }; };
197*cdf0e10cSrcweir
198*cdf0e10cSrcweir#endif
199