#if defined(__WXMSW__)
wxString url;
- url << m_MapFile << '\\' << relativeURL.BeforeFirst('#');
+ url << m_helpDir << '\\' << relativeURL.BeforeFirst('#');
bool bOk = (int)ShellExecute(NULL, wxT("open"), url.c_str(),
NULL, NULL, SW_SHOWNORMAL ) > 32;
if ( !bOk )
#elif defined(__OS2__)
wxString url;
- url << m_MapFile << '\\' << relativeURL.BeforeFirst('#');
+ url << m_helpDir << '\\' << relativeURL.BeforeFirst('#');
// will have to fix for OS/2, later.....DW
// bool bOk = (int)ShellExecute(NULL, "open", url,
// NULL, NULL, SW_SHOWNORMAL ) > 32;
wxString command;
command = m_BrowserName;
command << wxT(" file://")
- << m_MapFile << wxFILE_SEP_PATH << relativeURL;
+ << m_helpDir << wxFILE_SEP_PATH << relativeURL;
return wxExecute(command) != 0;
#else // UNIX
{
long success;
command << m_BrowserName << wxT(" -remote openURL(")
- << wxT("file://") << m_MapFile
+ << wxT("file://") << m_helpDir
<< wxFILE_SEP_PATH << relativeURL << wxT(")");
success = wxExecute(command);
if(success != 0 ) // returns PID on success
#endif
command = m_BrowserName;
command << wxT(" file://")
- << m_MapFile << wxFILE_SEP_PATH << relativeURL;
+ << m_helpDir << wxFILE_SEP_PATH << relativeURL;
return wxExecute(command) != 0;
#endif
}
return false;
}
- m_MapFile = helpDir.GetFullPath(); // now it's valid
+ m_helpDir = helpDir.GetFullPath(); // now it's valid
return true;
}
bool rc = false;
wxString file;
- file << m_MapFile << wxFILE_SEP_PATH << contents;
+ file << m_helpDir << wxFILE_SEP_PATH << contents;
if(file.Contains(wxT('#')))
file = file.BeforeLast(wxT('#'));
if(contents.length() && wxFileExists(file))