]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/helpwin.h
applied patch 103575 (more efficient wxString comparison)
[wxWidgets.git] / include / wx / os2 / helpwin.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: helpxxxx.h
fb9010ed
DW
3// Purpose: Help system: native implementation for your system.
4// Author: David Webster
0e320a79 5// Modified by:
fb9010ed 6// Created: 10/09/99
0e320a79 7// RCS-ID: $Id$
fb9010ed 8// Copyright: (c) David Webster
0e320a79
DW
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
fb9010ed
DW
12#ifndef _WX_HELPWIN_H_
13#define _WX_HELPWIN_H_
0e320a79 14
99f73df9 15#include "wx/wx.h"
d7e1a322
DW
16
17#if wxUSE_HELP
0e320a79
DW
18
19#include "wx/helpbase.h"
20
fb9010ed 21class WXDLLEXPORT wxWinHelpController: public wxHelpControllerBase
0e320a79 22{
fb9010ed 23 DECLARE_CLASS(wxWinHelpController)
0e320a79
DW
24
25 public:
fb9010ed
DW
26 wxWinHelpController();
27 ~wxWinHelpController();
0e320a79
DW
28
29 // Must call this to set the filename and server name
30 virtual bool Initialize(const wxString& file);
31
32 // If file is "", reloads file given in Initialize
33 virtual bool LoadFile(const wxString& file = "");
34 virtual bool DisplayContents();
35 virtual bool DisplaySection(int sectionNo);
36 virtual bool DisplayBlock(long blockNo);
37 virtual bool KeywordSearch(const wxString& k);
38
39 virtual bool Quit();
40 virtual void OnQuit();
41
42 inline wxString GetHelpFile() const { return m_helpFile; }
43
44protected:
45 wxString m_helpFile;
fb9010ed 46private:
f6bcfd97
BP
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); }
0e320a79
DW
50};
51
d7e1a322
DW
52#endif //wxUSE_HELP
53
0e320a79 54#endif
fb9010ed 55 // _WX_HELPWIN_H_