comphelper::UnoInterfaceToUniqueIdentifierMapper Class Reference

#include <unointerfacetouniqueidentifiermapper.hxx>

List of all members.

Public Member Functions

 UnoInterfaceToUniqueIdentifierMapper ()
const rtl::OUStringregisterReference (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rInterface)
 returns a unique identifier for the given uno object.
bool registerReference (const rtl::OUString &rIdentifier, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rInterface)
 registers the given uno object with the given identifier.
const rtl::OUStringgetIdentifier (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rInterface) const
const
::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface > & 
getReference (const rtl::OUString &rIdentifier) const

Private Member Functions

bool findReference (const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &rInterface, IdMap_t::const_iterator &rIter) const
bool findIdentifier (const rtl::OUString &rIdentifier, IdMap_t::const_iterator &rIter) const

Private Attributes

IdMap_t maEntries
sal_Int32 mnNextId


Detailed Description

Definition at line 13 of file unointerfacetouniqueidentifiermapper.hxx.


Constructor & Destructor Documentation

comphelper::UnoInterfaceToUniqueIdentifierMapper::UnoInterfaceToUniqueIdentifierMapper (  ) 

Definition at line 40 of file unointerfacetouniqueidentifiermapper.cxx.


Member Function Documentation

const rtl::OUString& comphelper::UnoInterfaceToUniqueIdentifierMapper::registerReference ( const ::com::sun::star::uno::Reference< ::com::sun::star::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 xmloff::AnimationNodeContext::init_node(), xmloff::AnimationsExporterImpl::prepareNode(), xmloff::AnimationsExporterImpl::prepareTransitionNode(), xmloff::AnimationsExporterImpl::prepareValue(), and XMLParaContext::~XMLParaContext().

bool comphelper::UnoInterfaceToUniqueIdentifierMapper::registerReference ( const rtl::OUString rIdentifier,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &  rInterface 
)

registers the given uno object with the given identifier.

Returns:
false, if the given identifier already exists and is not associated with the given interface

const rtl::OUString& comphelper::UnoInterfaceToUniqueIdentifierMapper::getIdentifier ( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &  rInterface  )  const

Returns:
the identifier for the given uno object. If this uno object is not already registered, an empty string is returned

Referenced by SdXMLExport::_ExportContent(), xmloff::AnimationsExporterImpl::convertTarget(), XMLAnimationsExporter::exportAnimations(), and xmloff::AnimationsExporterImpl::exportNode().

const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& comphelper::UnoInterfaceToUniqueIdentifierMapper::getReference ( const rtl::OUString rIdentifier  )  const

Returns:
the uno object that is registered with the given identifier. If no uno object is registered with the given identifier, an empty reference is returned.

Referenced by xmloff::AnimationsImportHelperImpl::convertTarget(), xmloff::AnimationsImportHelperImpl::convertTiming(), and XMLShapeImportHelper::restoreConnections().

bool comphelper::UnoInterfaceToUniqueIdentifierMapper::findReference ( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > &  rInterface,
IdMap_t::const_iterator &  rIter 
) const [private]

bool comphelper::UnoInterfaceToUniqueIdentifierMapper::findIdentifier ( const rtl::OUString rIdentifier,
IdMap_t::const_iterator &  rIter 
) const [private]


Member Data Documentation

Definition at line 46 of file unointerfacetouniqueidentifiermapper.hxx.

Definition at line 47 of file unointerfacetouniqueidentifiermapper.hxx.


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

Generated on Thu Apr 29 14:49:18 2010 for ooo-build Module xmloff (ooo/OOO320_m15) by  doxygen 1.5.6