khtml Library API Documentation

khtml::EditableInlineBoxIterator Class Reference

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

#include <khtml_caret_p.h>

Inheritance diagram for khtml::EditableInlineBoxIterator:

khtml::InlineBoxIterator List of all members.

Public Member Functions

 EditableInlineBoxIterator (KHTMLPart *part, RenderArena *arena, InlineFlowBox *flowBox, bool fromEnd=false)
 EditableInlineBoxIterator (LineIterator &lit, bool fromEnd=false, InlineBox *initBox=0)
 EditableInlineBoxIterator ()
bool isAdjacent () const
EditableInlineBoxIteratoroperator++ ()
EditableInlineBoxIteratoroperator-- ()

Protected Member Functions

bool isEditable (InlineBox *b)

Protected Attributes

KHTMLPartm_part
bool adjacent

Detailed Description

Iterates over the editable 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. In contrast to InlineBoxIterator this iterator only regards inline boxes which are editable.

Author:
Leo Savernik

Definition at line 381 of file khtml_caret_p.h.


Constructor & Destructor Documentation

khtml::EditableInlineBoxIterator::EditableInlineBoxIterator KHTMLPart part,
RenderArena *  arena,
InlineFlowBox *  flowBox,
bool  fromEnd = false
[inline]
 

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

Parameters:
part part within which all actions are taking place.
arena arena for transient allocations
flowBox line box to be iterated
fromEnd true, start with last box in line
Definition at line 393 of file khtml_caret_p.h.

References isEditable().

khtml::EditableInlineBoxIterator::EditableInlineBoxIterator LineIterator lit,
bool  fromEnd = false,
InlineBox *  initBox = 0
[inline]
 

initializes a new iterator from the given line iterator, beginning with the given inline box, if specified.

Definition at line 403 of file khtml_caret_p.h.

References isEditable().

khtml::EditableInlineBoxIterator::EditableInlineBoxIterator  )  [inline]
 

empty constructor.

Use only to copy another iterator into this one. Definition at line 418 of file khtml_caret_p.h.


Member Function Documentation

bool khtml::EditableInlineBoxIterator::isAdjacent  )  const [inline]
 

returns true when the current inline box is visually adjacent to the previous inline box, i.

e. no intervening inline boxes. Definition at line 423 of file khtml_caret_p.h.

EditableInlineBoxIterator& khtml::EditableInlineBoxIterator::operator++  )  [inline]
 

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

Reimplemented from khtml::InlineBoxIterator.

Definition at line 428 of file khtml_caret_p.h.

References isEditable().

EditableInlineBoxIterator& khtml::EditableInlineBoxIterator::operator--  )  [inline]
 

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

Reimplemented from khtml::InlineBoxIterator.

Definition at line 440 of file khtml_caret_p.h.

References isEditable().

bool khtml::EditableInlineBoxIterator::isEditable InlineBox *  b  )  [inline, protected]
 

finds out if the given box is editable.

Parameters:
b given inline box
Returns:
true if box is editable
Definition at line 454 of file khtml_caret_p.h.

References endl(), KHTMLPart::isCaretMode(), KHTMLPart::isEditable(), and kdDebug().

Referenced by EditableInlineBoxIterator(), operator++(), and operator--().


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for khtml Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Aug 30 22:56:36 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003