// Created: 2003-07-12
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
bool wxWinceHelpController::Initialize(const wxString& filename)
{
m_helpFile = filename;
- return TRUE;
+ return true;
}
bool wxWinceHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
- return TRUE;
+ return true;
}
bool wxWinceHelpController::DisplayContents()
}
// Use context number
-bool wxWinceHelpController::DisplaySection(int section)
+bool wxWinceHelpController::DisplaySection(int WXUNUSED(section))
{
- return TRUE;
+ return true;
}
-bool wxWinceHelpController::DisplayContextPopup(int contextId)
+bool wxWinceHelpController::DisplayContextPopup(int WXUNUSED(contextId))
{
- return TRUE;
+ return true;
}
-bool wxWinceHelpController::DisplayTextPopup(const wxString& text, const wxPoint& pos)
+bool wxWinceHelpController::DisplayTextPopup(const wxString& WXUNUSED(text), const wxPoint& WXUNUSED(pos))
{
- return TRUE;
+ return true;
}
-bool wxWinceHelpController::DisplayBlock(long block)
+bool wxWinceHelpController::DisplayBlock(long WXUNUSED(block))
{
- return TRUE;
+ return true;
}
-bool wxWinceHelpController::KeywordSearch(const wxString& k,
- wxHelpSearchMode mode)
+bool wxWinceHelpController::KeywordSearch(const wxString& WXUNUSED(k),
+ wxHelpSearchMode WXUNUSED(mode))
{
- return TRUE;
+ return true;
}
bool wxWinceHelpController::Quit()
{
- return TRUE;
+ return true;
}
// Append extension if necessary.
// View URL
bool wxWinceHelpController::ViewURL(const wxString& topic)
{
- if (m_helpFile.IsEmpty()) return FALSE;
-
+ if (m_helpFile.IsEmpty()) return false;
+
wxString url( wxT("file:") + GetValidFilename(m_helpFile) );
if (!topic.IsEmpty())
url = url + wxT("#") + topic;