]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/dataobj.h
Fix typo in definitions of BEGIN_EVENT_TABLE_TEMPLATEn() macros with n>=2.
[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 // RCS-ID: $Id$
8 // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MAC_DATAOBJ_H_
13 #define _WX_MAC_DATAOBJ_H_
14
15 // ----------------------------------------------------------------------------
16 // wxDataObject is the same as wxDataObjectBase under wxGTK
17 // ----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
20 {
21 public:
22 wxDataObject();
23 #ifdef __DARWIN__
24 virtual ~wxDataObject() { }
25 #endif
26
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 );
34
35 #if wxOSX_USE_COCOA
36 virtual void AddSupportedTypes( void* cfarray);
37 #endif
38 };
39
40 #endif // _WX_MAC_DATAOBJ_H_
41