#ifndef _WX_HELPVIEW_H_
#define _WX_HELPVIEW_H_
-#if defined(__GNUG__) && !defined(__APPLE__)
-#pragma interface "help.cpp"
-#endif
-
-#define hvVERSION 1.03
-
-// If 1, start a server to allow this to be used
-// as an external help viewer.
-<<<<<<< helpview.h
-#define hvUSE_IPC 0
-=======
-#if defined(__WXMAC__) && !defined(__UNIX__)
-#define hvUSE_IPC 0
-#else
-#define hvUSE_IPC 1
-#endif
->>>>>>> 1.5
+#define hvVERSION 1.04
-#if hvUSE_IPC
+#if wxUSE_IPC
#include <wx/ipc.h>
-
-class hvConnection;
class hvServer;
#endif
#ifdef __WXMAC__
/// Respond to Apple Event for opening a document
- virtual void MacOpenFile(const wxString& filename);
+ virtual void MacOpenFiles(const wxArrayString& fileNames);
#endif
/// Prompt the user for a book to open
/// Returns the help controller.
wxHtmlHelpController* GetHelpController() { return m_helpController; }
-#if hvUSE_IPC
+#if wxUSE_IPC
/// Returns the list of connections.
wxList& GetConnections() { return m_connections; }
#endif
private:
wxHtmlHelpController* m_helpController;
-
-#if hvUSE_IPC
+
+#if wxUSE_IPC
wxList m_connections;
hvServer* m_server;
#endif
-
+
};
-#if hvUSE_IPC
+#if wxUSE_IPC
class hvConnection : public wxConnection
{
public:
hvConnection();
- ~hvConnection();
+ virtual ~hvConnection();
- bool OnExecute(const wxString& topic, wxChar*data, int size, wxIPCFormat format);
- wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
- bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
- bool OnStartAdvise(const wxString& topic, const wxString& item);
+ bool OnExec(const wxString& topic, const wxString& data);
+ bool OnPoke(const wxString& topic, const wxString& item,
+ const void *data, size_t size, wxIPCFormat format);
private:
};