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

#include <olinetab.hxx>

Collaboration diagram for ScOutlineArray:
[legend]

Public Member Functions

 ScOutlineArray ()
 
 ScOutlineArray (const ScOutlineArray &rArray)
 
size_t GetDepth () const
 
bool FindTouchedLevel (SCCOLROW nBlockStart, SCCOLROW nBlockEnd, size_t &rFindLevel) const
 
bool Insert (SCCOLROW nStartPos, SCCOLROW nEndPos, bool &rSizeChanged, bool bHidden=false)
 
bool Remove (SCCOLROW nBlockStart, SCCOLROW nBlockEnd, bool &rSizeChanged)
 
ScOutlineEntryGetEntry (size_t nLevel, size_t nIndex)
 
const ScOutlineEntryGetEntry (size_t nLevel, size_t nIndex) const
 
size_t GetCount (size_t nLevel) const
 
const ScOutlineEntryGetEntryByPos (size_t nLevel, SCCOLROW nPos) const
 
bool GetEntryIndex (size_t nLevel, SCCOLROW nPos, size_t &rnIndex) const
 
bool GetEntryIndexInRange (size_t nLevel, SCCOLROW nBlockStart, SCCOLROW nBlockEnd, size_t &rnIndex) const
 
void SetVisibleBelow (size_t nLevel, size_t nEntry, bool bValue, bool bSkipHidden=false)
 
void GetRange (SCCOLROW &rStart, SCCOLROW &rEnd) const
 
void ExtendBlock (size_t nLevel, SCCOLROW &rBlkStart, SCCOLROW &rBlkEnd)
 
bool TestInsertSpace (SCSIZE nSize, SCCOLROW nMaxVal) const
 
void InsertSpace (SCCOLROW nStartPos, SCSIZE nSize)
 
bool DeleteSpace (SCCOLROW nStartPos, SCSIZE nSize)
 
bool ManualAction (SCCOLROW nStartPos, SCCOLROW nEndPos, bool bShow, const ScTable &rTable, bool bCol)
 
void finalizeImport (const ScTable &rTable)
 
void RemoveAll ()
 
OString dumpAsString () const
 

Private Member Functions

bool DecDepth ()
 Adapt nDepth for empty Levels. More...
 
void FindEntry (SCCOLROW nSearchPos, size_t &rFindLevel, size_t &rFindIndex, size_t nMaxLevel=SC_OL_MAXDEPTH)
 
void PromoteSub (SCCOLROW nStartPos, SCCOLROW nEndPos, size_t nStartLevel)
 

Private Attributes

size_t nDepth
 
ScOutlineCollection aCollections [SC_OL_MAXDEPTH]
 

Friends

class ScSubOutlineIterator
 

Detailed Description

Definition at line 91 of file olinetab.hxx.

Constructor & Destructor Documentation

◆ ScOutlineArray() [1/2]

ScOutlineArray::ScOutlineArray ( )

Definition at line 154 of file olinetab.cxx.

◆ ScOutlineArray() [2/2]

ScOutlineArray::ScOutlineArray ( const ScOutlineArray rArray)

Definition at line 157 of file olinetab.cxx.

References aCollections, ScOutlineCollection::insert(), and nDepth.

Member Function Documentation

◆ DecDepth()

bool ScOutlineArray::DecDepth ( )
private

Adapt nDepth for empty Levels.

Definition at line 373 of file olinetab.cxx.

References aCollections, and nDepth.

Referenced by DeleteSpace(), and Remove().

◆ DeleteSpace()

bool ScOutlineArray::DeleteSpace ( SCCOLROW  nStartPos,
SCSIZE  nSize 
)

◆ dumpAsString()

OString ScOutlineArray::dumpAsString ( ) const

Definition at line 731 of file olinetab.cxx.

References aCollections.

◆ ExtendBlock()

void ScOutlineArray::ExtendBlock ( size_t  nLevel,
SCCOLROW rBlkStart,
SCCOLROW rBlkEnd 
)

◆ finalizeImport()

void ScOutlineArray::finalizeImport ( const ScTable rTable)

◆ FindEntry()

void ScOutlineArray::FindEntry ( SCCOLROW  nSearchPos,
size_t &  rFindLevel,
size_t &  rFindIndex,
size_t  nMaxLevel = SC_OL_MAXDEPTH 
)
private

Definition at line 171 of file olinetab.cxx.

References aCollections, ScOutlineEntry::GetEnd(), ScOutlineEntry::GetStart(), nDepth, and nIndex.

Referenced by Insert().

◆ FindTouchedLevel()

bool ScOutlineArray::FindTouchedLevel ( SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
size_t &  rFindLevel 
) const

◆ GetCount()

size_t ScOutlineArray::GetCount ( size_t  nLevel) const

◆ GetDepth()

size_t ScOutlineArray::GetDepth ( ) const
inline

◆ GetEntry() [1/2]

ScOutlineEntry * ScOutlineArray::GetEntry ( size_t  nLevel,
size_t  nIndex 
)

◆ GetEntry() [2/2]

const ScOutlineEntry * ScOutlineArray::GetEntry ( size_t  nLevel,
size_t  nIndex 
) const

◆ GetEntryByPos()

const ScOutlineEntry * ScOutlineArray::GetEntryByPos ( size_t  nLevel,
SCCOLROW  nPos 
) const

◆ GetEntryIndex()

bool ScOutlineArray::GetEntryIndex ( size_t  nLevel,
SCCOLROW  nPos,
size_t &  rnIndex 
) const

◆ GetEntryIndexInRange()

bool ScOutlineArray::GetEntryIndexInRange ( size_t  nLevel,
SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
size_t &  rnIndex 
) const

◆ GetRange()

void ScOutlineArray::GetRange ( SCCOLROW rStart,
SCCOLROW rEnd 
) const

◆ Insert()

bool ScOutlineArray::Insert ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
bool &  rSizeChanged,
bool  bHidden = false 
)

◆ InsertSpace()

void ScOutlineArray::InsertSpace ( SCCOLROW  nStartPos,
SCSIZE  nSize 
)

◆ ManualAction()

bool ScOutlineArray::ManualAction ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
bool  bShow,
const ScTable rTable,
bool  bCol 
)

◆ PromoteSub()

void ScOutlineArray::PromoteSub ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
size_t  nStartLevel 
)
private

◆ Remove()

bool ScOutlineArray::Remove ( SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
bool &  rSizeChanged 
)

◆ RemoveAll()

void ScOutlineArray::RemoveAll ( )

Definition at line 702 of file olinetab.cxx.

References aCollections, and nDepth.

◆ SetVisibleBelow()

void ScOutlineArray::SetVisibleBelow ( size_t  nLevel,
size_t  nEntry,
bool  bValue,
bool  bSkipHidden = false 
)

◆ TestInsertSpace()

bool ScOutlineArray::TestInsertSpace ( SCSIZE  nSize,
SCCOLROW  nMaxVal 
) const

Friends And Related Function Documentation

◆ ScSubOutlineIterator

friend class ScSubOutlineIterator
friend

Definition at line 93 of file olinetab.hxx.

Member Data Documentation

◆ aCollections

ScOutlineCollection ScOutlineArray::aCollections[SC_OL_MAXDEPTH]
private

◆ nDepth

size_t ScOutlineArray::nDepth
private

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