1 ///////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/osx/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 // Copyright:   (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
8 // Licence:     wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef _WX_MAC_DATAOBJ_H_
12 #define _WX_MAC_DATAOBJ_H_
13 
14 class WXDLLIMPEXP_CORE wxOSXDataSink;
15 class WXDLLIMPEXP_CORE wxOSXDataSource;
16 
17 class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
18 {
19 public:
20     wxDataObject();
~wxDataObject()21     virtual ~wxDataObject() { }
22 
23     virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
24 
25     void WriteToSink(wxOSXDataSink *sink) const;
26     bool ReadFromSource(wxOSXDataSource *source);
27     bool ReadFromSource(wxDataObject *source);
28     bool CanReadFromSource(wxOSXDataSource *source) const;
29     bool CanReadFromSource(wxDataObject *source) const;
30 
31     wxDataFormat GetSupportedFormatInSource(wxOSXDataSource *source) const;
32     wxDataFormat GetSupportedFormatInSource(wxDataObject *source) const;
33 
34 #if wxOSX_USE_COCOA
35     // adds all the native formats (in descending order of preference) this data object supports
36     virtual void AddSupportedTypes( CFMutableArrayRef cfarray, Direction dir ) const;
37 #endif
38 };
39 
40 #endif // _WX_MAC_DATAOBJ_H_
41 
42