nss: upgrade to release 3.73
[LibreOffice.git] / connectivity / source / inc / component / CResultSet.hxx
blob4fc46dfe7417bb6795465d93ca6c6800fe3e8e84
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 .
19 #ifndef INCLUDED_CONNECTIVITY_SOURCE_INC_COMPONENT_CRESULTSET_HXX
20 #define INCLUDED_CONNECTIVITY_SOURCE_INC_COMPONENT_CRESULTSET_HXX
22 #include <file/FResultSet.hxx>
23 #include <com/sun/star/sdbcx/XRowLocate.hpp>
24 #include <com/sun/star/sdbcx/XDeleteRows.hpp>
25 #include <cppuhelper/implbase2.hxx>
27 namespace connectivity::component
29 class OComponentResultSet;
30 // these typedef's are only necessary for the compiler
31 typedef ::cppu::ImplHelper2< css::sdbcx::XRowLocate,
32 css::sdbcx::XDeleteRows> OComponentResultSet_BASE;
33 typedef file::OResultSet OComponentResultSet_BASE2;
34 typedef ::comphelper::OPropertyArrayUsageHelper<OComponentResultSet> OComponentResultSet_BASE3;
37 /// ResultSet implementation for Writer tables and Calc sheets.
38 class OComponentResultSet : public OComponentResultSet_BASE2,
39 public OComponentResultSet_BASE,
40 public OComponentResultSet_BASE3
42 bool m_bBookmarkable;
43 protected:
44 // OPropertyArrayUsageHelper
45 virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
46 // OPropertySetHelper
47 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
48 virtual bool fillIndexValues(const css::uno::Reference< css::sdbcx::XColumnsSupplier> &_xIndex) override;
49 public:
50 DECLARE_SERVICE_INFO();
52 OComponentResultSet( file::OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator& _aSQLIterator);
54 private:
55 // XInterface
56 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
57 virtual void SAL_CALL acquire() throw() override;
58 virtual void SAL_CALL release() throw() override;
59 //XTypeProvider
60 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
61 // XPropertySet
62 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
64 // XRowLocate
65 virtual css::uno::Any SAL_CALL getBookmark( ) override;
66 virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
67 virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
68 virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
69 virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
70 virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
71 // XDeleteRows
72 virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const css::uno::Sequence< css::uno::Any >& rows ) override;
74 virtual bool isRowDeleted() const override { return false; }
80 #endif // INCLUDED_CONNECTIVITY_SOURCE_INC_COMPONENT_CRESULTSET_HXX
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */