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

KHTML

  • khtml
  • EditableCaretBoxIterator
Public Member Functions | Protected Member Functions | List of all members
khtml::EditableCaretBoxIterator Class Reference

#include <khtml_caret_p.h>

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

Public Member Functions

 EditableCaretBoxIterator (LineIterator &lit, bool fromEnd=false, CaretBoxIterator *it=0)
 
 EditableCaretBoxIterator ()
 
void advance (bool toBegin)
 
bool isAdjacent () const
 
EditableCaretBoxIterator & operator++ ()
 
EditableCaretBoxIterator & operator-- ()
 
- Public Member Functions inherited from khtml::CaretBoxIterator
 CaretBoxIterator ()
 
CaretBox * data () const
 
bool operator!= (const CaretBoxIterator &it) const
 
CaretBox * operator* () const
 
CaretBoxIterator & operator++ ()
 
CaretBoxIterator & operator-- ()
 
bool operator== (const CaretBoxIterator &it) const
 

Protected Member Functions

bool isEditable (const CaretBoxIterator &boxit, bool fromEnd)
 

Additional Inherited Members

- Protected Attributes inherited from khtml::CaretBoxIterator
CaretBoxLine * cbl
 
int index
 

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 1505 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 1642 of file khtml_caret.cpp.

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

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

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.

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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal