summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2000-12-08 15:57:39 +0000
committerKai Sommerfeld <kso@openoffice.org>2000-12-08 15:57:39 +0000
commit922f6a58c679168d8ff40bc80cfebf5532acf9f4 (patch)
tree4e75f2632e2735d1587118f4d748b94ff9395b70 /ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
parentd9e01b905eee2e660df73daf1de292818fa5ceda (diff)
#81458# - Improved all read operations.
Diffstat (limited to 'ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx')
-rw-r--r--ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx28
1 files changed, 16 insertions, 12 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
index 41cbd8684781..b92f89502c7d 100644
--- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: hierarchydatasupplier.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: kso $ $Date: 2000-10-16 14:54:18 $
+ * last change: $Author: kso $ $Date: 2000-12-08 16:57:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -54,7 +54,7 @@
*
* All Rights Reserved.
*
- * Contributor(s): _______________________________________
+ * Contributor(s): Kai Sommerfeld ( kso@sun.com )
*
*
************************************************************************/
@@ -65,9 +65,8 @@
*************************************************************************/
-#ifndef __VECTOR__
-#include <stl/vector>
-#endif
+#include <vector>
+
#ifndef _UCBHELPER_CONTENTIDENTIFIER_HXX
#include <ucbhelper/contentidentifier.hxx>
#endif
@@ -140,7 +139,11 @@ struct DataSupplier_Impl
const vos::ORef< HierarchyContent >& rContent,
sal_Int32 nOpenMode )
: m_xContent( rContent ), m_xSMgr( rxSMgr ),
- m_aFolder( rxSMgr, rContent->getIdentifier()->getContentIdentifier() ),
+ m_aFolder( rxSMgr,
+ static_cast< HierarchyContentProvider * >(
+ rContent->getProvider().getBodyPtr() )
+ ->getRootConfigReadNameAccess(),
+ rContent->getIdentifier()->getContentIdentifier() ),
m_nOpenMode( nOpenMode ), m_bCountFinal( sal_False ) {}
~DataSupplier_Impl();
};
@@ -423,11 +426,12 @@ Reference< XRow > HierarchyResultSetDataSupplier::queryPropertyValues(
HIERARCHY_LINK_CONTENT_TYPE );
Reference< XRow > xRow = HierarchyContent::getPropertyValues(
- m_pImpl->m_xSMgr,
- getResultSet()->getProperties(),
- aData,
- m_pImpl->m_xContent->getProvider(),
- queryContentIdentifierString( nIndex ) );
+ m_pImpl->m_xSMgr,
+ getResultSet()->getProperties(),
+ aData,
+ static_cast< HierarchyContentProvider * >(
+ m_pImpl->m_xContent->getProvider().getBodyPtr() ),
+ queryContentIdentifierString( nIndex ) );
m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
return xRow;
}