22#include <unordered_map>
24#include <com/sun/star/container/XNameAccess.hpp>
25#include <com/sun/star/graphic/XGraphic.hpp>
30 class GraphicNameAccess final :
public ::cppu::WeakImplHelper< css::container::XNameAccess >
36 void addElement(
const OUString& rName,
const css::uno::Reference< css::graphic::XGraphic >& rElement );
39 virtual css::uno::Any SAL_CALL
getByName(
const OUString&
aName )
override;
40 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
48 typedef std::unordered_map<OUString, css::uno::Reference< css::graphic::XGraphic >>
NameGraphicHashMap;
50 css::uno::Sequence< OUString >
m_aSeq;
void addElement(const OUString &rName, const css::uno::Reference< css::graphic::XGraphic > &rElement)
virtual sal_Bool SAL_CALL hasElements() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
virtual ~GraphicNameAccess() override
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
css::uno::Sequence< OUString > m_aSeq
std::unordered_map< OUString, css::uno::Reference< css::graphic::XGraphic > > NameGraphicHashMap
virtual css::uno::Type SAL_CALL getElementType() override
NameGraphicHashMap m_aNameToElementMap