LibreOffice Module xmloff (master) 1
|
#include <unointerfacetouniqueidentifiermapper.hxx>
Public Member Functions | |
UnoInterfaceToUniqueIdentifierMapper () | |
const OUString & | registerReference (const css::uno::Reference< css::uno::XInterface > &rInterface) |
returns a unique identifier for the given uno object. More... | |
bool | registerReference (const OUString &rIdentifier, const css::uno::Reference< css::uno::XInterface > &rInterface) |
registers the given uno object with the given identifier. More... | |
bool | reserveIdentifier (const OUString &rIdentifier) |
reserves an identifier for later registration. More... | |
bool | registerReservedReference (const OUString &rIdentifier, const css::uno::Reference< css::uno::XInterface > &rInterface) |
registers the given uno object with reserved identifier. More... | |
const OUString & | getIdentifier (const css::uno::Reference< css::uno::XInterface > &rInterface) const |
const css::uno::Reference< css::uno::XInterface > & | getReference (const OUString &rIdentifier) const |
Private Types | |
typedef std::deque< OUString > | Reserved_t |
Private Member Functions | |
bool | findReference (const css::uno::Reference< css::uno::XInterface > &rInterface, IdMap_t::const_iterator &rIter) const |
bool | findIdentifier (const OUString &rIdentifier, IdMap_t::const_iterator &rIter) const |
bool | findReserved (const OUString &rIdentifier) const |
bool | findReserved (const OUString &rIdentifier, Reserved_t::const_iterator &rIter) const |
Private Attributes | |
IdMap_t | maEntries |
sal_uInt32 | mnNextId |
Reserved_t | maReserved |
Definition at line 37 of file unointerfacetouniqueidentifiermapper.hxx.
|
private |
Definition at line 39 of file unointerfacetouniqueidentifiermapper.hxx.
comphelper::UnoInterfaceToUniqueIdentifierMapper::UnoInterfaceToUniqueIdentifierMapper | ( | ) |
Definition at line 34 of file unointerfacetouniqueidentifiermapper.cxx.
|
private |
Definition at line 150 of file unointerfacetouniqueidentifiermapper.cxx.
References maEntries.
Referenced by getReference().
|
private |
Definition at line 134 of file unointerfacetouniqueidentifiermapper.cxx.
References maEntries.
Referenced by getIdentifier().
|
private |
Definition at line 180 of file unointerfacetouniqueidentifiermapper.cxx.
References findReserved().
Referenced by findReserved(), registerReservedReference(), and reserveIdentifier().
|
private |
Definition at line 186 of file unointerfacetouniqueidentifiermapper.cxx.
References maReserved.
const OUString & comphelper::UnoInterfaceToUniqueIdentifierMapper::getIdentifier | ( | const css::uno::Reference< css::uno::XInterface > & | rInterface | ) | const |
Definition at line 106 of file unointerfacetouniqueidentifiermapper.cxx.
References findReference().
Referenced by XMLAnimationsExporter::exportAnimations(), SdXMLExport::ExportContent_(), XMLTextParagraphExport::exportParagraph(), XMLShapeExport::exportShape(), and XMLShapeExport::ImpExportConnectorShape().
const Reference< XInterface > & comphelper::UnoInterfaceToUniqueIdentifierMapper::getReference | ( | const OUString & | rIdentifier | ) | const |
Definition at line 120 of file unointerfacetouniqueidentifiermapper.cxx.
References findIdentifier().
Referenced by SdXMLGenericPageContext::SetNavigationOrder().
const OUString & comphelper::UnoInterfaceToUniqueIdentifierMapper::registerReference | ( | const css::uno::Reference< css::uno::XInterface > & | rInterface | ) |
returns a unique identifier for the given uno object.
If a UNO object is registered more than once, the returned identifier is always the same.
Referenced by XMLAnimationsExporter::collect(), XMLShapeExport::collectShapeAutoStyles(), and registerReservedReference().
bool comphelper::UnoInterfaceToUniqueIdentifierMapper::registerReference | ( | const OUString & | rIdentifier, |
const css::uno::Reference< css::uno::XInterface > & | rInterface | ||
) |
registers the given uno object with the given identifier.
References getIdentifier().
bool comphelper::UnoInterfaceToUniqueIdentifierMapper::registerReservedReference | ( | const OUString & | rIdentifier, |
const css::uno::Reference< css::uno::XInterface > & | rInterface | ||
) |
registers the given uno object with reserved identifier.
Definition at line 165 of file unointerfacetouniqueidentifiermapper.cxx.
References findReserved(), maReserved, and registerReference().
bool comphelper::UnoInterfaceToUniqueIdentifierMapper::reserveIdentifier | ( | const OUString & | rIdentifier | ) |
reserves an identifier for later registration.
Definition at line 156 of file unointerfacetouniqueidentifiermapper.cxx.
References findReserved(), and maReserved.
|
private |
Definition at line 85 of file unointerfacetouniqueidentifiermapper.hxx.
Referenced by findIdentifier(), and findReference().
|
private |
Definition at line 87 of file unointerfacetouniqueidentifiermapper.hxx.
Referenced by findReserved(), registerReservedReference(), and reserveIdentifier().
|
private |
Definition at line 86 of file unointerfacetouniqueidentifiermapper.hxx.