- return m_id;
-}
-
-void wxDataFormat::SetId( const wxChar *id )
-{
- m_type = wxDF_PRIVATE;
- m_id = id;
- m_hasAtom = FALSE;
-}
-
-Atom wxDataFormat::GetAtom()
-{
- if (!m_hasAtom)
- {
- m_hasAtom = TRUE;
-
- if (m_type == wxDF_TEXT)
- {
- m_atom = g_textAtom;
- }
- else
-/*
- if (m_type == wxDF_BITMAP)
- {
- m_atom = GDK_TARGET_BITMAP;
- }
- else
-*/
- if (m_type == wxDF_PRIVATE)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), MBSTRINGCAST m_id.mbc_str(), FALSE );
- }
- else
- if (m_type == wxDF_FILENAME)
- {
- m_atom = XInternAtom( (Display*) wxGetDisplay(), "file:ALL", FALSE );
- }
- else
- {
- m_hasAtom = FALSE;
- m_atom = (Atom) 0;
- }
- }
-
- return m_atom;
-}
-
-//-------------------------------------------------------------------------
-// wxDataObject
-//-------------------------------------------------------------------------
-
-IMPLEMENT_ABSTRACT_CLASS( wxDataObject, wxObject )
-
-wxDataObject::wxDataObject()
-{
-}
-
-wxDataObject::~wxDataObject()
-{
-}
-
-wxDataFormat &wxDataObject::GetFormat()
-{
- return m_format;
-}
-
-wxDataFormatId wxDataObject::GetFormatType() const
-{
- return m_format.GetType();
-}
-
-wxString wxDataObject::GetFormatId() const
-{
- return m_format.GetId();
-}
-
-Atom wxDataObject::GetFormatAtom() const
-{
- Atom ret = ((wxDataObject*) this)->m_format.GetAtom();