clipbrd.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/clipbrd.h
  3. // Purpose: wxClipboard
  4. // Author: David Elliott <dfe@cox.net>
  5. // Modified by:
  6. // Created: 2003/07/23
  7. // Copyright: (c) 2003 David Elliott
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef __WX_COCOA_CLIPBRD_H__
  11. #define __WX_COCOA_CLIPBRD_H__
  12. #include "wx/dataobj.h"
  13. //=========================================================================
  14. // wxClipboard
  15. //=========================================================================
  16. class wxClipboard : public wxClipboardBase
  17. {
  18. DECLARE_DYNAMIC_CLASS(wxClipboard)
  19. public:
  20. wxClipboard();
  21. virtual ~wxClipboard();
  22. // open the clipboard before SetData() and GetData()
  23. virtual bool Open();
  24. // close the clipboard after SetData() and GetData()
  25. virtual void Close();
  26. // query whether the clipboard is opened
  27. virtual bool IsOpened() const;
  28. // set the clipboard data. all other formats will be deleted.
  29. virtual bool SetData( wxDataObject *data );
  30. // add to the clipboard data.
  31. virtual bool AddData( wxDataObject *data );
  32. // ask if data in correct format is available
  33. virtual bool IsSupported( const wxDataFormat& format );
  34. // fill data with data on the clipboard (if available)
  35. virtual bool GetData( wxDataObject& data );
  36. // clears wxTheClipboard and the system's clipboard if possible
  37. virtual void Clear();
  38. };
  39. #endif //__WX_COCOA_CLIPBRD_H__