]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: helpchm.h | |
3 | // Purpose: Help system: MS HTML Help implementation | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 16/04/2000 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
59af881e | 9 | // Licence: wxWindows licence |
f6bcfd97 BP |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_HELPCHM_H_ | |
13 | #define _WX_HELPCHM_H_ | |
14 | ||
3295e238 | 15 | #if wxUSE_MS_HTML_HELP |
f6bcfd97 BP |
16 | |
17 | #include "wx/helpbase.h" | |
18 | ||
3295e238 | 19 | class WXDLLEXPORT wxCHMHelpController : public wxHelpControllerBase |
f6bcfd97 | 20 | { |
f6bcfd97 | 21 | public: |
3db52265 | 22 | wxCHMHelpController(wxWindow* parentWindow = NULL): wxHelpControllerBase(parentWindow) { } |
3295e238 VZ |
23 | virtual ~wxCHMHelpController(); |
24 | ||
f6bcfd97 BP |
25 | // Must call this to set the filename |
26 | virtual bool Initialize(const wxString& file); | |
0e4acbd4 | 27 | virtual bool Initialize(const wxString& file, int WXUNUSED(server) ) { return Initialize( file ); } |
3295e238 | 28 | |
f6bcfd97 BP |
29 | // If file is "", reloads file given in Initialize |
30 | virtual bool LoadFile(const wxString& file = wxEmptyString); | |
31 | virtual bool DisplayContents(); | |
32 | virtual bool DisplaySection(int sectionNo); | |
33 | virtual bool DisplaySection(const wxString& section); | |
34 | virtual bool DisplayBlock(long blockNo); | |
5100cabf JS |
35 | virtual bool DisplayContextPopup(int contextId); |
36 | virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos); | |
69b5cec2 VS |
37 | virtual bool KeywordSearch(const wxString& k, |
38 | wxHelpSearchMode mode = wxHELP_SEARCH_ALL); | |
f6bcfd97 BP |
39 | virtual bool Quit(); |
40 | ||
3295e238 VZ |
41 | wxString GetHelpFile() const { return m_helpFile; } |
42 | ||
f6bcfd97 BP |
43 | protected: |
44 | // Append extension if necessary. | |
45 | wxString GetValidFilename(const wxString& file) const; | |
3295e238 | 46 | |
f6bcfd97 BP |
47 | protected: |
48 | wxString m_helpFile; | |
3295e238 VZ |
49 | |
50 | DECLARE_CLASS(wxCHMHelpController) | |
f6bcfd97 BP |
51 | }; |
52 | ||
3295e238 VZ |
53 | #endif // wxUSE_MS_HTML_HELP |
54 | ||
f6bcfd97 BP |
55 | #endif |
56 | // _WX_HELPCHM_H_ |