if (!wxFileExists(filename))
return;
- wxSTD ifstream istr(filename, ios::in);
+ wxSTD ifstream istr(filename, wxSTD ios::in);
if (istr.bad()) return;
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))
if (!wxFileExists(filename))
return FALSE;
- wxSTD ifstream istr(filename, ios::in);
+ wxSTD ifstream istr(filename, wxSTD ios::in);
if (istr.bad()) return FALSE;
* The purpose of this is to reduce the number of times wxYield is
* called, since under Windows this can slow things down.
*/
-
-static int yieldCount = 0;
void Tex2RTFYield(bool force)
{
#ifdef __WXMSW__
- if (isSync)
- return;
+ static int yieldCount = 0;
- if (force)
- yieldCount = 0;
- if (yieldCount == 0)
- {
- if (wxTheApp)
- wxYield();
- yieldCount = 10;
- }
- yieldCount --;
+ if (isSync)
+ return;
+
+ if (force)
+ yieldCount = 0;
+ if (yieldCount == 0)
+ {
+ if (wxTheApp)
+ wxYield();
+ yieldCount = 10;
+ }
+ yieldCount --;
#endif
}