X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11611a6211e902512ea357a0c790c32069a19099..eefc691533295ee9ffbdb166c5684bdc361b53da:/utils/tex2rtf/src/texutils.cpp diff --git a/utils/tex2rtf/src/texutils.cpp b/utils/tex2rtf/src/texutils.cpp index ef76580db1..3c159839a9 100644 --- a/utils/tex2rtf/src/texutils.cpp +++ b/utils/tex2rtf/src/texutils.cpp @@ -409,7 +409,7 @@ void ReadTexReferences(char *filename) if (!wxFileExists(filename)) return; - wxSTD ifstream istr(filename, ios::in); + wxSTD ifstream istr(filename, wxSTD ios::in); if (istr.bad()) return; @@ -585,7 +585,7 @@ bool ReadBib(char *filename) 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; @@ -1182,6 +1182,11 @@ char *RegisterSetting(char *settingName, char *settingValue, bool interactive) 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)) @@ -1314,7 +1319,7 @@ bool ReadCustomMacros(char *filename) if (!wxFileExists(filename)) return FALSE; - wxSTD ifstream istr(filename, ios::in); + wxSTD ifstream istr(filename, wxSTD ios::in); if (istr.bad()) return FALSE; @@ -1575,24 +1580,24 @@ void InitialiseColourTable(void) * 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 }