22#include <rtl/ustring.hxx>
41 m_pImpl = std::move( rCopy.m_pImpl );
57 const OUString& rValue )
59 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
60 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
61 return m_pImpl->AddAttr(rLName, rValue);
65 const OUString& rNamespace,
66 const OUString& rLName,
67 const OUString& rValue )
69 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
70 assert( rPrefix.indexOf(
':') == -1 &&
"colon in prefix?");
71 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
72 return m_pImpl->AddAttr(rPrefix, rNamespace, rLName, rValue);
76 const OUString& rLName,
77 const OUString& rValue )
79 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
80 assert( rPrefix.indexOf(
':') == -1 &&
"colon in prefix?");
81 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
82 return m_pImpl->AddAttr(rPrefix, rLName, rValue);
86 const OUString& rLName,
87 const OUString& rValue )
89 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
90 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
91 return m_pImpl->SetAt(
i, rLName, rValue);
95 const OUString& rPrefix,
96 const OUString& rNamespace,
97 const OUString& rLName,
98 const OUString& rValue )
100 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
101 assert( rPrefix.indexOf(
':') == -1 &&
"colon in prefix?");
102 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
103 return m_pImpl->SetAt(
i, rPrefix, rNamespace, rLName, rValue);
107 const OUString& rPrefix,
108 const OUString& rLName,
109 const OUString& rValue )
111 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
112 assert( rPrefix.indexOf(
':') == -1 &&
"colon in prefix?");
113 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
114 return m_pImpl->SetAt(
i, rPrefix, rLName, rValue);
124 return m_pImpl->GetAttrCount();
139 return m_pImpl->GetAttrNamespace(
i);
159 return m_pImpl->GetFirstNamespaceIndex();
164 return m_pImpl->GetNextNamespaceIndex( nIdx );
size_t GetAttrCount() const
OUString GetAttrPrefix(size_t i) const
OUString GetAttrNamespace(size_t i) const
const OUString & GetAttrValue(size_t i) const
bool operator==(const SvXMLAttrContainerData &rCmp) const
sal_uInt16 GetNextNamespaceIndex(sal_uInt16 nIdx) const
const OUString & GetPrefix(sal_uInt16 i) const
const OUString & GetNamespace(sal_uInt16 i) const
~SvXMLAttrContainerData()
const OUString & GetAttrLName(size_t i) const
bool SetAt(size_t i, const OUString &rLName, const OUString &rValue)
std::unique_ptr< SvXMLAttrCollection > m_pImpl
sal_uInt16 GetFirstNamespaceIndex() const
SvXMLAttrContainerData & operator=(const SvXMLAttrContainerData &rCmp)
bool AddAttr(const OUString &rLName, const OUString &rValue)