1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/helpwin.h
3 // Purpose: Help system: native implementation for your system.
4 // Author: David Webster
7 // Copyright: (c) David Webster
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_CLASS(wxWinHelpController
)
25 wxWinHelpController();
26 virtual ~wxWinHelpController();
28 // Must call this to set the filename and server name
29 virtual bool Initialize(const wxString
& file
);
31 // If file is "", reloads file given in Initialize
32 virtual bool LoadFile(const wxString
& file
= wxEmptyString
);
33 virtual bool DisplayContents();
34 virtual bool DisplaySection(int sectionNo
);
35 virtual bool DisplayBlock(long blockNo
);
36 virtual bool KeywordSearch(const wxString
& k
,
37 wxHelpSearchMode mode
= wxHELP_SEARCH_ALL
);
40 virtual void OnQuit();
42 inline wxString
GetHelpFile() const { return m_helpFile
; }
47 // virtual function hiding supression :: do not use
48 bool Initialize(const wxString
& rFile
, int WXUNUSED(nServer
) ) { return(Initialize(rFile
)); }
49 bool DisplaySection(const wxString
& rSection
) { return wxHelpControllerBase::DisplaySection(rSection
); }