summaryrefslogtreecommitdiff
path: root/extensions/source/plugin/inc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/plugin/inc')
-rw-r--r--extensions/source/plugin/inc/plugin/aqua/sysplug.hxx54
-rw-r--r--extensions/source/plugin/inc/plugin/impl.hxx152
-rw-r--r--extensions/source/plugin/inc/plugin/model.hxx6
-rw-r--r--extensions/source/plugin/inc/plugin/multiplx.hxx82
-rw-r--r--extensions/source/plugin/inc/plugin/plcom.hxx10
-rw-r--r--extensions/source/plugin/inc/plugin/plctrl.hxx78
-rw-r--r--extensions/source/plugin/inc/plugin/unx/mediator.hxx38
-rw-r--r--extensions/source/plugin/inc/plugin/unx/plugcon.hxx60
-rw-r--r--extensions/source/plugin/inc/plugin/unx/sysplug.hxx6
-rw-r--r--extensions/source/plugin/inc/plugin/win/sysplug.hxx58
10 files changed, 272 insertions, 272 deletions
diff --git a/extensions/source/plugin/inc/plugin/aqua/sysplug.hxx b/extensions/source/plugin/inc/plugin/aqua/sysplug.hxx
index 01b8dafa0f2c..acabff40f123 100644
--- a/extensions/source/plugin/inc/plugin/aqua/sysplug.hxx
+++ b/extensions/source/plugin/inc/plugin/aqua/sysplug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ rtl::OUString CFURLtoOSLURL( CFURLRef i_xURL );
class MacPluginComm :
public PluginComm,
public ::vcl::SolarThreadExecutor
-
+
{
enum CallType {
eNPP_Destroy,
@@ -92,13 +92,13 @@ class MacPluginComm :
eNP_Initialize
};
- void* m_aArgs[ 8 ];
- CallType m_eCall;
-
- virtual long doIt();
+ void* m_aArgs[ 8 ];
+ CallType m_eCall;
+
+ virtual long doIt();
public:
MacPluginComm( const rtl::OUString& rMIME, const rtl::OUString& rName, NSView* pView );
- virtual ~MacPluginComm();
+ virtual ~MacPluginComm();
// FIXME:
// this actually should be from the NP headers
@@ -111,39 +111,39 @@ public:
} NP_CGContext;
public:
- virtual NPError NPP_Destroy( NPP instance, NPSavedData** save );
- virtual NPError NPP_DestroyStream( NPP instance, NPStream* stream, NPError reason );
- virtual void * NPP_GetJavaClass();
- virtual NPError NPP_Initialize();
- virtual NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
+ virtual NPError NPP_Destroy( NPP instance, NPSavedData** save );
+ virtual NPError NPP_DestroyStream( NPP instance, NPStream* stream, NPError reason );
+ virtual void * NPP_GetJavaClass();
+ virtual NPError NPP_Initialize();
+ virtual NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
char* argn[], char* argv[], NPSavedData *saved );
- virtual NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream* stream,
+ virtual NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream* stream,
NPBool seekable, uint16* stype );
- virtual void NPP_Print( NPP instance, NPPrint* platformPrint );
- virtual NPError NPP_SetWindow( NPP instance, NPWindow* window );
- virtual void NPP_Shutdown();
- virtual void NPP_StreamAsFile( NPP instance, NPStream* stream, const char* fname );
- virtual void NPP_URLNotify( NPP instance, const char* url,
+ virtual void NPP_Print( NPP instance, NPPrint* platformPrint );
+ virtual NPError NPP_SetWindow( NPP instance, NPWindow* window );
+ virtual void NPP_Shutdown();
+ virtual void NPP_StreamAsFile( NPP instance, NPStream* stream, const char* fname );
+ virtual void NPP_URLNotify( NPP instance, const char* url,
NPReason reason, void* notifyData );
- virtual int32 NPP_Write( NPP instance, NPStream* stream, int32 offset,
+ virtual int32 NPP_Write( NPP instance, NPStream* stream, int32 offset,
int32 len, void* buffer );
- virtual int32 NPP_WriteReady( NPP instance, NPStream* stream );
- virtual NPError NPP_GetValue( NPP instance, NPPVariable variable, void *ret_value );
- virtual NPError NPP_SetValue( NPP instance, NPNVariable variable, void *ret_value );
+ virtual int32 NPP_WriteReady( NPP instance, NPStream* stream );
+ virtual NPError NPP_GetValue( NPP instance, NPPVariable variable, void *ret_value );
+ virtual NPError NPP_SetValue( NPP instance, NPNVariable variable, void *ret_value );
virtual int16 NPP_HandleEvent( NPP instance, void* event );
virtual NPError NPP_SetWindow( XPlugin_Impl* );
virtual NPError NPP_Destroy( XPlugin_Impl*, NPSavedData** save );
-
+
void drawView( XPlugin_Impl* );
private:
- BOOL retrieveFunction( const char* i_pName, void** i_ppFunc ) const;
+ BOOL retrieveFunction( const char* i_pName, void** i_ppFunc ) const;
DECL_LINK( NullTimerHdl, void* );
-
+
private:
CFBundleRef m_xBundle;
- oslModule m_hPlugLib;
- NPPluginFuncs m_aNPPfuncs;
+ oslModule m_hPlugLib;
+ NPPluginFuncs m_aNPPfuncs;
// timer for sending nullEvents
AutoTimer* m_pNullTimer;
diff --git a/extensions/source/plugin/inc/plugin/impl.hxx b/extensions/source/plugin/inc/plugin/impl.hxx
index a11460eb384f..99bedc5da5ce 100644
--- a/extensions/source/plugin/inc/plugin/impl.hxx
+++ b/extensions/source/plugin/inc/plugin/impl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,11 +69,11 @@
#include <list>
-#ifdef WNT
+#ifdef WNT
#include "plugin/win/sysplug.hxx"
#endif
-#ifdef WNT
+#ifdef WNT
#include <plugin/win/sysplug.hxx>
#elif defined(OS2)
#include "plugin/os2/sysplug.hxx"
@@ -100,9 +100,9 @@ typedef int SysPlugData;
using namespace com::sun::star::uno;
-#define PROVIDING_NONE 0
-#define PROVIDING_NOW 1
-#define PROVIDING_MODEL_UPDATE 2
+#define PROVIDING_NONE 0
+#define PROVIDING_NOW 1
+#define PROVIDING_MODEL_UPDATE 2
// forwards
namespace ucbhelper { class Content; }
@@ -118,36 +118,36 @@ class XPlugin_Impl : public com::sun::star::plugin::XPlugin,
public com::sun::star::beans::XPropertyChangeListener
{
private:
- ::osl::Mutex m_aMutex;
- Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
- Reference< com::sun::star::plugin::XPluginContext > m_rBrowserContext;
+ ::osl::Mutex m_aMutex;
+ Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
+ Reference< com::sun::star::plugin::XPluginContext > m_rBrowserContext;
- PluginComm* m_pPluginComm;
- NPP_t m_aInstance;
- NPWindow m_aNPWindow;
+ PluginComm* m_pPluginComm;
+ NPP_t m_aInstance;
+ NPWindow m_aNPWindow;
SysPlugData m_aSysPlugData;
- rtl_TextEncoding m_aEncoding;
+ rtl_TextEncoding m_aEncoding;
- const char** m_pArgv;
- const char** m_pArgn;
- int m_nArgs;
- rtl::OString m_aLastGetUrl;
+ const char** m_pArgv;
+ const char** m_pArgn;
+ int m_nArgs;
+ rtl::OString m_aLastGetUrl;
- Reference< com::sun::star::awt::XControlModel > m_xModel;
+ Reference< com::sun::star::awt::XControlModel > m_xModel;
- ::com::sun::star::plugin::PluginDescription m_aDescription;
- sal_Int16 m_aPluginMode;
+ ::com::sun::star::plugin::PluginDescription m_aDescription;
+ sal_Int16 m_aPluginMode;
- int m_nProvidingState;
- int m_nCalledFromPlugin;
- PluginDisposer* m_pDisposer;
+ int m_nProvidingState;
+ int m_nCalledFromPlugin;
+ PluginDisposer* m_pDisposer;
- ::std::list<PluginInputStream*> m_aInputStreams;
- ::std::list<PluginOutputStream*> m_aOutputStreams;
- ::std::list<PluginEventListener*> m_aPEventListeners;
- ::rtl::OUString m_aURL;
+ ::std::list<PluginInputStream*> m_aInputStreams;
+ ::std::list<PluginOutputStream*> m_aOutputStreams;
+ ::std::list<PluginEventListener*> m_aPEventListeners;
+ ::rtl::OUString m_aURL;
- sal_Bool m_bIsDisposed;
+ sal_Bool m_bIsDisposed;
void prependArg( const char* pName, const char* pValue ); // arguments will be strdup'ed
void initArgs( const Sequence< rtl::OUString >& argn,
@@ -155,7 +155,7 @@ private:
sal_Int16 mode );
void freeArgs();
void handleSpecialArgs();
-
+
void loadPlugin();
void destroyInstance();
void modelChanged();
@@ -165,7 +165,7 @@ public:
virtual ~XPlugin_Impl();
::osl::Mutex& getMutex() { return m_aMutex; }
-
+
void destroyStreams();
void setLastGetUrl( const rtl::OString& rUrl ) { m_aLastGetUrl = rUrl; }
@@ -174,8 +174,8 @@ public:
::std::list<PluginInputStream*>& getInputStreams() { return m_aInputStreams; }
::std::list<PluginOutputStream*>& getOutputStreams() { return m_aOutputStreams; }
- PluginComm* getPluginComm() { return m_pPluginComm; }
- void setPluginComm( PluginComm* comm )
+ PluginComm* getPluginComm() { return m_pPluginComm; }
+ void setPluginComm( PluginComm* comm )
{
if( ! m_pPluginComm )
{
@@ -186,32 +186,32 @@ public:
Reference< com::sun::star::lang::XMultiServiceFactory > getServiceManager() { return m_xSMgr; }
const com::sun::star::plugin::PluginDescription& getDescription() const { return m_aDescription; }
rtl_TextEncoding getTextEncoding() { return m_aEncoding; }
- NPP getNPPInstance() { return &m_aInstance; }
- NPWindow* getNPWindow() { return &m_aNPWindow; }
+ NPP getNPPInstance() { return &m_aInstance; }
+ NPWindow* getNPWindow() { return &m_aNPWindow; }
SysPlugData& getSysPlugData() { return m_aSysPlugData; }
- void enterPluginCallback() { m_nCalledFromPlugin++; }
- void leavePluginCallback() { m_nCalledFromPlugin--; }
- sal_Bool isDisposable() { return m_nCalledFromPlugin < 1 ? sal_True : sal_False; }
- DECL_LINK( secondLevelDispose, XPlugin_Impl* );
+ void enterPluginCallback() { m_nCalledFromPlugin++; }
+ void leavePluginCallback() { m_nCalledFromPlugin--; }
+ sal_Bool isDisposable() { return m_nCalledFromPlugin < 1 ? sal_True : sal_False; }
+ DECL_LINK( secondLevelDispose, XPlugin_Impl* );
void addPluginEventListener( PluginEventListener* pListener )
{ m_aPEventListeners.push_back( pListener ); }
void checkListeners( const char* normalizedURL );
-
- void initInstance(
+
+ void initInstance(
const com::sun::star::plugin::PluginDescription& rDescription,
const Sequence< rtl::OUString >& argn,
const Sequence< rtl::OUString >& argv,
sal_Int16 mode );
- void initInstance(
+ void initInstance(
const rtl::OUString& rURL,
const Sequence< rtl::OUString >& argn,
const Sequence< rtl::OUString >& argv,
sal_Int16 mode );
- const rtl::OUString& getRefererURL() { return m_aURL; }
- ::rtl::OUString getCreationURL();
+ const rtl::OUString& getRefererURL() { return m_aURL; }
+ ::rtl::OUString getCreationURL();
PluginStream* getStreamFromNPStream( NPStream* );
@@ -223,11 +223,11 @@ public:
void setPluginContext( const Reference< com::sun::star::plugin::XPluginContext > & );
void secondLevelDispose();
-
-// static const Reference< com::sun::star::reflection::XIdlClass > & staticGetIdlClass();
+
+// static const Reference< com::sun::star::reflection::XIdlClass > & staticGetIdlClass();
// XInterface
- virtual Any SAL_CALL queryInterface( const Type& ) throw( com::sun::star::uno::RuntimeException );
+ virtual Any SAL_CALL queryInterface( const Type& ) throw( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL acquire() throw()
{ OWeakAggObject::acquire(); }
virtual void SAL_CALL release() throw()
@@ -258,12 +258,12 @@ public:
class PluginManager
{
private:
- Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
- ::std::list<PluginComm*> m_aPluginComms;
- ::std::list<XPlugin_Impl*> m_aAllPlugins;
- ::osl::Mutex m_aPluginMutex;
+ Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
+ ::std::list<PluginComm*> m_aPluginComms;
+ ::std::list<XPlugin_Impl*> m_aAllPlugins;
+ ::osl::Mutex m_aPluginMutex;
- static PluginManager* pManager;
+ static PluginManager* pManager;
PluginManager();
public:
@@ -280,7 +280,7 @@ public:
class XPluginManager_Impl :
public cppu::WeakAggImplHelper1< com::sun::star::plugin::XPluginManager >
{
- Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
+ Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
public:
XPluginManager_Impl( const Reference< com::sun::star::lang::XMultiServiceFactory > & );
virtual ~XPluginManager_Impl();
@@ -302,10 +302,10 @@ public:
virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw();
virtual rtl::OUString SAL_CALL getImplementationName() throw();
-
+
Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void) throw( );
static Sequence< rtl::OUString > getSupportedServiceNames_Static(void) throw( );
- static rtl::OUString getImplementationName_Static() throw( )
+ static rtl::OUString getImplementationName_Static() throw( )
{
/** the soplayer uses this name in its source! maybe not after 5.2 */
return rtl::OUString::createFromAscii( "com.sun.star.extensions.PluginManager" );
@@ -318,8 +318,8 @@ enum PluginStreamType { InputStream, OutputStream };
class PluginStream
{
protected:
- XPlugin_Impl* m_pPlugin;
- NPStream m_aNPStream;
+ XPlugin_Impl* m_pPlugin;
+ NPStream m_aNPStream;
public:
PluginStream( XPlugin_Impl* pPlugin,
const char* url, sal_uInt32 len, sal_uInt32 lastmod );
@@ -339,26 +339,26 @@ class PluginInputStream :
>
{
private:
- ::ucbhelper::Content* m_pContent;
- sal_Int32 m_nMode;
- UINT32 m_nWritePos;
+ ::ucbhelper::Content* m_pContent;
+ sal_Int32 m_nMode;
+ UINT32 m_nWritePos;
- Reference< com::sun::star::io::XActiveDataSource > m_xSource;
+ Reference< com::sun::star::io::XActiveDataSource > m_xSource;
// hold a reference on input until closeOutput is called
-
- Reference< com::sun::star::io::XConnectable > m_xPredecessor;
- Reference< com::sun::star::io::XConnectable > m_xSuccessor;
+
+ Reference< com::sun::star::io::XConnectable > m_xPredecessor;
+ Reference< com::sun::star::io::XConnectable > m_xSuccessor;
// needed to hold a reference to self in NP_SEEK mode
- Reference< com::sun::star::io::XOutputStream > m_xSelf;
-
- SvFileStream m_aFileStream;
+ Reference< com::sun::star::io::XOutputStream > m_xSelf;
+
+ SvFileStream m_aFileStream;
public:
PluginInputStream( XPlugin_Impl* pPlugin,
const char* url, UINT32 len, UINT32 lastmod );
PluginInputStream() : PluginStream( NULL, NULL, 0, 0 ) {}
-
+
virtual ~PluginInputStream();
virtual PluginStreamType getStreamType();
@@ -370,7 +370,7 @@ public:
void load();
// clear reference
- bool releaseSelf()
+ bool releaseSelf()
{ bool bRet = m_xSelf.is(); m_xSelf.clear(); return bRet; }
// XOutputStream
@@ -393,7 +393,7 @@ public:
class PluginOutputStream : public PluginStream
{
private:
- Reference< com::sun::star::io::XOutputStream > m_xStream;
+ Reference< com::sun::star::io::XOutputStream > m_xStream;
public:
PluginOutputStream( XPlugin_Impl* pPlugin, const char* url,
sal_uInt32 len, sal_uInt32 lastmod );
@@ -408,11 +408,11 @@ class PluginEventListener :
public cppu::WeakAggImplHelper1< com::sun::star::lang::XEventListener >
{
private:
- XPlugin_Impl* m_pPlugin;
- Reference< com::sun::star::plugin::XPlugin > m_xPlugin; // just to hold the plugin
- char* m_pUrl;
- char* m_pNormalizedUrl;
- void* m_pNotifyData;
+ XPlugin_Impl* m_pPlugin;
+ Reference< com::sun::star::plugin::XPlugin > m_xPlugin; // just to hold the plugin
+ char* m_pUrl;
+ char* m_pNormalizedUrl;
+ void* m_pNotifyData;
public:
PluginEventListener( XPlugin_Impl*,
const char* url,
@@ -422,8 +422,8 @@ public:
const char* getURL() { return m_pUrl; }
const char* getNormalizedURL() { return m_pNormalizedUrl; }
- void* getNotifyData() { return m_pNotifyData; }
-
+ void* getNotifyData() { return m_pNotifyData; }
+
// com::sun::star::lang::XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw();
};
diff --git a/extensions/source/plugin/inc/plugin/model.hxx b/extensions/source/plugin/inc/plugin/model.hxx
index 8832b8ed1f75..91dfea02e32f 100644
--- a/extensions/source/plugin/inc/plugin/model.hxx
+++ b/extensions/source/plugin/inc/plugin/model.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ public:
~BroadcasterHelperHolder() {}
::cppu::OBroadcastHelper& getHelper() { return m_aHelper; }
-
+
};
class PluginModel : public BroadcasterHelperHolder,
@@ -111,7 +111,7 @@ class PluginModel : public BroadcasterHelperHolder,
// OPropertySetHelper
virtual cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
virtual sal_Bool SAL_CALL convertFastPropertyValue( Any & rConvertedValue,
- Any & rOldValue,
+ Any & rOldValue,
sal_Int32 nHandle,
const Any& rValue ) throw();
virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle,
diff --git a/extensions/source/plugin/inc/plugin/multiplx.hxx b/extensions/source/plugin/inc/plugin/multiplx.hxx
index 27c29785721f..4544304b785e 100644
--- a/extensions/source/plugin/inc/plugin/multiplx.hxx
+++ b/extensions/source/plugin/inc/plugin/multiplx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ struct MRCListenerMultiplexerHelper_Mutex
::osl::Mutex aMutex;
};
-class MRCListenerMultiplexerHelper :
+class MRCListenerMultiplexerHelper :
public MRCListenerMultiplexerHelper_Mutex,
public ::cppu::WeakAggImplHelper7<
@@ -79,17 +79,17 @@ public:
/**
* Create a Multiplexer of XWindowEvents.
*
- * @param rControl The control. All listeners think that this is the original
- * broadcaster.
- * @param rPeer The peer from which the original events are dispatched. Null is
- * allowed.
+ * @param rControl The control. All listeners think that this is the original
+ * broadcaster.
+ * @param rPeer The peer from which the original events are dispatched. Null is
+ * allowed.
*/
MRCListenerMultiplexerHelper( const Reference< ::com::sun::star::awt::XWindow > & rControl, const Reference< ::com::sun::star::awt::XWindow > & rPeer );
/**
* Remove all listeners from the previous set peer and add the needed listeners to rPeer.
- * @param rPeer The peer from which the original events are dispatched. Null is
- * allowed.
+ * @param rPeer The peer from which the original events are dispatched. Null is
+ * allowed.
*/
void setPeer( const Reference< ::com::sun::star::awt::XWindow > & rPeer );
@@ -108,61 +108,61 @@ public:
void unadvise(const Type& type, const Reference< XInterface > & listener);
// ::com::sun::star::lang::XEventListener
- void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw();
+ void SAL_CALL disposing(const ::com::sun::star::lang::EventObject& Source) throw();
// ::com::sun::star::awt::XFocusListener
- void SAL_CALL focusGained(const ::com::sun::star::awt::FocusEvent& e) throw();
- void SAL_CALL focusLost(const ::com::sun::star::awt::FocusEvent& e) throw();
+ void SAL_CALL focusGained(const ::com::sun::star::awt::FocusEvent& e) throw();
+ void SAL_CALL focusLost(const ::com::sun::star::awt::FocusEvent& e) throw();
// ::com::sun::star::awt::XWindowListener
- void SAL_CALL windowResized(const ::com::sun::star::awt::WindowEvent& e) throw();
- void SAL_CALL windowMoved(const ::com::sun::star::awt::WindowEvent& e) throw();
- void SAL_CALL windowShown(const ::com::sun::star::lang::EventObject& e) throw();
- void SAL_CALL windowHidden(const ::com::sun::star::lang::EventObject& e) throw();
+ void SAL_CALL windowResized(const ::com::sun::star::awt::WindowEvent& e) throw();
+ void SAL_CALL windowMoved(const ::com::sun::star::awt::WindowEvent& e) throw();
+ void SAL_CALL windowShown(const ::com::sun::star::lang::EventObject& e) throw();
+ void SAL_CALL windowHidden(const ::com::sun::star::lang::EventObject& e) throw();
// ::com::sun::star::awt::XKeyListener
- void SAL_CALL keyPressed( const ::com::sun::star::awt::KeyEvent& e ) throw();
- void SAL_CALL keyReleased( const ::com::sun::star::awt::KeyEvent& e ) throw();
+ void SAL_CALL keyPressed( const ::com::sun::star::awt::KeyEvent& e ) throw();
+ void SAL_CALL keyReleased( const ::com::sun::star::awt::KeyEvent& e ) throw();
// ::com::sun::star::awt::XMouseListener
- void SAL_CALL mousePressed(const ::com::sun::star::awt::MouseEvent& e) throw();
- void SAL_CALL mouseReleased(const ::com::sun::star::awt::MouseEvent& e) throw();
- void SAL_CALL mouseEntered(const ::com::sun::star::awt::MouseEvent& e) throw();
- void SAL_CALL mouseExited(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mousePressed(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mouseReleased(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mouseEntered(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mouseExited(const ::com::sun::star::awt::MouseEvent& e) throw();
// ::com::sun::star::awt::XMouseMotionListener
- void SAL_CALL mouseDragged(const ::com::sun::star::awt::MouseEvent& e) throw();
- void SAL_CALL mouseMoved(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mouseDragged(const ::com::sun::star::awt::MouseEvent& e) throw();
+ void SAL_CALL mouseMoved(const ::com::sun::star::awt::MouseEvent& e) throw();
// ::com::sun::star::awt::XPaintListener
- void SAL_CALL windowPaint(const ::com::sun::star::awt::PaintEvent& e) throw();
+ void SAL_CALL windowPaint(const ::com::sun::star::awt::PaintEvent& e) throw();
// ::com::sun::star::awt::XTopWindowListener
- void SAL_CALL windowOpened( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowClosing( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowClosed( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowMinimized( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowNormalized( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowActivated( const ::com::sun::star::lang::EventObject& e ) throw();
- void SAL_CALL windowDeactivated( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowOpened( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowClosing( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowClosed( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowMinimized( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowNormalized( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowActivated( const ::com::sun::star::lang::EventObject& e ) throw();
+ void SAL_CALL windowDeactivated( const ::com::sun::star::lang::EventObject& e ) throw();
protected:
/**
* Remove the listener with the uik rUik from the peer rPeer.
- * @param rPeer the peer from which the listener is removed.
- * @param rUik the listener uik, which specify the type of the listener.
+ * @param rPeer the peer from which the listener is removed.
+ * @param rUik the listener uik, which specify the type of the listener.
*/
- void adviseToPeer( const Reference< ::com::sun::star::awt::XWindow > & rPeer, const Type & type );
+ void adviseToPeer( const Reference< ::com::sun::star::awt::XWindow > & rPeer, const Type & type );
/**
* Add the listener with the uik rUik to the peer rPeer.
- * @param rPeer the peer to which the listener is added.
- * @param rUik the listener uik, which specify the type of the listener.
+ * @param rPeer the peer to which the listener is added.
+ * @param rUik the listener uik, which specify the type of the listener.
*/
- void unadviseFromPeer( const Reference< ::com::sun::star::awt::XWindow > & rPeer, const Type & type );
+ void unadviseFromPeer( const Reference< ::com::sun::star::awt::XWindow > & rPeer, const Type & type );
private:
/** The source of the events. Normally this is the peer object.*/
- Reference< ::com::sun::star::awt::XWindow > xPeer;
- WeakReference< ::com::sun::star::awt::XControl > xControl;
- ::cppu::OMultiTypeInterfaceContainerHelper aListenerHolder;
+ Reference< ::com::sun::star::awt::XWindow > xPeer;
+ WeakReference< ::com::sun::star::awt::XControl > xControl;
+ ::cppu::OMultiTypeInterfaceContainerHelper aListenerHolder;
MRCListenerMultiplexerHelper( const MRCListenerMultiplexerHelper & );
MRCListenerMultiplexerHelper & operator = ( const MRCListenerMultiplexerHelper & );
};
-#endif // _MRC_MULTIPLX_HXX
+#endif // _MRC_MULTIPLX_HXX
diff --git a/extensions/source/plugin/inc/plugin/plcom.hxx b/extensions/source/plugin/inc/plugin/plcom.hxx
index b23fc6c6ada9..8775a8450e16 100644
--- a/extensions/source/plugin/inc/plugin/plcom.hxx
+++ b/extensions/source/plugin/inc/plugin/plcom.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,9 +36,9 @@ class XPlugin_Impl;
class PluginComm
{
protected:
- int m_nRefCount;
- ::rtl::OString m_aLibName;
- std::list< String > m_aFilesToDelete;
+ int m_nRefCount;
+ ::rtl::OString m_aLibName;
+ std::list< String > m_aFilesToDelete;
public:
PluginComm( const ::rtl::OString& rLibName, bool bReusable = true );
virtual ~PluginComm();
@@ -78,7 +78,7 @@ public:
virtual NPError NPP_GetValue( NPP instance, NPPVariable variable, void* value ) = 0;
virtual NPError NPP_SetValue( NPP instance, NPNVariable variable,
void *value) = 0;
-
+
virtual NPError NPP_SetWindow( XPlugin_Impl* );
virtual NPError NPP_Destroy( XPlugin_Impl*, NPSavedData** save );
};
diff --git a/extensions/source/plugin/inc/plugin/plctrl.hxx b/extensions/source/plugin/inc/plugin/plctrl.hxx
index 06ee50cb8e0a..c98199213512 100644
--- a/extensions/source/plugin/inc/plugin/plctrl.hxx
+++ b/extensions/source/plugin/inc/plugin/plctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,33 +80,33 @@ public:
{ _xContext = xContext; }
virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getContext() throw( ::com::sun::star::uno::RuntimeException )
{ return _xContext; }
-
+
virtual sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & Model ) throw( ::com::sun::star::uno::RuntimeException ) = 0;
-// { DBG_ERROR( "### setModel() illegal on plugincontrol!" ); return sal_False; }
+// { DBG_ERROR( "### setModel() illegal on plugincontrol!" ); return sal_False; }
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > SAL_CALL getModel() throw( ::com::sun::star::uno::RuntimeException ) = 0;
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XView > SAL_CALL getView() throw( ::com::sun::star::uno::RuntimeException )
{ return (::com::sun::star::awt::XView*)this; }
-
+
virtual sal_Bool SAL_CALL isTransparent() throw( ::com::sun::star::uno::RuntimeException )
{ return sal_False; }
-
+
virtual void SAL_CALL setDesignMode( sal_Bool bOn ) throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL isDesignMode() throw( ::com::sun::star::uno::RuntimeException )
{ return _bInDesignMode; }
-
+
virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > & xToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > & Parent) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL getPeer() throw( ::com::sun::star::uno::RuntimeException )
{ return _xPeer; }
-
+
// ::com::sun::star::awt::XWindow
virtual void SAL_CALL setVisible( sal_Bool bVisible ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setEnable( sal_Bool bEnable ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setFocus(void) throw( ::com::sun::star::uno::RuntimeException );
-
+
virtual void SAL_CALL setPosSize( sal_Int32 nX_, sal_Int32 nY_, sal_Int32 nWidth_, sal_Int32 nHeight_, sal_Int16 nFlags ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::awt::Rectangle SAL_CALL getPosSize(void) throw( ::com::sun::star::uno::RuntimeException );
-
+
virtual void SAL_CALL addWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL removeWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL addFocusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
@@ -125,11 +125,11 @@ public:
// ::com::sun::star::awt::XFocusListener
virtual void SAL_CALL focusGained( const ::com::sun::star::awt::FocusEvent & rEvt ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL focusLost( const ::com::sun::star::awt::FocusEvent & rEvt ) throw( ::com::sun::star::uno::RuntimeException );
-
+
// ::com::sun::star::lang::XComponent
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > & l ) throw( ::com::sun::star::uno::RuntimeException );
-
+
virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException );
// ::com::sun::star::awt::XView
@@ -137,44 +137,44 @@ public:
{ return sal_False; }
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > SAL_CALL getGraphics(void) throw( ::com::sun::star::uno::RuntimeException )
{ return ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > (); }
-
- virtual ::com::sun::star::awt::Size SAL_CALL getSize(void) throw( ::com::sun::star::uno::RuntimeException )
+
+ virtual ::com::sun::star::awt::Size SAL_CALL getSize(void) throw( ::com::sun::star::uno::RuntimeException )
{ return ::com::sun::star::awt::Size(_nWidth, _nHeight); }
-
+
virtual void SAL_CALL draw( sal_Int32 x, sal_Int32 y ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setZoom( float ZoomX, float ZoomY ) throw( ::com::sun::star::uno::RuntimeException );
public:
PluginControl_Impl();
- virtual ~PluginControl_Impl();
-
+ virtual ~PluginControl_Impl();
+
MRCListenerMultiplexerHelper* getMultiplexer();
protected:
- void releasePeer();
-
+ void releasePeer();
+
protected:
- ::std::list< Reference< ::com::sun::star::lang::XEventListener > > _aDisposeListeners;
- MRCListenerMultiplexerHelper* _pMultiplexer;
-
- Reference< XInterface > _xContext;
-
- sal_Int32 _nX;
- sal_Int32 _nY;
- sal_Int32 _nWidth;
- sal_Int32 _nHeight;
- sal_Int16 _nFlags;
-
- sal_Bool _bVisible;
- sal_Bool _bInDesignMode;
- sal_Bool _bEnable;
-
- SystemChildWindow* _pSysChild;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > _xPeer;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > _xPeerWindow;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > _xParentWindow;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > _xParentPeer;
+ ::std::list< Reference< ::com::sun::star::lang::XEventListener > > _aDisposeListeners;
+ MRCListenerMultiplexerHelper* _pMultiplexer;
+
+ Reference< XInterface > _xContext;
+
+ sal_Int32 _nX;
+ sal_Int32 _nY;
+ sal_Int32 _nWidth;
+ sal_Int32 _nHeight;
+ sal_Int16 _nFlags;
+
+ sal_Bool _bVisible;
+ sal_Bool _bInDesignMode;
+ sal_Bool _bEnable;
+
+ SystemChildWindow* _pSysChild;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > _xPeer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > _xPeerWindow;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > _xParentWindow;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > _xParentPeer;
};
#endif
diff --git a/extensions/source/plugin/inc/plugin/unx/mediator.hxx b/extensions/source/plugin/inc/plugin/unx/mediator.hxx
index acf73c498a6c..1c847bb88e08 100644
--- a/extensions/source/plugin/inc/plugin/unx/mediator.hxx
+++ b/extensions/source/plugin/inc/plugin/unx/mediator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,10 +44,10 @@
struct MediatorMessage
{
- ULONG m_nID;
- ULONG m_nBytes;
- char* m_pBytes;
- char* m_pRun;
+ ULONG m_nID;
+ ULONG m_nBytes;
+ char* m_pBytes;
+ char* m_pRun;
MediatorMessage() : m_nID( 0 ), m_nBytes( 0 ),
m_pBytes( NULL ), m_pRun( NULL ) {}
@@ -73,13 +73,13 @@ struct MediatorMessage
memcpy( m_pBytes, pBytes, (size_t)m_nBytes );
}
- ULONG ExtractULONG();
- char* GetString();
- UINT32 GetUINT32();
- void* GetBytes( ULONG& );
- void* GetBytes() { ULONG nBytes; return GetBytes( nBytes ); }
+ ULONG ExtractULONG();
+ char* GetString();
+ UINT32 GetUINT32();
+ void* GetBytes( ULONG& );
+ void* GetBytes() { ULONG nBytes; return GetBytes( nBytes ); }
- void Rewind() { m_pRun = NULL; }
+ void Rewind() { m_pRun = NULL; }
};
class MediatorListener;
@@ -88,22 +88,22 @@ class Mediator
{
friend class MediatorListener;
protected:
- int m_nSocket;
+ int m_nSocket;
- std::vector<MediatorMessage*> m_aMessageQueue;
+ std::vector<MediatorMessage*> m_aMessageQueue;
osl::Mutex m_aQueueMutex;
osl::Mutex m_aSendMutex;
// only one thread can send a message at any given time
osl::Condition m_aNewMessageCdtn;
- MediatorListener* m_pListener;
+ MediatorListener* m_pListener;
// thread to fill the queue
- ULONG m_nCurrentID;
+ ULONG m_nCurrentID;
// will be constantly increased with each message sent
- bool m_bValid;
+ bool m_bValid;
- Link m_aConnectionLostHdl;
- Link m_aNewMessageHdl;
+ Link m_aConnectionLostHdl;
+ Link m_aNewMessageHdl;
public:
Mediator( int nSocket );
~Mediator();
@@ -155,7 +155,7 @@ class MediatorListener : public osl::Thread
{
friend class Mediator;
private:
- Mediator* m_pMediator;
+ Mediator* m_pMediator;
::osl::Mutex m_aMutex;
MediatorListener( Mediator* );
diff --git a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
index 7db023161249..491fdf4475a5 100644
--- a/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
+++ b/extensions/source/plugin/inc/plugin/unx/plugcon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,15 +39,15 @@
# define USE_MOTIF
#endif
-#define Window XLIB_Window
-#define Font XLIB_Font
-#define KeyCode XLIB_KeyCode
-#define Time XLIB_Time
-#define Cursor XLIB_Cursor
-#define Region XLIB_Region
-#define String XLIB_String
-#define Boolean XLIB_Boolean
-#define XPointer XLIB_XPointer
+#define Window XLIB_Window
+#define Font XLIB_Font
+#define KeyCode XLIB_KeyCode
+#define Time XLIB_Time
+#define Cursor XLIB_Cursor
+#define Region XLIB_Region
+#define String XLIB_String
+#define Boolean XLIB_Boolean
+#define XPointer XLIB_XPointer
#include <X11/Xlib.h>
extern "C" {
#include <X11/Intrinsic.h>
@@ -137,17 +137,17 @@ extern "C" {
class ConnectorInstance
{
public:
- NPP instance;
- NPWindow window;
- NPSetWindowCallbackStruct ws_info;
- char* pMimeType;
- void* pShell;
- void* pWidget;
- void* pForm;
-
+ NPP instance;
+ NPWindow window;
+ NPSetWindowCallbackStruct ws_info;
+ char* pMimeType;
+ void* pShell;
+ void* pWidget;
+ void* pForm;
+
GtkWidget* pGtkWindow;
GtkWidget* pGtkWidget;
-
+
bool bShouldUseXEmbed;
int nArg;
@@ -170,29 +170,29 @@ protected:
osl::Mutex m_aUserEventMutex;
static std::vector<PluginConnector*> allConnectors;
-
+
DECL_LINK( NewMessageHdl, Mediator* );
DECL_LINK( WorkOnNewMessageHdl, Mediator* );
-
+
std::vector<NPStream*> m_aNPWrapStreams;
std::vector<ConnectorInstance*> m_aInstances;
-
- ULONG FillBuffer( char*&, const char*, ULONG, va_list );
+
+ ULONG FillBuffer( char*&, const char*, ULONG, va_list );
public:
PluginConnector( int nSocket );
~PluginConnector();
virtual MediatorMessage* WaitForAnswer( ULONG nMessageID );
- MediatorMessage* Transact( const char*, ULONG, ... );
- MediatorMessage* Transact( UINT32, ... );
- void Respond( ULONG nID, char*, ULONG, ... );
- ULONG Send( UINT32, ... );
+ MediatorMessage* Transact( const char*, ULONG, ... );
+ MediatorMessage* Transact( UINT32, ... );
+ void Respond( ULONG nID, char*, ULONG, ... );
+ ULONG Send( UINT32, ... );
static const UINT32 UnknownStreamID = 0xffffffff;
static const UINT32 UnknownNPPID = 0xffffffff;
- UINT32 GetStreamID( NPStream* pStream );
- UINT32 GetNPPID( NPP );
+ UINT32 GetStreamID( NPStream* pStream );
+ UINT32 GetNPPID( NPP );
std::vector<NPStream*>& getStreamList() { return m_aNPWrapStreams; }
@@ -209,7 +209,7 @@ public:
LINK( this, PluginConnector, WorkOnNewMessageHdl ).
Call( (Mediator*)this );
}
-
+
ConnectorInstance* getInstance( NPP );
ConnectorInstance* getInstanceById( UINT32 );
};
diff --git a/extensions/source/plugin/inc/plugin/unx/sysplug.hxx b/extensions/source/plugin/inc/plugin/unx/sysplug.hxx
index df44c149e30a..69d64f7ac514 100644
--- a/extensions/source/plugin/inc/plugin/unx/sysplug.hxx
+++ b/extensions/source/plugin/inc/plugin/unx/sysplug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,9 +37,9 @@
class UnxPluginComm : public PluginComm, public PluginConnector
{
private:
- static int nConnCounter;
+ static int nConnCounter;
- pid_t m_nCommPID;
+ pid_t m_nCommPID;
public:
UnxPluginComm( const String& mimetype,
const String& library,
diff --git a/extensions/source/plugin/inc/plugin/win/sysplug.hxx b/extensions/source/plugin/inc/plugin/win/sysplug.hxx
index 45e09d98d950..4161312b4988 100644
--- a/extensions/source/plugin/inc/plugin/win/sysplug.hxx
+++ b/extensions/source/plugin/inc/plugin/win/sysplug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@
class PluginComm_Impl :
public PluginComm,
public ::vcl::SolarThreadExecutor
-
+
{
enum CallType {
eNPP_Destroy,
@@ -79,45 +79,45 @@ class PluginComm_Impl :
eNP_Initialize
};
- void* m_aArgs[ 8 ];
- CallType m_eCall;
-
- virtual long doIt();
+ void* m_aArgs[ 8 ];
+ CallType m_eCall;
+
+ virtual long doIt();
public:
PluginComm_Impl( const rtl::OUString& rMIME, const rtl::OUString& rName, HWND hWnd );
- virtual ~PluginComm_Impl();
-
+ virtual ~PluginComm_Impl();
+
public:
using PluginComm::NPP_Destroy;
- virtual NPError NPP_Destroy( NPP instance, NPSavedData** save );
- virtual NPError NPP_DestroyStream( NPP instance, NPStream* stream, NPError reason );
- virtual void * NPP_GetJavaClass();
- virtual NPError NPP_Initialize();
- virtual NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
+ virtual NPError NPP_Destroy( NPP instance, NPSavedData** save );
+ virtual NPError NPP_DestroyStream( NPP instance, NPStream* stream, NPError reason );
+ virtual void * NPP_GetJavaClass();
+ virtual NPError NPP_Initialize();
+ virtual NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
char* argn[], char* argv[], NPSavedData *saved );
- virtual NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream* stream,
+ virtual NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream* stream,
NPBool seekable, uint16* stype );
- virtual void NPP_Print( NPP instance, NPPrint* platformPrint );
-
+ virtual void NPP_Print( NPP instance, NPPrint* platformPrint );
+
using PluginComm::NPP_SetWindow;
- virtual NPError NPP_SetWindow( NPP instance, NPWindow* window );
- virtual void NPP_Shutdown();
- virtual void NPP_StreamAsFile( NPP instance, NPStream* stream, const char* fname );
- virtual void NPP_URLNotify( NPP instance, const char* url,
+ virtual NPError NPP_SetWindow( NPP instance, NPWindow* window );
+ virtual void NPP_Shutdown();
+ virtual void NPP_StreamAsFile( NPP instance, NPStream* stream, const char* fname );
+ virtual void NPP_URLNotify( NPP instance, const char* url,
NPReason reason, void* notifyData );
- virtual int32 NPP_Write( NPP instance, NPStream* stream, int32 offset,
+ virtual int32 NPP_Write( NPP instance, NPStream* stream, int32 offset,
int32 len, void* buffer );
- virtual int32 NPP_WriteReady( NPP instance, NPStream* stream );
- virtual NPError NPP_GetValue( NPP instance, NPPVariable variable, void *ret_alue );
- virtual NPError NPP_SetValue( NPP instance, NPNVariable variable, void *ret_alue );
-
+ virtual int32 NPP_WriteReady( NPP instance, NPStream* stream );
+ virtual NPError NPP_GetValue( NPP instance, NPPVariable variable, void *ret_alue );
+ virtual NPError NPP_SetValue( NPP instance, NPNVariable variable, void *ret_alue );
+
private:
- BOOL retrieveFunction( TCHAR* pName, void** ppFunc ) const;
-
+ BOOL retrieveFunction( TCHAR* pName, void** ppFunc ) const;
+
private:
- HINSTANCE _plDLL;
+ HINSTANCE _plDLL;
- NPPluginFuncs _NPPfuncs;
+ NPPluginFuncs _NPPfuncs;
};