khtml Library API Documentation

khtml::InlineBoxIterator Class Reference

Iterates over the inner elements of an inline flow box. More...

#include <khtml_caret_p.h>

Inheritance diagram for khtml::InlineBoxIterator:

khtml::EditableInlineBoxIterator List of all members.

Public Methods

 InlineBoxIterator (RenderArena *arena, InlineFlowBox *flowBox, bool fromEnd=false)
 InlineBoxIterator (LineIterator &lit, bool fromEnd=false, InlineBox *initBox=0)
 InlineBoxIterator ()
InlineBox * operator * () const
InlineBoxIterator & operator++ ()
InlineBoxIterator & operator-- ()

Detailed Description

Iterates over the inner elements of an inline flow box.

The given inline flow box must be a line box. The incrementor will traverse all leaf inline boxes. It will also generate transient inline boxes for those render objects that do not have one.

Author:
Leo Savernik

Definition at line 334 of file khtml_caret_p.h.


Constructor & Destructor Documentation

khtml::InlineBoxIterator::InlineBoxIterator RenderArena *    arena,
InlineFlowBox *    flowBox,
bool    fromEnd = false
 

creates a new iterator, initialized with the given flow box.

Definition at line 153 of file khtml_caret.cpp.

khtml::InlineBoxIterator::InlineBoxIterator LineIterator   lit,
bool    fromEnd = false,
InlineBox *    initBox = 0
 

creates a new iterator, initialized with the given line iterator, initialized to the given inline box, if specified.

Definition at line 159 of file khtml_caret.cpp.

khtml::InlineBoxIterator::InlineBoxIterator   [inline]
 

empty constructor.

Definition at line 352 of file khtml_caret_p.h.


Member Function Documentation

InlineBox* khtml::InlineBoxIterator::operator *   const [inline]
 

returns the current leaf inline box.

Returns:
the box or 0 if the end has been reached.

Definition at line 358 of file khtml_caret_p.h.

InlineBoxIterator & khtml::InlineBoxIterator::operator++  
 

increments the iterator to point to the next inline box on this line box.

Reimplemented in khtml::EditableInlineBoxIterator.

Definition at line 168 of file khtml_caret.cpp.

InlineBoxIterator & khtml::InlineBoxIterator::operator--  
 

decrements the iterator to point to the previous inline box on this line box.

Reimplemented in khtml::EditableInlineBoxIterator.

Definition at line 194 of file khtml_caret.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for khtml Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:37:28 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003