khtml::EditableLineIterator Class Reference
Iterates through the editable lines of a document. More...
#include <khtml_caret_p.h>
Inheritance diagram for khtml::EditableLineIterator:


Public Member Functions | |
EditableLineIterator (const LineIterator &it, bool fromEnd=false) | |
EditableLineIterator () | |
EditableLineIterator & | operator++ () |
EditableLineIterator & | operator-- () |
void | advance (bool toBegin) |
Protected Member Functions | |
bool | isEditable (LineIterator &it) |
Detailed Description
Iterates through the editable lines of a document.
This iterator, opposing to LineIterator
, only regards editable lines. Additionally, this iterator enforces the caret advance policy.
The iterator can be compared to normal LineIterators, especially to LinearDocument::preBegin and LinearDocument::end
The line iterator becomes invalid when the associated LinearDocument object is destroyed.
- Since:
- 3.2
Definition at line 820 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
Initializes a new iterator. The iterator is set to the first following editable line or to the end if no editable line follows.
References advance(), and isEditable(). |
|
empty constructor. Only use if you want to copy another iterator onto it later. Definition at line 841 of file khtml_caret_p.h. |
Member Function Documentation
|
seek next line Guaranteed to crash if beyond beginning/end of document. Reimplemented from khtml::LineIterator.
Reimplemented in khtml::ErgonomicEditableLineIterator. Definition at line 847 of file khtml_caret_p.h. References advance(). |
|
seek previous line. Guaranteed to crash if beyond beginning/end of document. Reimplemented from khtml::LineIterator.
Reimplemented in khtml::ErgonomicEditableLineIterator. Definition at line 853 of file khtml_caret_p.h. References advance(). |
|
advances to the line to come.
Reimplemented from khtml::LineIterator. Definition at line 1684 of file khtml_caret.cpp. References khtml::LinearDocument::advancePolicy(), endl(), isEditable(), and kdDebug(). Referenced by EditableLineIterator(), operator++(), and operator--(). |
|
finds out if the current line is editable.
Referenced by advance(), and EditableLineIterator(). |
The documentation for this class was generated from the following files: