LibreOffice Module sc (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::EditTextIterator Class Reference

Iterate through all edit text cells in a given sheet. More...

#include <edittextiterator.hxx>

Collaboration diagram for sc::EditTextIterator:
[legend]

Public Member Functions

 EditTextIterator (const ScDocument &rDoc, SCTAB nTab)
 
const EditTextObjectfirst ()
 
const EditTextObjectnext ()
 

Private Member Functions

const EditTextObjectseek ()
 Move to the next edit text cell position if the current position is not an edit text. More...
 
void incBlock ()
 
void init ()
 Initialize members w.r.t the dynamic column container in the given table. More...
 

Private Attributes

const ScTablemrTable
 
SCCOL mnCol
 
const CellStoreTypempCells
 
CellStoreType::const_position_type maPos
 
CellStoreType::const_iterator miEnd
 

Detailed Description

Iterate through all edit text cells in a given sheet.

The caller must check the validity of the sheet index passed to its constructor.

It iterates from top to bottom, and then left to right order.

Definition at line 28 of file edittextiterator.hxx.

Constructor & Destructor Documentation

sc::EditTextIterator::EditTextIterator ( const ScDocument rDoc,
SCTAB  nTab 
)

Definition at line 17 of file edittextiterator.cxx.

References first, and init().

Member Function Documentation

const EditTextObject * sc::EditTextIterator::first ( )

Definition at line 70 of file edittextiterator.cxx.

References init(), mnCol, and seek().

Referenced by ScXMLExport::ExportCellTextAutoStyles().

void sc::EditTextIterator::incBlock ( )
private

Definition at line 64 of file edittextiterator.cxx.

References maPos.

Referenced by next(), and seek().

void sc::EditTextIterator::init ( )
private

Initialize members w.r.t the dynamic column container in the given table.

Definition at line 27 of file edittextiterator.cxx.

References ScTable::aCol, maPos, miEnd, mnCol, mpCells, mrTable, and ScColContainer::size().

Referenced by EditTextIterator(), and first().

const EditTextObject * sc::EditTextIterator::next ( )

Definition at line 78 of file edittextiterator.cxx.

References incBlock(), maPos, miEnd, mnCol, and seek().

Referenced by ScXMLExport::ExportCellTextAutoStyles().

const EditTextObject * sc::EditTextIterator::seek ( )
private

Move to the next edit text cell position if the current position is not an edit text.

Definition at line 41 of file edittextiterator.cxx.

References ScTable::aCol, sc::element_type_edittext, incBlock(), maPos, miEnd, mnCol, mpCells, mrTable, and ScColContainer::size().

Referenced by first(), and next().

Member Data Documentation

CellStoreType::const_position_type sc::EditTextIterator::maPos
private

Definition at line 33 of file edittextiterator.hxx.

Referenced by incBlock(), init(), next(), and seek().

CellStoreType::const_iterator sc::EditTextIterator::miEnd
private

Definition at line 34 of file edittextiterator.hxx.

Referenced by init(), next(), and seek().

SCCOL sc::EditTextIterator::mnCol
private

Definition at line 31 of file edittextiterator.hxx.

Referenced by first(), init(), next(), and seek().

const CellStoreType* sc::EditTextIterator::mpCells
private

Definition at line 32 of file edittextiterator.hxx.

Referenced by init(), and seek().

const ScTable& sc::EditTextIterator::mrTable
private

Definition at line 30 of file edittextiterator.hxx.

Referenced by init(), and seek().


The documentation for this class was generated from the following files: