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

#include <column.hxx>

Inheritance diagram for ScColumnData:
[legend]

Public Member Functions

 ScColumnData ()=default
 
void InitAttrArray (ScAttrArray *attrArray)
 
ScDocumentGetDoc () const
 
ScAttrArrayAttrArray ()
 
const ScAttrArrayAttrArray () const
 
const SfxPoolItemGetAttr (SCROW nRow, sal_uInt16 nWhich) const
 
template<class T >
const T & GetAttr (SCROW nRow, TypedWhichId< T > nWhich) const
 
const SfxPoolItemGetAttr (SCROW nRow, sal_uInt16 nWhich, SCROW &nStartRow, SCROW &nEndRow) const
 
template<class T >
const T & GetAttr (SCROW nRow, TypedWhichId< T > nWhich, SCROW &nStartRow, SCROW &nEndRow) const
 
void SetAttrEntries (std::vector< ScAttrEntry > &&vNewData)
 
const ScPatternAttrGetPattern (SCROW nRow) const
 
const ScPatternAttrGetMostUsedPattern (SCROW nStartRow, SCROW nEndRow) const
 
SCROW ApplySelectionCache (SfxItemPoolCache *pCache, const ScMarkData &rMark, ScEditDataArray *pDataArray, bool *const pIsChanged, SCCOL nCol)
 
void ApplyPatternArea (SCROW nStartRow, SCROW nEndRow, const ScPatternAttr &rPatAttr, ScEditDataArray *pDataArray=nullptr, bool *const pIsChanged=nullptr)
 
void MergePatternArea (ScMergePatternState &rState, SCROW nRow1, SCROW nRow2, bool bDeep) const
 
sal_uInt32 GetNumberFormat (const ScInterpreterContext &rContext, SCROW nRow) const
 
sal_uInt32 GetNumberFormat (SCROW nStartRow, SCROW nEndRow) const
 
SCROW GetNextUnprotected (SCROW nRow, bool bUp) const
 Including current, may return -1. More...
 
const ScStyleSheetGetStyle (SCROW nRow) const
 
void ApplyStyleArea (SCROW nStartRow, SCROW nEndRow, const ScStyleSheet &rStyle)
 
bool HasAttrib (SCROW nRow1, SCROW nRow2, HasAttrFlags nMask) const
 
bool HasAttrib (SCROW nRow, HasAttrFlags nMask, SCROW *nStartRow=nullptr, SCROW *nEndRow=nullptr) const
 
std::unique_ptr< ScAttrIteratorCreateAttrIterator (SCROW nStartRow, SCROW nEndRow) const
 
bool IsAllAttrEqual (const ScColumnData &rCol, SCROW nStartRow, SCROW nEndRow) const
 
void ClearSelectionItems (const sal_uInt16 *pWhich, const ScMarkData &rMark, SCCOL nCol)
 
void ChangeSelectionIndent (bool bIncrement, const ScMarkData &rMark, SCCOL nCol)
 
bool TestInsertRow (SCSIZE nSize) const
 
void InsertRow (SCROW nStartRow, SCSIZE nSize)
 
void DeleteRow (SCROW nStartRow, SCSIZE nSize)
 

Protected Member Functions

 ScColumnData (const ScColumnData &)=delete
 
ScColumnDataoperator= (const ScColumnData &)=delete
 

Protected Attributes

std::unique_ptr< ScAttrArraypAttrArray
 

Detailed Description

Definition at line 115 of file column.hxx.

Constructor & Destructor Documentation

◆ ScColumnData() [1/2]

ScColumnData::ScColumnData ( const ScColumnData )
protecteddelete

◆ ScColumnData() [2/2]

ScColumnData::ScColumnData ( )
default

Member Function Documentation

◆ ApplyPatternArea()

void ScColumnData::ApplyPatternArea ( SCROW  nStartRow,
SCROW  nEndRow,
const ScPatternAttr rPatAttr,
ScEditDataArray pDataArray = nullptr,
bool *const  pIsChanged = nullptr 
)

◆ ApplySelectionCache()

SCROW ScColumnData::ApplySelectionCache ( SfxItemPoolCache pCache,
const ScMarkData rMark,
ScEditDataArray pDataArray,
bool *const  pIsChanged,
SCCOL  nCol 
)

◆ ApplyStyleArea()

void ScColumnData::ApplyStyleArea ( SCROW  nStartRow,
SCROW  nEndRow,
const ScStyleSheet rStyle 
)
inline

Definition at line 995 of file column.hxx.

References pAttrArray.

Referenced by ScTable::ApplyStyleArea().

◆ AttrArray() [1/2]

ScAttrArray & ScColumnData::AttrArray ( )
inline

Definition at line 129 of file column.hxx.

References pAttrArray.

◆ AttrArray() [2/2]

const ScAttrArray & ScColumnData::AttrArray ( ) const
inline

Definition at line 130 of file column.hxx.

References pAttrArray.

◆ ChangeSelectionIndent()

void ScColumnData::ChangeSelectionIndent ( bool  bIncrement,
const ScMarkData rMark,
SCCOL  nCol 
)

◆ ClearSelectionItems()

void ScColumnData::ClearSelectionItems ( const sal_uInt16 *  pWhich,
const ScMarkData rMark,
SCCOL  nCol 
)

◆ CreateAttrIterator()

std::unique_ptr< ScAttrIterator > ScColumnData::CreateAttrIterator ( SCROW  nStartRow,
SCROW  nEndRow 
) const

Definition at line 2047 of file column3.cxx.

References ScColumn::GetDoc(), and pAttrArray.

◆ DeleteRow()

void ScColumnData::DeleteRow ( SCROW  nStartRow,
SCSIZE  nSize 
)
inline

Definition at line 1061 of file column.hxx.

References pAttrArray.

Referenced by ScTable::UpdateReference().

◆ GetAttr() [1/4]

const SfxPoolItem & ScColumnData::GetAttr ( SCROW  nRow,
sal_uInt16  nWhich 
) const
inline

Definition at line 970 of file column.hxx.

References pAttrArray.

Referenced by ScTable::ExtendMerge(), ScTable::GetAttr(), and GetAttr().

◆ GetAttr() [2/4]

const SfxPoolItem & ScColumnData::GetAttr ( SCROW  nRow,
sal_uInt16  nWhich,
SCROW nStartRow,
SCROW nEndRow 
) const
inline

Definition at line 975 of file column.hxx.

References pAttrArray.

◆ GetAttr() [3/4]

template<class T >
const T & ScColumnData::GetAttr ( SCROW  nRow,
TypedWhichId< T >  nWhich 
) const
inline

Definition at line 133 of file column.hxx.

References GetAttr().

◆ GetAttr() [4/4]

template<class T >
const T & ScColumnData::GetAttr ( SCROW  nRow,
TypedWhichId< T >  nWhich,
SCROW nStartRow,
SCROW nEndRow 
) const
inline

Definition at line 138 of file column.hxx.

References GetAttr().

◆ GetDoc()

ScDocument & ScColumnData::GetDoc ( ) const
inline

Definition at line 127 of file column.hxx.

References pAttrArray.

Referenced by ApplyPatternArea(), ApplySelectionCache(), GetMostUsedPattern(), and GetNumberFormat().

◆ GetMostUsedPattern()

const ScPatternAttr * ScColumnData::GetMostUsedPattern ( SCROW  nStartRow,
SCROW  nEndRow 
) const

Definition at line 337 of file column.cxx.

References GetDoc(), ScAttrIterator::Next(), and pAttrArray.

Referenced by ScTable::GetMostUsedPattern().

◆ GetNextUnprotected()

SCROW ScColumnData::GetNextUnprotected ( SCROW  nRow,
bool  bUp 
) const
inline

Including current, may return -1.

Definition at line 925 of file column.hxx.

References pAttrArray.

Referenced by ScTable::GetNextPos().

◆ GetNumberFormat() [1/2]

sal_uInt32 ScColumnData::GetNumberFormat ( const ScInterpreterContext rContext,
SCROW  nRow 
) const
inline

Definition at line 980 of file column.hxx.

References ScInterpreterContext::GetFormatTable(), and pAttrArray.

Referenced by ScTable::GetNumberFormat().

◆ GetNumberFormat() [2/2]

sal_uInt32 ScColumnData::GetNumberFormat ( SCROW  nStartRow,
SCROW  nEndRow 
) const

Definition at line 361 of file column.cxx.

References GetDoc(), ScPatternAttr::GetNumberFormat(), and pAttrArray.

◆ GetPattern()

const ScPatternAttr * ScColumnData::GetPattern ( SCROW  nRow) const
inline

Definition at line 965 of file column.hxx.

References pAttrArray.

Referenced by ScTable::CopyStaticToDocument(), ScTable::FillAuto(), and ScTable::GetPattern().

◆ GetStyle()

const ScStyleSheet * ScColumnData::GetStyle ( SCROW  nRow) const
inline

Definition at line 1000 of file column.hxx.

References pAttrArray.

Referenced by ScTable::GetStyle().

◆ HasAttrib() [1/2]

bool ScColumnData::HasAttrib ( SCROW  nRow,
HasAttrFlags  nMask,
SCROW nStartRow = nullptr,
SCROW nEndRow = nullptr 
) const
inline

Definition at line 935 of file column.hxx.

References pAttrArray.

◆ HasAttrib() [2/2]

bool ScColumnData::HasAttrib ( SCROW  nRow1,
SCROW  nRow2,
HasAttrFlags  nMask 
) const
inline

Definition at line 930 of file column.hxx.

References pAttrArray.

Referenced by ScColumn::GetNextSpellingCell(), and ScTable::HasAttrib().

◆ InitAttrArray()

void ScColumnData::InitAttrArray ( ScAttrArray attrArray)
inline

Definition at line 125 of file column.hxx.

References pAttrArray.

Referenced by ScColumn::Init(), and ScTable::ScTable().

◆ InsertRow()

void ScColumnData::InsertRow ( SCROW  nStartRow,
SCSIZE  nSize 
)
inline

Definition at line 1056 of file column.hxx.

References pAttrArray.

Referenced by ScTable::InsertRow().

◆ IsAllAttrEqual()

bool ScColumnData::IsAllAttrEqual ( const ScColumnData rCol,
SCROW  nStartRow,
SCROW  nEndRow 
) const
inline

Definition at line 878 of file column.hxx.

References pAttrArray.

◆ MergePatternArea()

void ScColumnData::MergePatternArea ( ScMergePatternState rState,
SCROW  nRow1,
SCROW  nRow2,
bool  bDeep 
) const
inline

Definition at line 947 of file column.hxx.

References pAttrArray.

Referenced by ScTable::MergePatternArea().

◆ operator=()

ScColumnData & ScColumnData::operator= ( const ScColumnData )
protecteddelete

◆ SetAttrEntries()

void ScColumnData::SetAttrEntries ( std::vector< ScAttrEntry > &&  vNewData)
inline

Definition at line 1046 of file column.hxx.

References pAttrArray.

Referenced by ScTable::SetAttrEntries().

◆ TestInsertRow()

bool ScColumnData::TestInsertRow ( SCSIZE  nSize) const
inline

Definition at line 1051 of file column.hxx.

References pAttrArray.

Referenced by ScTable::TestInsertRow().

Member Data Documentation

◆ pAttrArray

std::unique_ptr<ScAttrArray> ScColumnData::pAttrArray
protected

Definition at line 118 of file column.hxx.

Referenced by ScColumn::AddCondFormat(), ScColumn::ApplyAttr(), ScColumn::ApplyBlockFrame(), ScColumn::ApplyFlags(), ScColumn::ApplyPattern(), ApplyPatternArea(), ScColumn::ApplyPatternIfNumberformatIncompatible(), ApplySelectionCache(), ScColumn::ApplySelectionLineStyle(), ScColumn::ApplySelectionStyle(), ScColumn::ApplyStyle(), ApplyStyleArea(), AttrArray(), ChangeSelectionIndent(), ScColumn::ClearItems(), ClearSelectionItems(), ScColumn::CopyFromClip(), ScColumn::CopyOneCellFromClip(), ScColumn::CopyScenarioFrom(), ScColumn::CopyScenarioTo(), ScColumn::CopyToClip(), ScColumn::CopyToColumn(), CreateAttrIterator(), ScColumn::DeleteArea(), ScColumn::DeleteBeforeCopyFromClip(), DeleteRow(), ScColumn::DeleteRow(), ScColumn::ExtendMerge(), ScDocument::FillInfo(), ScColumn::FindStyleSheet(), ScColumn::GetAreaStyle(), GetAttr(), ScDBQueryDataIterator::GetAttrArrayByCol(), GetDoc(), ScColumn::GetFirstVisibleAttr(), ScColumn::GetLastVisibleAttr(), GetMostUsedPattern(), ScColumn::GetNeededSize(), ScHorizontalValueIterator::GetNext(), GetNextUnprotected(), GetNumberFormat(), ScColumn::GetOptimalHeight(), GetPattern(), ScColumn::GetPatternCount(), ScColumn::GetSelectionStyle(), GetStyle(), ScValueIterator::GetThis(), ScColumn::GetUnprotectedCells(), HasAttrib(), ScColumn::HasAttribSelection(), ScColumn::HasVisibleAttrIn(), InitAttrArray(), InsertRow(), ScColumn::InsertRow(), IsAllAttrEqual(), ScColumn::IsEmptyAttr(), ScColumn::IsMerged(), ScColumn::IsStyleSheetUsed(), ScColumn::IsVisibleAttrEqual(), ScColumn::MarkScenarioIn(), ScColumn::MergeBlockFrame(), MergePatternArea(), ScColumn::MergeSelectionPattern(), ScColumn::MoveTo(), ScColumn::RemoveCondFormat(), ScColumn::RemoveFlags(), ScColumn::RemoveProtected(), ScColumn::ReservePatternCount(), ScColumn::SearchStyle(), ScColumn::SearchStyleRange(), SetAttrEntries(), ScColumn::SetPattern(), ScColumn::SetPatternArea(), ScColumn::SetTabNo(), ScColumn::SwapCol(), ScColumn::TestCopyScenarioTo(), ScColumn::TestInsertCol(), ScColumn::TestInsertRow(), TestInsertRow(), ScColumn::UpdateDeleteTab(), ScColumn::UpdateInsertTab(), and ScColumn::UpdateMoveTab().


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