]>
git.saurik.com Git - wxWidgets.git/blob - utils/helpview/src/helpview.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: HelpView application class
4 // Author: Vaclav Slavik, Julian Smart
7 // Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_HELPVIEW_H_
12 #define _WX_HELPVIEW_H_
14 #define hvVERSION 1.04
22 * The helpview application class.
25 class hvApp
: public wxApp
30 /// Initialise the application.
31 virtual bool OnInit();
33 /// Clean up the application's data.
37 /// Respond to Apple Event for opening a document
38 virtual void MacOpenFiles(const wxArrayString
& fileNames
);
41 /// Prompt the user for a book to open
42 bool OpenBook(wxHtmlHelpController
* controller
);
44 /// Returns the help controller.
45 wxHtmlHelpController
* GetHelpController() { return m_helpController
; }
48 /// Returns the list of connections.
49 wxList
& GetConnections() { return m_connections
; }
53 wxHtmlHelpController
* m_helpController
;
63 class hvConnection
: public wxConnection
67 virtual ~hvConnection();
69 bool OnExec(const wxString
& topic
, const wxString
& data
);
70 bool OnPoke(const wxString
& topic
, const wxString
& item
,
71 const void *data
, size_t size
, wxIPCFormat format
);
76 class hvServer
: public wxServer
79 wxConnectionBase
*OnAcceptConnection(const wxString
& topic
);