LibreOffice Module sc (master) 1
|
Iterate through all edit text cells in a given sheet. More...
#include <edittextiterator.hxx>
Public Member Functions | |
EditTextIterator (const ScDocument &rDoc, SCTAB nTab) | |
const EditTextObject * | first () |
const EditTextObject * | next () |
Private Member Functions | |
const EditTextObject * | seek () |
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 ScTable & | mrTable |
SCCOL | mnCol |
const CellStoreType * | mpCells |
CellStoreType::const_position_type | maPos |
CellStoreType::const_iterator | miEnd |
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.
sc::EditTextIterator::EditTextIterator | ( | const ScDocument & | rDoc, |
SCTAB | nTab | ||
) |
Definition at line 17 of file edittextiterator.cxx.
const EditTextObject * sc::EditTextIterator::first | ( | ) |
Definition at line 69 of file edittextiterator.cxx.
References init(), mnCol, and seek().
Referenced by ScXMLExport::ExportCellTextAutoStyles().
|
private |
Definition at line 63 of file edittextiterator.cxx.
References maPos.
|
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().
const EditTextObject * sc::EditTextIterator::next | ( | ) |
Definition at line 77 of file edittextiterator.cxx.
References incBlock(), maPos, miEnd, mnCol, and seek().
Referenced by ScXMLExport::ExportCellTextAutoStyles().
|
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().
|
private |
Definition at line 32 of file edittextiterator.hxx.
Referenced by incBlock(), init(), next(), and seek().
|
private |
Definition at line 33 of file edittextiterator.hxx.
|
private |
|
private |
Definition at line 31 of file edittextiterator.hxx.
|
private |
Definition at line 29 of file edittextiterator.hxx.