class wxFileDataObject;
//-------------------------------------------------------------------------
-// wxDataFormat
+// wxDataType (internal)
//-------------------------------------------------------------------------
enum wxDataType
wxDF_PRIVATE = 20
};
+//-------------------------------------------------------------------------
+// wxDataFormat (internal)
+//-------------------------------------------------------------------------
+
class wxDataFormat : public wxObject
{
DECLARE_CLASS( wxDataFormat )
wxDataFormat();
wxDataFormat( wxDataType type );
wxDataFormat( const wxString &id );
+ wxDataFormat( const wxChar *id );
wxDataFormat( wxDataFormat &format );
wxDataFormat( const GdkAtom atom );
wxDataType GetType() const;
wxString GetId() const;
- void SetId( const wxString &id );
+ void SetId( const wxChar *id );
GdkAtom GetAtom();
-
+ void SetAtom(GdkAtom atom) { m_hasAtom = TRUE; m_atom = atom; }
private:
wxDataType m_type;
};
//-------------------------------------------------------------------------
-// wxDataBroker handles data and ormat negotiation for clipboard and DnD
+// wxDataBroker (internal)
//-------------------------------------------------------------------------
class wxDataBroker : public wxObject