LCOV - code coverage report
Current view: top level - sc/source/filter/inc - qproform.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-08-25 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.0 %

           Branch data     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                 :            : 
      21                 :            : #ifndef SC_QPROFORM_HXX
      22                 :            : #define SC_QPROFORM_HXX
      23                 :            : 
      24                 :            : #include <sal/config.h>
      25                 :            : #include "formel.hxx"
      26                 :            : #include "qpro.hxx"
      27                 :            : 
      28                 :            : #include <compiler.hxx>
      29                 :            : typedef OpCode DefTokenId;
      30                 :            : 
      31                 :            : enum FUNC_TYPE
      32                 :            : {
      33                 :            :     FT_Return,
      34                 :            :     FT_FuncFix0,
      35                 :            :     FT_FuncFix1,
      36                 :            :     FT_FuncFix2,
      37                 :            :     FT_FuncFix3,
      38                 :            :     FT_FuncFix4,
      39                 :            :     FT_FuncFix5,
      40                 :            :     FT_FuncFix6,
      41                 :            :     FT_FuncVar,
      42                 :            :     FT_DLL,
      43                 :            :     FT_Neg,
      44                 :            :     FT_Op,
      45                 :            :     FT_NotImpl,
      46                 :            :     FT_ConstFloat,
      47                 :            :     FT_Range,
      48                 :            :     FT_Braces,
      49                 :            :     FT_ConstInt,
      50                 :            :     FT_ConstString,
      51                 :            :     FT_NOP,
      52                 :            :     FT_Cref
      53                 :            : };
      54                 :            : 
      55                 :            : class QProToSc : public ConverterBase
      56                 :            : {
      57                 :            :     private:
      58                 :            :     TokenId mnAddToken;
      59                 :            :     TokenId mnSubToken;
      60                 :            :     TokenId mn0Token;
      61                 :            :     SvStream& maIn;
      62                 :            : 
      63                 :            :     public:
      64                 :            :     static const size_t nBufSize = 256;
      65                 :            :     QProToSc( SvStream &aStr, const ScAddress& rRefPos );
      66         [ -  + ]:          3 :     ~QProToSc(){ };
      67                 :            :     ConvErr Convert( const ScTokenArray*& pArray, sal_uInt16 nLen,
      68                 :            :                                                                          const FORMULA_TYPE eFT = FT_CellFormula );
      69                 :            :     void DoFunc( DefTokenId eOc, sal_uInt16 nArgs, const sal_Char* pExtString );
      70                 :            :     void ReadSRD( ScSingleRefData& rR, sal_Int8 nPage, sal_Int8 nCol, sal_uInt16 rRel );
      71                 :            :     void IncToken( TokenId &aParam );
      72                 :            :     DefTokenId IndexToToken( sal_uInt16 nToken );
      73                 :            :     FUNC_TYPE IndexToType( sal_uInt8 nToken );
      74                 :            :     DefTokenId IndexToDLLId( sal_uInt16 nIndex );
      75                 :            :     const sal_Char* getString( sal_uInt8 nIndex );
      76                 :            : };
      77                 :            : #endif
      78                 :            : 
      79                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10