class wxFileDataObject;
//-------------------------------------------------------------------------
-// wxDataFormat
+// wxDataType (internal)
//-------------------------------------------------------------------------
enum wxDataType
wxDF_PRIVATE = 20
};
+//-------------------------------------------------------------------------
+// wxDataFormat (internal)
+//-------------------------------------------------------------------------
+
class wxDataFormat : public wxObject
{
DECLARE_CLASS( wxDataFormat )
public:
+ wxDataFormat();
wxDataFormat( wxDataType type );
wxDataFormat( const wxString &id );
wxDataFormat( wxDataFormat &format );
wxDataFormat( const GdkAtom atom );
-
- int GetType() const;
+
+ void SetType( wxDataType type );
+ wxDataType GetType() const;
+
wxString GetId() const;
void SetId( const wxString &id );
+
GdkAtom GetAtom();
private:
- int m_type;
- wxString m_id;
- bool m_hasAtom;
- GdkAtom m_atom;
+ wxDataType m_type;
+ wxString m_id;
+ bool m_hasAtom;
+ GdkAtom m_atom;
};
//-------------------------------------------------------------------------
-// wxDataBroker handles data and ormat negotiation for clipboard and DnD
+// wxDataBroker (internal)
//-------------------------------------------------------------------------
class wxDataBroker : public wxObject
/* implementation */
- virtual wxDataFormat &GetFormat() const;
+ wxDataFormat &GetFormat();
+
+ wxDataType GetFormatType() const;
+ wxString GetFormatId() const;
+ GdkAtom GetFormatAtom() const;
- wxDataFormat *m_format;
+ wxDataFormat m_format;
};
//----------------------------------------------------------------------------