]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/clipbrd.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/clipbrd.h
3 // Purpose: wxClipboard
4 // Author: David Elliott <dfe@cox.net>
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_CLIPBRD_H__
12 #define __WX_COCOA_CLIPBRD_H__
14 #include "wx/dataobj.h"
16 //=========================================================================
18 //=========================================================================
19 class wxClipboard
: public wxClipboardBase
21 DECLARE_DYNAMIC_CLASS(wxClipboard
)
24 virtual ~wxClipboard();
26 // open the clipboard before SetData() and GetData()
29 // close the clipboard after SetData() and GetData()
32 // query whether the clipboard is opened
33 virtual bool IsOpened() const;
35 // set the clipboard data. all other formats will be deleted.
36 virtual bool SetData( wxDataObject
*data
);
38 // add to the clipboard data.
39 virtual bool AddData( wxDataObject
*data
);
41 // ask if data in correct format is available
42 virtual bool IsSupported( const wxDataFormat
& format
);
44 // fill data with data on the clipboard (if available)
45 virtual bool GetData( wxDataObject
& data
);
47 // clears wxTheClipboard and the system's clipboard if possible
51 #endif //__WX_COCOA_CLIPBRD_H__