better file data support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: os2/dataobj2.h
|
// Name: mac/dataobj2.h
|
||||||
// Purpose: declaration of standard wxDataObjectSimple-derived classes
|
// Purpose: declaration of standard wxDataObjectSimple-derived classes
|
||||||
// Author: David Webster (adapted from Robert Roebling's gtk port
|
// Author: David Webster (adapted from Robert Roebling's gtk port
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef _WX_GTK_DATAOBJ2_H_
|
#ifndef _WX_MAC_DATAOBJ2_H_
|
||||||
#define _WX_GTK_DATAOBJ2_H_
|
#define _WX_MAC_DATAOBJ2_H_
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxBitmapDataObject is a specialization of wxDataObject for bitmaps
|
// wxBitmapDataObject is a specialization of wxDataObject for bitmaps
|
||||||
@@ -68,7 +68,7 @@ public:
|
|||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
void AddFile( const wxString &filename );
|
void AddFile( const wxString &filename );
|
||||||
|
|
||||||
virtual size_t GetDataSize() const;
|
virtual size_t GetDataSize() const;
|
||||||
virtual bool GetDataHere(void *buf) const;
|
virtual bool GetDataHere(void *buf) const;
|
||||||
virtual bool SetData(size_t len, const void *buf);
|
virtual bool SetData(size_t len, const void *buf);
|
||||||
@@ -85,7 +85,10 @@ public:
|
|||||||
{
|
{
|
||||||
return SetData(len, buf);
|
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_
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user