summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2001-06-28 08:34:59 +0000
committerKai Sommerfeld <kso@openoffice.org>2001-06-28 08:34:59 +0000
commitad8c6a0cc3c1ab8af095d57c38a1b2aba7204d24 (patch)
tree9799172c3723b92acb3b03a5aa5fbbc5703de021 /ucb/source
parent41623a52ef5feb2ed85a4f7ac0fac3d1d2a63939 (diff)
#88922# - Changed parameters for config access creation according to service specs.
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydata.cxx13
-rw-r--r--ucb/source/ucp/hierarchy/hierarchyprovider.cxx18
2 files changed, 22 insertions, 9 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx
index 3ab61ae4433b..b7755be20efe 100644
--- a/ucb/source/ucp/hierarchy/hierarchydata.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hierarchydata.cxx,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: kso $ $Date: 2001-06-25 09:08:40 $
+ * last change: $Author: kso $ $Date: 2001-06-28 09:34:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1109,9 +1109,12 @@ Reference< XHierarchicalNameAccess > HierarchyEntry::getRootReadAccess()
// Create Root object.
Sequence< Any > aArguments( 1 );
- aArguments[ 0 ]
- <<= OUString( RTL_CONSTASCII_USTRINGPARAM(
- HIERARCHY_ROOT_DB_KEY ) );
+ PropertyValue aProperty;
+ aProperty.Name = OUString( RTL_CONSTASCII_USTRINGPARAM(
+ CFGPROPERTY_NODEPATH ) );
+ aProperty.Value <<= OUString( RTL_CONSTASCII_USTRINGPARAM(
+ HIERARCHY_ROOT_DB_KEY ) );
+ aArguments[ 0 ] <<= aProperty;
m_bTriedToGetRootReadAccess = sal_True;
diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
index b85a0a8a8c05..beec46cff79a 100644
--- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hierarchyprovider.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: kso $ $Date: 2001-06-25 09:08:40 $
+ * last change: $Author: kso $ $Date: 2001-06-28 09:34:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,6 +68,9 @@
#ifndef _OSL_DIAGNOSE_H_
#include <osl/diagnose.h>
#endif
+#ifndef _COM_SUN_STAR_BEANS_PROPERTYVALUE_HPP_
+#include <com/sun/star/beans/PropertyValue.hpp>
+#endif
#ifndef _COM_SUN_STAR_CONTAINER_XHIERARCHICALNAMEACCESS_HPP_
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
#endif
@@ -293,8 +296,15 @@ HierarchyContentProvider::getRootConfigReadNameAccess()
if ( m_xConfigProvider.is() )
{
uno::Sequence< uno::Any > aArguments( 1 );
- aArguments[ 0 ] <<= rtl::OUString::createFromAscii(
- "/org.openoffice.ucb.Hierarchy/Root" );
+ beans::PropertyValue aProperty;
+ aProperty.Name
+ = rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
+ aProperty.Value
+ <<= rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM(
+ "/org.openoffice.ucb.Hierarchy/Root" ) );
+ aArguments[ 0 ] <<= aProperty;
m_bTriedToGetRootReadAccess = sal_True;