• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • EditableCaretBoxIterator
Public Member Functions | Protected Member Functions

khtml::EditableCaretBoxIterator Class Reference

Iterates over the editable inner elements of a caret line box. More...

#include <khtml_caret_p.h>

Inheritance diagram for khtml::EditableCaretBoxIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 EditableCaretBoxIterator (LineIterator &lit, bool fromEnd=false, CaretBoxIterator *it=0)
 EditableCaretBoxIterator ()
void advance (bool toBegin)
bool isAdjacent () const
EditableCaretBoxIterator & operator++ ()
EditableCaretBoxIterator & operator-- ()

Protected Member Functions

bool isEditable (const CaretBoxIterator &boxit, bool fromEnd)

Detailed Description

Iterates over the editable inner elements of a caret line box.

The incrementor will traverse all caret boxes according to the associated linear document's caret advance policy. In contrast to CaretBoxIterator this iterator only regards caret boxes which are editable.

Author:
Leo Savernik

Definition at line 742 of file khtml_caret_p.h.


Constructor & Destructor Documentation

khtml::EditableCaretBoxIterator::EditableCaretBoxIterator ( LineIterator &  lit,
bool  fromEnd = false,
CaretBoxIterator *  it = 0 
) [inline]

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

Definition at line 751 of file khtml_caret_p.h.

khtml::EditableCaretBoxIterator::EditableCaretBoxIterator ( ) [inline]

empty constructor.

Use only to copy another iterator into this one.

Definition at line 764 of file khtml_caret_p.h.


Member Function Documentation

void khtml::EditableCaretBoxIterator::advance ( bool  toBegin)

advances to the editable caret box to come

Parameters:
toBegintrue, move towards beginning, false, move towards end.

Definition at line 1507 of file khtml_caret.cpp.

bool khtml::EditableCaretBoxIterator::isAdjacent ( ) const [inline]

returns true when the current caret box is adjacent to the previously iterated caret box, i.

e. no intervening caret boxes.

Definition at line 769 of file khtml_caret_p.h.

bool khtml::EditableCaretBoxIterator::isEditable ( const CaretBoxIterator &  boxit,
bool  fromEnd 
) [protected]

finds out if the given box is editable.

Parameters:
boxititerator to given caret box
fromEndtrue when advancing towards the beginning
Returns:
true if box is editable

Definition at line 1644 of file khtml_caret.cpp.

EditableCaretBoxIterator& khtml::EditableCaretBoxIterator::operator++ ( ) [inline]

increments the iterator to point to the next editable caret box.

Reimplemented from khtml::CaretBoxIterator.

Definition at line 773 of file khtml_caret_p.h.

EditableCaretBoxIterator& khtml::EditableCaretBoxIterator::operator-- ( ) [inline]

decrements the iterator to point to the previous editable caret box.

Reimplemented from khtml::CaretBoxIterator.

Definition at line 777 of file khtml_caret_p.h.


The documentation for this class was generated from the following files:
  • khtml_caret_p.h
  • khtml_caret.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal