Enough wxBitmapDataObject implementation to work with wxClipboard

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Brian Macy 1999-04-17 19:46:57 +00:00
parent e19291405f
commit 41618278a6

View File

@ -131,17 +131,15 @@ public:
virtual wxDataFormat GetFormat() const { return wxDF_BITMAP; }
/* ??
// implement base class pure virtuals
virtual wxDataFormat GetPreferredFormat() const
{ return (wxDataFormat) wxDataObject::Text; }
{ return (wxDataFormat) wxDataObject::Bitmap; }
virtual bool IsSupportedFormat(wxDataFormat format) const
{ return format == wxDataObject::Text || format == wxDataObject::Locale; }
{ return format == wxDataObject::Bitmap; }
virtual size_t GetDataSize() const
{ return m_strText.Len() + 1; } // +1 for trailing '\0'of course
{ wxASSERT(false); return 0; } // BEMIMP
virtual void GetDataHere(void *pBuf) const
{ memcpy(pBuf, m_strText.c_str(), GetDataSize()); }
*/
{ wxASSERT(false); } // BEMIMP
private:
wxBitmap m_bitmap;