corrections for modifications made to common mimetype code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2001-04-28 13:31:46 +00:00
parent 6523de8a56
commit f040060e2f
3 changed files with 103 additions and 12 deletions

View File

@@ -46,6 +46,15 @@
// in case we're compiling in non-GUI mode
class WXDLLEXPORT wxIcon;
bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt)
{
return FALSE;
}
bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon, int index)
{
return FALSE;
}
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
{
@@ -83,7 +92,7 @@ bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
return FALSE;
}
bool wxFileTypeImpl::GetIcon(wxIcon *icon) const
bool wxFileTypeImpl::GetIcon(wxIcon *icon, wxString *sCommand, int *iIndex) const
{
// no such file type or no value or incorrect icon entry
return FALSE;
@@ -94,9 +103,24 @@ bool wxFileTypeImpl::GetDescription(wxString *desc) const
return FALSE;
}
bool wxFileTypeImpl::Unassociate()
size_t
wxFileTypeImpl::GetAllCommands(wxArrayString * verbs, wxArrayString * commands,
const wxFileType::MessageParameters& params) const
{
return FALSE;
wxFAIL_MSG( _T("TODO") );
return 0;
}
void
wxMimeTypesManagerImpl::Initialize(int mailcapStyles, const wxString& extraDir)
{
wxFAIL_MSG( _T("TODO") );
}
void
wxMimeTypesManagerImpl::ClearData()
{
wxFAIL_MSG( _T("TODO") );
}
// extension -> file type
@@ -194,3 +218,10 @@ wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
return NULL;
}
bool
wxMimeTypesManagerImpl::Unassociate(wxFileType *ft)
{
return FALSE;
}