summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-07 22:36:25 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-07 22:36:25 +0200
commita0bdb21dbb4de7cbd5e2991dbdafe97f85cd918e (patch)
tree851f48d2d87b27b91346e2db306c37412ac1e130 /unotools
parent5545c8a373f0ae3265be01f3c0e4925f2502a8bc (diff)
slidecopy: added non-ASCII version of the new convenience-ctor
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/confignode.hxx8
-rw-r--r--unotools/source/config/confignode.cxx13
2 files changed, 21 insertions, 0 deletions
diff --git a/unotools/inc/unotools/confignode.hxx b/unotools/inc/unotools/confignode.hxx
index a1271b1eeed1..33ee99f17138 100644
--- a/unotools/inc/unotools/confignode.hxx
+++ b/unotools/inc/unotools/confignode.hxx
@@ -283,6 +283,14 @@ namespace utl
const bool i_bUpdatable
);
+ /** creates a configuration tree for the given path in the given mode
+ */
+ OConfigurationTreeRoot(
+ const ::comphelper::ComponentContext& i_rContext,
+ const ::rtl::OUString& i_rNodePath,
+ const bool i_bUpdatable
+ );
+
/// copy ctor
OConfigurationTreeRoot(const OConfigurationTreeRoot& _rSource)
:OConfigurationNode(_rSource), m_xCommitter(_rSource.m_xCommitter) { }
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index fc4e20e6f600..4927f82023eb 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -571,6 +571,19 @@ namespace utl
}
//------------------------------------------------------------------------
+ OConfigurationTreeRoot::OConfigurationTreeRoot( const ::comphelper::ComponentContext& i_rContext, const ::rtl::OUString& i_rNodePath, const bool i_bUpdatable )
+ :OConfigurationNode( lcl_createConfigurationRoot( lcl_getConfigProvider( i_rContext.getLegacyServiceFactory() ),
+ i_rNodePath, i_bUpdatable, -1, false ).get() )
+ ,m_xCommitter()
+ {
+ if ( i_bUpdatable )
+ {
+ m_xCommitter.set( getUNONode(), UNO_QUERY );
+ OSL_ENSURE( m_xCommitter.is(), "OConfigurationTreeRoot::OConfigurationTreeRoot: could not create an updatable node!" );
+ }
+ }
+
+ //------------------------------------------------------------------------
void OConfigurationTreeRoot::clear() throw()
{
OConfigurationNode::clear();