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 179 of file xichart.hxx.

Constructor & Destructor Documentation

XclImpChGroupBase::XclImpChGroupBase ( )
default
XclImpChGroupBase::XclImpChGroupBase ( XclImpChGroupBase const &  )
default
XclImpChGroupBase::XclImpChGroupBase ( XclImpChGroupBase &&  )
default
XclImpChGroupBase::~XclImpChGroupBase ( )
virtual

Definition at line 389 of file xichart.cxx.

Member Function Documentation

XclImpChGroupBase& XclImpChGroupBase::operator= ( XclImpChGroupBase const &  )
default
XclImpChGroupBase& XclImpChGroupBase::operator= ( XclImpChGroupBase &&  )
default
virtual void XclImpChGroupBase::ReadHeaderRecord ( XclImpStream rStrm)
pure virtual
void XclImpChGroupBase::ReadRecordGroup ( XclImpStream rStrm)

Reads the entire record group.

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 393 of file xichart.cxx.

References EXC_ID_CHBEGIN, EXC_ID_CHEND, XclImpStream::GetNextRecId(), XclImpStream::GetRecId(), ReadHeaderRecord(), ReadSubRecord(), SkipBlock(), and XclImpStream::StartNextRecord().

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

Derived classes implement to read a record from the group.

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

Referenced by ReadRecordGroup().

void XclImpChGroupBase::SkipBlock ( XclImpStream rStrm)
static

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

Definition at line 423 of file xichart.cxx.

References EXC_ID_CHBEGIN, EXC_ID_CHEND, XclImpStream::GetRecId(), and XclImpStream::StartNextRecord().

Referenced by ReadRecordGroup().


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