dataobj.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef _WX_MAC_DATAOBJ_H_
  11. #define _WX_MAC_DATAOBJ_H_
  12. // ----------------------------------------------------------------------------
  13. // wxDataObject is the same as wxDataObjectBase under wxGTK
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
  16. {
  17. public:
  18. wxDataObject();
  19. #ifdef __DARWIN__
  20. virtual ~wxDataObject() { }
  21. #endif
  22. virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const;
  23. void AddToPasteboard( void * pasteboardRef , wxIntPtr itemID );
  24. // returns true if the passed in format is present in the pasteboard
  25. static bool IsFormatInPasteboard( void * pasteboardRef, const wxDataFormat &dataFormat );
  26. // returns true if any of the accepted formats of this dataobj is in the pasteboard
  27. bool HasDataInPasteboard( void * pasteboardRef );
  28. bool GetFromPasteboard( void * pasteboardRef );
  29. #if wxOSX_USE_COCOA
  30. virtual void AddSupportedTypes( void* cfarray);
  31. #endif
  32. };
  33. #endif // _WX_MAC_DATAOBJ_H_