]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/dataobj.h
Remove RPM .spec files from the repository.
[wxWidgets.git] / include / wx / osx / dataobj.h
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 // ----------------------------------------------------------------------------
15 // wxDataObject is the same as wxDataObjectBase under wxGTK
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
19 {
20 public:
21 wxDataObject();
22 #ifdef __DARWIN__
23 virtual ~wxDataObject() { }
24 #endif
25
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 );
33
34 #if wxOSX_USE_COCOA
35 virtual void AddSupportedTypes( void* cfarray);
36 #endif
37 };
38
39 #endif // _WX_MAC_DATAOBJ_H_
40