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

@@ -176,7 +176,8 @@ public:
public:
// ctors
MessageParameters() { }
MessageParameters(const wxString& filename, const wxString& mimetype)
MessageParameters(const wxString& filename,
const wxString& mimetype = _T(""))
: m_filename(filename), m_mimetype(mimetype) { }
// accessors (called by GetOpenCommand)
@@ -221,6 +222,9 @@ public:
// get the command to execute the file of given type
bool GetOpenCommand(wxString *openCmd,
const MessageParameters& params) const;
// a simpler to use version of GetOpenCommand() -- it only takes the
// filename and returns an empty string on failure
wxString GetOpenCommand(const wxString& filename) const;
// get the command to print the file of given type
bool GetPrintCommand(wxString *printCmd,
const MessageParameters& params) const;