LCOV - code coverage report
Current view: top level - sc/source/filter/inc - excimp8.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 11 0.0 %
Date: 2014-04-14 Functions: 0 12 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 SC_EXCIMP8_HXX
      21             : #define SC_EXCIMP8_HXX
      22             : 
      23             : #include <string.h>
      24             : 
      25             : #include <boost/ptr_container/ptr_vector.hpp>
      26             : 
      27             : #include "imp_op.hxx"
      28             : #include "root.hxx"
      29             : #include "excscen.hxx"
      30             : #include "excdefs.hxx"
      31             : #include "ftools.hxx"
      32             : #include "queryparam.hxx"
      33             : 
      34             : class ScDBData;
      35             : class XclImpStream;
      36             : 
      37             : class ImportExcel8 : public ImportExcel
      38             : {
      39             : public:
      40             :                             ImportExcel8( XclImpRootData& rImpData, SvStream& rStrm );
      41             :     virtual                 ~ImportExcel8( void );
      42             : 
      43             :     virtual FltError        Read( void ) SAL_OVERRIDE;
      44             : 
      45             :     void                    Calccount( void );              // 0x0C
      46             :     void                    Precision( void );              // 0x0E
      47             :     void                    Delta( void );                  // 0x10
      48             :     void                    Iteration( void );              // 0x11
      49             :     void                    Boundsheet( void );             // 0x85
      50             :     void                    FilterMode( void );             // 0x9B
      51             :     void                    AutoFilterInfo( void );         // 0x9D
      52             :     void                    AutoFilter( void );             // 0x9E
      53             :     void                    Scenman( void );                // 0xAE
      54             :     void                    Scenario( void );               // 0xAF
      55             :     void                    ReadBasic( void );              // 0xD3
      56             :     void                    Labelsst( void );               // 0xFD
      57             : 
      58             :     void                    Hlink( void );                  // 0x01B8
      59             :     void                    FeatHdr( void );                // 0x0867
      60             :     void                    Feat( void );                   // 0x0868
      61             : 
      62             :     virtual void            EndSheet( void ) SAL_OVERRIDE;
      63             :     virtual void            PostDocLoad( void ) SAL_OVERRIDE;
      64             : 
      65             : private:
      66             :     void                    LoadDocumentProperties();
      67             : 
      68             : private:
      69             :     // represents codename ( and associated modules )
      70             :     // not speficied directly in the binary format
      71             :     std::vector<OUString> maAutoGeneratedCodeNames;
      72             :     ExcScenarioList maScenList;
      73             : };
      74             : 
      75             : 
      76             : // classes AutoFilterData, AutoFilterBuffer
      77             : 
      78           0 : class XclImpAutoFilterData : private ExcRoot
      79             : {
      80             : private:
      81             :     ScDBData*                   pCurrDBData;
      82             :     ScQueryParam                aParam;
      83             :     ScRange                     aCriteriaRange;
      84             :     bool                        bActive:1;
      85             :     bool                        bCriteria:1;
      86             :     bool                        bAutoOrAdvanced:1;
      87             : 
      88             :     void                        SetCellAttribs();
      89             :     void                        InsertQueryParam();
      90             : 
      91             : protected:
      92             : public:
      93             :                                 XclImpAutoFilterData(
      94             :                                     RootData* pRoot,
      95             :                                     const ScRange& rRange);
      96             : 
      97           0 :     inline bool                 IsActive() const    { return bActive; }
      98           0 :     inline bool                 IsFiltered() const  { return bAutoOrAdvanced; }
      99           0 :     inline SCTAB                Tab() const         { return aParam.nTab; }
     100           0 :     inline SCCOL                StartCol() const    { return aParam.nCol1; }
     101           0 :     inline SCROW                StartRow() const    { return aParam.nRow1; }
     102           0 :     inline SCCOL                EndCol() const      { return aParam.nCol2; }
     103           0 :     inline SCROW                EndRow() const      { return aParam.nRow2; }
     104             : 
     105             :     void ReadAutoFilter( XclImpStream& rStrm, svl::SharedStringPool& rPool );
     106             : 
     107           0 :     inline void                 Activate()          { bActive = true; }
     108             :     void                        SetAdvancedRange( const ScRange* pRange );
     109             :     void                        SetExtractPos( const ScAddress& rAddr );
     110           0 :     inline void                 SetAutoOrAdvanced()  { bAutoOrAdvanced = true; }
     111             :     void                        Apply();
     112             :     void                        CreateScDBData();
     113             :     void                        EnableRemoveFilter();
     114             : };
     115             : 
     116             : 
     117           0 : class XclImpAutoFilterBuffer
     118             : {
     119             : public:
     120             : 
     121             :     void                        Insert( RootData* pRoot, const ScRange& rRange);
     122             :     void                        AddAdvancedRange( const ScRange& rRange );
     123             :     void                        AddExtractPos( const ScRange& rRange );
     124             :     void                        Apply();
     125             : 
     126             :     XclImpAutoFilterData*       GetByTab( SCTAB nTab );
     127             : 
     128             : private:
     129             : 
     130             :     boost::ptr_vector<XclImpAutoFilterData> maFilters;
     131             : };
     132             : 
     133             : #endif
     134             : 
     135             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10