1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Remote help controller class
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_REMHELP_H_
12 #define _WX_REMHELP_H_
14 #include <wx/helpbase.h>
16 #include <wx/html/helpctrl.h>
18 class WXDLLIMPEXP_FWD_BASE wxConfigBase
;
20 class rhhcConnection
: public wxConnection
23 rhhcConnection(bool *isconn_a
);
24 virtual ~rhhcConnection();
26 bool OnAdvise(const wxString
& topic
, const wxString
& item
, char *data
, int size
, wxIPCFormat format
);
32 class rhhcClient
: public wxClient
35 rhhcClient(bool *isconn_a
);
37 wxConnectionBase
*OnMakeConnection();
41 class wxRemoteHtmlHelpController
: public wxHelpControllerBase
43 DECLARE_CLASS(wxRemoteHtmlHelpController
)
45 wxRemoteHtmlHelpController(int style
= wxHF_DEFAULT_STYLE
);
46 virtual ~wxRemoteHtmlHelpController();
49 void SetService(wxString
& a_service
);
50 void SetServer(wxString
& a_appname
); //could be wxHelpController::SetViewer
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();
58 bool KeywordSearch(const wxString
& keyword
);
59 void SetTempDir(const wxString
& path
);
60 void SetTitleFormat(const wxString
& format
);
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
) {};
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);
75 void OnExit(wxCommandEvent
& event
);
78 rhhcConnection
*m_connection
;
86 wxString m_windowname
;