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

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef SC_IMOPTDLG_HXX
      30                 :            : #define SC_IMOPTDLG_HXX
      31                 :            : 
      32                 :            : #include <vcl/dialog.hxx>
      33                 :            : #include <vcl/fixed.hxx>
      34                 :            : #include <vcl/combobox.hxx>
      35                 :            : #include <vcl/lstbox.hxx>
      36                 :            : #include <vcl/button.hxx>
      37                 :            : #include <svx/txencbox.hxx>
      38                 :            : #include "scdllapi.h"
      39                 :            : #include "global.hxx"
      40                 :            : 
      41                 :            : //===================================================================
      42                 :            : 
      43                 :          0 : class SC_DLLPUBLIC ScImportOptions
      44                 :            : {
      45                 :            : public:
      46                 :            :         ScImportOptions()
      47                 :            :             : nFieldSepCode(0), nTextSepCode(0),
      48                 :            :             eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(false),
      49                 :            :             bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      50                 :            :         {}
      51                 :            :         ScImportOptions( const String& rStr );
      52                 :            : 
      53                 :            :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, const String& rStr )
      54                 :            :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep), aStrFont(rStr),
      55                 :            :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      56                 :            :         { eCharSet = ScGlobal::GetCharsetValue(aStrFont); }
      57                 :            : 
      58                 :          0 :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
      59                 :            :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
      60                 :          0 :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      61         [ #  # ]:          0 :         { SetTextEncoding( nEnc ); }
      62                 :            : 
      63                 :            :         ScImportOptions( const ScImportOptions& rCpy )
      64                 :            :             : nFieldSepCode     (rCpy.nFieldSepCode),
      65                 :            :               nTextSepCode      (rCpy.nTextSepCode),
      66                 :            :               aStrFont          (rCpy.aStrFont),
      67                 :            :               eCharSet          (rCpy.eCharSet),
      68                 :            :               bFixedWidth       (rCpy.bFixedWidth),
      69                 :            :               bSaveAsShown      (rCpy.bSaveAsShown),
      70                 :            :               bQuoteAllText     (rCpy.bQuoteAllText),
      71                 :            :               bSaveFormulas     (rCpy.bSaveFormulas)
      72                 :            :         {}
      73                 :            : 
      74                 :            :     ScImportOptions& operator=( const ScImportOptions& rCpy )
      75                 :            :                         {
      76                 :            :                             nFieldSepCode   = rCpy.nFieldSepCode;
      77                 :            :                             nTextSepCode    = rCpy.nTextSepCode;
      78                 :            :                             aStrFont        = rCpy.aStrFont;
      79                 :            :                             eCharSet        = rCpy.eCharSet;
      80                 :            :                             bFixedWidth     = rCpy.bFixedWidth;
      81                 :            :                             bSaveAsShown    = rCpy.bSaveAsShown;
      82                 :            :                             bQuoteAllText   = rCpy.bQuoteAllText;
      83                 :            :                             bSaveFormulas   = rCpy.bSaveFormulas;
      84                 :            :                             return *this;
      85                 :            :                         }
      86                 :            : 
      87                 :            :     sal_Bool             operator==( const ScImportOptions& rCmp )
      88                 :            :                         {
      89                 :            :                             return
      90                 :            :                                    nFieldSepCode    == rCmp.nFieldSepCode
      91                 :            :                                 && nTextSepCode     == rCmp.nTextSepCode
      92                 :            :                                 && eCharSet         == rCmp.eCharSet
      93                 :            :                                 && aStrFont         == rCmp.aStrFont
      94                 :            :                                 && bFixedWidth      == rCmp.bFixedWidth
      95                 :            :                                 && bSaveAsShown     == rCmp.bSaveAsShown
      96                 :            :                                 && bQuoteAllText    == rCmp.bQuoteAllText
      97                 :            :                                 && bSaveFormulas    == rCmp.bSaveFormulas;
      98                 :            :                         }
      99                 :            :     String  BuildString() const;
     100                 :            : 
     101                 :            :     void    SetTextEncoding( rtl_TextEncoding nEnc );
     102                 :            : 
     103                 :            :     sal_Unicode nFieldSepCode;
     104                 :            :     sal_Unicode nTextSepCode;
     105                 :            :     String      aStrFont;
     106                 :            :     CharSet     eCharSet;
     107                 :            :     sal_Bool    bFixedWidth;
     108                 :            :     sal_Bool    bSaveAsShown;
     109                 :            :     sal_Bool    bQuoteAllText;
     110                 :            :     sal_Bool    bSaveFormulas;
     111                 :            : };
     112                 :            : 
     113                 :            : 
     114                 :            : #endif // SC_IMOPTDLG_HXX
     115                 :            : 
     116                 :            : 
     117                 :            : 
     118                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10