LibreOffice Module xmloff (master) 1
|
#include <SvXMLAttrCollection.hxx>
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< SvXMLAttr > | aAttrs |
Definition at line 19 of file SvXMLAttrCollection.hxx.
bool SvXMLAttrCollection::AddAttr | ( | const OUString & | rLName, |
const OUString & | rValue | ||
) |
Definition at line 20 of file SvXMLAttrCollection.cxx.
References aAttrs.
bool SvXMLAttrCollection::AddAttr | ( | const OUString & | rPrefix, |
const OUString & | rLName, | ||
const OUString & | rValue | ||
) |
Definition at line 41 of file SvXMLAttrCollection.cxx.
References aAttrs, aNamespaceMap, SvXMLNamespaceMap::GetIndexByPrefix(), and nPos.
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.
size_t SvXMLAttrCollection::GetAttrCount | ( | ) | const |
Definition at line 115 of file SvXMLAttrCollection.cxx.
References aAttrs.
const OUString & SvXMLAttrCollection::GetAttrLName | ( | size_t | i | ) | const |
Definition at line 120 of file SvXMLAttrCollection.cxx.
OUString SvXMLAttrCollection::GetAttrNamespace | ( | size_t | i | ) | const |
Definition at line 132 of file SvXMLAttrCollection.cxx.
References aNamespaceMap, SvXMLNamespaceMap::GetNameByIndex(), GetPrefixPos(), i, and nPos.
OUString SvXMLAttrCollection::GetAttrPrefix | ( | size_t | i | ) | const |
Definition at line 142 of file SvXMLAttrCollection.cxx.
References aNamespaceMap, SvXMLNamespaceMap::GetPrefixByIndex(), GetPrefixPos(), i, and nPos.
const OUString & SvXMLAttrCollection::GetAttrValue | ( | size_t | i | ) | const |
Definition at line 126 of file SvXMLAttrCollection.cxx.
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, SvXMLNamespaceMap::GetNameByIndex(), and i.
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 |
Definition at line 157 of file SvXMLAttrCollection.cxx.
References aNamespaceMap, SvXMLNamespaceMap::GetPrefixByIndex(), and i.
|
private |
Definition at line 172 of file SvXMLAttrCollection.cxx.
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, GetAttrCount(), and i.
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.
bool SvXMLAttrCollection::SetAt | ( | size_t | i, |
const OUString & | rPrefix, | ||
const OUString & | rLName, | ||
const OUString & | rValue | ||
) |
Definition at line 85 of file SvXMLAttrCollection.cxx.
References aAttrs, aNamespaceMap, GetAttrCount(), SvXMLNamespaceMap::GetIndexByPrefix(), i, and nPos.
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.
|
private |
Definition at line 22 of file SvXMLAttrCollection.hxx.
Referenced by AddAttr(), GetAttrCount(), GetAttrLName(), GetAttrValue(), GetPrefixPos(), operator==(), Remove(), and SetAt().
|
private |
Definition at line 21 of file SvXMLAttrCollection.hxx.
Referenced by AddAttr(), GetAttrNamespace(), GetAttrPrefix(), GetFirstNamespaceIndex(), GetNamespace(), GetNextNamespaceIndex(), GetPrefix(), operator==(), and SetAt().