LibreOffice Module xmloff (master)  1
Public Member Functions | Public Attributes | Private Member Functions | 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
 

Public Attributes

SvXMLNamespaceMap aNamespaceMap
 
std::vector< SvXMLAttraAttrs
 

Private Member Functions

sal_uInt16 GetPrefixPos (size_t i) const
 

Detailed Description

Definition at line 20 of file SvXMLAttrCollection.hxx.

Member Function Documentation

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

Definition at line 20 of file SvXMLAttrCollection.cxx.

References aAttrs, and assert().

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, assert(), and nPos.

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

Definition at line 115 of file SvXMLAttrCollection.cxx.

References aAttrs.

Referenced by Remove(), and SetAt().

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

Definition at line 120 of file SvXMLAttrCollection.cxx.

References aAttrs.

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

Definition at line 126 of file SvXMLAttrCollection.cxx.

References aAttrs.

sal_uInt16 SvXMLAttrCollection::GetFirstNamespaceIndex ( ) const

Definition at line 162 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, and SvXMLNamespaceMap::GetFirstIndex().

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

Definition at line 152 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, and SvXMLNamespaceMap::GetNameByIndex().

sal_uInt16 SvXMLAttrCollection::GetNextNamespaceIndex ( sal_uInt16  nIdx) const

Definition at line 167 of file SvXMLAttrCollection.cxx.

References aNamespaceMap, and SvXMLNamespaceMap::GetNextIndex().

const OUString & SvXMLAttrCollection::GetPrefix ( sal_uInt16  i) const
sal_uInt16 SvXMLAttrCollection::GetPrefixPos ( size_t  i) const
private

Definition at line 172 of file SvXMLAttrCollection.cxx.

References aAttrs.

Referenced by GetAttrNamespace(), and GetAttrPrefix().

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

Definition at line 14 of file SvXMLAttrCollection.cxx.

References aAttrs, and aNamespaceMap.

void SvXMLAttrCollection::Remove ( size_t  i)

Definition at line 103 of file SvXMLAttrCollection.cxx.

References aAttrs, and GetAttrCount().

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

Definition at line 54 of file SvXMLAttrCollection.cxx.

References aAttrs, assert(), and GetAttrCount().

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

Member Data Documentation

std::vector<SvXMLAttr> SvXMLAttrCollection::aAttrs
SvXMLNamespaceMap SvXMLAttrCollection::aNamespaceMap

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