LCOV - code coverage report
Current view: top level - connectivity/source/inc/calc - CTable.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 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             : 
      20             : #ifndef _CONNECTIVITY_CALC_TABLE_HXX_
      21             : #define _CONNECTIVITY_CALC_TABLE_HXX_
      22             : 
      23             : #include "file/FTable.hxx"
      24             : #include <tools/date.hxx>
      25             : 
      26             : namespace com { namespace sun { namespace star { namespace sheet {
      27             :     class XSpreadsheet;
      28             : } } } }
      29             : 
      30             : namespace com { namespace sun { namespace star { namespace util {
      31             :     class XNumberFormats;
      32             : } } } }
      33             : 
      34             : 
      35             : namespace connectivity
      36             : {
      37             :     namespace calc
      38             :     {
      39             :         typedef file::OFileTable OCalcTable_BASE;
      40             :         class OCalcConnection;
      41             : 
      42           0 :         class OCalcTable :  public OCalcTable_BASE
      43             :         {
      44             :         private:
      45             :             ::std::vector<sal_Int32> m_aTypes;      // holds all type for columns just to avoid to ask the propertyset
      46             :             ::std::vector<sal_Int32> m_aPrecisions; // same as aboth
      47             :             ::std::vector<sal_Int32> m_aScales;
      48             :             ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet >           m_xSheet;
      49             :             OCalcConnection* m_pConnection;
      50             :             sal_Int32 m_nStartCol;
      51             :             sal_Int32 m_nStartRow;
      52             :             sal_Int32 m_nDataCols;
      53             :             sal_Int32 m_nDataRows;
      54             :             sal_Bool m_bHasHeaders;
      55             :             ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > m_xFormats;
      56             :             ::Date m_aNullDate;
      57             : 
      58             :             void fillColumns();
      59             : 
      60             :         protected:
      61             :             virtual void FileClose() SAL_OVERRIDE;
      62             :         public:
      63             :             virtual void refreshColumns() SAL_OVERRIDE;
      64             :             virtual void refreshIndexes() SAL_OVERRIDE;
      65             : 
      66             :         public:
      67             :             OCalcTable( sdbcx::OCollection* _pTables,OCalcConnection* _pConnection,
      68             :                     const OUString& _Name,
      69             :                     const OUString& _Type,
      70             :                     const OUString& _Description = OUString(),
      71             :                     const OUString& _SchemaName = OUString(),
      72             :                     const OUString& _CatalogName = OUString()
      73             :                 );
      74             : 
      75             :             virtual sal_Int32 getCurrentLastPos() const SAL_OVERRIDE;
      76             :             virtual sal_Bool seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, sal_Int32& nCurPos) SAL_OVERRIDE;
      77             :             virtual sal_Bool fetchRow(OValueRefRow& _rRow,const OSQLColumns& _rCols, sal_Bool _bUseTableDefs,sal_Bool bRetrieveData) SAL_OVERRIDE;
      78             : 
      79             :             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;
      80             :             //XTypeProvider
      81             :             virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             :             virtual void SAL_CALL disposing(void) SAL_OVERRIDE;
      83             : 
      84             :             // com::sun::star::lang::XUnoTunnel
      85             :             virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :             static ::com::sun::star::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
      87             : 
      88             :             void construct() SAL_OVERRIDE;
      89             :         };
      90             :     }
      91             : }
      92             : 
      93             : #endif // _CONNECTIVITY_CALC_TABLE_HXX_
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10