#if wxUSE_DATAOBJ
+#include "wx/dataobj.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/debug.h"
#endif
-#include "wx/dataobj.h"
-
// ----------------------------------------------------------------------------
// lists
// ----------------------------------------------------------------------------
wxDataObjectComposite::wxDataObjectComposite()
{
m_preferred = 0;
+ m_receivedFormat = wxFormatInvalid;
}
wxDataObjectComposite::~wxDataObjectComposite()
m_dataObjects.Append( dataObject );
}
+wxDataFormat wxDataObjectComposite::GetReceivedFormat() const
+{
+ return m_receivedFormat;
+}
+
wxDataFormat
wxDataObjectComposite::GetPreferredFormat(Direction WXUNUSED(dir)) const
{
wxCHECK_MSG( dataObj, false,
wxT("unsupported format in wxDataObjectComposite"));
+ m_receivedFormat = format;
return dataObj->SetData( len, buf );
}