Bump for 3.6-28
[LibreOffice.git] / ucb / source / ucp / cmis / cmis_resultset.cxx
blobb79b5f1bafe26c07d33dce2262bfcdfb6a64380f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * Copyright 2012 LibreOffice contributors.
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 */
10 #include "cmis_datasupplier.hxx"
11 #include "cmis_resultset.hxx"
13 using namespace com::sun::star::lang;
14 using namespace com::sun::star::ucb;
15 using namespace com::sun::star::uno;
17 namespace cmis
19 DynamicResultSet::DynamicResultSet(
20 const Reference< XMultiServiceFactory >& rxSMgr,
21 const Reference< Content >& rxContent,
22 const OpenCommandArgument2& rCommand,
23 const Reference< XCommandEnvironment >& rxEnv ) :
24 ResultSetImplHelper( rxSMgr, rCommand ),
25 m_xContent( rxContent ),
26 m_xEnv( rxEnv )
30 void DynamicResultSet::initStatic()
32 m_xResultSet1 = new ::ucbhelper::ResultSet(
33 m_xSMgr, m_aCommand.Properties,
34 new DataSupplier( m_xSMgr, m_xContent, m_aCommand.Mode ), m_xEnv );
37 void DynamicResultSet::initDynamic()
39 initStatic();
40 m_xResultSet2 = m_xResultSet1;
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */