在文件 formula.cpp 第 502 行定义.
507 static int inkscapeVersion = -2;
508 if (inkscapeVersion == -2)
510 QCString inkscapeVersionFile =
"inkscape_version" ;
511 inkscapeVersion = -1;
525 std::ifstream inkscapeVersionIn(inkscapeVersionFile.
str(),std::ifstream::in);
526 if (inkscapeVersionIn.is_open())
529 while (getline(inkscapeVersionIn,line))
531 size_t dotPos = line.find(
'.');
532 if (line.rfind(
"Inkscape ",0)==0 && dotPos>0)
535 inkscapeVersion = std::stoi(line.substr(9,dotPos-9));
539 inkscapeVersionIn.close();
548 thisDir.
remove(inkscapeVersionFile.
str());
552 return inkscapeVersion;
引用了 Portable::devNull(), Dir::remove(), RM_TMP_FILES, QCString::str(), Portable::system(), Portable::sysTimerStart() , 以及 Portable::sysTimerStop().
被这些函数引用 FormulaManager::generateImages().