]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: mac/dataobj.h | |
3 | // Purpose: declaration of the wxDataObject | |
4 | // Author: Stefan Csomor (adapted from Robert Roebling's gtk port) | |
5 | // Modified by: | |
6 | // Created: 10/21/99 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_MAC_DATAOBJ_H_ | |
13 | #define _WX_MAC_DATAOBJ_H_ | |
14 | ||
8cf73271 SC |
15 | // ---------------------------------------------------------------------------- |
16 | // wxDataObject is the same as wxDataObjectBase under wxGTK | |
17 | // ---------------------------------------------------------------------------- | |
18 | ||
53a2db12 | 19 | class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase |
8cf73271 SC |
20 | { |
21 | public: | |
22 | wxDataObject(); | |
23 | #ifdef __DARWIN__ | |
d3c7fc99 | 24 | virtual ~wxDataObject() { } |
8cf73271 SC |
25 | #endif |
26 | ||
27 | virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const; | |
ebf2a1ec SC |
28 | void AddToPasteboard( void * pasteboardRef , int itemID ); |
29 | // returns true if the passed in format is present in the pasteboard | |
30 | static bool IsFormatInPasteboard( void * pasteboardRef, const wxDataFormat &dataFormat ); | |
31 | // returns true if any of the accepted formats of this dataobj is in the pasteboard | |
32 | bool HasDataInPasteboard( void * pasteboardRef ); | |
33 | bool GetFromPasteboard( void * pasteboardRef ); | |
8cf73271 SC |
34 | }; |
35 | ||
36 | #endif // _WX_MAC_DATAOBJ_H_ | |
37 |