hvApp::hvApp()
{
-#if hvUSE_IPC
+#if wxUSE_IPC
m_server = NULL;
#endif
}
bool hasWindowName = false;
bool createServer = false;
-#if hvUSE_IPC
+#if wxUSE_IPC
m_server = NULL;
#endif
wxOPEN | wxFILE_MUST_EXIST,
NULL);
- if (!s.IsEmpty())
+ if (!s.empty())
{
book[0] = s;
bookCount = 1;
}
#endif
-#if hvUSE_IPC
+#if wxUSE_IPC
if ( createServer )
{
wxUnusedVar(createServer);
}
-#endif // hvUSE_IPC
+#endif // wxUSE_IPC
//now add help
wxInitAllImageHandlers();
int hvApp::OnExit()
{
-#if hvUSE_IPC
+#if wxUSE_IPC
wxObjectList::compatibility_iterator node = m_connections.GetFirst();
while (node)
{
return wxNullBitmap;
}
-#if hvUSE_IPC
+#if wxUSE_IPC
wxConnectionBase *hvServer::OnAcceptConnection(const wxString& topic)
{
return true;
}
-#endif // #if hvUSE_IPC
+#endif // #if wxUSE_IPC
#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.
-#if ( defined(__WXMAC__) || defined(__WXMGL__) ) && !defined(__UNIX__)
-#define hvUSE_IPC 0
-#else
-#define hvUSE_IPC 1
-#endif
+#define hvVERSION 1.04
-#if hvUSE_IPC
+#if wxUSE_IPC
#include <wx/ipc.h>
-
-class hvConnection;
class hvServer;
#endif
/// 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: