Doxygen
|
#include <src/formula.h>
Classes | |
struct | Private |
Public Member Functions | |
repository functions | |
void | initFromRepository (const QCString &dir) |
void | checkRepositories () |
formula functions | |
void | clear () |
int | addFormula (const std::string &formulaText, int width=-1, int height=-1) |
const Formula * | findFormula (int formulaId) const |
bool | hasFormulas () const |
Static Public Member Functions | |
static FormulaManager & | instance () |
Private Member Functions | |
void | createFormulasTexFile (Dir &d, Format format, HighDPI hd, Mode mode) |
void | createLatexFile (const QCString &fileName, Format format, Mode mode, IntVector &formulasToGenerate) |
FormulaManager () | |
Private Attributes | |
std::unique_ptr< Private > | p |
generator functions | |
enum class | Format { Bitmap , Vector } |
enum class | HighDPI { On , Off } |
enum class | Mode { Dark , Light } |
void | generateImages (const QCString &outputDir, Format format, HighDPI hd=HighDPI::Off) |
|
strong |
|
strong |
|
strong |
|
private |
Definition at line 50 of file formula.cpp.
References p.
Referenced by instance().
int FormulaManager::addFormula | ( | const std::string & | formulaText, |
int | width = -1, | ||
int | height = -1 ) |
Definition at line 691 of file formula.cpp.
References Formula::id(), and p.
Referenced by addFormula().
void FormulaManager::checkRepositories | ( | ) |
Definition at line 173 of file formula.cpp.
Referenced by parseInput().
void FormulaManager::clear | ( | ) |
Definition at line 685 of file formula.cpp.
References p.
Referenced by checkRepositories(), cleanUpDoxygen(), and clearAll().
|
private |
Definition at line 553 of file formula.cpp.
References Config_getInt, createDVIFile(), createLatexFile(), generateFormula(), Light, Portable::openOutputStream(), p, ThreadPool::queue(), and QCString::str().
Referenced by generateImages().
|
private |
Definition at line 184 of file formula.cpp.
References Config_getString, Dark, FileInfo::fileName(), TextStream::flush(), Doxygen::indexList, QCString::isEmpty(), Light, Portable::openOutputStream(), p, QCString::sprintf(), QCString::str(), Vector, writeExtraLatexPackages(), and writeLatexSpecialFormulaChars().
Referenced by createFormulasTexFile().
const Formula * FormulaManager::findFormula | ( | int | formulaId | ) | const |
Definition at line 705 of file formula.cpp.
References p.
Referenced by DocFormula::DocFormula(), and HtmlDocVisitor::operator()().
void FormulaManager::generateImages | ( | const QCString & | outputDir, |
Format | format, | ||
HighDPI | hd = HighDPI::Off ) |
Definition at line 636 of file formula.cpp.
References FileInfo::absFilePath(), Dir::absPath(), Config_getEnum, Config_getString, copyFile(), createFormulasTexFile(), Dir::currentDirPath(), Dark, Dir::exists(), FileInfo::fileName(), Debug::Formula, QCString::isEmpty(), Debug::isFlagSet(), Light, p, qPrint(), Dir::remove(), Dir::setCurrent(), QCString::str(), and term.
Referenced by generateOutput().
bool FormulaManager::hasFormulas | ( | ) | const |
void FormulaManager::initFromRepository | ( | const QCString & | dir | ) |
Definition at line 60 of file formula.cpp.
References FileInfo::exists(), Formula::id(), msg(), Portable::openInputStream(), p, prefix, qPrint(), reg::search(), Formula::setCached(), Formula::setCachedDark(), QCString::sprintf(), QCString::str(), Formula::text(), and warn_uncond.
Referenced by parseInput().
|
static |
Definition at line 54 of file formula.cpp.
References FormulaManager().
Referenced by addFormula(), cleanUpDoxygen(), clearAll(), DocFormula::DocFormula(), generateOutput(), HtmlDocVisitor::operator()(), and parseInput().
|
private |
Definition at line 90 of file formula.h.
Referenced by addFormula(), checkRepositories(), clear(), createFormulasTexFile(), createLatexFile(), findFormula(), FormulaManager(), generateImages(), hasFormulas(), and initFromRepository().