1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Help system: wxHelp implementation
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 /* sccsid[] = "@(#)wx_help.h 1.2 5/9/94" */
18 #pragma interface "helpxlp.h"
26 #include "wx/helpbase.h"
31 // Or whatever it'll be called
32 #include "wx/ipctcp.h"
35 class WXDLLEXPORT wxXLPHelpController
;
37 // Connection class for implementing the connection between the
38 // wxHelp process and the application
39 class WXDLLEXPORT wxXLPHelpConnection
: public
48 friend class wxXLPHelpController
;
50 DECLARE_DYNAMIC_CLASS(wxXLPHelpConnection
)
54 wxXLPHelpConnection(wxXLPHelpController
*instance
);
55 bool OnDisconnect(void);
58 wxXLPHelpController
*helpInstance
;
61 // Connection class for implementing the client process
62 // controlling the wxHelp process
63 class WXDLLEXPORT wxXLPHelpClient
: public
72 DECLARE_CLASS(wxXLPHelpClient
)
74 friend class WXDLLEXPORT wxXLPHelpController
;
76 wxXLPHelpClient(wxXLPHelpController
* c
) { m_controller
= c
; }
78 wxConnectionBase
*OnMakeConnection(void)
79 { return new wxXLPHelpConnection(m_controller
);
82 wxXLPHelpController
* m_controller
;
85 // An application can have one or more instances of wxHelp,
86 // represented by an object of this class.
87 // Nothing happens on initial creation; the application
88 // must call a member function to display help.
89 // If the instance of wxHelp is already active, that instance
90 // will be used for subsequent help.
92 class WXDLLEXPORT wxXLPHelpController
: public wxHelpControllerBase
94 friend class WXDLLEXPORT wxXLPHelpConnection
;
95 DECLARE_CLASS(wxXLPHelpController
)
98 wxXLPHelpController(void);
99 ~wxXLPHelpController(void);
101 // Must call this to set the filename and server name
102 virtual bool Initialize(const wxString
& file
, int server
= -1);
103 // If file is "", reloads file given in Initialize
104 virtual bool LoadFile(const wxString
& file
= "");
105 virtual bool DisplayContents(void);
106 virtual bool DisplaySection(int sectionNo
);
107 virtual bool DisplayBlock(long blockNo
);
108 virtual bool KeywordSearch(const wxString
& k
);
110 virtual bool Quit(void);
111 virtual void OnQuit(void);
121 wxXLPHelpConnection
* helpConnection
;
122 wxXLPHelpClient helpClient
;