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

#include <columniterator.hxx>

Public Member Functions

 ScColumnTextWidthIterator (const ScColumnTextWidthIterator &)=delete
 
const ScColumnTextWidthIteratoroperator= (const ScColumnTextWidthIterator &)=delete
 
 ScColumnTextWidthIterator (const ScDocument &rDoc, ScColumn &rCol, SCROW nStartRow, SCROW nEndRow)
 
 ScColumnTextWidthIterator (const ScDocument &rDoc, const ScAddress &rStartPos, SCROW nEndRow)
 
void next ()
 
bool hasCell () const
 
SCROW getPos () const
 
sal_uInt16 getValue () const
 
void setValue (sal_uInt16 nVal)
 

Private Member Functions

void init (const ScDocument &rDoc, SCROW nStartRow, SCROW nEndRow)
 
void getDataIterators (size_t nOffsetInBlock)
 
void checkEndRow ()
 

Private Attributes

const size_t mnEnd
 
size_t mnCurPos
 
sc::CellTextAttrStoreType::iterator miBlockCur
 
sc::CellTextAttrStoreType::iterator miBlockEnd
 
sc::celltextattr_block::iterator miDataCur
 
sc::celltextattr_block::iterator miDataEnd
 

Detailed Description

Definition at line 23 of file columniterator.hxx.

Constructor & Destructor Documentation

ScColumnTextWidthIterator::ScColumnTextWidthIterator ( const ScColumnTextWidthIterator )
delete
ScColumnTextWidthIterator::ScColumnTextWidthIterator ( const ScDocument rDoc,
ScColumn rCol,
SCROW  nStartRow,
SCROW  nEndRow 
)

Definition at line 17 of file columniterator.cxx.

References init(), ScColumn::maCellTextAttrs, miBlockCur, and miBlockEnd.

ScColumnTextWidthIterator::ScColumnTextWidthIterator ( const ScDocument rDoc,
const ScAddress rStartPos,
SCROW  nEndRow 
)
Parameters
rDocdocument instance.
rStartPosposition of the first cell from which to start iteration. Note that the caller must ensure that this position is valid; the constructor does not check its validity.
nEndRowend row position.

Definition at line 26 of file columniterator.cxx.

References ScAddress::Col(), init(), ScDocument::maTabs, miBlockCur, miBlockEnd, ScAddress::Row(), and ScAddress::Tab().

Member Function Documentation

void ScColumnTextWidthIterator::checkEndRow ( )
private

Definition at line 160 of file columniterator.cxx.

References miBlockCur, miBlockEnd, mnCurPos, and mnEnd.

Referenced by init(), and next().

void ScColumnTextWidthIterator::getDataIterators ( size_t  nOffsetInBlock)
private

Definition at line 146 of file columniterator.cxx.

References miBlockCur, miBlockEnd, miDataCur, and miDataEnd.

Referenced by init(), and next().

SCROW ScColumnTextWidthIterator::getPos ( ) const

Definition at line 72 of file columniterator.cxx.

References assert(), miBlockCur, miBlockEnd, miDataCur, miDataEnd, and mnCurPos.

Referenced by ScTable::InvalidateTextWidth().

sal_uInt16 ScColumnTextWidthIterator::getValue ( ) const

Definition at line 78 of file columniterator.cxx.

References assert(), miBlockCur, miBlockEnd, miDataCur, and miDataEnd.

bool ScColumnTextWidthIterator::hasCell ( ) const

Definition at line 67 of file columniterator.cxx.

References miBlockCur, and miBlockEnd.

Referenced by ScTable::InvalidateTextWidth().

void ScColumnTextWidthIterator::init ( const ScDocument rDoc,
SCROW  nStartRow,
SCROW  nEndRow 
)
private
void ScColumnTextWidthIterator::next ( )
const ScColumnTextWidthIterator& ScColumnTextWidthIterator::operator= ( const ScColumnTextWidthIterator )
delete
void ScColumnTextWidthIterator::setValue ( sal_uInt16  nVal)

Definition at line 84 of file columniterator.cxx.

References assert(), miBlockCur, miBlockEnd, miDataCur, and miDataEnd.

Referenced by ScTable::InvalidateTextWidth().

Member Data Documentation

sc::CellTextAttrStoreType::iterator ScColumnTextWidthIterator::miBlockCur
private
sc::CellTextAttrStoreType::iterator ScColumnTextWidthIterator::miBlockEnd
private
sc::celltextattr_block::iterator ScColumnTextWidthIterator::miDataCur
private

Definition at line 29 of file columniterator.hxx.

Referenced by getDataIterators(), getPos(), getValue(), next(), and setValue().

sc::celltextattr_block::iterator ScColumnTextWidthIterator::miDataEnd
private

Definition at line 30 of file columniterator.hxx.

Referenced by getDataIterators(), getPos(), getValue(), next(), and setValue().

size_t ScColumnTextWidthIterator::mnCurPos
private

Definition at line 26 of file columniterator.hxx.

Referenced by checkEndRow(), getPos(), init(), and next().

const size_t ScColumnTextWidthIterator::mnEnd
private

Definition at line 25 of file columniterator.hxx.

Referenced by checkEndRow().


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