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

#include <SvXMLAttrCollection.hxx>

Collaboration diagram for SvXMLAttrCollection:
[legend]

Public Member Functions

bool operator== (const SvXMLAttrCollection &rCmp) const
 
bool AddAttr (const OUString &rLName, const OUString &rValue)
 
bool AddAttr (const OUString &rPrefix, const OUString &rNamespace, const OUString &rLName, const OUString &rValue)
 
bool AddAttr (const OUString &rPrefix, const OUString &rLName, const OUString &rValue)
 
bool SetAt (size_t i, const OUString &rLName, const OUString &rValue)
 
bool SetAt (size_t i, const OUString &rPrefix, const OUString &rNamespace, const OUString &rLName, const OUString &rValue)
 
bool SetAt (size_t i, const OUString &rPrefix, const OUString &rLName, const OUString &rValue)
 
void Remove (size_t i)
 
size_t GetAttrCount () const
 
const OUString & GetAttrLName (size_t i) const
 
const OUString & GetAttrValue (size_t i) const
 
OUString GetAttrNamespace (size_t i) const
 
OUString GetAttrPrefix (size_t i) const
 
const OUString & GetNamespace (sal_uInt16 i) const
 
const OUString & GetPrefix (sal_uInt16 i) const
 
sal_uInt16 GetFirstNamespaceIndex () const
 
sal_uInt16 GetNextNamespaceIndex (sal_uInt16 nIdx) const
 

Private Member Functions

sal_uInt16 GetPrefixPos (size_t i) const
 

Private Attributes

SvXMLNamespaceMap aNamespaceMap
 
std::vector< SvXMLAttraAttrs
 

Detailed Description

Definition at line 19 of file SvXMLAttrCollection.hxx.

Member Function Documentation

◆ AddAttr() [1/3]

bool SvXMLAttrCollection::AddAttr ( const OUString &  rLName,
const OUString &  rValue 
)

Definition at line 20 of file SvXMLAttrCollection.cxx.

References aAttrs.

◆ AddAttr() [2/3]

bool SvXMLAttrCollection::AddAttr ( const OUString &  rPrefix,
const OUString &  rLName,
const OUString &  rValue 
)

◆ AddAttr() [3/3]

bool SvXMLAttrCollection::AddAttr ( const OUString &  rPrefix,
const OUString &  rNamespace,
const OUString &  rLName,
const OUString &  rValue 
)

Definition at line 28 of file SvXMLAttrCollection.cxx.

References aAttrs, SvXMLNamespaceMap::Add(), aNamespaceMap, and nPos.

◆ GetAttrCount()

size_t SvXMLAttrCollection::GetAttrCount ( ) const

Definition at line 115 of file SvXMLAttrCollection.cxx.

References aAttrs.

Referenced by Remove(), and SetAt().

◆ GetAttrLName()

const OUString & SvXMLAttrCollection::GetAttrLName ( size_t  i) const

Definition at line 120 of file SvXMLAttrCollection.cxx.

References aAttrs, and i.

◆ GetAttrNamespace()

OUString SvXMLAttrCollection::GetAttrNamespace ( size_t  i) const

◆ GetAttrPrefix()

OUString SvXMLAttrCollection::GetAttrPrefix ( size_t  i) const

◆ GetAttrValue()

const OUString & SvXMLAttrCollection::GetAttrValue ( size_t  i) const

Definition at line 126 of file SvXMLAttrCollection.cxx.

References aAttrs, and i.

◆ GetFirstNamespaceIndex()

sal_uInt16 SvXMLAttrCollection::GetFirstNamespaceIndex ( ) const

Definition at line 162 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, and SvXMLNamespaceMap::GetFirstIndex().

◆ GetNamespace()

const OUString & SvXMLAttrCollection::GetNamespace ( sal_uInt16  i) const

Definition at line 152 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, SvXMLNamespaceMap::GetNameByIndex(), and i.

◆ GetNextNamespaceIndex()

sal_uInt16 SvXMLAttrCollection::GetNextNamespaceIndex ( sal_uInt16  nIdx) const

Definition at line 167 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, and SvXMLNamespaceMap::GetNextIndex().

◆ GetPrefix()

const OUString & SvXMLAttrCollection::GetPrefix ( sal_uInt16  i) const

Definition at line 157 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, SvXMLNamespaceMap::GetPrefixByIndex(), and i.

◆ GetPrefixPos()

sal_uInt16 SvXMLAttrCollection::GetPrefixPos ( size_t  i) const
private

Definition at line 172 of file SvXMLAttrCollection.cxx.

References aAttrs, and i.

Referenced by GetAttrNamespace(), and GetAttrPrefix().

◆ operator==()

bool SvXMLAttrCollection::operator== ( const SvXMLAttrCollection rCmp) const

Definition at line 14 of file SvXMLAttrCollection.cxx.

References aAttrs, and aNamespaceMap.

◆ Remove()

void SvXMLAttrCollection::Remove ( size_t  i)

Definition at line 103 of file SvXMLAttrCollection.cxx.

References aAttrs, GetAttrCount(), and i.

◆ SetAt() [1/3]

bool SvXMLAttrCollection::SetAt ( size_t  i,
const OUString &  rLName,
const OUString &  rValue 
)

Definition at line 54 of file SvXMLAttrCollection.cxx.

References aAttrs, GetAttrCount(), and i.

◆ SetAt() [2/3]

bool SvXMLAttrCollection::SetAt ( size_t  i,
const OUString &  rPrefix,
const OUString &  rLName,
const OUString &  rValue 
)

◆ SetAt() [3/3]

bool SvXMLAttrCollection::SetAt ( size_t  i,
const OUString &  rPrefix,
const OUString &  rNamespace,
const OUString &  rLName,
const OUString &  rValue 
)

Definition at line 65 of file SvXMLAttrCollection.cxx.

References aAttrs, SvXMLNamespaceMap::Add(), aNamespaceMap, GetAttrCount(), i, and nPos.

Member Data Documentation

◆ aAttrs

std::vector<SvXMLAttr> SvXMLAttrCollection::aAttrs
private

◆ aNamespaceMap

SvXMLNamespaceMap SvXMLAttrCollection::aNamespaceMap
private

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