1
/////////////////////////////////////////////////////////////////////////////
3
// Purpose: Remote help controller class
7
// RCS-ID: $Id: remhelp.h 50159 2007-11-22 15:13:27Z VZ $
8
// Copyright: (c) Julian Smart
9
// Licence: wxWindows licence
10
/////////////////////////////////////////////////////////////////////////////
12
#ifndef _WX_REMHELP_H_
13
#define _WX_REMHELP_H_
15
#include <wx/helpbase.h>
17
#include <wx/html/helpctrl.h>
19
class WXDLLIMPEXP_FWD_BASE wxConfigBase;
21
class rhhcConnection : public wxConnection
24
rhhcConnection(bool *isconn_a);
25
virtual ~rhhcConnection();
27
bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format);
33
class rhhcClient: public wxClient
36
rhhcClient(bool *isconn_a);
38
wxConnectionBase *OnMakeConnection();
42
class wxRemoteHtmlHelpController : public wxHelpControllerBase
44
DECLARE_CLASS(wxRemoteHtmlHelpController)
46
wxRemoteHtmlHelpController(int style = wxHF_DEFAULT_STYLE);
47
virtual ~wxRemoteHtmlHelpController();
50
void SetService(wxString& a_service);
51
void SetServer(wxString& a_appname); //could be wxHelpController::SetViewer
53
//standard wxHtmlHelpController functions
54
bool AddBook(const wxString& book, bool show_wait_msg = false);
55
void Display(const wxString& x);
56
void Display(const int id);
57
bool DisplayContents();
59
bool KeywordSearch(const wxString& keyword);
60
void SetTempDir(const wxString& path);
61
void SetTitleFormat(const wxString& format);
63
//dummies - config is in server
64
void UseConfig(wxConfigBase* config, const wxString& rootpath = wxEmptyString) {};
65
void ReadCustomization(wxConfigBase* cfg, wxString path = wxEmptyString) {};
66
void WriteCustomization(wxConfigBase* cfg, wxString path = wxEmptyString) {};
68
//virtuals from wxHelpControllerBase - not in wxHtmlHelpController
69
//won't compile without these
70
bool LoadFile(const class wxString &); //dummy
71
bool DisplaySection(int);
72
bool DisplayBlock(long);
76
void OnExit(wxCommandEvent& event);
79
rhhcConnection *m_connection;
87
wxString m_windowname;