1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/helpwin.h
3 // Purpose: Help system: native implementation for your system.
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPWIN_H_
13 #define _WX_HELPWIN_H_
19 #include "wx/helpbase.h"
21 class WXDLLIMPEXP_CORE wxWinHelpController
: public wxHelpControllerBase
23 DECLARE_CLASS(wxWinHelpController
)
26 wxWinHelpController();
27 virtual ~wxWinHelpController();
29 // Must call this to set the filename and server name
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 DisplayBlock(long blockNo
);
37 virtual bool KeywordSearch(const wxString
& k
,
38 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
41 virtual void OnQuit();
43 inline wxString
GetHelpFile() const { return m_helpFile
; }
48 // virtual function hiding supression :: do not use
49 bool Initialize(const wxString
& rFile
, int WXUNUSED(nServer
) ) { return(Initialize(rFile
)); }
50 bool DisplaySection(const wxString
& rSection
) { return wxHelpControllerBase::DisplaySection(rSection
); }