The formula.cpp
File Reference
Included Headers
Classes Index
struct | Private |
Functions Index
static int | determineInkscapeVersion (const Dir &thisDir) |
static bool | createDVIFile (const QCString &fileName) |
static bool | createPostscriptFile (const QCString &fileName, const QCString &formBase, int pageIndex) |
static bool | createEPSbboxFile (const QCString &formBase) |
static bool | extractBoundingBox (const QCString &formBase, int *x1, int *y1, int *x2, int *y2, double *x1hi, double *y1hi, double *x2hi, double *y2hi) |
static double | updateFormulaSize (Formula *formula, int x1, int y1, int x2, int y2) |
static bool | createCroppedPDF (const QCString &formBase, int x1, int y1, int x2, int y2) |
static bool | createCroppedEPS (const QCString &formBase) |
static bool | createSVGFromPDF (const QCString &formBase, const QCString &outFile) |
static bool | createSVGFromPDFviaInkscape (const Dir &thisDir, const QCString &formBase, const QCString &outFile) |
static bool | updateEPSBoundingBox (const QCString &formBase, int x1, int y1, int x2, int y2, double x1hi, double y1hi, double x2hi, double y2hi) |
static bool | createPNG (const QCString &formBase, const QCString &outFile, double scaleFactor) |
static StringVector | generateFormula (const Dir &thisDir, const QCString &formulaFileName, Formula *formula, int pageNum, int pageIndex, FormulaManager::Format format, FormulaManager::HighDPI hd, FormulaManager::Mode mode) |
Variables Index
static std::mutex | g_formulaUpdateMutex |
static std::mutex | g_inkscapeDetectionMutex |
Functions
createCroppedEPS()
| static |
Definition at line 366 of file formula.cpp.
References err, Portable::ghostScriptCommand, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createCroppedPDF()
| static |
Definition at line 350 of file formula.cpp.
References err, Portable::ghostScriptCommand, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createDVIFile()
| static |
Definition at line 241 of file formula.cpp.
References Portable::devNull, err, fileToString, QCString::find, QCString::isEmpty, qPrint, qsnprintf and Portable::system.
Referenced by FormulaManager::createFormulasTexFile.
createEPSbboxFile()
| static |
Definition at line 284 of file formula.cpp.
References err, Portable::ghostScriptCommand, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createPNG()
Definition at line 459 of file formula.cpp.
References err, Portable::ghostScriptCommand, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createPostscriptFile()
| static |
Definition at line 269 of file formula.cpp.
References err, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createSVGFromPDF()
Definition at line 381 of file formula.cpp.
References err, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
createSVGFromPDFviaInkscape()
| static |
Definition at line 394 of file formula.cpp.
References determineInkscapeVersion, Portable::devNull, err, qPrint, qsnprintf and Portable::system.
Referenced by generateFormula.
determineInkscapeVersion()
| static |
Definition at line 729 of file formula.cpp.
References Portable::devNull, Debug::Formula, g_inkscapeDetectionMutex, Debug::isFlagSet, Portable::openInputStream, Dir::remove, QCString::str and Portable::system.
Referenced by createSVGFromPDFviaInkscape.
extractBoundingBox()
| static |
Definition at line 299 of file formula.cpp.
References QCString::data, err, FileInfo::exists, fileToString and QCString::find.
Referenced by generateFormula and DotRunner::readBoundingBox.
generateFormula()
| static |
Definition at line 473 of file formula.cpp.
References Portable::checkForExecutable, createCroppedEPS, createCroppedPDF, createEPSbboxFile, createPNG, createPostscriptFile, createSVGFromPDF, createSVGFromPDFviaInkscape, err, extractBoundingBox, FormulaManager::Light, msg, FormulaManager::On, QCString::sprintf, QCString::str, updateEPSBoundingBox, updateFormulaSize and FormulaManager::Vector.
Referenced by FormulaManager::createFormulasTexFile.
updateEPSBoundingBox()
| static |
Definition at line 421 of file formula.cpp.
References err, Portable::openInputStream and Portable::openOutputStream.
Referenced by generateFormula.
updateFormulaSize()
| static |
Definition at line 334 of file formula.cpp.
References Config_getInt, g_formulaUpdateMutex, Formula::setHeight and Formula::setWidth.
Referenced by generateFormula.
Variables
g_formulaUpdateMutex
| static |
Definition at line 332 of file formula.cpp.
Referenced by updateFormulaSize.
g_inkscapeDetectionMutex
| static |
Definition at line 725 of file formula.cpp.
Referenced by determineInkscapeVersion.
Generated via doxygen2docusaurus by Doxygen 1.14.0.