khtml::EditableCharacterIterator Class Reference
Provides iterating through the document in terms of characters. More...
#include <khtml_caret_p.h>
Collaboration diagram for khtml::EditableCharacterIterator:

| Public Member Functions | |
| EditableCharacterIterator () | |
| EditableCharacterIterator (LinearDocument *ld) | |
| int | chr () const | 
| QChar | operator * () const | 
| long | offset () const | 
| DOM::NodeImpl * | node () const | 
| InlineBox * | box () const | 
| EditableCharacterIterator & | operator++ () | 
| EditableCharacterIterator & | operator-- () | 
| Protected Member Functions | |
| void | initFirstChar () | 
| void | peekNext () | 
| void | peekPrev () | 
| Protected Attributes | |
| LinearDocument * | ld | 
| EditableLineIterator | _it | 
| EditableInlineBoxIterator | ebit | 
| DOM::NodeImpl * | _node | 
| long | _offset | 
| int | _char | 
Detailed Description
Provides iterating through the document in terms of characters.Only the editable characters are regarded.
This iterator represents the document, which is structured as a tree itself, as a linear stream of characters.
Definition at line 767 of file khtml_caret_p.h.
Constructor & Destructor Documentation
| 
 | 
| empty constructor. Only use if you want to assign another constructor as no fields will be initialized. Definition at line 783 of file khtml_caret_p.h. | 
| 
 | 
| constructs a new iterator from the given linear document. 
 
 Definition at line 789 of file khtml_caret_p.h. References khtml::LineIterator::currentInlineBox(), khtml::LinearDocument::end(), endl(), initFirstChar(), kdDebug(), khtml::LinearDocument::node, and khtml::LinearDocument::offset. | 
Member Function Documentation
| 
 | 
| returns the current character, or -1 if not on a text node, or beyond the end. 
 Definition at line 837 of file khtml_caret_p.h. | 
| 
 | 
| returns the current character as a unicode symbol, substituting a blank for a non-text node. 
 Definition at line 842 of file khtml_caret_p.h. Referenced by operator--(). | 
| 
 | 
| returns the current offset 
 Definition at line 846 of file khtml_caret_p.h. | 
| 
 | 
| returns the current node. If it's 0, then there are no more nodes. Definition at line 851 of file khtml_caret_p.h. | 
| 
 | 
| returns the current inline box. May be 0 if the current element has none, or if the end has been reached. Therefore, do *not* use this to test for the end condition, use node() instead. Definition at line 858 of file khtml_caret_p.h. | 
| 
 | 
| moves to the next editable character. 
 _peekNext Definition at line 800 of file khtml_caret.cpp. Referenced by operator--(). | 
| 
 | 
| moves to the previous editable character. 
 Definition at line 886 of file khtml_caret.cpp. References operator *(), and operator++(). | 
| 
 | 
| initializes the _char member by reading the character at the current offset, peeking ahead as necessary. 
 Definition at line 787 of file khtml_caret.cpp. Referenced by EditableCharacterIterator(). | 
| 
 | 
| reads ahead the next node and updates the data structures accordingly 
 Definition at line 874 of file khtml_caret_p.h. | 
| 
 | 
| reads ahead the previous node and updates the data structures accordingly 
 Definition at line 886 of file khtml_caret_p.h. | 
The documentation for this class was generated from the following files:

