summaryrefslogtreecommitdiff
path: root/dtrans/source/inc
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-08-24 06:09:45 +0000
committerTino Rachui <tra@openoffice.org>2001-08-24 06:09:45 +0000
commite9131867396aa611f934d9398ba446c090e01067 (patch)
tree4bc6deb9e72d598964f9cd78b0595af36d395dea /dtrans/source/inc
parentfd7d4711b18b7a05ce5d18db95ff392b59d7380e (diff)
#90832#additional members and methods for clipboard changed notifier thread
Diffstat (limited to 'dtrans/source/inc')
-rw-r--r--dtrans/source/inc/MtaOleClipb.hxx30
1 files changed, 17 insertions, 13 deletions
diff --git a/dtrans/source/inc/MtaOleClipb.hxx b/dtrans/source/inc/MtaOleClipb.hxx
index 19157b83e963..c05d1a12e1a6 100644
--- a/dtrans/source/inc/MtaOleClipb.hxx
+++ b/dtrans/source/inc/MtaOleClipb.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MtaOleClipb.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: tra $ $Date: 2001-03-22 14:13:04 $
+ * last change: $Author: tra $ $Date: 2001-08-24 07:09:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -66,19 +66,11 @@
#include <sal/types.h>
#endif
-#include <objidl.h>
-
-/*
-#ifdef __cplusplus
-extern "C" {
+#ifndef _OSL_MUTEX_HXX_
+#include <osl/mutex.hxx>
#endif
-LRESULT CALLBACK mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
-
-#ifdef __cplusplus
-}
-#endif
-*/
+#include <objidl.h>
//--------------------------------------------------------
// the Mta-Ole clipboard class is for internal use only!
@@ -138,6 +130,8 @@ private:
static LRESULT CALLBACK mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
static unsigned int WINAPI oleThreadProc( LPVOID pParam );
+ static unsigned int WINAPI clipboardChangedNotifierThreadProc( LPVOID pParam );
+
sal_Bool WaitForThreadReady( ) const;
private:
@@ -150,6 +144,16 @@ private:
LPFNC_CLIPVIEWER_CALLBACK_t m_pfncClipViewerCallback;
sal_Bool m_bInRegisterClipViewer;
+ sal_Bool m_bRunClipboardNotifierThread;
+ HANDLE m_hClipboardChangedNotifierThread;
+ HANDLE m_hClipboardChangedNotifierEvents[2];
+ HANDLE& m_hClipboardChangedEvent;
+ HANDLE& m_hTerminateClipboardChangedNotifierEvent;
+ osl::Mutex m_ClipboardChangedEventCountMutex;
+ sal_Int32 m_ClipboardChangedEventCount;
+
+ osl::Mutex m_pfncClipViewerCallbackMutex;
+
static CMtaOleClipboard* s_theMtaOleClipboardInst;
// not allowed