1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKCLIPBOARDH__
12 #define __GTKCLIPBOARDH__
19 #include "wx/object.h"
21 #include "wx/control.h"
22 #include "wx/dnd.h" // for wxDataObject
23 #include "wx/module.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
30 class wxClipboardModule
;
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 extern wxClipboard
* wxTheClipboard
;
38 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
42 class wxClipboard
: public wxObject
44 DECLARE_DYNAMIC_CLASS(wxClipboard
)
51 virtual void SetData( wxDataObject
*data
);
53 virtual bool IsSupportedFormat( wxDataFormat format
);
54 virtual bool ObtainData( wxDataFormat format
);
56 // call these after ObtainData()
57 virtual size_t GetDataSize() const;
58 virtual void GetDataHere( void *data
) const;
60 // clears wxTheClipboard and the system's clipboard if possible
68 void *m_receivedTargets
;
69 GtkWidget
*m_clipboardWidget
;
71 bool m_formatSupported
;
72 GdkAtom m_targetRequested
;
74 size_t m_receivedSize
;
78 //-----------------------------------------------------------------------------
80 //-----------------------------------------------------------------------------
82 class wxClipboardModule
: public wxModule
84 DECLARE_DYNAMIC_CLASS(wxClipboardModule
)
87 wxClipboardModule() {}