khtml::ErgonomicEditableLineIterator Class Reference
Iterates through the editable lines of a document, in a topological order. More...
#include <khtml_caret_p.h>
Inheritance diagram for khtml::ErgonomicEditableLineIterator:

Public Member Functions | |
ErgonomicEditableLineIterator (const LineIterator &it, int x) | |
ErgonomicEditableLineIterator () | |
ErgonomicEditableLineIterator & | operator++ () |
ErgonomicEditableLineIterator & | operator-- () |
Protected Member Functions | |
void | determineTopologicalElement (RenderTableCell *oldCell, RenderObject *newObject, bool toBegin) |
void | calcAndStoreNewLine (RenderBlock *newBlock, bool toBegin) |
Protected Attributes | |
int | xCoor |
Detailed Description
Iterates through the editable lines of a document, in a topological order.The differences between this and the EditableLineIterator lies in the way lines are inquired. While the latter steps through the lines in document order, the former takes into consideration ergonomics.
This is especially useful for tables. EditableLineIterator traverses all table cells from left to right, top to bottom, while this one will actually snap to the cell in the right position, and traverse only upwards/downwards, thus providing a more intuitive navigation.
- Author:
- Leo Savernik
Definition at line 945 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
Initializes a new ergonomic editable line iterator from the given one.
Definition at line 953 of file khtml_caret_p.h. |
|
Constructs an uninitialized iterator which must be assigned a line iterator before it can be used.
Definition at line 959 of file khtml_caret_p.h. |
Member Function Documentation
|
seek next line. The next line will be one that is visually situated below this line. Reimplemented from khtml::EditableLineIterator. Definition at line 2404 of file khtml_caret.cpp. References determineTopologicalElement(), khtml::LinearDocument::end(), khtml::EditableLineIterator::operator++(), and khtml::LinearDocument::preBegin(). |
|
seek previous line. The previous line will be one that is visually situated above this line. Reimplemented from khtml::EditableLineIterator. Definition at line 2420 of file khtml_caret.cpp. References determineTopologicalElement(), khtml::LinearDocument::end(), khtml::EditableLineIterator::operator--(), and khtml::LinearDocument::preBegin(). |
|
determines the topologically next render object.
Definition at line 2282 of file khtml_caret.cpp. References khtml::LinearDocument::advancePolicy(), khtml::LinearDocument::baseObject(), calcAndStoreNewLine(), kdDebug(), kdError(), and khtml::LinearDocument::m_part. Referenced by operator++(), and operator--(). |
|
initializes the iterator to point to the first previous/following editable line.
Definition at line 2262 of file khtml_caret.cpp. References khtml::EditableLineIterator::advance(), khtml::LinearDocument::cblDeleter, khtml::CaretBoxLine::constructCaretBoxLine(), and kdDebug(). Referenced by determineTopologicalElement(). |
The documentation for this class was generated from the following files: