#include <klflatexedit.h>
Definition at line 187 of file klflatexedit.h.
KLFLatexSyntaxHighlighter::KLFLatexSyntaxHighlighter | ( | QTextEdit * | textedit, |
QObject * | parent | ||
) |
Definition at line 386 of file klflatexedit.cpp.
References QSyntaxHighlighter::setDocument().
KLFLatexSyntaxHighlighter::~KLFLatexSyntaxHighlighter | ( | ) | [virtual] |
Definition at line 407 of file klflatexedit.cpp.
QTextCharFormat KLFLatexSyntaxHighlighter::fmtComment | ( | ) | const [inline] |
Definition at line 248 of file klflatexedit.h.
QTextCharFormat KLFLatexSyntaxHighlighter::fmtKeyword | ( | ) | const [inline] |
Definition at line 247 of file klflatexedit.h.
QTextCharFormat KLFLatexSyntaxHighlighter::fmtLonelyParen | ( | ) | const [inline] |
Definition at line 251 of file klflatexedit.h.
QTextCharFormat KLFLatexSyntaxHighlighter::fmtParenMatch | ( | ) | const [inline] |
Definition at line 249 of file klflatexedit.h.
QTextCharFormat KLFLatexSyntaxHighlighter::fmtParenMismatch | ( | ) | const [inline] |
Definition at line 250 of file klflatexedit.h.
void KLFLatexSyntaxHighlighter::highlightBlock | ( | const QString & | text | ) | [virtual] |
Implements QSyntaxHighlighter.
Definition at line 753 of file klflatexedit.cpp.
References QList::append(), QSyntaxHighlighter::currentBlock(), QList::end(), QSyntaxHighlighter::format(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, QString::length(), QTextBlock::position(), QVector::resize(), setCaretPos(), QSyntaxHighlighter::setFormat(), and QList::size().
bool KLFLatexSyntaxHighlighter::highlightEnabled | ( | ) | const [inline] |
Definition at line 244 of file klflatexedit.h.
bool KLFLatexSyntaxHighlighter::highlightLonelyParens | ( | ) | const [inline] |
Definition at line 246 of file klflatexedit.h.
bool KLFLatexSyntaxHighlighter::highlightParensOnly | ( | ) | const [inline] |
Definition at line 245 of file klflatexedit.h.
void KLFLatexSyntaxHighlighter::newSymbolTyped | ( | const QString & | symbolName | ) | [signal] |
QList< KLFLatexSyntaxHighlighter::ParsedBlock > KLFLatexSyntaxHighlighter::parsedBlocksForPos | ( | int | pos, |
unsigned int | filter_type = 0xffffffff |
||
) | const |
pos | is the position in the text to look for parsed blocks |
filter_type | is a OR'ed binary mask of wanted ParsedBlock::TypeMask. Only those parsed-block types will be returned, the others will be filtered out. |
Definition at line 454 of file klflatexedit.cpp.
References klfDbg, klfFmtCC, QList::size(), and type.
QList<ParsedBlock> KLFLatexSyntaxHighlighter::parsedContent | ( | ) | const [inline] |
Definition at line 236 of file klflatexedit.h.
void KLFLatexSyntaxHighlighter::refreshAll | ( | ) | [slot] |
Definition at line 480 of file klflatexedit.cpp.
References QSyntaxHighlighter::rehighlight().
void KLFLatexSyntaxHighlighter::resetEditing | ( | ) | [slot] |
This clears for example the list of already typed symbols.
Definition at line 819 of file klflatexedit.cpp.
void KLFLatexSyntaxHighlighter::setCaretPos | ( | int | position | ) | [slot] |
Definition at line 475 of file klflatexedit.cpp.
Referenced by highlightBlock().
void KLFLatexSyntaxHighlighter::setFmtComment | ( | const QTextFormat & | f | ) | [slot] |
Definition at line 431 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
void KLFLatexSyntaxHighlighter::setFmtKeyword | ( | const QTextFormat & | f | ) | [slot] |
Definition at line 425 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QTextFormat::toCharFormat().
void KLFLatexSyntaxHighlighter::setFmtLonelyParen | ( | const QTextFormat & | f | ) | [slot] |
Definition at line 446 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
void KLFLatexSyntaxHighlighter::setFmtParenMatch | ( | const QTextFormat & | f | ) | [slot] |
Definition at line 436 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
void KLFLatexSyntaxHighlighter::setFmtParenMismatch | ( | const QTextFormat & | f | ) | [slot] |
Definition at line 441 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
void KLFLatexSyntaxHighlighter::setHighlightEnabled | ( | bool | on | ) | [slot] |
Definition at line 412 of file klflatexedit.cpp.
void KLFLatexSyntaxHighlighter::setHighlightLonelyParens | ( | bool | on | ) | [slot] |
Definition at line 421 of file klflatexedit.cpp.
void KLFLatexSyntaxHighlighter::setHighlightParensOnly | ( | bool | on | ) | [slot] |
Definition at line 417 of file klflatexedit.cpp.
QTextFormat KLFLatexSyntaxHighlighter::fmtComment [read, write] |
Definition at line 194 of file klflatexedit.h.
QTextFormat KLFLatexSyntaxHighlighter::fmtKeyword [read, write] |
Definition at line 193 of file klflatexedit.h.
QTextFormat KLFLatexSyntaxHighlighter::fmtLonelyParen [read, write] |
Definition at line 197 of file klflatexedit.h.
QTextFormat KLFLatexSyntaxHighlighter::fmtParenMatch [read, write] |
Definition at line 195 of file klflatexedit.h.
QTextFormat KLFLatexSyntaxHighlighter::fmtParenMismatch [read, write] |
Definition at line 196 of file klflatexedit.h.
bool KLFLatexSyntaxHighlighter::highlightEnabled [read, write] |
Definition at line 191 of file klflatexedit.h.
bool KLFLatexSyntaxHighlighter::highlightLonelyParens [read, write] |
Definition at line 192 of file klflatexedit.h.
bool KLFLatexSyntaxHighlighter::highlightParensOnly [read, write] |
Definition at line 191 of file klflatexedit.h.