1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Remote help controller class
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(__APPLE__)
13 #pragma interface remhelp.h
16 #ifndef _WX_REMHELP_H_
17 #define _WX_REMHELP_H_
19 #include <wx/helpbase.h>
21 #include <wx/html/helpctrl.h>
23 class WXDLLEXPORT wxConfigBase
;
25 class rhhcConnection
: public wxConnection
28 rhhcConnection(bool *isconn_a
);
31 bool OnAdvise(const wxString
& topic
, const wxString
& item
, char *data
, int size
, wxIPCFormat format
);
37 class rhhcClient
: public wxClient
40 rhhcClient(bool *isconn_a
);
42 wxConnectionBase
*OnMakeConnection();
46 class wxRemoteHtmlHelpController
: public wxHelpControllerBase
48 DECLARE_CLASS(wxRemoteHtmlHelpController
)
50 wxRemoteHtmlHelpController(int style
= wxHF_DEFAULT_STYLE
);
51 ~wxRemoteHtmlHelpController();
54 void SetService(wxString
& a_service
);
55 void SetServer(wxString
& a_appname
); //could be wxHelpController::SetViewer
57 //standard wxHtmlHelpController functions
58 bool AddBook(const wxString
& book
, bool show_wait_msg
= FALSE
);
59 void Display(const wxString
& x
);
60 void Display(const int id
);
61 bool DisplayContents();
63 bool KeywordSearch(const wxString
& keyword
);
64 void SetTempDir(const wxString
& path
);
65 void SetTitleFormat(const wxString
& format
);
67 //dummies - config is in server
68 void UseConfig(wxConfigBase
* config
, const wxString
& rootpath
= wxEmptyString
) {};
69 void ReadCustomization(wxConfigBase
* cfg
, wxString path
= wxEmptyString
) {};
70 void WriteCustomization(wxConfigBase
* cfg
, wxString path
= wxEmptyString
) {};
72 //virtuals from wxHelpControllerBase - not in wxHtmlHelpController
73 //won't compile without these
74 bool LoadFile(const class wxString
&); //dummy
75 bool DisplaySection(int);
76 bool DisplayBlock(long);
80 void OnExit(wxCommandEvent
& event
);
83 rhhcConnection
*m_connection
;
91 wxString m_windowname
;