LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ppt::Atom Class Reference

#include <pptatom.hxx>

Collaboration diagram for ppt::Atom:
[legend]

Public Member Functions

 ~Atom ()
 
bool hasChildAtom (sal_uInt16 nRecType) const
 
const Atom * findFirstChildAtom (sal_uInt16 nRecType) const
 
const Atom * findNextChildAtom (sal_uInt16 nRecType, const Atom *pLast) const
 returns the next child atom after pLast with nRecType or NULL More...
 
const Atom * findFirstChildAtom () const
 
bool isContainer () const
 
bool seekToContent () const
 seeks to the contents of this atom More...
 
sal_uInt16 getType () const
 
sal_uInt16 getInstance () const
 
sal_uInt32 getLength () const
 

Static Public Member Functions

static Atom * import (const DffRecordHeader &rRootRecordHeader, SvStream &rStCtrl)
 imports this atom and its child atoms More...
 
static const Atom * findNextChildAtom (const Atom *pLast)
 

Private Member Functions

 Atom (const DffRecordHeader &rRecordHeader, SvStream &rStCtrl)
 

Private Attributes

SvStream & mrStream
 
DffRecordHeader maRecordHeader
 
Atom * mpFirstChild
 
Atom * mpNextAtom
 

Detailed Description

Definition at line 26 of file pptatom.hxx.

Constructor & Destructor Documentation

◆ ~Atom()

Atom::~Atom ( )

Definition at line 65 of file pptatom.cxx.

References mpFirstChild, and mpNextAtom.

◆ Atom()

Atom::Atom ( const DffRecordHeader &  rRecordHeader,
SvStream &  rStCtrl 
)
private

Member Function Documentation

◆ findFirstChildAtom() [1/2]

const Atom * ppt::Atom::findFirstChildAtom ( ) const
inline
Returns
the first child atom or NULL

Definition at line 83 of file pptatom.hxx.

References mpFirstChild.

Referenced by hasChildAtom().

◆ findFirstChildAtom() [2/2]

const Atom * ppt::Atom::findFirstChildAtom ( sal_uInt16  nRecType) const
inline

◆ findNextChildAtom() [1/2]

const Atom * ppt::Atom::findNextChildAtom ( const Atom *  pLast)
inlinestatic
Returns
the next child atom after pLast or NULL

Definition at line 85 of file pptatom.hxx.

References mpNextAtom.

◆ findNextChildAtom() [2/2]

const Atom * Atom::findNextChildAtom ( sal_uInt16  nRecType,
const Atom *  pLast 
) const

◆ getInstance()

sal_uInt16 ppt::Atom::getInstance ( ) const
inline

◆ getLength()

sal_uInt32 ppt::Atom::getLength ( ) const
inline
Returns
the record length

Definition at line 102 of file pptatom.hxx.

References maRecordHeader, and DffRecordHeader::nRecLen.

Referenced by ppt::AnimationImporter::importAttributeValue().

◆ getType()

sal_uInt16 ppt::Atom::getType ( ) const
inline

◆ hasChildAtom()

bool ppt::Atom::hasChildAtom ( sal_uInt16  nRecType) const
inline
Returns
true if at least one atom with the given nRecType is found

Definition at line 73 of file pptatom.hxx.

References findFirstChildAtom().

Referenced by ppt::AnimationImporter::createNode(), ppt::AnimationImporter::importAnimationContainer(), and ppt::AnimationImporter::importTimeContainer().

◆ import()

Atom * Atom::import ( const DffRecordHeader &  rRootRecordHeader,
SvStream &  rStCtrl 
)
static

imports this atom and its child atoms

Definition at line 77 of file pptatom.cxx.

References Atom(), ERRCODE_NONE, and SvStream::GetError().

Referenced by ppt::AnimationImporter::import().

◆ isContainer()

bool ppt::Atom::isContainer ( ) const
inline

◆ seekToContent()

bool ppt::Atom::seekToContent ( ) const
inline

Member Data Documentation

◆ maRecordHeader

DffRecordHeader ppt::Atom::maRecordHeader
private

◆ mpFirstChild

Atom* ppt::Atom::mpFirstChild
private

Definition at line 69 of file pptatom.hxx.

Referenced by Atom(), findFirstChildAtom(), findNextChildAtom(), and ~Atom().

◆ mpNextAtom

Atom* ppt::Atom::mpNextAtom
private

Definition at line 70 of file pptatom.hxx.

Referenced by Atom(), findNextChildAtom(), and ~Atom().

◆ mrStream

SvStream& ppt::Atom::mrStream
private

Definition at line 67 of file pptatom.hxx.

Referenced by Atom(), and seekToContent().


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