LibreOffice Module oox (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::core::RecordParser Class Referencefinal

#include <recordparser.hxx>

Collaboration diagram for oox::core::RecordParser:
[legend]

Public Member Functions

 RecordParser ()
 
 ~RecordParser ()
 
void setFragmentHandler (const ::rtl::Reference< FragmentHandler > &rxHandler)
 
void parseStream (const RecordInputSource &rInputSource)
 
const RecordInputSourcegetInputSource () const
 

Private Types

typedef ::std::map< sal_Int32, RecordInfoRecordInfoMap
 

Private Member Functions

const RecordInfogetStartRecordInfo (sal_Int32 nRecId) const
 Returns a RecordInfo struct that contains the passed record identifier as context start identifier. More...
 
const RecordInfogetEndRecordInfo (sal_Int32 nRecId) const
 Returns a RecordInfo struct that contains the passed record identifier as context end identifier. More...
 

Private Attributes

RecordInputSource maSource
 
::rtl::Reference< FragmentHandlermxHandler
 
::rtl::Reference< prv::LocatormxLocator
 
::std::unique_ptr< prv::ContextStackmxStack
 
RecordInfoMap maStartMap
 
RecordInfoMap maEndMap
 

Detailed Description

Definition at line 48 of file recordparser.hxx.

Member Typedef Documentation

◆ RecordInfoMap

Definition at line 72 of file recordparser.hxx.

Constructor & Destructor Documentation

◆ RecordParser()

oox::core::RecordParser::RecordParser ( )

Definition at line 207 of file recordparser.cxx.

References mxLocator.

◆ ~RecordParser()

oox::core::RecordParser::~RecordParser ( )

Definition at line 212 of file recordparser.cxx.

References mxLocator.

Member Function Documentation

◆ getEndRecordInfo()

const RecordInfo * oox::core::RecordParser::getEndRecordInfo ( sal_Int32  nRecId) const
private

Returns a RecordInfo struct that contains the passed record identifier as context end identifier.

Definition at line 319 of file recordparser.cxx.

References maEndMap.

Referenced by parseStream().

◆ getInputSource()

const RecordInputSource & oox::core::RecordParser::getInputSource ( ) const
inline

Definition at line 61 of file recordparser.hxx.

References maSource.

Referenced by oox::core::prv::Locator::getSystemId().

◆ getStartRecordInfo()

const RecordInfo * oox::core::RecordParser::getStartRecordInfo ( sal_Int32  nRecId) const
private

Returns a RecordInfo struct that contains the passed record identifier as context start identifier.

Definition at line 313 of file recordparser.cxx.

References maStartMap.

Referenced by parseStream().

◆ parseStream()

void oox::core::RecordParser::parseStream ( const RecordInputSource rInputSource)
Exceptions
css::xml::sax::SAXException
css::io::IOException
css::uno::RuntimeException

Definition at line 235 of file recordparser.cxx.

References getEndRecordInfo(), getStartRecordInfo(), maSource, mxHandler, oox::core::RecordInputSource::mxInStream, mxLocator, mxStack, and oox::BinaryStreamBase::seekToStart().

Referenced by oox::core::XmlFilterBase::importFragment().

◆ setFragmentHandler()

void oox::core::RecordParser::setFragmentHandler ( const ::rtl::Reference< FragmentHandler > &  rxHandler)

Member Data Documentation

◆ maEndMap

RecordInfoMap oox::core::RecordParser::maEndMap
private

Definition at line 79 of file recordparser.hxx.

Referenced by getEndRecordInfo(), and setFragmentHandler().

◆ maSource

RecordInputSource oox::core::RecordParser::maSource
private

Definition at line 74 of file recordparser.hxx.

Referenced by getInputSource(), and parseStream().

◆ maStartMap

RecordInfoMap oox::core::RecordParser::maStartMap
private

Definition at line 78 of file recordparser.hxx.

Referenced by getStartRecordInfo(), and setFragmentHandler().

◆ mxHandler

::rtl::Reference< FragmentHandler > oox::core::RecordParser::mxHandler
private

Definition at line 75 of file recordparser.hxx.

Referenced by parseStream(), and setFragmentHandler().

◆ mxLocator

::rtl::Reference< prv::Locator > oox::core::RecordParser::mxLocator
private

Definition at line 76 of file recordparser.hxx.

Referenced by parseStream(), RecordParser(), and ~RecordParser().

◆ mxStack

::std::unique_ptr< prv::ContextStack > oox::core::RecordParser::mxStack
private

Definition at line 77 of file recordparser.hxx.

Referenced by parseStream().


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