entryName is a pascal string - need to convert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton 2005-04-17 16:38:31 +00:00
parent 5051821172
commit 0be2eb2f9d

View File

@ -482,6 +482,19 @@ wxString wxFileTypeImpl::GetCommand(const wxString& verb) const
}
#endif //!DARWIN
bool wxFileTypeImpl::GetDescription(wxString *desc) const
{
wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") );
ICMapEntry entry;
ICGetMapEntry( (ICInstance) m_manager->m_hIC,
(Handle) m_manager->m_hDatabase,
m_lIndex, &entry);
*desc = wxMacMakeStringFromPascal(entry.entryName);
return true;
}
bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
{
wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") );
@ -532,19 +545,6 @@ bool wxFileTypeImpl::GetIcon(wxIconLocation *WXUNUSED(icon)) const
return FALSE;
}
bool wxFileTypeImpl::GetDescription(wxString *desc) const
{
wxASSERT_MSG( m_manager != NULL , wxT("Bad wxFileType") );
ICMapEntry entry;
ICGetMapEntry( (ICInstance) m_manager->m_hIC,
(Handle) m_manager->m_hDatabase,
m_lIndex, &entry);
*desc = wxString((char*)entry.entryName, wxConvLocal);
return true;
}
size_t wxFileTypeImpl::GetAllCommands(wxArrayString * verbs, wxArrayString * commands,
const wxFileType::MessageParameters& params) const
{