1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Help system: MS HTML Help implementation
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPCHM_H_
13 #define _WX_HELPCHM_H_
16 #pragma interface "helpchm.h"
19 #if wxUSE_MS_HTML_HELP
21 #include "wx/helpbase.h"
23 class WXDLLEXPORT wxCHMHelpController
: public wxHelpControllerBase
26 wxCHMHelpController() { }
27 virtual ~wxCHMHelpController();
29 // Must call this to set the filename
30 virtual bool Initialize(const wxString
& file
);
32 // If file is "", reloads file given in Initialize
33 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
34 virtual bool DisplayContents();
35 virtual bool DisplaySection(int sectionNo
);
36 virtual bool DisplaySection(const wxString
& section
);
37 virtual bool DisplayBlock(long blockNo
);
38 virtual bool DisplayContextPopup(int contextId
);
39 virtual bool DisplayTextPopup(const wxString
& text
, const wxPoint
& pos
);
40 virtual bool KeywordSearch(const wxString
& k
);
43 wxString
GetHelpFile() const { return m_helpFile
; }
46 // Append extension if necessary.
47 wxString
GetValidFilename(const wxString
& file
) const;
52 DECLARE_CLASS(wxCHMHelpController
)
55 #endif // wxUSE_MS_HTML_HELP