]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LaTeXHighlighter.h
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / LaTeXHighlighter.h
index 51da3672c1899a757ef1ca805b9c42190d297ac1..c780b9ffb7f1d841df71a75a4e030e4356ee5ab0 100644 (file)
@@ -25,7 +25,7 @@ namespace frontend {
 class LaTeXHighlighter : public QSyntaxHighlighter
 {
 public:
-       LaTeXHighlighter(QTextDocument * parent);
+       explicit LaTeXHighlighter(QTextDocument * parent, bool at_letter = false);
 
 protected:
        void highlightBlock(QString const & text);
@@ -35,6 +35,8 @@ private:
        QTextCharFormat keywordFormat;
        QTextCharFormat mathFormat;
        QTextCharFormat warningFormat;
+       // is at a letter? (as in the preamble)
+       bool const at_letter_;
 };
 
 } // namespace frontend