]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/clipbrd.h
b8e0d7b96197d05eaeb76473a1488b787f32318d
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_
18 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19 #pragma interface "clipbrd.h"
25 #include "wx/module.h"
26 #include "wx/dataobj.h" // for wxDataFormat
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 class WXDLLEXPORT wxDataObject
;
33 class WXDLLEXPORT wxClipboard
: public wxClipboardBase
35 DECLARE_DYNAMIC_CLASS(wxClipboard
)
41 // open the clipboard before SetData() and GetData()
44 // close the clipboard after SetData() and GetData()
47 // query whether the clipboard is opened
48 virtual bool IsOpened() const;
50 // set the clipboard data. all other formats will be deleted.
51 virtual bool SetData( wxDataObject
*data
);
53 // add to the clipboard data.
54 virtual bool AddData( wxDataObject
*data
);
56 // ask if data in correct format is available
57 virtual bool IsSupported( const wxDataFormat
& format
);
59 // fill data with data on the clipboard (if available)
60 virtual bool GetData( wxDataObject
& data
);
62 // clears wxTheClipboard and the system's clipboard if possible
65 // flushes the clipboard: this means that the data which is currently on
66 // clipboard will stay available even after the application exits (possibly
67 // eating memory), otherwise the clipboard will be emptied on exit
70 // X11 has two clipboards which get selected by this call. Empty on MSW.
71 void UsePrimarySelection( bool WXUNUSED(primary
) = FALSE
) { }
78 #endif // wxUSE_CLIPBOARD