#include <klflatexedit.h>
Classes | |
struct | FormatRule |
struct | ParenItem |
Public Types | |
enum | { Enabled = 0x01, HighlightParensOnly = 0x02, HighlightLonelyParen = 0x04 } |
Public Slots | |
void | refreshAll () |
void | resetEditing () |
Signals | |
void | newSymbolTyped (const QString &symbolName) |
Public Member Functions | |
KLFLatexSyntaxHighlighter (QTextEdit *textedit, QObject *parent) | |
virtual | ~KLFLatexSyntaxHighlighter () |
void | setCaretPos (int position) |
virtual void | highlightBlock (const QString &text) |
Definition at line 128 of file klflatexedit.h.
anonymous enum |
Definition at line 139 of file klflatexedit.h.
Definition at line 215 of file klflatexedit.cpp.
References QTextEdit::document(), and QSyntaxHighlighter::setDocument().
KLFLatexSyntaxHighlighter::~KLFLatexSyntaxHighlighter | ( | ) | [virtual] |
Definition at line 223 of file klflatexedit.cpp.
void KLFLatexSyntaxHighlighter::highlightBlock | ( | const QString & | text | ) | [virtual] |
Reimplemented from QSyntaxHighlighter.
Definition at line 408 of file klflatexedit.cpp.
References QList::append(), KLFConfig::configFlags, Enabled, QList::end(), QSyntaxHighlighter::format(), klfconfig, klfDbg, QString::length(), QTextBlock::position(), QVector::resize(), setCaretPos(), QSyntaxHighlighter::setFormat(), QVector::size(), QList::size(), KLFConfig::SyntaxHighlighter, and QTextEdit::textCursor().
void KLFLatexSyntaxHighlighter::newSymbolTyped | ( | const QString & | symbolName | ) | [signal] |
void KLFLatexSyntaxHighlighter::refreshAll | ( | ) | [slot] |
Definition at line 232 of file klflatexedit.cpp.
References QSyntaxHighlighter::rehighlight().
void KLFLatexSyntaxHighlighter::resetEditing | ( | ) | [slot] |
This clears for example the list of already typed symbols.
Definition at line 463 of file klflatexedit.cpp.
Referenced by KLFLatexEdit::clearLatex().
void KLFLatexSyntaxHighlighter::setCaretPos | ( | int | position | ) |
Definition at line 227 of file klflatexedit.cpp.
Referenced by highlightBlock().