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

Definition at line 72 of file recordparser.hxx.

Constructor & Destructor Documentation

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

Definition at line 206 of file recordparser.cxx.

References mxLocator.

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

Definition at line 211 of file recordparser.cxx.

References mxLocator.

Member Function Documentation

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 318 of file recordparser.cxx.

References maEndMap.

Referenced by parseStream().

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().

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 312 of file recordparser.cxx.

References maStartMap.

Referenced by parseStream().

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

Definition at line 234 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().

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

Member Data Documentation

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

Definition at line 79 of file recordparser.hxx.

Referenced by getEndRecordInfo(), and setFragmentHandler().

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

Definition at line 74 of file recordparser.hxx.

Referenced by getInputSource(), and parseStream().

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

Definition at line 78 of file recordparser.hxx.

Referenced by getStartRecordInfo(), and setFragmentHandler().

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

Definition at line 75 of file recordparser.hxx.

Referenced by parseStream(), and setFragmentHandler().

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

Definition at line 76 of file recordparser.hxx.

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

::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: