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

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 88 of file olinetab.hxx.

Constructor & Destructor Documentation

ScOutlineArray::ScOutlineArray ( )

Definition at line 137 of file olinetab.cxx.

ScOutlineArray::ScOutlineArray ( const ScOutlineArray rArray)

Definition at line 140 of file olinetab.cxx.

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

Member Function Documentation

bool ScOutlineArray::DecDepth ( )
private

Adapt nDepth for empty Levels.

Definition at line 370 of file olinetab.cxx.

References aCollections, and nDepth.

Referenced by DeleteSpace(), and Remove().

bool ScOutlineArray::DeleteSpace ( SCCOLROW  nStartPos,
SCSIZE  nSize 
)
void ScOutlineArray::ExtendBlock ( size_t  nLevel,
SCCOLROW rBlkStart,
SCCOLROW rBlkEnd 
)
void ScOutlineArray::finalizeImport ( const ScTable rTable)
void ScOutlineArray::FindEntry ( SCCOLROW  nSearchPos,
size_t &  rFindLevel,
size_t &  rFindIndex,
size_t  nMaxLevel = SC_OL_MAXDEPTH 
)
private

Definition at line 154 of file olinetab.cxx.

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

Referenced by Insert().

bool ScOutlineArray::FindTouchedLevel ( SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
size_t &  rFindLevel 
) const
size_t ScOutlineArray::GetCount ( size_t  nLevel) const
size_t ScOutlineArray::GetDepth ( ) const
inline
ScOutlineEntry * ScOutlineArray::GetEntry ( size_t  nLevel,
size_t  nIndex 
)
const ScOutlineEntry * ScOutlineArray::GetEntry ( size_t  nLevel,
size_t  nIndex 
) const
const ScOutlineEntry * ScOutlineArray::GetEntryByPos ( size_t  nLevel,
SCCOLROW  nPos 
) const
bool ScOutlineArray::GetEntryIndex ( size_t  nLevel,
SCCOLROW  nPos,
size_t &  rnIndex 
) const
bool ScOutlineArray::GetEntryIndexInRange ( size_t  nLevel,
SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
size_t &  rnIndex 
) const
void ScOutlineArray::GetRange ( SCCOLROW rStart,
SCCOLROW rEnd 
) const
bool ScOutlineArray::Insert ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
bool &  rSizeChanged,
bool  bHidden = false 
)
void ScOutlineArray::InsertSpace ( SCCOLROW  nStartPos,
SCSIZE  nSize 
)
bool ScOutlineArray::ManualAction ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
bool  bShow,
const ScTable rTable,
bool  bCol 
)
void ScOutlineArray::PromoteSub ( SCCOLROW  nStartPos,
SCCOLROW  nEndPos,
size_t  nStartLevel 
)
private
bool ScOutlineArray::Remove ( SCCOLROW  nBlockStart,
SCCOLROW  nBlockEnd,
bool &  rSizeChanged 
)
void ScOutlineArray::RemoveAll ( )

Definition at line 699 of file olinetab.cxx.

References aCollections, and nDepth.

Referenced by ScDBDocFunc::DoSubTotals().

void ScOutlineArray::SetVisibleBelow ( size_t  nLevel,
size_t  nEntry,
bool  bValue,
bool  bSkipHidden = false 
)
bool ScOutlineArray::TestInsertSpace ( SCSIZE  nSize,
SCCOLROW  nMaxVal 
) const

Friends And Related Function Documentation

friend class ScSubOutlineIterator
friend

Definition at line 90 of file olinetab.hxx.

Member Data Documentation

ScOutlineCollection ScOutlineArray::aCollections[SC_OL_MAXDEPTH]
private
size_t ScOutlineArray::nDepth
private

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