X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d74e3005e1ea4374475ca2901355338bc81bbc6..cfcc02a8a4f019e3846b73660209080602e44967:/utils/helpview/src/helpview.h?ds=sidebyside diff --git a/utils/helpview/src/helpview.h b/utils/helpview/src/helpview.h index ded9b29dbe..bd1de5fd6c 100644 --- a/utils/helpview/src/helpview.h +++ b/utils/helpview/src/helpview.h @@ -12,24 +12,10 @@ #ifndef _WX_HELPVIEW_H_ #define _WX_HELPVIEW_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "help.cpp" -#endif - -#define hvVERSION 1.03 +#define hvVERSION 1.04 -// If 1, start a server to allow this to be used -// as an external help viewer. -#if ( defined(__WXMAC__) || defined(__WXMGL__) ) && !defined(__UNIX__) -#define hvUSE_IPC 0 -#else -#define hvUSE_IPC 1 -#endif - -#if hvUSE_IPC +#if wxUSE_IPC #include - -class hvConnection; class hvServer; #endif @@ -59,7 +45,7 @@ public: /// 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 @@ -67,19 +53,19 @@ public: 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);