// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows license
+// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
#include "wx/generic/helpxlp.h"
-#if USE_HELP
+#if wxUSE_HELP
#include <time.h>
#ifdef __X__
#endif
// suppress annoying warning "'this' used in base member init list" (so what?)
-#ifdef _MSC_VER
-#pragma warning(disable: 4355)
+#ifdef __VISUALC__
+ #pragma warning(disable: 4355)
#endif // Visual C++
wxXLPHelpController::wxXLPHelpController(void)
helpRunning = FALSE; helpConnection = NULL;
}
-#ifdef _MSC_VER
-#pragma warning(default: 4355)
+#ifdef __VISUALC__
+ #pragma warning(default: 4355)
#endif // Visual C++
wxXLPHelpController::~wxXLPHelpController(void)
helpFile = filename;
helpServer = server;
- wxIPCInitialize();
return TRUE;
}
bool wxXLPHelpController::DisplayContents(void)
{
- if (!helpRunning)
- {
+ if (!helpRunning)
+ {
if (!Run())
return FALSE;
}
if (helpConnection)
- return helpConnection->Execute("s -1");
+ return helpConnection->Execute("s -1");
else
- return FALSE;
+ return FALSE;
}
bool wxXLPHelpController::DisplaySection(int section)
{
if (!helpRunning)
- {
+ {
if (!Run())
return FALSE;
}
bool wxXLPHelpController::DisplayBlock(long block)
{
if (!helpRunning)
- {
+ {
if (!Run())
return FALSE;
}
bool wxXLPHelpController::KeywordSearch(const wxString& k)
{
if (!helpRunning)
- {
+ {
if (!Run())
return FALSE;
}
return TRUE;
}
-#endif // USE_HELP
+#endif // wxUSE_HELP