LibreOffice Module framework (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
framework::GraphicNameAccess Class Referencefinal

#include <graphicnameaccess.hxx>

Inheritance diagram for framework::GraphicNameAccess:
[legend]
Collaboration diagram for framework::GraphicNameAccess:
[legend]

Public Member Functions

 GraphicNameAccess ()
 
virtual ~GraphicNameAccess () override
 
void addElement (const OUString &rName, const css::uno::Reference< css::graphic::XGraphic > &rElement)
 
virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 

Private Types

typedef std::unordered_map< OUString, css::uno::Reference< css::graphic::XGraphic > > NameGraphicHashMap
 

Private Attributes

NameGraphicHashMap m_aNameToElementMap
 
css::uno::Sequence< OUString > m_aSeq
 

Detailed Description

Definition at line 30 of file graphicnameaccess.hxx.

Member Typedef Documentation

◆ NameGraphicHashMap

typedef std::unordered_map<OUString, css::uno::Reference< css::graphic::XGraphic > > framework::GraphicNameAccess::NameGraphicHashMap
private

Definition at line 48 of file graphicnameaccess.hxx.

Constructor & Destructor Documentation

◆ GraphicNameAccess()

framework::GraphicNameAccess::GraphicNameAccess ( )

Definition at line 29 of file graphicnameaccess.cxx.

◆ ~GraphicNameAccess()

framework::GraphicNameAccess::~GraphicNameAccess ( )
overridevirtual

Definition at line 33 of file graphicnameaccess.cxx.

Member Function Documentation

◆ addElement()

void framework::GraphicNameAccess::addElement ( const OUString &  rName,
const css::uno::Reference< css::graphic::XGraphic > &  rElement 
)

Definition at line 37 of file graphicnameaccess.cxx.

References m_aNameToElementMap.

◆ getByName()

uno::Any SAL_CALL framework::GraphicNameAccess::getByName ( const OUString &  aName)
overridevirtual

Definition at line 43 of file graphicnameaccess.cxx.

References aName, and m_aNameToElementMap.

◆ getElementNames()

uno::Sequence< OUString > SAL_CALL framework::GraphicNameAccess::getElementNames ( )
overridevirtual

◆ getElementType()

uno::Type SAL_CALL framework::GraphicNameAccess::getElementType ( )
overridevirtual

Definition at line 73 of file graphicnameaccess.cxx.

References cppu::UnoType< typename T >::get().

◆ hasByName()

sal_Bool SAL_CALL framework::GraphicNameAccess::hasByName ( const OUString &  aName)
overridevirtual

Definition at line 61 of file graphicnameaccess.cxx.

References aName, and m_aNameToElementMap.

◆ hasElements()

sal_Bool SAL_CALL framework::GraphicNameAccess::hasElements ( )
overridevirtual

Definition at line 68 of file graphicnameaccess.cxx.

References m_aNameToElementMap.

Member Data Documentation

◆ m_aNameToElementMap

NameGraphicHashMap framework::GraphicNameAccess::m_aNameToElementMap
private

Definition at line 49 of file graphicnameaccess.hxx.

Referenced by addElement(), getByName(), getElementNames(), hasByName(), and hasElements().

◆ m_aSeq

css::uno::Sequence< OUString > framework::GraphicNameAccess::m_aSeq
private

Definition at line 50 of file graphicnameaccess.hxx.

Referenced by getElementNames().


The documentation for this class was generated from the following files: