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