git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17072
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
// ctors
// a normal item
public:
// ctors
// a normal item
- wxFileTypeInfo(const char *mimeType,
- const char *openCmd,
- const char *printCmd,
- const char *desc,
+ wxFileTypeInfo(const wxChar *mimeType,
+ const wxChar *openCmd,
+ const wxChar *printCmd,
+ const wxChar *desc,
// the other parameters form a NULL terminated list of
// extensions
...);
// the other parameters form a NULL terminated list of
// extensions
...);
#if wxUSE_MIMETYPE
gs_FSMimeFallbacks = new wxFileTypeInfo[6];
gs_FSMimeFallbacks[0] =
#if wxUSE_MIMETYPE
gs_FSMimeFallbacks = new wxFileTypeInfo[6];
gs_FSMimeFallbacks[0] =
- wxFileTypeInfo("image/jpeg",
- "",
- "",
- "JPEG image (from fallback)",
- "jpg", "jpeg", NULL);
+ wxFileTypeInfo(_T("image/jpeg"),
+ _T(""),
+ _T(""),
+ _T("JPEG image (from fallback)"),
+ _T("jpg"), _T("jpeg"), NULL);
- wxFileTypeInfo("image/gif",
- "",
- "",
- "GIF image (from fallback)",
- "gif", NULL);
+ wxFileTypeInfo(_T("image/gif"),
+ _T(""),
+ _T(""),
+ _T("GIF image (from fallback)"),
+ _T("gif"), NULL);
- wxFileTypeInfo("image/png",
- "",
- "",
- "PNG image (from fallback)",
- "png", NULL);
+ wxFileTypeInfo(_T("image/png"),
+ _T(""),
+ _T(""),
+ _T("PNG image (from fallback)"),
+ _T("png"), NULL);
- wxFileTypeInfo("image/bmp",
- "",
- "",
- "windows bitmap image (from fallback)",
- "bmp", NULL);
+ wxFileTypeInfo(_T("image/bmp"),
+ _T(""),
+ _T(""),
+ _T("windows bitmap image (from fallback)"),
+ _T("bmp"), NULL);
- wxFileTypeInfo("text/html",
- "",
- "",
- "HTML document (from fallback)",
- "htm", "html", NULL);
+ wxFileTypeInfo(_T("text/html"),
+ _T(""),
+ _T(""),
+ _T("HTML document (from fallback)"),
+ _T("htm"), _T("html"), NULL);
gs_FSMimeFallbacks[5] =
// must terminate the table with this!
wxFileTypeInfo();
gs_FSMimeFallbacks[5] =
// must terminate the table with this!
wxFileTypeInfo();
// wxFileTypeInfo
// ----------------------------------------------------------------------------
// wxFileTypeInfo
// ----------------------------------------------------------------------------
-wxFileTypeInfo::wxFileTypeInfo(const char *mimeType,
- const char *openCmd,
- const char *printCmd,
- const char *desc,
+wxFileTypeInfo::wxFileTypeInfo(const wxChar *mimeType,
+ const wxChar *openCmd,
+ const wxChar *printCmd,
+ const wxChar *desc,
...)
: m_mimeType(mimeType),
m_openCmd(openCmd),
...)
: m_mimeType(mimeType),
m_openCmd(openCmd),
- const char *ext = va_arg(argptr, const char *);
+ const wxChar *ext = va_arg(argptr, const wxChar *);
if ( !ext )
{
// NULL terminates the list
if ( !ext )
{
// NULL terminates the list