20#ifndef INCLUDED_XMLOFF_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER_HXX
21#define INCLUDED_XMLOFF_UNOINTERFACETOUNIQUEIDENTIFIERMAPPER_HXX
29#include <rtl/ustring.hxx>
30#include <com/sun/star/uno/XInterface.hpp>
35typedef ::std::map< OUString, css::uno::Reference< css::uno::XInterface > >
IdMap_t;
47 const OUString&
registerReference(
const css::uno::Reference< css::uno::XInterface >& rInterface );
54 bool registerReference(
const OUString& rIdentifier,
const css::uno::Reference< css::uno::XInterface >& rInterface );
61 bool reserveIdentifier(
const OUString& rIdentifier );
65 bool registerReservedReference(
const OUString& rIdentifier,
const css::uno::Reference< css::uno::XInterface >& rInterface );
71 const OUString&
getIdentifier(
const css::uno::Reference< css::uno::XInterface >& rInterface )
const;
77 const css::uno::Reference< css::uno::XInterface >& getReference(
const OUString& rIdentifier )
const;
80 bool findReference(
const css::uno::Reference< css::uno::XInterface >& rInterface, IdMap_t::const_iterator& rIter )
const;
81 bool findIdentifier(
const OUString& rIdentifier, IdMap_t::const_iterator& rIter )
const;
82 bool findReserved(
const OUString& rIdentifier )
const;
83 bool findReserved(
const OUString& rIdentifier, Reserved_t::const_iterator& rIter )
const;
std::deque< OUString > Reserved_t
const OUString & registerReference(const css::uno::Reference< css::uno::XInterface > &rInterface)
returns a unique identifier for the given uno object.
bool registerReference(const OUString &rIdentifier, const css::uno::Reference< css::uno::XInterface > &rInterface)
registers the given uno object with the given identifier.
::std::map< OUString, css::uno::Reference< css::uno::XInterface > > IdMap_t
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getIdentifier(css::uno::Reference< css::deployment::XPackage > const &package)