1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/helpwin.h
3 // Purpose: Help system: WinHelp implementation
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_HELPWIN_H_
12 #define _WX_HELPWIN_H_
18 #include "wx/helpbase.h"
20 class WXDLLIMPEXP_CORE wxWinHelpController
: public wxHelpControllerBase
22 DECLARE_DYNAMIC_CLASS(wxWinHelpController
)
25 wxWinHelpController(wxWindow
* parentWindow
= NULL
): wxHelpControllerBase(parentWindow
) {}
26 virtual ~wxWinHelpController() {}
28 // Must call this to set the filename
29 virtual bool Initialize(const wxString
& file
);
30 virtual bool Initialize(const wxString
& file
, int WXUNUSED(server
) ) { return Initialize( 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
) { return KeywordSearch(section
); }
37 virtual bool DisplayBlock(long blockNo
);
38 virtual bool DisplayContextPopup(int contextId
);
39 virtual bool KeywordSearch(const wxString
& k
,
40 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
43 inline wxString
GetHelpFile() const { return m_helpFile
; }
46 // Append extension if necessary.
47 wxString
GetValidFilename(const wxString
& file
) const;