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 22 of file columniterator.hxx.

Constructor & Destructor Documentation

◆ ScColumnTextWidthIterator() [1/3]

ScColumnTextWidthIterator::ScColumnTextWidthIterator ( const ScColumnTextWidthIterator )
delete

◆ ScColumnTextWidthIterator() [2/3]

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() [3/3]

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

◆ checkEndRow()

void ScColumnTextWidthIterator::checkEndRow ( )
private

Definition at line 160 of file columniterator.cxx.

References miBlockCur, miBlockEnd, mnCurPos, and mnEnd.

Referenced by init(), and next().

◆ getDataIterators()

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().

◆ getPos()

SCROW ScColumnTextWidthIterator::getPos ( ) const

Definition at line 72 of file columniterator.cxx.

References miBlockCur, miBlockEnd, miDataCur, miDataEnd, and mnCurPos.

Referenced by ScTable::InvalidateTextWidth().

◆ getValue()

sal_uInt16 ScColumnTextWidthIterator::getValue ( ) const

Definition at line 78 of file columniterator.cxx.

References miBlockCur, miBlockEnd, miDataCur, and miDataEnd.

◆ hasCell()

bool ScColumnTextWidthIterator::hasCell ( ) const

Definition at line 67 of file columniterator.cxx.

References miBlockCur, and miBlockEnd.

Referenced by ScTable::InvalidateTextWidth().

◆ init()

void ScColumnTextWidthIterator::init ( const ScDocument rDoc,
SCROW  nStartRow,
SCROW  nEndRow 
)
private

◆ next()

void ScColumnTextWidthIterator::next ( )

◆ operator=()

const ScColumnTextWidthIterator & ScColumnTextWidthIterator::operator= ( const ScColumnTextWidthIterator )
delete

◆ setValue()

void ScColumnTextWidthIterator::setValue ( sal_uInt16  nVal)

Definition at line 84 of file columniterator.cxx.

References miBlockCur, miBlockEnd, miDataCur, and miDataEnd.

Referenced by ScTable::InvalidateTextWidth().

Member Data Documentation

◆ miBlockCur

sc::CellTextAttrStoreType::iterator ScColumnTextWidthIterator::miBlockCur
private

◆ miBlockEnd

sc::CellTextAttrStoreType::iterator ScColumnTextWidthIterator::miBlockEnd
private

◆ miDataCur

sc::celltextattr_block::iterator ScColumnTextWidthIterator::miDataCur
private

Definition at line 28 of file columniterator.hxx.

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

◆ miDataEnd

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

Definition at line 29 of file columniterator.hxx.

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

◆ mnCurPos

size_t ScColumnTextWidthIterator::mnCurPos
private

Definition at line 25 of file columniterator.hxx.

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

◆ mnEnd

const size_t ScColumnTextWidthIterator::mnEnd
private

Definition at line 24 of file columniterator.hxx.

Referenced by checkEndRow().


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