bump product version to 7.2.5.1
[LibreOffice.git] / ucb / source / ucp / tdoc / tdoc_resultset.cxx
blobc94e5191d18b383f3529a02acba6a60c51e19020
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 /**************************************************************************
22 TODO
23 **************************************************************************
25 - This implementation is not a dynamic result set!!! It only implements
26 the necessary interfaces, but never recognizes/notifies changes!!!
28 *************************************************************************/
30 #include <ucbhelper/resultset.hxx>
32 #include "tdoc_datasupplier.hxx"
33 #include "tdoc_resultset.hxx"
34 #include "tdoc_content.hxx"
36 using namespace com::sun::star;
37 using namespace tdoc_ucp;
40 // DynamicResultSet Implementation.
43 DynamicResultSet::DynamicResultSet(
44 const uno::Reference< uno::XComponentContext >& rxContext,
45 const rtl::Reference< Content >& rxContent,
46 const ucb::OpenCommandArgument2& rCommand )
47 : ResultSetImplHelper( rxContext, rCommand ),
48 m_xContent( rxContent )
53 // Non-interface methods.
56 void DynamicResultSet::initStatic()
58 m_xResultSet1
59 = new ::ucbhelper::ResultSet(
60 m_xContext,
61 m_aCommand.Properties,
62 new ResultSetDataSupplier( m_xContext,
63 m_xContent ) );
67 void DynamicResultSet::initDynamic()
69 m_xResultSet1
70 = new ::ucbhelper::ResultSet(
71 m_xContext,
72 m_aCommand.Properties,
73 new ResultSetDataSupplier( m_xContext,
74 m_xContent ) );
75 m_xResultSet2 = m_xResultSet1;
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */