1. added wxEnhMetaFileXXX classes
2. fixed/added copy/paste for metafiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,6 +61,33 @@ wxDataObjectBase::~wxDataObjectBase()
|
||||
{
|
||||
}
|
||||
|
||||
bool wxDataObjectBase::IsSupported(const wxDataFormat& format,
|
||||
Direction dir) const
|
||||
{
|
||||
size_t nFormatCount = GetFormatCount(dir);
|
||||
if ( nFormatCount == 1 )
|
||||
{
|
||||
return format == GetPreferredFormat(dir);
|
||||
}
|
||||
else
|
||||
{
|
||||
wxDataFormat *formats = new wxDataFormat[nFormatCount];
|
||||
GetAllFormats(formats, dir);
|
||||
|
||||
size_t n;
|
||||
for ( n = 0; n < nFormatCount; n++ )
|
||||
{
|
||||
if ( formats[n] == format )
|
||||
break;
|
||||
}
|
||||
|
||||
delete [] formats;
|
||||
|
||||
// found?
|
||||
return n < nFormatCount;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxDataObjectComposite
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user