LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | List of all members
XclImpChGroupBase Class Referenceabstract

Base class for chart record groups. More...

#include <xichart.hxx>

Inheritance diagram for XclImpChGroupBase:
[legend]

Public Member Functions

 XclImpChGroupBase ()=default
 
 XclImpChGroupBase (XclImpChGroupBase const &)=default
 
 XclImpChGroupBase (XclImpChGroupBase &&)=default
 
XclImpChGroupBaseoperator= (XclImpChGroupBase const &)=default
 
XclImpChGroupBaseoperator= (XclImpChGroupBase &&)=default
 
virtual ~XclImpChGroupBase ()
 
void ReadRecordGroup (XclImpStream &rStrm)
 Reads the entire record group. More...
 
virtual void ReadHeaderRecord (XclImpStream &rStrm)=0
 Derived classes implement to read the group header record. More...
 
virtual void ReadSubRecord (XclImpStream &rStrm)=0
 Derived classes implement to read a record from the group. More...
 

Static Public Member Functions

static void SkipBlock (XclImpStream &rStrm)
 Helper to skip a CHBEGIN/CHEND block, includes nested blocks. More...
 

Detailed Description

Base class for chart record groups.

Provides helper functions to read sub records.

A chart record group consists of a header record, followed by a CHBEGIN record, followed by group sub records, and finished with a CHEND record.

Definition at line 178 of file xichart.hxx.

Constructor & Destructor Documentation

◆ XclImpChGroupBase() [1/3]

XclImpChGroupBase::XclImpChGroupBase ( )
default

◆ XclImpChGroupBase() [2/3]

XclImpChGroupBase::XclImpChGroupBase ( XclImpChGroupBase const &  )
default

◆ XclImpChGroupBase() [3/3]

XclImpChGroupBase::XclImpChGroupBase ( XclImpChGroupBase &&  )
default

◆ ~XclImpChGroupBase()

XclImpChGroupBase::~XclImpChGroupBase ( )
virtual

Definition at line 390 of file xichart.cxx.

Member Function Documentation

◆ operator=() [1/2]

XclImpChGroupBase & XclImpChGroupBase::operator= ( XclImpChGroupBase &&  )
default

◆ operator=() [2/2]

XclImpChGroupBase & XclImpChGroupBase::operator= ( XclImpChGroupBase const &  )
default

◆ ReadHeaderRecord()

virtual void XclImpChGroupBase::ReadHeaderRecord ( XclImpStream rStrm)
pure virtual

◆ ReadRecordGroup()

void XclImpChGroupBase::ReadRecordGroup ( XclImpStream rStrm)

Reads the entire record group.

@descr First calls ReadHeaderRecord() to read the contents of the header record. Then tries to read the sub records. If next record is a CHBEGIN record, ReadSubRecord() is called for each following record until a CHEND record is found.

Definition at line 394 of file xichart.cxx.

References EXC_ID_CHBEGIN, EXC_ID_CHEND, ReadHeaderRecord(), ReadSubRecord(), rStrm, and SkipBlock().

◆ ReadSubRecord()

virtual void XclImpChGroupBase::ReadSubRecord ( XclImpStream rStrm)
pure virtual

Derived classes implement to read a record from the group.

Implemented in XclImpChEscherFormat, XclImpChFrameBase, XclImpChText, XclImpChDataFormat, XclImpChSeries, XclImpChLegend, XclImpChTypeGroup, XclImpChAxis, XclImpChAxesSet, and XclImpChChart.

Referenced by ReadRecordGroup().

◆ SkipBlock()

void XclImpChGroupBase::SkipBlock ( XclImpStream rStrm)
static

Helper to skip a CHBEGIN/CHEND block, includes nested blocks.

Definition at line 424 of file xichart.cxx.

References EXC_ID_CHBEGIN, EXC_ID_CHEND, rStrm, and SkipBlock().

Referenced by ReadRecordGroup(), and SkipBlock().


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