diff options
Diffstat (limited to 'vcl/inc/salobj.hxx')
-rw-r--r-- | vcl/inc/salobj.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/inc/salobj.hxx b/vcl/inc/salobj.hxx index 3e8dbf152d29..af4d44e42c92 100644 --- a/vcl/inc/salobj.hxx +++ b/vcl/inc/salobj.hxx @@ -21,16 +21,17 @@ #define INCLUDED_VCL_INC_SALOBJ_HXX #include <vcl/dllapi.h> +#include <vcl/syschild.hxx> #include <com/sun/star/uno/Sequence.hxx> #include "salwtype.hxx" struct SystemEnvData; -typedef void (*SALOBJECTPROC)( void* pInst, SalObjEvent nEvent ); +typedef void (*SALOBJECTPROC)(SystemChildWindow* pInst, SalObjEvent nEvent); class VCL_PLUGIN_PUBLIC SalObject { - void* m_pInst; + VclPtr<SystemChildWindow> m_pInst; SALOBJECTPROC m_pCallback; bool m_bMouseTransparent:1, m_bEraseBackground:1; @@ -54,7 +55,7 @@ public: virtual const SystemEnvData* GetSystemData() const = 0; - void SetCallback( void* pInst, SALOBJECTPROC pProc ) + void SetCallback( SystemChildWindow* pInst, SALOBJECTPROC pProc ) { m_pInst = pInst; m_pCallback = pProc; } void CallCallback( SalObjEvent nEvent ) { if (m_pCallback) m_pCallback( m_pInst, nEvent ); } |