1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/clipbrd.h
3 // Purpose: Clipboard functionality.
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CLIPBRD_H_
12 #define _WX_CLIPBRD_H_
16 #include "wx/osx/core/cfref.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxClipboard
: public wxClipboardBase
26 virtual ~wxClipboard();
28 // open the clipboard before SetData() and GetData()
31 // close the clipboard after SetData() and GetData()
34 // query whether the clipboard is opened
35 virtual bool IsOpened() const;
37 // set the clipboard data. all other formats will be deleted.
38 virtual bool SetData( wxDataObject
*data
);
40 // add to the clipboard data.
41 virtual bool AddData( wxDataObject
*data
);
43 // ask if data in correct format is available
44 virtual bool IsSupported( const wxDataFormat
& format
);
46 // fill data with data on the clipboard (if available)
47 virtual bool GetData( wxDataObject
& data
);
49 // clears wxTheClipboard and the system's clipboard if possible
52 // flushes the clipboard: this means that the data which is currently on
53 // clipboard will stay available even after the application exits (possibly
54 // eating memory), otherwise the clipboard will be emptied on exit
60 wxCFRef
<PasteboardRef
> m_pasteboard
;
62 DECLARE_DYNAMIC_CLASS(wxClipboard
)
65 #endif // wxUSE_CLIPBOARD
67 #endif // _WX_CLIPBRD_H_