1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/wince/helpwce.h
3 // Purpose: Help system: Windows CE help implementation
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPWCE_H_
13 #define _WX_HELPWCE_H_
17 #include "wx/helpbase.h"
19 class WXDLLEXPORT wxWinceHelpController
: public wxHelpControllerBase
22 wxWinceHelpController(wxWindow
* parentWindow
= NULL
): wxHelpControllerBase(parentWindow
) {}
23 virtual ~wxWinceHelpController() {}
25 // Must call this to set the filename
26 virtual bool Initialize(const wxString
& file
);
28 // If file is "", reloads file given in Initialize
29 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
30 virtual bool DisplayContents();
31 virtual bool DisplaySection(int sectionNo
);
32 virtual bool DisplaySection(const wxString
& section
);
33 virtual bool DisplayBlock(long blockNo
);
34 virtual bool DisplayContextPopup(int contextId
);
35 virtual bool DisplayTextPopup(const wxString
& text
, const wxPoint
& pos
);
36 virtual bool KeywordSearch(const wxString
& k
,
37 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
40 wxString
GetHelpFile() const { return m_helpFile
; }
43 // Append extension if necessary.
44 wxString
GetValidFilename(const wxString
& file
) const;
46 // View topic, or just the HTML file
47 bool ViewURL(const wxString
& topic
= wxEmptyString
);
52 DECLARE_CLASS(wxWinceHelpController
)
55 #endif // wxUSE_MS_HTML_HELP