]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/clipbrd.h
1. wxNotebook::GetPageCount() returns only the number of pages actually added
[wxWidgets.git] / include / wx / gtk / clipbrd.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: clipboard.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKCLIPBOARDH__
12 #define __GTKCLIPBOARDH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/object.h"
20 #include "wx/list.h"
21 #include "wx/control.h"
22 #include "wx/dnd.h" // for wxDataObject
23
24 //-----------------------------------------------------------------------------
25 // classes
26 //-----------------------------------------------------------------------------
27
28 class wxClipboard;
29
30 //-----------------------------------------------------------------------------
31 // global functions
32 //-----------------------------------------------------------------------------
33
34 void wxInitClipboard();
35 void wxDoneClipboard();
36
37 //-----------------------------------------------------------------------------
38 // global data
39 //-----------------------------------------------------------------------------
40
41 extern wxClipboard* wxTheClipboard;
42
43 //-----------------------------------------------------------------------------
44 // wxClipboard
45 //-----------------------------------------------------------------------------
46
47 class wxClipboard: public wxObject
48 {
49 DECLARE_DYNAMIC_CLASS(wxClipboard)
50
51 public:
52
53 wxClipboard();
54 ~wxClipboard();
55
56 virtual void SetData( wxDataObject *data );
57 virtual void *GetData( wxDataFormat format, size_t *length );
58 virtual bool IsAvailable( wxDataFormat format );
59
60 // implementation
61
62 wxDataObject *m_data;
63 char *m_sentString,
64 *m_receivedString;
65 void *m_receivedTargets;
66 size_t m_receivedLength;
67 GtkWidget *m_clipboardWidget;
68 };
69
70 #endif
71 // __GTKCLIPBOARDH__