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