1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Clipboard functionality.
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CLIPBRD_H_
13 #define _WX_CLIPBRD_H_
17 #include "wx/osx/core/cfref.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxClipboard
: public wxClipboardBase
27 virtual ~wxClipboard();
29 // open the clipboard before SetData() and GetData()
32 // close the clipboard after SetData() and GetData()
35 // query whether the clipboard is opened
36 virtual bool IsOpened() const;
38 // set the clipboard data. all other formats will be deleted.
39 virtual bool SetData( wxDataObject
*data
);
41 // add to the clipboard data.
42 virtual bool AddData( wxDataObject
*data
);
44 // ask if data in correct format is available
45 virtual bool IsSupported( const wxDataFormat
& format
);
47 // fill data with data on the clipboard (if available)
48 virtual bool GetData( wxDataObject
& data
);
50 // clears wxTheClipboard and the system's clipboard if possible
53 // flushes the clipboard: this means that the data which is currently on
54 // clipboard will stay available even after the application exits (possibly
55 // eating memory), otherwise the clipboard will be emptied on exit
61 wxCFRef
<PasteboardRef
> m_pasteboard
;
63 DECLARE_DYNAMIC_CLASS(wxClipboard
)
66 #endif // wxUSE_CLIPBOARD
68 #endif // _WX_CLIPBRD_H_