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 28*cdf0e10cSrcweir #ifndef __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_ 29*cdf0e10cSrcweir #define __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 32*cdf0e10cSrcweir // my own includes 33*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir #include <services/frame.hxx> 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 38*cdf0e10cSrcweir // interface includes 39*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 40*cdf0e10cSrcweir #include <com/sun/star/mozilla/XPluginInstance.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/mozilla/XPluginInstancePeer.hpp> 42*cdf0e10cSrcweir #include <com/sun/star/mozilla/XPluginWindowPeer.hpp> 43*cdf0e10cSrcweir #include <com/sun/star/io/XInputStream.hpp> 44*cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp> 45*cdf0e10cSrcweir #include <com/sun/star/awt/XWindow.hpp> 46*cdf0e10cSrcweir #include <com/sun/star/frame/XDispatchResultListener.hpp> 47*cdf0e10cSrcweir #include <com/sun/star/frame/FeatureStateEvent.hpp> 48*cdf0e10cSrcweir #include <com/sun/star/lang/EventObject.hpp> 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 51*cdf0e10cSrcweir // other includes 52*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir #ifndef _VCL_ATOM_HXX 55*cdf0e10cSrcweir #include <vcl/threadex.hxx> 56*cdf0e10cSrcweir #endif 57*cdf0e10cSrcweir #include <unotools/cmdoptions.hxx> 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 61*cdf0e10cSrcweir // namespace 62*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir namespace framework{ 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 67*cdf0e10cSrcweir // exported const 68*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 71*cdf0e10cSrcweir // exported definitions 72*cdf0e10cSrcweir //_________________________________________________________________________________________________________________ 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir /*-************************************************************************************************************//** 75*cdf0e10cSrcweir @short implements an special frame - a plugin frame 76*cdf0e10cSrcweir @descr - 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir @implements XInitialization 79*cdf0e10cSrcweir XPluginInstance 80*cdf0e10cSrcweir XDispatchResultListener 81*cdf0e10cSrcweir @base Frame 82*cdf0e10cSrcweir *//*-*************************************************************************************************************/ 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir class PlugInFrame : public css::lang::XInitialization , 85*cdf0e10cSrcweir public css::mozilla::XPluginInstance , 86*cdf0e10cSrcweir public css::frame::XDispatchResultListener , // => XEVENTLISTENER 87*cdf0e10cSrcweir public Frame // Order of baseclasses is neccessary for right initialization! 88*cdf0e10cSrcweir { 89*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 90*cdf0e10cSrcweir // public methods 91*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 92*cdf0e10cSrcweir 93*cdf0e10cSrcweir public: 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 96*cdf0e10cSrcweir // constructor / destructor 97*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir /*-****************************************************************************************************//** 100*cdf0e10cSrcweir @short standard constructor to create instance 101*cdf0e10cSrcweir @descr This constructor initialize a new instance of this class, 102*cdf0e10cSrcweir and will be set valid values on his member and baseclasses. 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir @seealso - 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir @param - 107*cdf0e10cSrcweir @return - 108*cdf0e10cSrcweir 109*cdf0e10cSrcweir @onerror - 110*cdf0e10cSrcweir *//*-*****************************************************************************************************/ 111*cdf0e10cSrcweir 112*cdf0e10cSrcweir PlugInFrame( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ); 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir /*-****************************************************************************************************//** 115*cdf0e10cSrcweir @short standard destructor 116*cdf0e10cSrcweir @descr This method destruct an instance of this class and clear some member. 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir @seealso - 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir @param - 121*cdf0e10cSrcweir @return - 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir @onerror - 124*cdf0e10cSrcweir *//*-*****************************************************************************************************/ 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir virtual ~PlugInFrame(); 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 129*cdf0e10cSrcweir // XInterface, XTypeProvider, XServiceInfo 130*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir DECLARE_XINTERFACE 133*cdf0e10cSrcweir DECLARE_XTYPEPROVIDER 134*cdf0e10cSrcweir DECLARE_XSERVICEINFO 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 137*cdf0e10cSrcweir // XInitialization 138*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 139*cdf0e10cSrcweir 140*cdf0e10cSrcweir void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& seqArguments ) throw( css::uno::Exception , 141*cdf0e10cSrcweir css::uno::RuntimeException ); 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 144*cdf0e10cSrcweir // XPluginInstance 145*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir void SAL_CALL start () throw( css::uno::RuntimeException ); 148*cdf0e10cSrcweir void SAL_CALL implcb_start () throw( css::uno::RuntimeException ); 149*cdf0e10cSrcweir void SAL_CALL stop () throw( css::uno::RuntimeException ); 150*cdf0e10cSrcweir void SAL_CALL implcb_stop () throw( css::uno::RuntimeException ); 151*cdf0e10cSrcweir void SAL_CALL destroy () throw( css::uno::RuntimeException ); 152*cdf0e10cSrcweir void SAL_CALL implcb_destroy() throw( css::uno::RuntimeException ); 153*cdf0e10cSrcweir void SAL_CALL createWindow ( const css::uno::Any& aPlatformWindowHandle , 154*cdf0e10cSrcweir sal_Bool bEmbedded ) throw( css::uno::RuntimeException ); 155*cdf0e10cSrcweir void SAL_CALL implcb_createWindow ( const css::uno::Any& aPlatformWindowHandle , 156*cdf0e10cSrcweir sal_Bool bEmbedded ) throw( css::uno::RuntimeException ); 157*cdf0e10cSrcweir void SAL_CALL newStream ( const ::rtl::OUString& sMIMEDescription, 158*cdf0e10cSrcweir const ::rtl::OUString& sURL , 159*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 160*cdf0e10cSrcweir const css::uno::Reference< css::io::XInputStream >& xStream , 161*cdf0e10cSrcweir const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException ); 162*cdf0e10cSrcweir void SAL_CALL implcb_newStream 163*cdf0e10cSrcweir ( const ::rtl::OUString& sMIMEDescription, 164*cdf0e10cSrcweir const ::rtl::OUString& sURL , 165*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 166*cdf0e10cSrcweir const css::uno::Reference< css::io::XInputStream >& xStream , 167*cdf0e10cSrcweir const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException ); 168*cdf0e10cSrcweir void SAL_CALL newURL ( const ::rtl::OUString& sMIMEDescription, 169*cdf0e10cSrcweir const ::rtl::OUString& sURL , 170*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 171*cdf0e10cSrcweir const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException ); 172*cdf0e10cSrcweir void SAL_CALL implcb_newURL ( const ::rtl::OUString& sMIMEDescription, 173*cdf0e10cSrcweir const ::rtl::OUString& sURL , 174*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 175*cdf0e10cSrcweir const css::uno::Any& aSessionId ) throw( css::uno::RuntimeException ); 176*cdf0e10cSrcweir virtual void SAL_CALL getHttpServerURL( ::rtl::OUString& sHost , 177*cdf0e10cSrcweir sal_uInt16& nPort , 178*cdf0e10cSrcweir ::rtl::OUString& sPrefix ) throw( css::uno::RuntimeException ); 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 181*cdf0e10cSrcweir // XDispatchProvider 182*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL , 185*cdf0e10cSrcweir const ::rtl::OUString& sTargetFrameName, 186*cdf0e10cSrcweir sal_Int32 nSearchFlags ) throw( css::uno::RuntimeException ); 187*cdf0e10cSrcweir virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence< css::frame::DispatchDescriptor >& seqDescripts ) throw( css::uno::RuntimeException ); 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 190*cdf0e10cSrcweir // XDispatchResultListener 191*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 192*cdf0e10cSrcweir 193*cdf0e10cSrcweir virtual void SAL_CALL dispatchFinished ( const css::frame::DispatchResultEvent& aEvent ) throw( css::uno::RuntimeException ); 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 196*cdf0e10cSrcweir // XEventListener 197*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 198*cdf0e10cSrcweir 199*cdf0e10cSrcweir void SAL_CALL disposing( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException ); 200*cdf0e10cSrcweir 201*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 202*cdf0e10cSrcweir // protected methods 203*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir protected: 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 208*cdf0e10cSrcweir // private methods 209*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 210*cdf0e10cSrcweir 211*cdf0e10cSrcweir private: 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir void impl_tryToLoadDocument(); 214*cdf0e10cSrcweir sal_Bool impl_registerRemoteFactories( const css::uno::Reference< css::lang::XMultiServiceFactory >& xRemoteServiceManager ); 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 217*cdf0e10cSrcweir // debug methods 218*cdf0e10cSrcweir // (should be private everyway!) 219*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 220*cdf0e10cSrcweir 221*cdf0e10cSrcweir /*-****************************************************************************************************//** 222*cdf0e10cSrcweir @short debug-method to check incoming parameter of some other mehods of this class 223*cdf0e10cSrcweir @descr The following methods are used to check parameters for other methods 224*cdf0e10cSrcweir of this class. The return value is used directly for an ASSERT(...). 225*cdf0e10cSrcweir 226*cdf0e10cSrcweir @seealso ASSERTs in implementation! 227*cdf0e10cSrcweir 228*cdf0e10cSrcweir @param references to checking variables 229*cdf0e10cSrcweir @return sal_False on invalid parameter<BR> 230*cdf0e10cSrcweir sal_True otherway 231*cdf0e10cSrcweir 232*cdf0e10cSrcweir @onerror - 233*cdf0e10cSrcweir *//*-*****************************************************************************************************/ 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir #ifdef ENABLE_ASSERTIONS 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir private: 238*cdf0e10cSrcweir 239*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_initialize ( const css::uno::Sequence< css::uno::Any >& seqArguments ); 240*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_createWindow ( const css::uno::Any& aPlatformWindowHandle , 241*cdf0e10cSrcweir sal_Bool bEmbedded ); 242*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_newStream ( const ::rtl::OUString& sMIMEDescription , 243*cdf0e10cSrcweir const ::rtl::OUString& sURL , 244*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 245*cdf0e10cSrcweir const css::uno::Reference< css::io::XInputStream >& xStream ); 246*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_newURL ( const ::rtl::OUString& sMIMEDescription , 247*cdf0e10cSrcweir const ::rtl::OUString& sURL , 248*cdf0e10cSrcweir const ::rtl::OUString& sFilter ); 249*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_getHttpServerURL ( ::rtl::OUString& sHost , 250*cdf0e10cSrcweir sal_uInt16& nPort , 251*cdf0e10cSrcweir ::rtl::OUString& sPrefix ); 252*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_queryDispatch ( const css::util::URL& aURL , 253*cdf0e10cSrcweir const ::rtl::OUString& sTargetFrameName , 254*cdf0e10cSrcweir sal_Int32 nSearchFlags ); 255*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor >& seqDescripts ); 256*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_statusChanged ( const css::frame::FeatureStateEvent& aEvent ); 257*cdf0e10cSrcweir static sal_Bool impldbg_checkParameter_disposing ( const css::lang::EventObject& aEvent ); 258*cdf0e10cSrcweir 259*cdf0e10cSrcweir #endif // #ifdef ENABLE_ASSERTIONS 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 262*cdf0e10cSrcweir // variables 263*cdf0e10cSrcweir // (should be private everyway!) 264*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir private: 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir css::uno::Reference< css::mozilla::XPluginInstancePeer > m_xPlugInInstancePeer ; /// Reference to UNO interface of PlugIn dll for communication with browser 269*cdf0e10cSrcweir css::uno::Reference< css::mozilla::XPluginWindowPeer > m_xPlugInWindowPeer ; /// Reference to set child window at plugin window 270*cdf0e10cSrcweir css::uno::Sequence< css::beans::PropertyValue > m_seqProperties ; /// Sequence of properties as arguments for load document 271*cdf0e10cSrcweir css::util::URL m_aURL ; /// URL for document to load 272*cdf0e10cSrcweir sal_Bool m_bILoad ; /// PlugInFrame has a valid loader which load the document and wait for finished/cancelled 273*cdf0e10cSrcweir sal_Bool m_bIHaveDocument ; /// We have a document loaded successful. 274*cdf0e10cSrcweir css::uno::Reference< css::frame::XDispatchProvider > m_xPlugInDispatcher ; /// Dispatcher to forward dispatches to browser 275*cdf0e10cSrcweir static sal_Bool m_bRemoteFactoriesExist ; /// indicates, if remote factories was already registered (neccessary one times only!) 276*cdf0e10cSrcweir SvtCommandOptions m_aCommandOptions ; /// ref counted class to support disabling commands defined by configuration file 277*cdf0e10cSrcweir 278*cdf0e10cSrcweir }; // class PlugInFrame 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir /*-************************************************************************************************************//** 281*cdf0e10cSrcweir @short used to forward all asynchronous calls which use VCL internal to the main thread 282*cdf0e10cSrcweir @descr We need this asynchronous mechanism to prevent us against dead locks. Sometimes our main thread 283*cdf0e10cSrcweir can call us for event handling like FOCUS, ACTIVATE and something else. But at the same time we will call 284*cdf0e10cSrcweir the main thread to CREATE A WINDOW, SET IT VISIBLE ... Then we have a problem. We must send us himself a event 285*cdf0e10cSrcweir to run our code synchronized with our main thread! 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir @implements 288*cdf0e10cSrcweir @base - 289*cdf0e10cSrcweir *//*-*************************************************************************************************************/ 290*cdf0e10cSrcweir 291*cdf0e10cSrcweir enum eIMPL_PluginCommand 292*cdf0e10cSrcweir { 293*cdf0e10cSrcweir START , 294*cdf0e10cSrcweir STOP , 295*cdf0e10cSrcweir CREATEWINDOW , 296*cdf0e10cSrcweir DESTROY , 297*cdf0e10cSrcweir NEWSTREAM , 298*cdf0e10cSrcweir NEWURL 299*cdf0e10cSrcweir }; 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir class cIMPL_MainThreadExecutorRequest 302*cdf0e10cSrcweir { 303*cdf0e10cSrcweir public: 304*cdf0e10cSrcweir cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand , 305*cdf0e10cSrcweir PlugInFrame* pPluginInstance ); 306*cdf0e10cSrcweir 307*cdf0e10cSrcweir cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand , 308*cdf0e10cSrcweir PlugInFrame* pPluginInstance , 309*cdf0e10cSrcweir const css::uno::Any& aPlatformWindowHandle , 310*cdf0e10cSrcweir sal_Bool bEmbedded ); 311*cdf0e10cSrcweir 312*cdf0e10cSrcweir cIMPL_MainThreadExecutorRequest( eIMPL_PluginCommand eCommand , 313*cdf0e10cSrcweir PlugInFrame* pPluginInstance , 314*cdf0e10cSrcweir const ::rtl::OUString& sMIMEDescription , 315*cdf0e10cSrcweir const ::rtl::OUString& sURL , 316*cdf0e10cSrcweir const ::rtl::OUString& sFilter , 317*cdf0e10cSrcweir const css::uno::Reference< css::io::XInputStream >& xStream , 318*cdf0e10cSrcweir const css::uno::Any& aSessionId ); 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir /*-****************************************************************************************************//** 321*cdf0e10cSrcweir @short - 322*cdf0e10cSrcweir @descr - 323*cdf0e10cSrcweir 324*cdf0e10cSrcweir @seealso - 325*cdf0e10cSrcweir 326*cdf0e10cSrcweir @param - 327*cdf0e10cSrcweir @return - 328*cdf0e10cSrcweir 329*cdf0e10cSrcweir @onerror - 330*cdf0e10cSrcweir *//*-*****************************************************************************************************/ 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir virtual long doIt(); 333*cdf0e10cSrcweir 334*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 335*cdf0e10cSrcweir // private variables 336*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 337*cdf0e10cSrcweir private: 338*cdf0e10cSrcweir 339*cdf0e10cSrcweir eIMPL_PluginCommand m_eCommand ; /// switch to specify forward function 340*cdf0e10cSrcweir PlugInFrame* m_pPluginInstance ; /// instance wich has started this swicth mechanism and wish to called back from us 341*cdf0e10cSrcweir css::uno::Reference< css::uno::XInterface > m_xPluginInstance ; /// reference to our plugin frame to prevent that plugin frame dies before we call back 342*cdf0e10cSrcweir css::uno::Any m_aPlatformWindowHandle ; /// parameter for XPluginInstance->createWindow() 343*cdf0e10cSrcweir sal_Bool m_bEmbedded ; /// parameter for XPluginInstance->createWindow() 344*cdf0e10cSrcweir ::rtl::OUString m_sMIMEDescription ; /// parameter for XPluginInstance->newStream()/newURL() 345*cdf0e10cSrcweir ::rtl::OUString m_sURL ; /// parameter for XPluginInstance->newStream()/newURL() 346*cdf0e10cSrcweir ::rtl::OUString m_sFilter ; /// parameter for XPluginInstance->newStream()/newURL() 347*cdf0e10cSrcweir css::uno::Reference< css::io::XInputStream > m_xStream ; /// parameter for XPluginInstance->newStream()/newURL() 348*cdf0e10cSrcweir css::uno::Any m_aSessionId ; /// parameter for XPluginInstance->newStream()/newURL() 349*cdf0e10cSrcweir }; 350*cdf0e10cSrcweir 351*cdf0e10cSrcweir class cIMPL_MainThreadExecutor 352*cdf0e10cSrcweir { 353*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 354*cdf0e10cSrcweir // public methods 355*cdf0e10cSrcweir //------------------------------------------------------------------------------------------------------------- 356*cdf0e10cSrcweir public: 357*cdf0e10cSrcweir static void execute( cIMPL_MainThreadExecutorRequest* pRequest ); 358*cdf0e10cSrcweir 359*cdf0e10cSrcweir /*-****************************************************************************************************//** 360*cdf0e10cSrcweir @short - 361*cdf0e10cSrcweir @descr - 362*cdf0e10cSrcweir 363*cdf0e10cSrcweir @seealso - 364*cdf0e10cSrcweir 365*cdf0e10cSrcweir @param - 366*cdf0e10cSrcweir @return - 367*cdf0e10cSrcweir 368*cdf0e10cSrcweir @onerror - 369*cdf0e10cSrcweir *//*-*****************************************************************************************************/ 370*cdf0e10cSrcweir DECL_STATIC_LINK( cIMPL_MainThreadExecutor, worker, cIMPL_MainThreadExecutorRequest* ); 371*cdf0e10cSrcweir }; 372*cdf0e10cSrcweir 373*cdf0e10cSrcweir } // namespace framework 374*cdf0e10cSrcweir 375*cdf0e10cSrcweir #endif // #ifndef __FRAMEWORK_SERVICES_PLUGINFRAME_HXX_ 376