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-- () |
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. If either KHTMLPart::editable or KHTMLPart::caretMode are true, this class works exactly as if it were a LineIterator.
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 495 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.
Definition at line 505 of file khtml_caret_p.h. References endl(), isEditable(), kdDebug(), operator++(), and operator--(). |
|
empty constructor. Only use if you want to copy another iterator onto it later. Definition at line 527 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 533 of file khtml_caret_p.h. References isEditable(). Referenced by EditableLineIterator(). |
|
seek previous line. Guaranteed to crash if beyond beginning/end of document. Reimplemented from khtml::LineIterator. Reimplemented in khtml::ErgonomicEditableLineIterator. Definition at line 555 of file khtml_caret_p.h. References isEditable(). Referenced by EditableLineIterator(). |
|
finds out if the current line is editable.
Definition at line 598 of file khtml_caret_p.h. References endl(), KHTMLPart::isCaretMode(), KHTMLPart::isEditable(), isEditable(), kdDebug(), and khtml::LinearDocument::m_part. Referenced by EditableLineIterator(), isEditable(), operator++(), and operator--(). |
The documentation for this class was generated from the following file: