]> git.saurik.com Git - wxWidgets.git/blame - utils/helpview/src/helpview.h
Update OpenVMS compile support
[wxWidgets.git] / utils / helpview / src / helpview.h
CommitLineData
4e4152e4
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: helpview.h
3// Purpose: HelpView application class
4// Author: Vaclav Slavik, Julian Smart
5// Modified by:
6// Created: 2002-07-09
4e4152e4
JS
7// Copyright: (c) 2002 Vaclav Slavik, Julian Smart and others
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_HELPVIEW_H_
12#define _WX_HELPVIEW_H_
13
62d1f48b 14#define hvVERSION 1.04
2b5f62a0 15
62d1f48b 16#if wxUSE_IPC
2b5f62a0 17#include <wx/ipc.h>
2b5f62a0
VZ
18class hvServer;
19#endif
20
21/*!
22 * The helpview application class.
23 */
24
4e4152e4
JS
25class hvApp : public wxApp
26{
2b5f62a0
VZ
27public:
28 hvApp();
29
30 /// Initialise the application.
31 virtual bool OnInit();
32
33 /// Clean up the application's data.
34 virtual int OnExit();
d9b21c9f
JS
35
36#ifdef __WXMAC__
37 /// Respond to Apple Event for opening a document
ee7553e9 38 virtual void MacOpenFiles(const wxArrayString& fileNames);
d9b21c9f
JS
39#endif
40
2b5f62a0
VZ
41 /// Prompt the user for a book to open
42 bool OpenBook(wxHtmlHelpController* controller);
43
44 /// Returns the help controller.
45 wxHtmlHelpController* GetHelpController() { return m_helpController; }
46
62d1f48b 47#if wxUSE_IPC
2b5f62a0
VZ
48 /// Returns the list of connections.
49 wxList& GetConnections() { return m_connections; }
50#endif
4e4152e4 51
2b5f62a0
VZ
52private:
53 wxHtmlHelpController* m_helpController;
6d74e300 54
62d1f48b 55#if wxUSE_IPC
2b5f62a0
VZ
56 wxList m_connections;
57 hvServer* m_server;
58#endif
6d74e300 59
2b5f62a0
VZ
60};
61
62d1f48b 62#if wxUSE_IPC
2b5f62a0
VZ
63class hvConnection : public wxConnection
64{
65public:
66 hvConnection();
d3c7fc99 67 virtual ~hvConnection();
4e4152e4 68
587b4c84 69 bool OnExec(const wxString& topic, const wxString& data);
bcb6619f
VZ
70 bool OnPoke(const wxString& topic, const wxString& item,
71 const void *data, size_t size, wxIPCFormat format);
4e4152e4 72
2b5f62a0
VZ
73private:
74};
4e4152e4 75
2b5f62a0
VZ
76class hvServer: public wxServer
77{
78public:
79 wxConnectionBase *OnAcceptConnection(const wxString& topic);
4e4152e4
JS
80};
81
2b5f62a0
VZ
82
83#endif
84
4e4152e4
JS
85#endif
86 // _WX_HELPVIEW_H_
87