LCOV - code coverage report
Current view: top level - sc/source/filter/inc - lotimpop.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 33 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 9 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 INCLUDED_SC_SOURCE_FILTER_INC_LOTIMPOP_HXX
      21             : #define INCLUDED_SC_SOURCE_FILTER_INC_LOTIMPOP_HXX
      22             : 
      23             : #include <rtl/ustring.hxx>
      24             : 
      25             : #include "imp_op.hxx"
      26             : #include "flttypes.hxx"
      27             : #include "ftools.hxx"
      28             : #include "lotform.hxx"
      29             : #include "lotattr.hxx"
      30             : 
      31             : class ScFormulaCell;
      32             : class LotusFontBuffer;
      33             : struct LotusContext;
      34             : 
      35             : class ImportLotus : public ImportTyp
      36             : {
      37             : private:
      38             :     SvStream*           pIn;            // benoetigt wegen multiplem Read()!
      39             :     LotusToSc           aConv;
      40             :     sal_uInt16              nTab;           // z.Zt. bearbeitete Tabelle
      41             :     sal_Int32               nExtTab;
      42             : 
      43             :     // in WK?-Datei
      44             :     void                Bof();                        // 0x0000   00
      45             :     bool                BofFm3();                     // 0x0000   00
      46             :     void                Columnwidth( sal_uInt16 nRecLen );      // 0x0007   07
      47             :     void                Hiddencolumn( sal_uInt16 nRecLen );     // 0x0008   08
      48             :     void                Userrange();                  // 0x0009   09
      49             :     void                Errcell();                    // 0x0014   20
      50             :     void                Nacell();                     // 0x0015   21
      51             :     void                Labelcell();                  // 0x0016   22
      52             :     void                Numbercell();                 // 0x0017   23
      53             :     void                Smallnumcell();               // 0x0018   24
      54             :     ScFormulaCell*      Formulacell( sal_uInt16 nRecLen );      // 0x0019   25
      55             :     void                Formulastring( ScFormulaCell& );    // 0x001a   26
      56             :                                                             // 0x001b   27 special
      57             :     void                NamedSheet();                 //          14000
      58             :     void                RowPresentation( sal_uInt16 nRecLen );  //           2007
      59             : 
      60             :     // in FM?-Datei
      61             :     void                Font_Face();                  // 174
      62             :     void                Font_Type();                  // 176
      63             :     void                Font_Ysize();                 // 177
      64             :     void                _Row( const sal_uInt16 nRecLen );       // 197 ?
      65             : 
      66             :     inline void         Read( ScAddress& );
      67             :     inline void         Read( ScRange& );
      68             :         // fuer Addresses/Ranges im Format Row(16)/Tab(8)/Col(8)
      69             :     inline void         Read( sal_Char& );
      70             :     inline void         Read( sal_uInt8& );
      71             :     inline void         Read( sal_uInt16& );
      72             :     inline void         Read( sal_Int16& );
      73             :     inline void         Read( sal_uInt32& );
      74             :     inline void         Read( double& );                    // 10-Byte-IEEE lesen
      75             :     inline void         Read( LotAttrWK3& );
      76             :     void                Read( OUString& );                  // 0-terminierten String einlesen
      77             :     inline void         Skip( const sal_uInt16 nNumBytes );
      78             : 
      79             : public:
      80             :     ImportLotus(LotusContext& rContext, SvStream&, ScDocument*, rtl_TextEncoding eSrc);
      81             : 
      82             :     virtual             ~ImportLotus();
      83             : 
      84             :     FltError            Read() SAL_OVERRIDE;
      85             :     FltError            Read( SvStream& );                  // special for *.fm3-Dateien
      86             : };
      87             : 
      88           0 : inline void ImportLotus::Read( ScAddress& rAddr )
      89             : {
      90             :     sal_uInt16 nRow;
      91           0 :     pIn->ReadUInt16( nRow );
      92           0 :     rAddr.SetRow( static_cast<SCROW>(nRow) );
      93             :     sal_uInt8 nByte;
      94           0 :     pIn->ReadUChar( nByte );
      95           0 :     rAddr.SetTab( static_cast<SCTAB>(nByte) );
      96           0 :     pIn->ReadUChar( nByte );
      97           0 :     rAddr.SetCol( static_cast<SCCOL>(nByte) );
      98           0 : }
      99             : 
     100           0 : inline void ImportLotus::Read( ScRange& rRange )
     101             : {
     102           0 :     Read( rRange.aStart );
     103           0 :     Read( rRange.aEnd );
     104           0 : }
     105             : 
     106           0 : inline void ImportLotus::Read( sal_Char& r )
     107             : {
     108           0 :     pIn->ReadChar( r );
     109           0 : }
     110             : 
     111           0 : inline void ImportLotus::Read( sal_uInt8& r )
     112             : {
     113           0 :     pIn->ReadUChar( r );
     114           0 : }
     115             : 
     116           0 : inline void ImportLotus::Read( sal_uInt16& r )
     117             : {
     118           0 :     pIn->ReadUInt16( r );
     119           0 : }
     120             : 
     121           0 : inline void ImportLotus::Read( sal_Int16& r )
     122             : {
     123           0 :     pIn->ReadInt16( r );
     124           0 : }
     125             : 
     126             : inline void ImportLotus::Read( sal_uInt32& r )
     127             : {
     128             :     pIn->ReadUInt32( r );
     129             : }
     130             : 
     131           0 : inline void ImportLotus::Read( double& r )
     132             : {
     133           0 :     r = ScfTools::ReadLongDouble( *pIn );
     134           0 : }
     135             : 
     136           0 : inline void ImportLotus::Read( LotAttrWK3& r )
     137             : {
     138           0 :     pIn->ReadUChar( r.nFont ).ReadUChar( r.nFontCol ).ReadUChar( r.nBack ).ReadUChar( r.nLineStyle );
     139           0 : }
     140             : 
     141           0 : inline void ImportLotus::Skip( const sal_uInt16 n )
     142             : {
     143           0 :     pIn->SeekRel( n );
     144           0 : }
     145             : 
     146             : #endif
     147             : 
     148             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11