1d1766043SAndrew Rist/************************************************************** 2*c754630cSmseidel * 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 10*c754630cSmseidel * 11d1766043SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c754630cSmseidel * 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. 19*c754630cSmseidel * 20d1766043SAndrew Rist *************************************************************/ 21d1766043SAndrew Rist 22d1766043SAndrew Rist 23*c754630cSmseidel 24*c754630cSmseidel#ifndef __com_sun_star_mozilla_XPluginInstancePeer_idl__ 25*c754630cSmseidel#define __com_sun_star_mozilla_XPluginInstancePeer_idl__ 26*c754630cSmseidel 27*c754630cSmseidel#ifndef __com_sun_star_uno_XInterface_idl__ 28*c754630cSmseidel#include <com/sun/star/uno/XInterface.idl> 29*c754630cSmseidel#endif 30*c754630cSmseidel 31*c754630cSmseidel#ifndef __com_sun_star_io_XActiveDataSource_idl__ 32*c754630cSmseidel#include <com/sun/star/io/XActiveDataSource.idl> 33*c754630cSmseidel#endif 34*c754630cSmseidel 35*c754630cSmseidel#ifndef __com_sun_star_io_XInputStream_idl__ 36*c754630cSmseidel#include <com/sun/star/io/XInputStream.idl> 37*c754630cSmseidel#endif 38*c754630cSmseidel 39*c754630cSmseidel#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__ 40*c754630cSmseidel#include <com/sun/star/lang/XMultiServiceFactory.idl> 41*c754630cSmseidel#endif 42*c754630cSmseidel 43*c754630cSmseidel//============================================================================= 44*c754630cSmseidel 45*c754630cSmseidel module com { module sun { module star { module mozilla { 46*c754630cSmseidel 47*c754630cSmseidel//============================================================================= 48*c754630cSmseidel 49*c754630cSmseidel published interface XPluginInstanceNotifySink; 50*c754630cSmseidel 51*c754630cSmseidel//============================================================================= 52*c754630cSmseidel 53*c754630cSmseidel 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 59*c754630cSmseidel{ 60*c754630cSmseidel //------------------------------------------------------------------------- 61*c754630cSmseidel 62*c754630cSmseidel 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*c754630cSmseidel boolean setWindowSize( [in] long width, [in] long height ); 72*c754630cSmseidel 73*c754630cSmseidel //------------------------------------------------------------------------- 74*c754630cSmseidel 75*c754630cSmseidel 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 */ 81*c754630cSmseidel [oneway] void showStatusMessage( [in] string message ); 82*c754630cSmseidel 83*c754630cSmseidel //------------------------------------------------------------------------- 84*c754630cSmseidel 85*c754630cSmseidel 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 */ 94*c754630cSmseidel [oneway] void enableScripting( [in] com::sun::star::uno::XInterface document, [in] com::sun::star::lang::XMultiServiceFactory servicemanager ); 95*c754630cSmseidel 96*c754630cSmseidel //------------------------------------------------------------------------- 97*c754630cSmseidel 98*c754630cSmseidel 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 */ 108*c754630cSmseidel [oneway] void newStream( 109*c754630cSmseidel [in] string MIMEDesc, 110*c754630cSmseidel [in] string target, 111*c754630cSmseidel [in] com::sun::star::io::XActiveDataSource data 112*c754630cSmseidel ); 113*c754630cSmseidel 114*c754630cSmseidel //------------------------------------------------------------------------- 115*c754630cSmseidel 116*c754630cSmseidel 117cdf0e10cSrcweir // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::getURL 118*c754630cSmseidel /** Fetches an URL into the target window. The parameters and their meaning map to the 119cdf0e10cSrcweir corresponding Netscape-API call. 120*c754630cSmseidel 121cdf0e10cSrcweir @param aURL [in]: the URL to be fetched 122cdf0e10cSrcweir @param target [in]: the name of the target window or frame (supports _blank, _self) 123*c754630cSmseidel @param alternativeHost [in]: alternativeHost 124cdf0e10cSrcweir @param referrer [in]: referrer 125cdf0e10cSrcweir @param sink [in]: the sink is notified on success 126cdf0e10cSrcweir 127cdf0e10cSrcweir */ 128*c754630cSmseidel [oneway] void getURL ( 129*c754630cSmseidel [in] string aURL, 130*c754630cSmseidel [in] string target, 131*c754630cSmseidel [in] string alternativeHost, 132*c754630cSmseidel [in] string referrer, 133*c754630cSmseidel [in] XPluginInstanceNotifySink sink 134*c754630cSmseidel ); 135*c754630cSmseidel 136*c754630cSmseidel //------------------------------------------------------------------------- 137*c754630cSmseidel 138*c754630cSmseidel 139cdf0e10cSrcweir // DocMerge from xml: method com::sun::star::mozilla::XPluginInstancePeer::postURL 140*c754630cSmseidel /** 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) 146*c754630cSmseidel @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 */ 152*c754630cSmseidel [oneway] void postURL ( 153*c754630cSmseidel [in] string aURL, 154*c754630cSmseidel [in] com::sun::star::io::XInputStream postData, 155*c754630cSmseidel [in] string target, 156*c754630cSmseidel [in] string alternativeHost, 157*c754630cSmseidel [in] string referrer, 158*c754630cSmseidel [in] com::sun::star::io::XInputStream postHeaders, 159*c754630cSmseidel [in] XPluginInstanceNotifySink sink 160*c754630cSmseidel ); 161*c754630cSmseidel}; 162*c754630cSmseidel 163*c754630cSmseidel//============================================================================= 164*c754630cSmseidel 165*c754630cSmseidel}; }; }; }; 166*c754630cSmseidel 167cdf0e10cSrcweir#endif 168