1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Help system base classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPBASEH__
13 #define _WX_HELPBASEH__
16 #pragma interface "helpbase.h"
23 // Defines the API for help controllers
24 class WXDLLEXPORT wxHelpControllerBase
: public wxObject
26 DECLARE_CLASS(wxHelpControllerBase
)
29 inline wxHelpControllerBase(void) {}
30 inline ~wxHelpControllerBase(void) {};
32 // Must call this to set the filename and server name.
33 // server is only required when implementing TCP/IP-based
35 virtual bool Initialize(const wxString
& WXUNUSED(file
), int WXUNUSED(server
) ) { return FALSE
; };
36 virtual bool Initialize(const wxString
& file
) = 0;
38 // If file is "", reloads file given in Initialize
39 virtual bool LoadFile(const wxString
& file
= "") = 0;
40 virtual bool DisplayContents(void) = 0;
41 virtual bool DisplaySection(int sectionNo
) = 0;
42 virtual bool DisplayBlock(long blockNo
) = 0;
43 virtual bool KeywordSearch(const wxString
& k
) = 0;
45 virtual bool Quit(void) = 0;
46 virtual void OnQuit(void) {};