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 27 of file edittextiterator.hxx.

Constructor & Destructor Documentation

◆ EditTextIterator()

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

Definition at line 17 of file edittextiterator.cxx.

References first, and init().

Member Function Documentation

◆ first()

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

Definition at line 69 of file edittextiterator.cxx.

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

Referenced by ScXMLExport::ExportCellTextAutoStyles().

◆ incBlock()

void sc::EditTextIterator::incBlock ( )
private

Definition at line 63 of file edittextiterator.cxx.

References maPos.

Referenced by next(), and seek().

◆ init()

void sc::EditTextIterator::init ( )
private

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

Definition at line 26 of file edittextiterator.cxx.

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

Referenced by EditTextIterator(), and first().

◆ next()

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

Definition at line 77 of file edittextiterator.cxx.

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

Referenced by ScXMLExport::ExportCellTextAutoStyles().

◆ seek()

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 40 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

◆ maPos

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

Definition at line 32 of file edittextiterator.hxx.

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

◆ miEnd

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

Definition at line 33 of file edittextiterator.hxx.

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

◆ mnCol

SCCOL sc::EditTextIterator::mnCol
private

Definition at line 30 of file edittextiterator.hxx.

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

◆ mpCells

const CellStoreType* sc::EditTextIterator::mpCells
private

Definition at line 31 of file edittextiterator.hxx.

Referenced by init(), and seek().

◆ mrTable

const ScTable& sc::EditTextIterator::mrTable
private

Definition at line 29 of file edittextiterator.hxx.

Referenced by init(), and seek().


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