+void wxDataFormat::SetType( wxDataType type )
+{
+ m_type = type;
+
+ if (m_type == wxDF_TEXT)
+ {
+ m_id = _T("STRING");
+ }
+ else
+ if (m_type == wxDF_BITMAP)
+ {
+ m_id = _T("BITMAP");
+ }
+ else
+ if (m_type == wxDF_FILENAME)
+ {
+ m_id = _T("file:ALL");
+ }
+ else
+ {
+ wxFAIL_MSG( _T("invalid dataformat") );
+ }
+
+ m_hasAtom = FALSE;
+}
+
+wxDataType wxDataFormat::GetType() const