added a more convenient version of wxFileType::GetOpenCommand()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-08-05 18:49:38 +00:00
parent 401eb3dec2
commit 0532a25881
3 changed files with 37 additions and 12 deletions

View File

@@ -328,6 +328,18 @@ wxFileType::GetOpenCommand(wxString *openCmd,
return m_impl->GetOpenCommand(openCmd, params);
}
wxString wxFileType::GetOpenCommand(const wxString& filename) const
{
wxString cmd;
if ( !GetOpenCommand(&cmd, filename) )
{
// return empty string to indicate an error
cmd.clear();
}
return cmd;
}
bool
wxFileType::GetPrintCommand(wxString *printCmd,
const wxFileType::MessageParameters& params) const