kspread
KSpread::FormulaEditorHighlighter Class Reference
#include <kspread_editors.h>
Detailed Description
Colours cell references in formulas.Installed by CellEditor instances in the constructor.
Definition at line 55 of file kspread_editors.h.
Public Member Functions | |
FormulaEditorHighlighter (QTextEdit *textEdit, Canvas *canvas) | |
virtual | ~FormulaEditorHighlighter () |
virtual int | highlightParagraph (const QString &text, int endStateOfLastPara) |
const Tokens & | formulaTokens () const |
uint | rangeCount () const |
bool | rangeChanged () const |
void | resetRangeChanged () |
Protected Member Functions | |
int | findMatchingBrace (int pos) |
void | handleBrace (uint index) |
Constructor & Destructor Documentation
|
Constructs a FormulaHighlighter to colour-code cell references in a QTextEdit.
Definition at line 83 of file kspread_editors.cc. |
Member Function Documentation
|
Returns the position of the brace matching the one found at position pos.
Definition at line 246 of file kspread_editors.cc. |
|
Examines the brace (Token::LeftPar or Token::RightPar) operator token at the given index in the token vector ( as returned by formulaTokens() ) and if the cursor is next to it, the token plus any matching brace will be highlighted.
Definition at line 186 of file kspread_editors.cc. |
|
Called automatically by KTextEditor to highlight text when modified.
Definition at line 100 of file kspread_editors.cc. |
|
Returns true if any of the ranges or cells in the formula have changed since the last call to FormulaEditorHighlighter::rangeChanged().
Definition at line 282 of file kspread_editors.cc. |
|
Sets the highlighter's range changed flag to false.
Definition at line 287 of file kspread_editors.cc. |
The documentation for this class was generated from the following files: