]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/clipbrd.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Clipboard functionality.
4 // Note: this functionality is under review, and
5 // is derived from wxWidgets 1.xx code. Please contact
6 // the wxWidgets developers for further information.
7 // Author: Stefan Csomor
11 // Copyright: (c) Stefan Csomor
12 // Licence: wxWindows licence
13 /////////////////////////////////////////////////////////////////////////////
15 #ifndef _WX_CLIPBRD_H_
16 #define _WX_CLIPBRD_H_
21 #include "wx/module.h"
22 #include "wx/dataobj.h" // for wxDataFormat
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 class WXDLLEXPORT wxDataObject
;
29 class WXDLLEXPORT wxClipboard
: public wxClipboardBase
31 DECLARE_DYNAMIC_CLASS(wxClipboard
)
35 virtual ~wxClipboard();
37 // open the clipboard before SetData() and GetData()
40 // close the clipboard after SetData() and GetData()
43 // query whether the clipboard is opened
44 virtual bool IsOpened() const;
46 // set the clipboard data. all other formats will be deleted.
47 virtual bool SetData( wxDataObject
*data
);
49 // add to the clipboard data.
50 virtual bool AddData( wxDataObject
*data
);
52 // ask if data in correct format is available
53 virtual bool IsSupported( const wxDataFormat
& format
);
55 // fill data with data on the clipboard (if available)
56 virtual bool GetData( wxDataObject
& data
);
58 // clears wxTheClipboard and the system's clipboard if possible
61 // flushes the clipboard: this means that the data which is currently on
62 // clipboard will stay available even after the application exits (possibly
63 // eating memory), otherwise the clipboard will be emptied on exit
71 #endif // wxUSE_CLIPBOARD
73 #endif // _WX_CLIPBRD_H_