- if (!g_textAtom) g_textAtom = XInternAtom( (Display*) wxGetDisplay(), "STRING", FALSE );
- m_type = format.GetType();
- m_id = format.GetId();
- m_hasAtom = TRUE;
- m_atom = ((wxDataFormat &)format).GetAtom(); // const_cast
-}
-
-wxDataFormat::wxDataFormat( const Atom atom )
-{
- if (!g_textAtom) g_textAtom = XInternAtom( (Display*) wxGetDisplay(), "STRING", FALSE );
- m_hasAtom = TRUE;
-
- m_atom = atom;
-
- if (m_atom == g_textAtom)
- {
- m_type = wxDF_TEXT;
- } else
-/*
- if (m_atom == GDK_TARGET_BITMAP)
- {
- m_type = wxDF_BITMAP;
- } else
-*/
- {
- m_type = wxDF_PRIVATE;
- m_id = XGetAtomName( (Display*) wxGetDisplay(), m_atom );
-
- if (m_id == wxT("file:ALL"))
- {
- m_type = wxDF_FILENAME;
- }
- }