Debian Codegraph @

ucb/source/ucp/cmis/cmis_resultset.cxx

raw
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #include "cmis_datasupplier.hxx"
11 #include "cmis_resultset.hxx"
12
13 using namespace com::sun::star::ucb;
14 using namespace com::sun::star::uno;
15
16 namespace cmis
17 {
18 DynamicResultSet::DynamicResultSet(
19 const Reference< XComponentContext >& rxContext,
20 ChildrenProvider* pChildrenProvider,
21 const OpenCommandArgument2& rCommand,
22 const Reference< XCommandEnvironment >& rxEnv ) :
23 ResultSetImplHelper( rxContext, rCommand ),
24 m_pChildrenProvider( pChildrenProvider ),
25 m_xEnv( rxEnv )
26 {
27 }
28
29 void DynamicResultSet::initStatic()
30 {
31 m_xResultSet1 = new ::ucbhelper::ResultSet(
32 m_xContext, m_aCommand.Properties,
33 new DataSupplier( m_pChildrenProvider, m_aCommand.Mode ), m_xEnv );
34 }
35
36 void DynamicResultSet::initDynamic()
37 {
38 initStatic();
39 m_xResultSet2 = m_xResultSet1;
40 }
41 }
42
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */