LibreOffice Module xmloff (master)  1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
xmloff::OAttribListMerger Class Reference

implements the XAttributeList list by merging different source attribute lists More...

#include <attriblistmerge.hxx>

Inheritance diagram for xmloff::OAttribListMerger:
[legend]
Collaboration diagram for xmloff::OAttribListMerger:
[legend]

Public Member Functions

 OAttribListMerger ()
 
void addList (const css::uno::Reference< css::xml::sax::XAttributeList > &_rList)
 
virtual sal_Int16 SAL_CALL getLength () override
 
virtual OUString SAL_CALL getNameByIndex (sal_Int16 i) override
 
virtual OUString SAL_CALL getTypeByIndex (sal_Int16 i) override
 
virtual OUString SAL_CALL getTypeByName (const OUString &aName) override
 
virtual OUString SAL_CALL getValueByIndex (sal_Int16 i) override
 
virtual OUString SAL_CALL getValueByName (const OUString &aName) override
 

Private Types

typedef std::vector< css::uno::Reference< css::xml::sax::XAttributeList > > AttributeListArray
 

Private Member Functions

bool seekToIndex (sal_Int16 _nGlobalIndex, css::uno::Reference< css::xml::sax::XAttributeList > &_rSubList, sal_Int16 &_rLocalIndex)
 
bool seekToName (const OUString &_rName, css::uno::Reference< css::xml::sax::XAttributeList > &_rSubList, sal_Int16 &_rLocalIndex)
 

Private Attributes

AttributeListArray m_aLists
 

Detailed Description

implements the XAttributeList list by merging different source attribute lists

Currently, the time behaviour is O(n), though it would be possible to change it to O(log n).

Definition at line 40 of file attriblistmerge.hxx.

Member Typedef Documentation

typedef std::vector< css::uno::Reference< css::xml::sax::XAttributeList > > xmloff::OAttribListMerger::AttributeListArray
private

Definition at line 42 of file attriblistmerge.hxx.

Constructor & Destructor Documentation

xmloff::OAttribListMerger::OAttribListMerger ( )
inline

Definition at line 46 of file attriblistmerge.hxx.

Member Function Documentation

void xmloff::OAttribListMerger::addList ( const css::uno::Reference< css::xml::sax::XAttributeList > &  _rList)

Definition at line 33 of file attriblistmerge.cxx.

References m_aLists.

Referenced by xmloff::OControlImport::StartElement().

sal_Int16 SAL_CALL xmloff::OAttribListMerger::getLength ( )
overridevirtual

Definition at line 75 of file attriblistmerge.cxx.

References m_aLists.

OUString SAL_CALL xmloff::OAttribListMerger::getNameByIndex ( sal_Int16  i)
overridevirtual

Definition at line 81 of file attriblistmerge.cxx.

References seekToIndex().

OUString SAL_CALL xmloff::OAttribListMerger::getTypeByIndex ( sal_Int16  i)
overridevirtual

Definition at line 92 of file attriblistmerge.cxx.

References seekToIndex().

OUString SAL_CALL xmloff::OAttribListMerger::getTypeByName ( const OUString &  aName)
overridevirtual

Definition at line 103 of file attriblistmerge.cxx.

References seekToName().

OUString SAL_CALL xmloff::OAttribListMerger::getValueByIndex ( sal_Int16  i)
overridevirtual

Definition at line 116 of file attriblistmerge.cxx.

References seekToIndex().

OUString SAL_CALL xmloff::OAttribListMerger::getValueByName ( const OUString &  aName)
overridevirtual

Definition at line 127 of file attriblistmerge.cxx.

References seekToName().

bool xmloff::OAttribListMerger::seekToIndex ( sal_Int16  _nGlobalIndex,
css::uno::Reference< css::xml::sax::XAttributeList > &  _rSubList,
sal_Int16 &  _rLocalIndex 
)
private

Definition at line 40 of file attriblistmerge.cxx.

References m_aLists.

Referenced by getNameByIndex(), getTypeByIndex(), and getValueByIndex().

bool xmloff::OAttribListMerger::seekToName ( const OUString &  _rName,
css::uno::Reference< css::xml::sax::XAttributeList > &  _rSubList,
sal_Int16 &  _rLocalIndex 
)
private

Definition at line 60 of file attriblistmerge.cxx.

References i, and m_aLists.

Referenced by getTypeByName(), and getValueByName().

Member Data Documentation

AttributeListArray xmloff::OAttribListMerger::m_aLists
private

Definition at line 43 of file attriblistmerge.hxx.

Referenced by addList(), getLength(), seekToIndex(), and seekToName().


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