if (!wxFileExists(filename))
return;
- wxSTD ifstream istr(filename, ios::in);
+ wxSTD ifstream istr(filename, wxSTD ios::in);
if (istr.bad()) return;
if (i >= 4000)
{
char buf[100];
- sprintf(buf, "Sorry, value > 4000 chars in bib file at line %ld, terminating.", BibLine);
- wxFatalError(buf, "Tex2RTF Fatal Error");
+ sprintf(buf, "Sorry, value > 4000 chars in bib file at line %ld.", BibLine);
+ wxLogError(buf, "Tex2RTF Fatal Error");
+ return;
}
istr.get(ch);
return FALSE;
char buf[300];
- wxSTD ifstream istr(filename, ios::in);
+ wxSTD ifstream istr(filename, wxSTD ios::in);
if (istr.bad()) return FALSE;
BibLine = 1;
htmlWorkshopFiles = StringTobool(settingValue);
else if (StringMatch(settingName, "htmlFrameContents", FALSE, TRUE))
htmlFrameContents = StringTobool(settingValue);
+ else if (StringMatch(settingName, "htmlStylesheet", FALSE, TRUE))
+ {
+ if (htmlStylesheet) delete[] htmlStylesheet;
+ htmlStylesheet = copystring(settingValue);
+ }
else if (StringMatch(settingName, "upperCaseNames", FALSE, TRUE))
upperCaseNames = StringTobool(settingValue);
+ else if (StringMatch(settingName, "ignoreBadRefs", FALSE, TRUE))
+ ignoreBadRefs = StringTobool(settingValue);
+ else if (StringMatch(settingName, "htmlFaceName", FALSE, TRUE))
+ {
+ delete[] htmlFaceName;
+ htmlFaceName = copystring(settingValue);
+ }
else if (StringMatch(settingName, "winHelpTitle", FALSE, TRUE))
{
if (winHelpTitle)
if (!wxFileExists(filename))
return FALSE;
- wxSTD ifstream istr(filename, ios::in);
+ wxSTD ifstream istr(filename, wxSTD ios::in);
if (istr.bad()) return FALSE;