X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..fa2b309e782464cffe7163d03a740a32fa385af5:/utils/helpview/src/helpview.h?ds=inline diff --git a/utils/helpview/src/helpview.h b/utils/helpview/src/helpview.h index 0395f58dd5..bd1de5fd6c 100644 --- a/utils/helpview/src/helpview.h +++ b/utils/helpview/src/helpview.h @@ -12,20 +12,10 @@ #ifndef _WX_HELPVIEW_H_ #define _WX_HELPVIEW_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "help.cpp" -#endif - -#define hvVERSION 1.02 - -// If 1, start a server to allow this to be used -// as an external help viewer. -#define hvUSE_IPC 1 +#define hvVERSION 1.04 -#if hvUSE_IPC +#if wxUSE_IPC #include - -class hvConnection; class hvServer; #endif @@ -43,34 +33,39 @@ public: /// Clean up the application's data. virtual int OnExit(); - + +#ifdef __WXMAC__ + /// Respond to Apple Event for opening a document + virtual void MacOpenFile(const wxString& filename); +#endif + /// Prompt the user for a book to open bool OpenBook(wxHtmlHelpController* controller); /// 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);