LibreOffice Module comphelper (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
comphelper::AttributeList Class Referencefinal

#include <attributelist.hxx>

Inheritance diagram for comphelper::AttributeList:
[legend]
Collaboration diagram for comphelper::AttributeList:
[legend]

Classes

struct  TagAttribute
 

Public Member Functions

 AttributeList ()
 
 AttributeList (const AttributeList &r)=default
 
 AttributeList (const css::uno::Reference< css::xml::sax::XAttributeList > &rAttrList)
 
 AttributeList (AttributeList &&)=delete
 
virtual ~AttributeList () override
 
void AddAttribute (const OUString &sName, const OUString &sValue)
 
void Clear ()
 
void RemoveAttribute (const OUString &sName)
 
void AppendAttributeList (const css::uno::Reference< css::xml::sax::XAttributeList > &)
 
void SetValueByIndex (sal_Int16 i, const OUString &rValue)
 
void RemoveAttributeByIndex (sal_Int16 i)
 
void RenameAttributeByIndex (sal_Int16 i, const OUString &rNewName)
 
sal_Int16 GetIndexByName (const OUString &rName) const
 
virtual sal_Int16 SAL_CALL getLength () override
 
virtual OUString SAL_CALL getNameByIndex (sal_Int16 i) override
 
virtual OUString SAL_CALL getTypeByIndex (sal_Int16) override
 
virtual OUString SAL_CALL getTypeByName (const OUString &) override
 
virtual OUString SAL_CALL getValueByIndex (sal_Int16 i) override
 
virtual OUString SAL_CALL getValueByName (const OUString &aName) override
 
virtual css::uno::Reference< XCloneable > SAL_CALL createClone () override
 

Private Attributes

std::vector< TagAttributemAttributes
 

Detailed Description

Definition at line 35 of file attributelist.hxx.

Constructor & Destructor Documentation

◆ AttributeList() [1/4]

comphelper::AttributeList::AttributeList ( )

Definition at line 42 of file attributelist.cxx.

References mAttributes.

Referenced by createClone().

◆ AttributeList() [2/4]

comphelper::AttributeList::AttributeList ( const AttributeList r)
default

◆ AttributeList() [3/4]

comphelper::AttributeList::AttributeList ( const css::uno::Reference< css::xml::sax::XAttributeList > &  rAttrList)

◆ AttributeList() [4/4]

comphelper::AttributeList::AttributeList ( AttributeList &&  )
delete

◆ ~AttributeList()

comphelper::AttributeList::~AttributeList ( )
overridevirtual

Definition at line 56 of file attributelist.cxx.

Member Function Documentation

◆ AddAttribute()

void comphelper::AttributeList::AddAttribute ( const OUString &  sName,
const OUString &  sValue 
)

Definition at line 65 of file attributelist.cxx.

References mAttributes, sName, and u.

Referenced by AppendAttributeList().

◆ AppendAttributeList()

void comphelper::AttributeList::AppendAttributeList ( const css::uno::Reference< css::xml::sax::XAttributeList > &  )

Definition at line 88 of file attributelist.cxx.

References AddAttribute(), getLength(), i, and mAttributes.

◆ Clear()

void comphelper::AttributeList::Clear ( )
inline

Definition at line 54 of file attributelist.hxx.

◆ createClone()

css::uno::Reference< css::util::XCloneable > comphelper::AttributeList::createClone ( )
overridevirtual

Definition at line 60 of file attributelist.cxx.

References AttributeList().

◆ GetIndexByName()

sal_Int16 comphelper::AttributeList::GetIndexByName ( const OUString &  rName) const

Definition at line 117 of file attributelist.cxx.

References mAttributes.

◆ getLength()

virtual sal_Int16 SAL_CALL comphelper::AttributeList::getLength ( )
inlineoverridevirtual

Definition at line 66 of file attributelist.hxx.

Referenced by AppendAttributeList().

◆ getNameByIndex()

virtual OUString SAL_CALL comphelper::AttributeList::getNameByIndex ( sal_Int16  i)
inlineoverridevirtual

Definition at line 70 of file attributelist.hxx.

References i.

◆ getTypeByIndex()

virtual OUString SAL_CALL comphelper::AttributeList::getTypeByIndex ( sal_Int16  )
inlineoverridevirtual

Definition at line 74 of file attributelist.hxx.

◆ getTypeByName()

virtual OUString SAL_CALL comphelper::AttributeList::getTypeByName ( const OUString &  )
inlineoverridevirtual

Definition at line 75 of file attributelist.hxx.

◆ getValueByIndex()

virtual OUString SAL_CALL comphelper::AttributeList::getValueByIndex ( sal_Int16  i)
inlineoverridevirtual

Definition at line 76 of file attributelist.hxx.

References i.

◆ getValueByName()

OUString SAL_CALL comphelper::AttributeList::getValueByName ( const OUString &  aName)
overridevirtual

Definition at line 31 of file attributelist.cxx.

References attribute, mAttributes, and sName.

◆ RemoveAttribute()

void comphelper::AttributeList::RemoveAttribute ( const OUString &  sName)

Definition at line 79 of file attributelist.cxx.

References mAttributes, and sName.

◆ RemoveAttributeByIndex()

void comphelper::AttributeList::RemoveAttributeByIndex ( sal_Int16  i)

Definition at line 107 of file attributelist.cxx.

References i, and mAttributes.

◆ RenameAttributeByIndex()

void comphelper::AttributeList::RenameAttributeByIndex ( sal_Int16  i,
const OUString &  rNewName 
)

Definition at line 112 of file attributelist.cxx.

References i, and mAttributes.

◆ SetValueByIndex()

void comphelper::AttributeList::SetValueByIndex ( sal_Int16  i,
const OUString &  rValue 
)

Definition at line 102 of file attributelist.cxx.

References i, and mAttributes.

Member Data Documentation

◆ mAttributes

std::vector<TagAttribute> comphelper::AttributeList::mAttributes
private

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