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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user