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

Public Member Functions | |
CaretBoxLine * | operator * () const |
LinearDocument * | linearDocument () const |
LineIterator & | operator++ () |
LineIterator & | operator-- () |
bool | operator== (const LineIterator &it) const |
bool | operator!= (const LineIterator &it) const |
bool | isOutsideEnd () |
bool | isOutside () const |
void | advance (bool toBegin) |
Static Public Member Functions | |
CaretBoxIterator & | currentCaretBox () |
long | currentModifiedOffset () |
Protected Member Functions | |
LineIterator () | |
LineIterator (LinearDocument *l, DOM::NodeImpl *node, long offset) | |
void | nextBlock () |
void | prevBlock () |
Protected Attributes | |
LinearDocument * | lines |
CaretBoxLine * | cbl |
Static Protected Attributes | |
CaretBoxIterator | currentBox |
long | currentOffset |
Friends | |
class | CaretBoxIterator |
class | EditableLineIterator |
class | EditableCaretBoxIterator |
class | EditableCharacterIterator |
class | LinearDocument |
Detailed Description
Iterates through the lines of a document.The line iterator becomes invalid when the associated LinearDocument object is destroyed.
- Since:
- 3.2
Definition at line 497 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
Default constructor, only for internal use.
Definition at line 511 of file khtml_caret_p.h. |
|
Initializes a new iterator.
Note: This constructor neither cares about the correctness of Definition at line 1317 of file khtml_caret.cpp. References khtml::LinearDocument::baseObject(), khtml::LinearDocument::cblDeleter, and kdDebug(). |
Member Function Documentation
|
dereferences current caret box line.
Definition at line 526 of file khtml_caret_p.h. |
|
returns the associated linear document
Definition at line 530 of file khtml_caret_p.h. |
|
seek next line Guaranteed to crash if beyond beginning/end of document. Reimplemented in khtml::EditableLineIterator, and khtml::ErgonomicEditableLineIterator. Definition at line 536 of file khtml_caret_p.h. |
|
seek previous line. Guaranteed to crash if beyond beginning/end of document. Reimplemented in khtml::EditableLineIterator, and khtml::ErgonomicEditableLineIterator. Definition at line 542 of file khtml_caret_p.h. |
|
compares two iterators. The comparator actually works only for comparing arbitrary iterators to begin() and end(). Definition at line 547 of file khtml_caret_p.h. |
|
compares two iterators
Definition at line 554 of file khtml_caret_p.h. |
|
Returns whether this line represents the outside end of the containing block. This result can only be relied on when isOutside is true. Definition at line 564 of file khtml_caret_p.h. References khtml::CaretBoxLine::isOutsideEnd(). |
|
Tells whether the offset is meant to be outside or inside the containing block.
Definition at line 569 of file khtml_caret_p.h. References khtml::CaretBoxLine::isOutside(). |
|
advances to the line to come.
Reimplemented in khtml::EditableLineIterator. Definition at line 1480 of file khtml_caret.cpp. References khtml::LinearDocument::cblDeleter, kdDebug(), nextBlock(), and prevBlock(). |
|
Whenever a new line iterator is created, it gets a caret box created. For memory reasons, it's saved in a static instance, thus making this function not thread-safe. This value can only be trusted immediately after having instantiated a line iterator or one of its derivatives.
Definition at line 586 of file khtml_caret_p.h. |
|
Whenever a new line iterator is created, it calculates a modified offset that is to be used with respect to the current render object. This offset can be queried with this function. This value can only be trusted immediately after having instantiated a line iterator or one of its derivatives.
Definition at line 596 of file khtml_caret_p.h. |
|
seeks next block.
Definition at line 1343 of file khtml_caret.cpp. References khtml::LinearDocument::baseObject(), khtml::LinearDocument::cblDeleter, and kdDebug(). Referenced by advance(). |
|
seeks previous block.
Definition at line 1410 of file khtml_caret.cpp. References khtml::LinearDocument::baseObject(), khtml::LinearDocument::cblDeleter, and kdDebug(). Referenced by advance(). |
The documentation for this class was generated from the following files: