X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..e06b0afba5b1acf36241d33982d5d88cccefa2e8:/include/wx/mac/carbon/dataobj2.h?ds=sidebyside diff --git a/include/wx/mac/carbon/dataobj2.h b/include/wx/mac/carbon/dataobj2.h index 0708558a98..b647d2a465 100644 --- a/include/wx/mac/carbon/dataobj2.h +++ b/include/wx/mac/carbon/dataobj2.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: os2/dataobj2.h +// Name: mac/dataobj2.h // Purpose: declaration of standard wxDataObjectSimple-derived classes // Author: David Webster (adapted from Robert Roebling's gtk port // Modified by: @@ -9,8 +9,8 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifndef _WX_GTK_DATAOBJ2_H_ -#define _WX_GTK_DATAOBJ2_H_ +#ifndef _WX_MAC_DATAOBJ2_H_ +#define _WX_MAC_DATAOBJ2_H_ // ---------------------------------------------------------------------------- // wxBitmapDataObject is a specialization of wxDataObject for bitmaps @@ -24,7 +24,7 @@ public: wxBitmapDataObject(const wxBitmap& bitmap); // destr - ~wxBitmapDataObject(); + virtual ~wxBitmapDataObject(); // override base class virtual to update PNG data too virtual void SetBitmap(const wxBitmap& bitmap); @@ -68,7 +68,7 @@ public: // ---------------------------------- void AddFile( const wxString &filename ); - + virtual size_t GetDataSize() const; virtual bool GetDataHere(void *buf) const; virtual bool SetData(size_t len, const void *buf); @@ -85,7 +85,10 @@ public: { return SetData(len, buf); } +protected: + // translates the filenames stored into a utf8 encoded char stream + void GetFileNames(wxCharBuffer &buf) const ; }; -#endif // _WX_GTK_DATAOBJ2_H_ +#endif // _WX_MAC_DATAOBJ2_H_