1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dataobj.h
3 // Purpose: declaration of the wxDataObject
4 // Author: Stefan Csomor (adapted from Robert Roebling's gtk port)
7 // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MAC_DATAOBJ_H_
12 #define _WX_MAC_DATAOBJ_H_
14 // ----------------------------------------------------------------------------
15 // wxDataObject is the same as wxDataObjectBase under wxGTK
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxDataObject
: public wxDataObjectBase
23 virtual ~wxDataObject() { }
26 virtual bool IsSupportedFormat( const wxDataFormat
& format
, Direction dir
= Get
) const;
27 void AddToPasteboard( void * pasteboardRef
, wxIntPtr itemID
);
28 // returns true if the passed in format is present in the pasteboard
29 static bool IsFormatInPasteboard( void * pasteboardRef
, const wxDataFormat
&dataFormat
);
30 // returns true if any of the accepted formats of this dataobj is in the pasteboard
31 bool HasDataInPasteboard( void * pasteboardRef
);
32 bool GetFromPasteboard( void * pasteboardRef
);
35 virtual void AddSupportedTypes( void* cfarray
);
39 #endif // _WX_MAC_DATAOBJ_H_