-void wxDataBroker::Add( wxDataObject *dataObject, bool preferred )
-{
- if (preferred) m_preferred = m_dataObjects.GetCount();
- m_dataObjects.Append( dataObject );
-}
-
-size_t wxDataBroker::GetFormatCount() const
-{
- return m_dataObjects.GetCount();
-}
-
-wxDataFormat &wxDataBroker::GetPreferredFormat() const
-{
- wxNode *node = m_dataObjects.Nth( m_preferred );
-
- wxASSERT( node );
-
- wxDataObject* data_obj = (wxDataObject*)node->Data();
-
- return data_obj->GetFormat();
-}
-
-wxDataFormat &wxDataBroker::GetNthFormat( size_t nth ) const
-{
- wxNode *node = m_dataObjects.Nth( nth );
-
- wxASSERT( node );
-
- wxDataObject* data_obj = (wxDataObject*)node->Data();
-
- return data_obj->GetFormat();
-}
-
-bool wxDataBroker::IsSupportedFormat( wxDataFormat &format ) const
-{
- wxNode *node = m_dataObjects.First();
- while (node)
- {
- wxDataObject *dobj = (wxDataObject*)node->Data();
-
- if (dobj->GetFormat().GetAtom() == format.GetAtom())
- {
- return TRUE;
- }
-
- node = node->Next();
- }
-
- return FALSE;
-}
-
-size_t wxDataBroker::GetSize( wxDataFormat& format ) const