]>
Commit | Line | Data |
---|---|---|
6762286d | 1 | /////////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/osx/dataobj.h |
6762286d SC |
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 | |
6762286d SC |
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() { } | |
5c6eb3a8 | 24 | #endif |
6762286d SC |
25 | |
26 | virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const; | |
59576592 | 27 | void AddToPasteboard( void * pasteboardRef , wxIntPtr itemID ); |
6762286d SC |
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 ); | |
f31c06b3 SC |
33 | |
34 | #if wxOSX_USE_COCOA | |
35 | virtual void AddSupportedTypes( void* cfarray); | |
36 | #endif | |
6762286d SC |
37 | }; |
38 | ||
39 | #endif // _WX_MAC_DATAOBJ_H_ | |
40 |