kspread Library API Documentation

KSpreadRangeIterator Class Reference

KSpreadRangeIterator. More...

#include <kspread_util.h>

Collaboration diagram for KSpreadRangeIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KSpreadRangeIterator (QRect _range, KSpreadSheet *_sheet)
KSpreadCellfirst ()
KSpreadCellnext ()

Detailed Description

KSpreadRangeIterator.

Class to simplify the process of iterating through each cell in a range that has already been allocated

Definition at line 153 of file kspread_util.h.


Constructor & Destructor Documentation

KSpreadRangeIterator::KSpreadRangeIterator QRect  _range,
KSpreadSheet *  _sheet
 

Contstruct the iterator with the rectangular cell area and which sheet the area is on.

Definition at line 508 of file kspread_util.cc.


Member Function Documentation

KSpreadCell * KSpreadRangeIterator::first  ) 
 

Returns:
the first allocated cell in the area

Definition at line 519 of file kspread_util.cc.

References next().

Referenced by next().

KSpreadCell * KSpreadRangeIterator::next  ) 
 

Returns:
the next allocated cell in the area after the previous one retrieved, or NULL if it was the last one.

Definition at line 529 of file kspread_util.cc.

References KSpreadCell::column(), and first().

Referenced by first().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:47 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003