1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Help system: WinHelp implementation
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPWIN_H_
13 #define _WX_HELPWIN_H_
19 #include "wx/helpbase.h"
21 class WXDLLEXPORT wxWinHelpController
: public wxHelpControllerBase
23 DECLARE_CLASS(wxWinHelpController
)
26 wxWinHelpController(wxWindow
* parentWindow
= NULL
): wxHelpControllerBase(parentWindow
) {}
27 ~wxWinHelpController() {}
29 // Must call this to set the filename
30 virtual bool Initialize(const wxString
& file
);
31 virtual bool Initialize(const wxString
& file
, int WXUNUSED(server
) ) { return Initialize( file
); }
33 // If file is "", reloads file given in Initialize
34 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
35 virtual bool DisplayContents();
36 virtual bool DisplaySection(int sectionNo
);
37 virtual bool DisplaySection(const wxString
& section
) { return KeywordSearch(section
); }
38 virtual bool DisplayBlock(long blockNo
);
39 virtual bool DisplayContextPopup(int contextId
);
40 virtual bool KeywordSearch(const wxString
& k
,
41 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
44 inline wxString
GetHelpFile() const { return m_helpFile
; }
47 // Append extension if necessary.
48 wxString
GetValidFilename(const wxString
& file
) const;