1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*d1766043SAndrew Rist *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*d1766043SAndrew Rist *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19*d1766043SAndrew Rist *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_mozilla_XPluginInstancePeer_idl__
24cdf0e10cSrcweir#define __com_sun_star_mozilla_XPluginInstancePeer_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir#ifndef __com_sun_star_io_XActiveDataSource_idl__
31cdf0e10cSrcweir#include <com/sun/star/io/XActiveDataSource.idl>
32cdf0e10cSrcweir#endif
33cdf0e10cSrcweir
34cdf0e10cSrcweir#ifndef __com_sun_star_io_XInputStream_idl__
35cdf0e10cSrcweir#include <com/sun/star/io/XInputStream.idl>
36cdf0e10cSrcweir#endif
37cdf0e10cSrcweir
38cdf0e10cSrcweir#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__
39cdf0e10cSrcweir#include <com/sun/star/lang/XMultiServiceFactory.idl>
40cdf0e10cSrcweir#endif
41cdf0e10cSrcweir
42cdf0e10cSrcweir//=============================================================================
43cdf0e10cSrcweir
44cdf0e10cSrcweir module com {  module sun {  module star {  module mozilla {
45cdf0e10cSrcweir
46cdf0e10cSrcweir//=============================================================================
47cdf0e10cSrcweir
48cdf0e10cSrcweir published interface XPluginInstanceNotifySink;
49cdf0e10cSrcweir
50cdf0e10cSrcweir//=============================================================================
51cdf0e10cSrcweir
52cdf0e10cSrcweir
53cdf0e10cSrcweir// DocMerge from xml: interface com::sun::star::mozilla::XPluginInstancePeer
54cdf0e10cSrcweir/** Allows to communicate with a plugin from the office side.
55cdf0e10cSrcweir	This interface is oriented for communication with browsers plugins.
56cdf0e10cSrcweir */
57cdf0e10cSrcweirpublished interface XPluginInstancePeer: com::sun::star::uno::XInterface
58cdf0e10cSrcweir{
59cdf0e10cSrcweir	//-------------------------------------------------------------------------
60cdf0e10cSrcweir
61cdf0e10cSrcweir
62cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::setWindowSize
63cdf0e10cSrcweir	/** Alters the plugin's window size in the browser window.
64cdf0e10cSrcweir
65cdf0e10cSrcweir		@param width	[in]: the new window width
66cdf0e10cSrcweir		@param height	[in]: the new window height
67cdf0e10cSrcweir
68cdf0e10cSrcweir		@return <CODE>TRUE</CODE> on success
69cdf0e10cSrcweir	 */
70cdf0e10cSrcweir	boolean setWindowSize( [in] long width, [in] long heigth );
71cdf0e10cSrcweir
72cdf0e10cSrcweir	//-------------------------------------------------------------------------
73cdf0e10cSrcweir
74cdf0e10cSrcweir
75cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::showStatusMessage
76cdf0e10cSrcweir	/** Show status / hint message in browser's message area.
77cdf0e10cSrcweir
78cdf0e10cSrcweir		@param message	[in]: the string to be displayed
79cdf0e10cSrcweir	 */
80cdf0e10cSrcweir	[oneway] void showStatusMessage( [in] string message );
81cdf0e10cSrcweir
82cdf0e10cSrcweir	//-------------------------------------------------------------------------
83cdf0e10cSrcweir
84cdf0e10cSrcweir
85cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::enableScripting
86cdf0e10cSrcweir	/** Indicates to the plugin that the document was loaded successfully and scripting
87cdf0e10cSrcweir		interfaces are now available.
88cdf0e10cSrcweir
89cdf0e10cSrcweir		@param document			[in]: the active document
90cdf0e10cSrcweir		@param servicemanager	[in]: the office servicemanager
91cdf0e10cSrcweir
92cdf0e10cSrcweir	 */
93cdf0e10cSrcweir	[oneway] void enableScripting( [in] com::sun::star::uno::XInterface document, [in] com::sun::star::lang::XMultiServiceFactory servicemanager );
94cdf0e10cSrcweir
95cdf0e10cSrcweir	//-------------------------------------------------------------------------
96cdf0e10cSrcweir
97cdf0e10cSrcweir
98cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::newStream
99cdf0e10cSrcweir	/** Creates a new stream of data produced by the plug-in and consumed by
100cdf0e10cSrcweir		the browser.
101cdf0e10cSrcweir
102cdf0e10cSrcweir		@param MIMEDesc	[in]:	the MIME type of the plug-in to create
103cdf0e10cSrcweir		@param target	[in]:	the name of the target window or frame (supports _blank, _self)
104cdf0e10cSrcweir		@param data		[in]:	on success the outputstream will be	associated with this instance
105cdf0e10cSrcweir
106cdf0e10cSrcweir	 */
107cdf0e10cSrcweir	[oneway] void newStream(
108cdf0e10cSrcweir		[in] string MIMEDesc,
109cdf0e10cSrcweir		[in] string target,
110cdf0e10cSrcweir		[in] com::sun::star::io::XActiveDataSource data
111cdf0e10cSrcweir	);
112cdf0e10cSrcweir
113cdf0e10cSrcweir	//-------------------------------------------------------------------------
114cdf0e10cSrcweir
115cdf0e10cSrcweir
116cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::getURL
117cdf0e10cSrcweir	/** Fetches an URL into the target window. The parameters and their meaning map to the
118cdf0e10cSrcweir		corresponding Netscape-API call.
119cdf0e10cSrcweir
120cdf0e10cSrcweir		@param aURL				[in]: the URL to be fetched
121cdf0e10cSrcweir		@param target			[in]: the name of the target window or frame (supports _blank, _self)
122cdf0e10cSrcweir		@param alternativeHost	[in]: alternativeHost
123cdf0e10cSrcweir		@param referrer			[in]: referrer
124cdf0e10cSrcweir		@param sink				[in]: the sink is notified on success
125cdf0e10cSrcweir
126cdf0e10cSrcweir	 */
127cdf0e10cSrcweir	[oneway] void getURL (
128cdf0e10cSrcweir		[in] string aURL,
129cdf0e10cSrcweir		[in] string target,
130cdf0e10cSrcweir		[in] string alternativeHost,
131cdf0e10cSrcweir		[in] string referrer,
132cdf0e10cSrcweir		[in] XPluginInstanceNotifySink sink
133cdf0e10cSrcweir	);
134cdf0e10cSrcweir
135cdf0e10cSrcweir	//-------------------------------------------------------------------------
136cdf0e10cSrcweir
137cdf0e10cSrcweir
138cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::postURL
139cdf0e10cSrcweir	/** Posts to a URL with post data and/or post headers. The parameters and their meaning
140cdf0e10cSrcweir		map to the corresponding Netscape-API call.
141cdf0e10cSrcweir
142cdf0e10cSrcweir		@param aURL				[in]: the URL to be posted to
143cdf0e10cSrcweir		@param postData			[in]: the data to be posted
144cdf0e10cSrcweir		@param target			[in]: the name of the target window or frame (supports _blank, _self)
145cdf0e10cSrcweir		@param alternativeHost	[in]: alternativeHost
146cdf0e10cSrcweir		@param referrer			[in]: referrer
147cdf0e10cSrcweir		@param postHeaders		[in]: the header to be posted
148cdf0e10cSrcweir		@param sink				[in]: the sink is notified on success
149cdf0e10cSrcweir
150cdf0e10cSrcweir	 */
151cdf0e10cSrcweir	[oneway] void postURL (
152cdf0e10cSrcweir		[in] string aURL,
153cdf0e10cSrcweir		[in] com::sun::star::io::XInputStream postData,
154cdf0e10cSrcweir		[in] string target,
155cdf0e10cSrcweir		[in] string alternativeHost,
156cdf0e10cSrcweir		[in] string referrer,
157cdf0e10cSrcweir		[in] com::sun::star::io::XInputStream postHeaders,
158cdf0e10cSrcweir		[in] XPluginInstanceNotifySink sink
159cdf0e10cSrcweir	);
160cdf0e10cSrcweir};
161cdf0e10cSrcweir
162cdf0e10cSrcweir//=============================================================================
163cdf0e10cSrcweir
164cdf0e10cSrcweir}; }; }; };
165cdf0e10cSrcweir
166cdf0e10cSrcweir#endif
167