/////////////////////////////////////////////////////////////////////////////
-// Name: helpwce.h
+// Name: src/msw/wince/helpwce.cpp
// Purpose: Help system: Windows CE help implementation
// Author: Julian Smart
// Modified by:
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "helpwce.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/msw/wince/helpwce.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/intl.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/missing.h"
IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase)
bool wxWinceHelpController::LoadFile(const wxString& file)
{
- if (!file.IsEmpty())
+ if (!file.empty())
m_helpFile = file;
return true;
}
wxSplitPath(file, & path, & name, & ext);
wxString fullName;
- if (path.IsEmpty())
+ if (path.empty())
fullName = name + wxT(".htm");
else if (path.Last() == wxT('\\'))
fullName = path + name + wxT(".htm");
// View URL
bool wxWinceHelpController::ViewURL(const wxString& topic)
{
- if (m_helpFile.IsEmpty()) return false;
+ if (m_helpFile.empty()) return false;
wxString url( wxT("file:") + GetValidFilename(m_helpFile) );
- if (!topic.IsEmpty())
+ if (!topic.empty())
url = url + wxT("#") + topic;
return CreateProcess(wxT("peghelp.exe"),
}
#endif // wxUSE_HELP
-