]>
git.saurik.com Git - wxWidgets.git/blob - utils/helpview/src/helpview.h
2c789b0fdbb45a07ed5be6d46b158a6a5b24eb4f
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: HelpView application class
4 // Author: Vaclav Slavik, Julian Smart
8 // Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_HELPVIEW_H_
13 #define _WX_HELPVIEW_H_
15 #define hvVERSION 1.04
23 * The helpview application class.
26 class hvApp
: public wxApp
31 /// Initialise the application.
32 virtual bool OnInit();
34 /// Clean up the application's data.
38 /// Respond to Apple Event for opening a document
39 virtual void MacOpenFile(const wxString
& filename
);
42 /// Prompt the user for a book to open
43 bool OpenBook(wxHtmlHelpController
* controller
);
45 /// Returns the help controller.
46 wxHtmlHelpController
* GetHelpController() { return m_helpController
; }
49 /// Returns the list of connections.
50 wxList
& GetConnections() { return m_connections
; }
54 wxHtmlHelpController
* m_helpController
;
64 class hvConnection
: public wxConnection
68 virtual ~hvConnection();
70 bool OnExec(const wxString
& topic
, const wxString
& data
);
71 wxChar
*OnRequest(const wxString
& topic
, const wxString
& item
, int *size
, wxIPCFormat format
);
72 bool OnPoke(const wxString
& topic
, const wxString
& item
, wxChar
*data
, int size
, wxIPCFormat format
);
73 bool OnStartAdvise(const wxString
& topic
, const wxString
& item
);
78 class hvServer
: public wxServer
81 wxConnectionBase
*OnAcceptConnection(const wxString
& topic
);