1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dataobj.h
3 // Purpose: declaration of the wxDataObject
4 // Author: Stefan Csomor (adapted from Robert Roebling's gtk port)
8 // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_DATAOBJ_H_
13 #define _WX_MAC_DATAOBJ_H_
15 // ----------------------------------------------------------------------------
16 // wxDataObject is the same as wxDataObjectBase under wxGTK
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxDataObject
: public wxDataObjectBase
24 virtual ~wxDataObject() { }
27 virtual bool IsSupportedFormat( const wxDataFormat
& format
, Direction dir
= Get
) const;
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
);
36 #endif // _WX_MAC_DATAOBJ_H_