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

Base class for buffers containing row or column outline data. More...

#include <xetable.hxx>

Inheritance diagram for XclExpOutlineBuffer:
[legend]
Collaboration diagram for XclExpOutlineBuffer:
[legend]

Classes

struct  XclExpLevelInfo
 Data about an outline level. More...
 

Public Member Functions

bool IsCollapsed () const
 Returns true, if a collapsed group ends at the last processed position. More...
 
sal_uInt8 GetLevel () const
 Returns the highest level of an open group at the last processed position. More...
 

Protected Member Functions

 XclExpOutlineBuffer (const XclExpRoot &rRoot, bool bRows)
 Constructs the outline buffer. More...
 
void UpdateColRow (SCCOLROW nScPos)
 Updates the current state by processing the settings at the passed Calc position. More...
 

Private Attributes

const ScOutlineArraympScOLArray
 
std::vector< XclExpLevelInfomaLevelInfos
 Pointer to Calc outline array. More...
 
sal_uInt8 mnCurrLevel
 Info for current row and all levels. More...
 
bool mbCurrCollapse
 Highest level of an open group for current position. More...
 

Detailed Description

Base class for buffers containing row or column outline data.

Definition at line 568 of file xetable.hxx.

Constructor & Destructor Documentation

XclExpOutlineBuffer::XclExpOutlineBuffer ( const XclExpRoot rRoot,
bool  bRows 
)
explicitprotected

Constructs the outline buffer.

Parameters
bRowstrue = Process row outline array; false = Process column outline array.

Definition at line 1395 of file xetable.cxx.

References XclRoot::GetCurrScTab(), XclRoot::GetDoc(), ScOutlineArray::GetEntryByPos(), ScDocument::GetOutlineTable(), maLevelInfos, mpScOLArray, and SC_OL_MAXDEPTH.

Member Function Documentation

sal_uInt8 XclExpOutlineBuffer::GetLevel ( ) const
inline

Returns the highest level of an open group at the last processed position.

Definition at line 574 of file xetable.hxx.

References EXC_OUTLINE_MAX, and mnCurrLevel.

Referenced by XclExpRowBuffer::GetOrCreateRow(), XclExpColinfoBuffer::Initialize(), XclExpColinfo::XclExpColinfo(), and XclExpRow::XclExpRow().

bool XclExpOutlineBuffer::IsCollapsed ( ) const
inline

Returns true, if a collapsed group ends at the last processed position.

Definition at line 572 of file xetable.hxx.

References mbCurrCollapse.

Referenced by XclExpRowBuffer::GetOrCreateRow(), XclExpColinfo::XclExpColinfo(), and XclExpRow::XclExpRow().

void XclExpOutlineBuffer::UpdateColRow ( SCCOLROW  nScPos)
protected

Updates the current state by processing the settings at the passed Calc position.

Definition at line 1410 of file xetable.cxx.

References ScOutlineArray::FindTouchedLevel(), ScOutlineArray::GetEntryByPos(), maLevelInfos, mbCurrCollapse, mnCurrLevel, and mpScOLArray.

Referenced by XclExpColOutlineBuffer::Update(), and XclExpRowOutlineBuffer::Update().

Member Data Documentation

std::vector< XclExpLevelInfo > XclExpOutlineBuffer::maLevelInfos
private

Pointer to Calc outline array.

Definition at line 595 of file xetable.hxx.

Referenced by UpdateColRow(), and XclExpOutlineBuffer().

bool XclExpOutlineBuffer::mbCurrCollapse
private

Highest level of an open group for current position.

Definition at line 597 of file xetable.hxx.

Referenced by IsCollapsed(), and UpdateColRow().

sal_uInt8 XclExpOutlineBuffer::mnCurrLevel
private

Info for current row and all levels.

Definition at line 596 of file xetable.hxx.

Referenced by GetLevel(), and UpdateColRow().

const ScOutlineArray* XclExpOutlineBuffer::mpScOLArray
private

Definition at line 593 of file xetable.hxx.

Referenced by UpdateColRow(), and XclExpOutlineBuffer().


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