]> git.saurik.com Git - wxWidgets.git/blame - utils/helpview/src/remhelp.h
No changes, just fix a typo in a comment in docview event handling code.
[wxWidgets.git] / utils / helpview / src / remhelp.h
CommitLineData
2b5f62a0
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: remhelp.h
3// Purpose: Remote help controller class
4// Author: Eric Dowty
4fe30bce 5// Modified by:
2b5f62a0 6// Created: 2002-11-18
2b5f62a0
VZ
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
2b5f62a0
VZ
11#ifndef _WX_REMHELP_H_
12#define _WX_REMHELP_H_
13
14#include <wx/helpbase.h>
15#include <wx/ipc.h>
16#include <wx/html/helpctrl.h>
17
5bcc2e54 18class WXDLLIMPEXP_FWD_BASE wxConfigBase;
2b5f62a0
VZ
19
20class rhhcConnection : public wxConnection
21{
22public:
23 rhhcConnection(bool *isconn_a);
d3c7fc99 24 virtual ~rhhcConnection();
2b5f62a0
VZ
25
26 bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format);
27 bool OnDisconnect();
4fe30bce 28 bool *isconn_3;
2b5f62a0
VZ
29
30};
31
32class rhhcClient: public wxClient
33{
34public:
4fe30bce
WS
35 rhhcClient(bool *isconn_a);
36 //~rhhcClient( );
2b5f62a0 37 wxConnectionBase *OnMakeConnection();
4fe30bce 38 bool *isconn_2;
2b5f62a0
VZ
39};
40
41class wxRemoteHtmlHelpController : public wxHelpControllerBase
42{
4fe30bce 43 DECLARE_CLASS(wxRemoteHtmlHelpController)
2b5f62a0 44public:
4fe30bce 45 wxRemoteHtmlHelpController(int style = wxHF_DEFAULT_STYLE);
d3c7fc99 46 virtual ~wxRemoteHtmlHelpController();
4fe30bce
WS
47 void OnQuit(void);
48
49 void SetService(wxString& a_service);
50 void SetServer(wxString& a_appname); //could be wxHelpController::SetViewer
51
52 //standard wxHtmlHelpController functions
53 bool AddBook(const wxString& book, bool show_wait_msg = false);
54 void Display(const wxString& x);
55 void Display(const int id);
56 bool DisplayContents();
57 void DisplayIndex();
58 bool KeywordSearch(const wxString& keyword);
59 void SetTempDir(const wxString& path);
60 void SetTitleFormat(const wxString& format);
61
62 //dummies - config is in server
63 void UseConfig(wxConfigBase* config, const wxString& rootpath = wxEmptyString) {};
64 void ReadCustomization(wxConfigBase* cfg, wxString path = wxEmptyString) {};
65 void WriteCustomization(wxConfigBase* cfg, wxString path = wxEmptyString) {};
66
67 //virtuals from wxHelpControllerBase - not in wxHtmlHelpController
68 //won't compile without these
69 bool LoadFile(const class wxString &); //dummy
70 bool DisplaySection(int);
71 bool DisplayBlock(long);
72 bool Quit(void);
2b5f62a0
VZ
73
74private:
4fe30bce
WS
75 void OnExit(wxCommandEvent& event);
76 bool DoConnection();
77
78 rhhcConnection *m_connection;
79 rhhcClient *m_client;
80 wxProcess *m_process;
81
82 int m_pid;
83 int m_style;
84 wxString m_appname;
85 wxString m_service;
86 wxString m_windowname;
87 wxString m_book;
88 bool isconn_1;
2b5f62a0
VZ
89};
90
91#endif
4fe30bce 92 // _WX_REMHELP_H_