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_mozilla_XPluginInstancePeer_idl__
29 #define __com_sun_star_mozilla_XPluginInstancePeer_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
33 #include
<com
/sun
/star
/io
/XActiveDataSource.idl
>
35 #include
<com
/sun
/star
/io
/XInputStream.idl
>
37 #include
<com
/sun
/star
/lang
/XMultiServiceFactory.idl
>
39 //=============================================================================
41 module com
{ module sun
{ module star
{ module mozilla
{
43 //=============================================================================
45 published
interface XPluginInstanceNotifySink
;
47 //=============================================================================
50 // DocMerge from xml: interface com::sun::star::mozilla::XPluginInstancePeer
51 /** Allows to communicate with a plugin from the office side.
52 This interface is oriented for communication with browsers plugins.
54 published
interface XPluginInstancePeer
: com
::sun
::star
::uno
::XInterface
56 //-------------------------------------------------------------------------
59 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::setWindowSize
60 /** Alters the plugin's window size in the browser window.
62 @param width [in]: the new window width
63 @param height [in]: the new window height
65 @return <CODE>TRUE</CODE> on success
67 boolean setWindowSize
( [in] long width
, [in] long heigth
);
69 //-------------------------------------------------------------------------
72 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::showStatusMessage
73 /** Show status / hint message in browser's message area.
75 @param message [in]: the string to be displayed
77 [oneway
] void showStatusMessage
( [in] string message );
79 //-------------------------------------------------------------------------
82 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::enableScripting
83 /** Indicates to the plugin that the document was loaded successfully and scripting
84 interfaces are now available.
86 @param document [in]: the active document
87 @param servicemanager [in]: the office servicemanager
90 [oneway
] void enableScripting
( [in] com
::sun
::star
::uno
::XInterface document
, [in] com
::sun
::star
::lang
::XMultiServiceFactory servicemanager
);
92 //-------------------------------------------------------------------------
95 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::newStream
96 /** Creates a new stream of data produced by the plug-in and consumed by
99 @param MIMEDesc [in]: the MIME type of the plug-in to create
100 @param target [in]: the name of the target window or frame (supports _blank, _self)
101 @param data [in]: on success the output stream will be associated with this instance
104 [oneway
] void newStream
(
105 [in] string MIMEDesc
,
107 [in] com
::sun
::star
::io
::XActiveDataSource data
110 //-------------------------------------------------------------------------
113 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::getURL
114 /** Fetches an URL into the target window. The parameters and their meaning map to the
115 corresponding Netscape-API call.
117 @param aURL [in]: the URL to be fetched
118 @param target [in]: the name of the target window or frame (supports _blank, _self)
119 @param alternativeHost [in]: alternativeHost
120 @param referrer [in]: referrer
121 @param sink [in]: the sink is notified on success
124 [oneway
] void getURL
(
127 [in] string alternativeHost
,
128 [in] string referrer
,
129 [in] XPluginInstanceNotifySink sink
132 //-------------------------------------------------------------------------
135 // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::postURL
136 /** Posts to a URL with post data and/or post headers. The parameters and their meaning
137 map to the corresponding Netscape-API call.
139 @param aURL [in]: the URL to be posted to
140 @param postData [in]: the data to be posted
141 @param target [in]: the name of the target window or frame (supports _blank, _self)
142 @param alternativeHost [in]: alternativeHost
143 @param referrer [in]: referrer
144 @param postHeaders [in]: the header to be posted
145 @param sink [in]: the sink is notified on success
148 [oneway
] void postURL
(
150 [in] com
::sun
::star
::io
::XInputStream postData
,
152 [in] string alternativeHost
,
153 [in] string referrer
,
154 [in] com
::sun
::star
::io
::XInputStream postHeaders
,
155 [in] XPluginInstanceNotifySink sink
159 //=============================================================================
165 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */