22 #include <rtl/ustring.hxx>
41 pimpl = std::move( rCopy.pimpl );
57 const OUString& rValue )
59 assert( !rLName.isEmpty() &&
"empty attribute name is invalid");
60 assert( rLName.indexOf(
':') == -1 &&
"colon in name?");
61 return 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 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 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 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 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 pimpl->SetAt(i, rPrefix, rLName, rValue);
124 return pimpl->GetAttrCount();
129 return pimpl->GetAttrLName(i);
134 return pimpl->GetAttrValue(i);
139 return pimpl->GetAttrNamespace(i);
144 return pimpl->GetAttrPrefix(i);
149 return pimpl->GetNamespace(i);
154 return pimpl->GetPrefix(i);
159 return pimpl->GetFirstNamespaceIndex();
164 return pimpl->GetNextNamespaceIndex( nIdx );
SvXMLAttrContainerData & operator=(const SvXMLAttrContainerData &rCmp)
OUString GetAttrPrefix(size_t i) const
size_t GetAttrCount() const
const OUString & GetNamespace(sal_uInt16 i) const
OUString GetAttrNamespace(size_t i) const
sal_uInt16 GetFirstNamespaceIndex() const
sal_uInt16 GetNextNamespaceIndex(sal_uInt16 nIdx) const
bool operator==(const SvXMLAttrContainerData &rCmp) const
const OUString & GetPrefix(sal_uInt16 i) const
std::unique_ptr< SvXMLAttrCollection > pimpl
~SvXMLAttrContainerData()
const OUString & GetAttrValue(size_t i) const
bool AddAttr(const OUString &rLName, const OUString &rValue)
const OUString & GetAttrLName(size_t i) const
bool SetAt(size_t i, const OUString &rLName, const OUString &rValue)