X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1737035fb878c6fd62c69057a027280d60be1d5a..124031d5170ab9a6b7db3e4314b7ab00e9ff92b5:/include/wx/msw/ole/dataobj.h diff --git a/include/wx/msw/ole/dataobj.h b/include/wx/msw/ole/dataobj.h index cdad68606c..0f952805d1 100644 --- a/include/wx/msw/ole/dataobj.h +++ b/include/wx/msw/ole/dataobj.h @@ -6,11 +6,11 @@ // Created: 10.05.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// -#ifndef _OLEDATAOBJ_H -#define _OLEDATAOBJ_H +#ifndef _WX_OLEDATAOBJ_H +#define _WX_OLEDATAOBJ_H // ---------------------------------------------------------------------------- // forward declarations @@ -51,10 +51,8 @@ public: Max }; - #ifdef __DEBUG__ - // function to return symbolic name of clipboard format (debug messages) - static const char *GetFormatName(wxDataFormat format); - #endif + // function to return symbolic name of clipboard format (debug messages) + static const char *GetFormatName(wxDataFormat format); // ctor & dtor wxDataObject(); @@ -67,7 +65,7 @@ public: // StdFormat enumerations or a user-defined format) virtual bool IsSupportedFormat(wxDataFormat format) const = 0; // get the (total) size of data - virtual uint GetDataSize() const = 0; + virtual size_t GetDataSize() const = 0; // copy raw data to provided pointer virtual void GetDataHere(void *pBuf) const = 0; @@ -92,10 +90,10 @@ public: // implement base class pure virtuals virtual wxDataFormat GetPreferredFormat() const - { return wxDataObject::Text; } + { return (wxDataFormat) wxDataObject::Text; } virtual bool IsSupportedFormat(wxDataFormat format) const { return format == wxDataObject::Text || format == wxDataObject::Locale; } - virtual uint GetDataSize() const + virtual size_t GetDataSize() const { return m_strText.Len() + 1; } // +1 for trailing '\0'of course virtual void GetDataHere(void *pBuf) const { memcpy(pBuf, m_strText.c_str(), GetDataSize()); } @@ -108,4 +106,4 @@ private: // @@@ TODO: wx{Bitmap|Metafile|...}DataObject // ---------------------------------------------------------------------------- -#endif //_OLEDATAOBJ_H \ No newline at end of file +#endif //_WX_OLEDATAOBJ_H