23 #ifndef LATEXHELPERS_H
24 #define LATEXHELPERS_H
26 #include <QSyntaxHighlighter>
27 #include <QXmlStreamReader>
37 QTextCharFormat format;
47 void setConfig(QList<LatexHighlighterRule *> *config) { rules = config; rehighlight();}
49 void highlightBlock(
const QString &text);
51 QList<LatexHighlighterRule *> *rules;
59 QString readI18nText(
bool unindent=
false);
66 static QString absoluteFilename(QString fn);
67 static QString configBase();
68 bool parseConfigFile(QString fn);
69 QString executable()
const;
70 QString imageExtension()
const {
return m_imageExtension; }
71 QString emptyFrameText()
const {
return m_emptyFrameText; }
72 QString preamble()
const {
return m_preamble; }
73 QString postamble()
const {
return m_postamble; }
74 QString description()
const {
return m_description; }
75 QString error()
const {
return m_error; }
76 QString icon()
const {
return m_icon; }
77 QString filename()
const {
return m_filename; }
78 QMap<QString,QString> properties;
79 QList<LatexHighlighterRule *> highlighterRules;
82 QString m_description, m_executable, m_imageExtension, m_emptyFrameText;
83 QString m_preamble, m_postamble, m_icon;
86 void formatError(QString message);
89 void parseHighlighter();
91 bool StrRefToBool(
const QStringRef &str)
const;
98 static QStringList defaultConfigs();
99 static QMap<QString, QString> defaultCommands();
102 bool hasError(QString filename);
104 void createParser(QString filename,
bool warnOnError);
106 QMap<QString, LatexConfigParser*> parsers;
107 QMap<QString, bool> error;
Definition: latexhelpers.h:41
Definition: latexhelpers.h:95
Definition: latexhelpers.h:32
Definition: latexhelpers.h:62
Definition: latexhelpers.h:54