]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/clipbrd.h
f3349375fcab87526bfce3ba6095ccda5cbbbee7
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/clipbrd.h
3 // Purpose: wxClipboard
4 // Author: David Elliott <dfe@cox.net>
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_CLIPBRD_H__
13 #define __WX_COCOA_CLIPBRD_H__
15 #include "wx/dataobj.h"
17 //=========================================================================
19 //=========================================================================
20 class wxClipboard
: public wxClipboardBase
22 DECLARE_DYNAMIC_CLASS(wxClipboard
)
25 virtual ~wxClipboard();
27 // open the clipboard before SetData() and GetData()
30 // close the clipboard after SetData() and GetData()
33 // query whether the clipboard is opened
34 virtual bool IsOpened() const;
36 // set the clipboard data. all other formats will be deleted.
37 virtual bool SetData( wxDataObject
*data
);
39 // add to the clipboard data.
40 virtual bool AddData( wxDataObject
*data
);
42 // ask if data in correct format is available
43 virtual bool IsSupported( const wxDataFormat
& format
);
45 // fill data with data on the clipboard (if available)
46 virtual bool GetData( wxDataObject
& data
);
48 // clears wxTheClipboard and the system's clipboard if possible
52 #endif //__WX_COCOA_CLIPBRD_H__