wxString wxDataFormat::GetId() const { wxCHECK_MSG( !IsStandard(), wxEmptyString, wxT("name of predefined format cannot be retrieved") ); return m_id; }
bool wxDataFormat::operator==(const wxDataFormat& format) const { if (IsStandard() || format.IsStandard()) return ( format.m_type == m_type ); else return ( UTTypeConformsTo( (CFStringRef) m_format , (CFStringRef) format.m_format ) ); }
wxString wxDataFormat::GetId() const { static const int max = 256; wxString s; wxCHECK_MSG( !IsStandard(), s, wxT("name of predefined format cannot be retrieved") ); int len = ::GetClipboardFormatName(m_format, wxStringBuffer(s, max), max); if ( !len ) { wxLogError(_("The clipboard format '%d' doesn't exist."), m_format); return wxEmptyString; } return s; }