30 TagAttribute( OUString aName, OUString aType, OUString aValue )
54 return static_cast<sal_Int16
>(
m_pImpl->vecAttribute.size());
59 :
cppu::WeakImplHelper<css::xml::
sax::XAttributeList>( r ),
68 sal_uInt32 i2 = sal::static_int_cast<sal_Int16>(
i);
69 if(
i >= 0 && i2 < m_pImpl->vecAttribute.size() )
71 return m_pImpl->vecAttribute[
i].sName;
79 sal_uInt32 i2 = sal::static_int_cast<sal_Int16>(
i);
80 if(
i >= 0 && i2 < m_pImpl->vecAttribute.size() )
82 return m_pImpl->vecAttribute[
i].sType;
90 sal_uInt32 i2 = sal::static_int_cast<sal_Int16>(
i);
91 if(
i >= 0 && i2 < m_pImpl->vecAttribute.size() )
93 return m_pImpl->vecAttribute[
i].sValue;
102 for (
auto const& elem :
m_pImpl->vecAttribute)
104 if( elem.sName ==
sName )
115 for (
auto const& elem :
m_pImpl->vecAttribute)
117 if( elem.sName ==
sName )
138const OUString &sType ,
139const OUString &sValue )
147 std::vector<struct TagAttribute>().swap(
m_pImpl->vecAttribute);
virtual OUString SAL_CALL getNameByIndex(sal_Int16 i) override
virtual OUString SAL_CALL getTypeByName(const OUString &aName) override
virtual ~AttributeListImpl() override
virtual OUString SAL_CALL getValueByIndex(sal_Int16 i) override
std::unique_ptr< AttributeListImpl_impl > m_pImpl
virtual OUString SAL_CALL getTypeByIndex(sal_Int16 i) override
virtual OUString SAL_CALL getValueByName(const OUString &aName) override
void addAttribute(const OUString &sName, const OUString &sType, const OUString &sValue)
virtual sal_Int16 SAL_CALL getLength() override
std::vector< struct TagAttribute > vecAttribute