12#include <osl/diagnose.h>
21 const OUString& rValue )
23 assert(!rLName.isEmpty());
24 aAttrs.emplace_back(rLName, rValue );
29 const OUString& rNamespace,
30 const OUString& rLName,
31 const OUString& rValue )
33 assert(!rPrefix.isEmpty());
34 assert(!rNamespace.isEmpty());
35 assert(!rLName.isEmpty());
42 const OUString& rLName,
43 const OUString& rValue )
45 assert(!rPrefix.isEmpty());
46 assert(!rLName.isEmpty());
48 if( USHRT_MAX ==
nPos )
55 const OUString& rLName,
56 const OUString& rValue )
58 assert(!rLName.isEmpty());
66 const OUString& rPrefix,
67 const OUString& rNamespace,
68 const OUString& rLName,
69 const OUString& rValue )
71 assert(!rPrefix.isEmpty());
72 assert(!rNamespace.isEmpty());
73 assert(!rLName.isEmpty());
78 if( USHRT_MAX ==
nPos )
86 const OUString& rPrefix,
87 const OUString& rLName,
88 const OUString& rValue )
90 assert(!rPrefix.isEmpty());
91 assert(!rLName.isEmpty());
96 if( USHRT_MAX ==
nPos )
111 OSL_FAIL(
"illegal index" );
122 OSL_ENSURE(
i <
aAttrs.size(),
"SvXMLAttrContainerData::GetLName: illegal index" );
128 OSL_ENSURE(
i <
aAttrs.size(),
"SvXMLAttrContainerData::GetValue: illegal index" );
137 if( USHRT_MAX !=
nPos )
147 if( USHRT_MAX !=
nPos )
176 return aAttrs[
i].getPrefixPos();
const OUString & GetAttrValue(size_t i) const
const OUString & GetAttrLName(size_t i) const
SvXMLNamespaceMap aNamespaceMap
const OUString & GetNamespace(sal_uInt16 i) const
sal_uInt16 GetFirstNamespaceIndex() const
OUString GetAttrPrefix(size_t i) const
std::vector< SvXMLAttr > aAttrs
OUString GetAttrNamespace(size_t i) const
sal_uInt16 GetNextNamespaceIndex(sal_uInt16 nIdx) const
bool SetAt(size_t i, const OUString &rLName, const OUString &rValue)
bool AddAttr(const OUString &rLName, const OUString &rValue)
size_t GetAttrCount() const
bool operator==(const SvXMLAttrCollection &rCmp) const
const OUString & GetPrefix(sal_uInt16 i) const
sal_uInt16 GetPrefixPos(size_t i) const
const OUString & GetPrefixByIndex(sal_uInt16 nIdx) const
sal_uInt16 GetIndexByPrefix(const OUString &rPrefix) const
sal_uInt16 GetNextIndex(sal_uInt16 nOldIdx) const
sal_uInt16 GetFirstIndex() const
sal_uInt16 Add(const OUString &rPrefix, const OUString &rName, sal_uInt16 nKey=XML_NAMESPACE_UNKNOWN)
const OUString & GetNameByIndex(sal_uInt16 nIdx) const