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 575 of file xetable.hxx.

Constructor & Destructor Documentation

◆ XclExpOutlineBuffer()

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 1410 of file xetable.cxx.

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

Member Function Documentation

◆ GetLevel()

sal_uInt8 XclExpOutlineBuffer::GetLevel ( ) const
inline

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

Definition at line 581 of file xetable.hxx.

References EXC_OUTLINE_MAX, and mnCurrLevel.

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

◆ IsCollapsed()

bool XclExpOutlineBuffer::IsCollapsed ( ) const
inline

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

Definition at line 579 of file xetable.hxx.

References mbCurrCollapse.

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

◆ UpdateColRow()

void XclExpOutlineBuffer::UpdateColRow ( SCCOLROW  nScPos)
protected

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

Definition at line 1425 of file xetable.cxx.

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

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

Member Data Documentation

◆ maLevelInfos

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

Pointer to Calc outline array.

Definition at line 602 of file xetable.hxx.

Referenced by UpdateColRow(), and XclExpOutlineBuffer().

◆ mbCurrCollapse

bool XclExpOutlineBuffer::mbCurrCollapse
private

Highest level of an open group for current position.

Definition at line 604 of file xetable.hxx.

Referenced by IsCollapsed(), and UpdateColRow().

◆ mnCurrLevel

sal_uInt8 XclExpOutlineBuffer::mnCurrLevel
private

Info for current row and all levels.

Definition at line 603 of file xetable.hxx.

Referenced by GetLevel(), and UpdateColRow().

◆ mpScOLArray

const ScOutlineArray* XclExpOutlineBuffer::mpScOLArray
private

Definition at line 600 of file xetable.hxx.

Referenced by UpdateColRow(), and XclExpOutlineBuffer().


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