LCOV - code coverage report
Current view: top level - connectivity/source/inc/calc - CResultSet.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : #ifndef _CONNECTIVITY_CALC_RESULTSET_HXX_
      20             : #define _CONNECTIVITY_CALC_RESULTSET_HXX_
      21             : 
      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>
      26             : 
      27             : namespace connectivity
      28             : {
      29             :     namespace calc
      30             :     {
      31             :         class OCalcResultSet;
      32             :         // these typedef's are only necessary for the compiler
      33             :         typedef ::cppu::ImplHelper2<  ::com::sun::star::sdbcx::XRowLocate,
      34             :                                       ::com::sun::star::sdbcx::XDeleteRows> OCalcResultSet_BASE;
      35             :         typedef file::OResultSet                                            OCalcResultSet_BASE2;
      36             :         typedef ::comphelper::OPropertyArrayUsageHelper<OCalcResultSet> OCalcResultSet_BASE3;
      37             : 
      38             : 
      39           0 :         class OCalcResultSet : public OCalcResultSet_BASE2,
      40             :                                 public OCalcResultSet_BASE,
      41             :                                 public OCalcResultSet_BASE3
      42             :         {
      43             :             sal_Bool m_bBookmarkable;
      44             :         protected:
      45             :             // OPropertyArrayUsageHelper
      46             :             virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const SAL_OVERRIDE;
      47             :             // OPropertySetHelper
      48             :             virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() SAL_OVERRIDE;
      49             :             virtual sal_Bool fillIndexValues(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbcx::XColumnsSupplier> &_xIndex) SAL_OVERRIDE;
      50             :         public:
      51             :             DECLARE_SERVICE_INFO();
      52             : 
      53             :             OCalcResultSet( file::OStatement_Base* pStmt,connectivity::OSQLParseTreeIterator&   _aSQLIterator);
      54             : 
      55             :         private:
      56             :             // XInterface
      57             :             virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      58             :             virtual void SAL_CALL acquire() throw() SAL_OVERRIDE;
      59             :             virtual void SAL_CALL release() throw() SAL_OVERRIDE;
      60             :             //XTypeProvider
      61             :             virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      62             :             // XPropertySet
      63             :             virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      64             : 
      65             :             // XRowLocate
      66             :             virtual ::com::sun::star::uno::Any SAL_CALL getBookmark(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      67             :             virtual sal_Bool SAL_CALL moveToBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             :             virtual sal_Bool SAL_CALL moveRelativeToBookmark( const ::com::sun::star::uno::Any& bookmark, sal_Int32 rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :             virtual sal_Int32 SAL_CALL compareBookmarks( const ::com::sun::star::uno::Any& first, const ::com::sun::star::uno::Any& second ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      70             :             virtual sal_Bool SAL_CALL hasOrderedBookmarks(  ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             :             virtual sal_Int32 SAL_CALL hashBookmark( const ::com::sun::star::uno::Any& bookmark ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      72             :             // XDeleteRows
      73             :             virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rows ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             : 
      75           0 :             virtual sal_Bool isRowDeleted() const SAL_OVERRIDE { return sal_False; }
      76             : 
      77             :         };
      78             :     }
      79             : }
      80             : 
      81             : #endif //_CONNECTIVITY_CALC_RESULTSET_HXX_
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10