23#include <com/sun/star/xml/AttributeData.hpp>
24#include <com/sun/star/lang/XUnoTunnel.hpp>
44 maContainerData( rItem.maContainerData )
70 Reference<XNameContainer> xContainer
79 Reference<XInterface> xTunnel(rVal, UNO_QUERY);
90 Reference<XNameContainer> xContainer( rVal, UNO_QUERY );
91 if( !xContainer.is() )
94 const Sequence< OUString > aNameSequence( xContainer->getElementNames() );
95 const OUString* pNames = aNameSequence.getConstArray();
96 const sal_Int32
nCount = aNameSequence.getLength();
100 for( nAttr = 0; nAttr <
nCount; nAttr++ )
102 const OUString
aName( *pNames++ );
104 aAny = xContainer->getByName(
aName );
105 auto pData = o3tl::tryAccess<AttributeData>(aAny);
109 sal_Int32
pos =
aName.indexOf(
':' );
112 const OUString aPrefix(
aName.copy( 0,
pos ));
113 const OUString aLName(
aName.copy(
pos+1 ));
115 if(
pData->Namespace.isEmpty() )
117 if( !aNewImpl.
AddAttr( aPrefix, aLName,
pData->Value ) )
148 const OUString& rValue )
154 const OUString& rNamespace,
const OUString& rLName,
155 const OUString& rValue )
virtual bool operator==(const SfxPoolItem &) const=0
size_t GetAttrCount() const
OUString GetAttrPrefix(size_t i) const
OUString GetAttrNamespace(size_t i) const
const OUString & GetAttrValue(size_t i) const
sal_uInt16 GetNextNamespaceIndex(sal_uInt16 nIdx) const
const OUString & GetPrefix(sal_uInt16 i) const
const OUString & GetNamespace(sal_uInt16 i) const
const OUString & GetAttrLName(size_t i) const
sal_uInt16 GetFirstNamespaceIndex() const
bool AddAttr(const OUString &rLName, const OUString &rValue)
OUString GetAttrPrefix(sal_uInt16 i) const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
const OUString & GetPrefix(sal_uInt16 i) const
virtual ~SvXMLAttrContainerItem() override
const OUString & GetAttrValue(sal_uInt16 i) const
sal_uInt16 GetNextNamespaceIndex(sal_uInt16 nIdx) const
OUString GetAttrNamespace(sal_uInt16 i) const
bool AddAttr(const OUString &rLName, const OUString &rValue)
sal_uInt16 GetAttrCount() const
sal_uInt16 GetFirstNamespaceIndex() const
SvXMLAttrContainerData maContainerData
const OUString & GetNamespace(sal_uInt16 i) const
SvXMLAttrContainerItem(sal_uInt16 nWhich=0)
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override
virtual bool operator==(const SfxPoolItem &) const override
const OUString & GetAttrLName(sal_uInt16 i) const
std::unique_ptr< sal_Int32[]> pData