KHTML
khtml::EditableCaretBoxIterator Class Reference
Iterates over the editable inner elements of a caret line box. More...
#include <khtml_caret_p.h>

Public Member Functions | |
| EditableCaretBoxIterator (LineIterator &lit, bool fromEnd=false, CaretBoxIterator *it=0) | |
| EditableCaretBoxIterator () | |
| void | advance (bool toBegin) |
| bool | isAdjacent () const |
| EditableCaretBoxIterator & | operator++ () |
| EditableCaretBoxIterator & | operator-- () |
Protected Member Functions | |
| bool | isEditable (const CaretBoxIterator &boxit, bool fromEnd) |
Detailed Description
Iterates over the editable inner elements of a caret line box.
The incrementor will traverse all caret boxes according to the associated linear document's caret advance policy. In contrast to CaretBoxIterator this iterator only regards caret boxes which are editable.
Definition at line 742 of file khtml_caret_p.h.
Constructor & Destructor Documentation
| khtml::EditableCaretBoxIterator::EditableCaretBoxIterator | ( | LineIterator & | lit, |
| bool | fromEnd = false, |
||
| CaretBoxIterator * | it = 0 |
||
| ) | [inline] |
initializes a new iterator from the given line iterator, beginning with the given caret box iterator, if specified
Definition at line 751 of file khtml_caret_p.h.
| khtml::EditableCaretBoxIterator::EditableCaretBoxIterator | ( | ) | [inline] |
empty constructor.
Use only to copy another iterator into this one.
Definition at line 764 of file khtml_caret_p.h.
Member Function Documentation
| void khtml::EditableCaretBoxIterator::advance | ( | bool | toBegin | ) |
advances to the editable caret box to come
- Parameters:
-
toBegin true, move towards beginning, false, move towards end.
Definition at line 1507 of file khtml_caret.cpp.
| bool khtml::EditableCaretBoxIterator::isAdjacent | ( | ) | const [inline] |
returns true when the current caret box is adjacent to the previously iterated caret box, i.
e. no intervening caret boxes.
Definition at line 769 of file khtml_caret_p.h.
| bool khtml::EditableCaretBoxIterator::isEditable | ( | const CaretBoxIterator & | boxit, |
| bool | fromEnd | ||
| ) | [protected] |
finds out if the given box is editable.
- Parameters:
-
boxit iterator to given caret box fromEnd true when advancing towards the beginning
- Returns:
trueif box is editable
Definition at line 1644 of file khtml_caret.cpp.
| EditableCaretBoxIterator& khtml::EditableCaretBoxIterator::operator++ | ( | ) | [inline] |
increments the iterator to point to the next editable caret box.
Reimplemented from khtml::CaretBoxIterator.
Definition at line 773 of file khtml_caret_p.h.
| EditableCaretBoxIterator& khtml::EditableCaretBoxIterator::operator-- | ( | ) | [inline] |
decrements the iterator to point to the previous editable caret box.
Reimplemented from khtml::CaretBoxIterator.
Definition at line 777 of file khtml_caret_p.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference