]>
git.saurik.com Git - wxWidgets.git/blob - utils/helpview/src/helpview.h
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 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "help.cpp"
19 #define hvVERSION 1.03
21 // If 1, start a server to allow this to be used
22 // as an external help viewer.
23 #if defined(__WXMAC__) && !defined(__UNIX__)
37 * The helpview application class.
40 class hvApp
: public wxApp
45 /// Initialise the application.
46 virtual bool OnInit();
48 /// Clean up the application's data.
52 /// Respond to Apple Event for opening a document
53 virtual void MacOpenFile(const wxString
& filename
);
56 /// Prompt the user for a book to open
57 bool OpenBook(wxHtmlHelpController
* controller
);
59 /// Returns the help controller.
60 wxHtmlHelpController
* GetHelpController() { return m_helpController
; }
63 /// Returns the list of connections.
64 wxList
& GetConnections() { return m_connections
; }
68 wxHtmlHelpController
* m_helpController
;
78 class hvConnection
: public wxConnection
84 bool OnExecute(const wxString
& topic
, wxChar
*data
, int size
, wxIPCFormat format
);
85 wxChar
*OnRequest(const wxString
& topic
, const wxString
& item
, int *size
, wxIPCFormat format
);
86 bool OnPoke(const wxString
& topic
, const wxString
& item
, wxChar
*data
, int size
, wxIPCFormat format
);
87 bool OnStartAdvise(const wxString
& topic
, const wxString
& item
);
92 class hvServer
: public wxServer
95 wxConnectionBase
*OnAcceptConnection(const wxString
& topic
);