]>
Commit | Line | Data |
---|---|---|
977ea6b6 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/cocoa/clipbrd.h |
977ea6b6 DE |
3 | // Purpose: wxClipboard |
4 | // Author: David Elliott <dfe@cox.net> | |
5 | // Modified by: | |
6 | // Created: 2003/07/23 | |
977ea6b6 | 7 | // Copyright: (c) 2003 David Elliott |
65571936 | 8 | // Licence: wxWindows licence |
977ea6b6 DE |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef __WX_COCOA_CLIPBRD_H__ | |
12 | #define __WX_COCOA_CLIPBRD_H__ | |
13 | ||
14 | #include "wx/dataobj.h" | |
15 | ||
16 | //========================================================================= | |
17 | // wxClipboard | |
18 | //========================================================================= | |
19 | class wxClipboard : public wxClipboardBase | |
20 | { | |
21 | DECLARE_DYNAMIC_CLASS(wxClipboard) | |
22 | public: | |
23 | wxClipboard(); | |
d3c7fc99 | 24 | virtual ~wxClipboard(); |
977ea6b6 DE |
25 | |
26 | // open the clipboard before SetData() and GetData() | |
27 | virtual bool Open(); | |
28 | ||
29 | // close the clipboard after SetData() and GetData() | |
30 | virtual void Close(); | |
31 | ||
32 | // query whether the clipboard is opened | |
33 | virtual bool IsOpened() const; | |
34 | ||
35 | // set the clipboard data. all other formats will be deleted. | |
36 | virtual bool SetData( wxDataObject *data ); | |
37 | ||
38 | // add to the clipboard data. | |
39 | virtual bool AddData( wxDataObject *data ); | |
40 | ||
41 | // ask if data in correct format is available | |
42 | virtual bool IsSupported( const wxDataFormat& format ); | |
43 | ||
44 | // fill data with data on the clipboard (if available) | |
45 | virtual bool GetData( wxDataObject& data ); | |
46 | ||
47 | // clears wxTheClipboard and the system's clipboard if possible | |
48 | virtual void Clear(); | |
49 | }; | |
50 | ||
51 | #endif //__WX_COCOA_CLIPBRD_H__ |