From fd5a2eb07011e8aedfd5ef0a82edaf07221554ba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 4 Jan 2013 09:12:44 +0200 Subject: fdo#46808, new method OConfigurationTreeRoot::createWithComponentContext and use it to replace usage of createWithServiceFactory, and thus replace usage of XMultiServiceFactory. Change-Id: Id2f44066683ce17cf7a22f80916031556ef0e82a --- unotools/inc/unotools/confignode.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'unotools/inc') diff --git a/unotools/inc/unotools/confignode.hxx b/unotools/inc/unotools/confignode.hxx index beb02ec2f2fe..51ce1e05c904 100644 --- a/unotools/inc/unotools/confignode.hxx +++ b/unotools/inc/unotools/confignode.hxx @@ -296,6 +296,21 @@ namespace utl static OConfigurationTreeRoot createWithServiceFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB, const ::rtl::OUString& _rPath, sal_Int32 _nDepth = -1, CREATION_MODE _eMode = CM_UPDATABLE, sal_Bool _bLazyWrite = sal_True); + /** open a new top-level configuration node

+ opens a new node which is the root if an own configuration sub tree. This is what "top level" means: The + node does not have a parent. It does not mean that the node represents a module tree (like org.openoffice.Office.Writer + or such).
+ In opposite to createWithProvider, createWithProvider expects a service factory. This factory + is used to create a configuration provider, and this provider is used to retrieve the node + @see createWithProvider + @param _rxContext service factory to use to create the configuration provider. + @param _rPath path to the node the object should represent + @param _nDepth depth for node retrieval + @param _eMode specifies which privileges should be applied when retrieving the node + */ + static OConfigurationTreeRoot createWithComponentContext(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext, + const ::rtl::OUString& _rPath, sal_Int32 _nDepth = -1, CREATION_MODE _eMode = CM_UPDATABLE, sal_Bool _bLazyWrite = sal_True); + /** tolerant version of the createWithServiceFactory

No assertions are thrown in case of an failure to initialize the configuration service, but once -- cgit v1.2.3