LCOV - code coverage report
Current view: top level - libreoffice/sc/source/ui/inc - imoptdlg.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 4 0.0 %
Date: 2012-12-27 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 SC_IMOPTDLG_HXX
      21             : #define SC_IMOPTDLG_HXX
      22             : 
      23             : #include <vcl/dialog.hxx>
      24             : #include <vcl/fixed.hxx>
      25             : #include <vcl/combobox.hxx>
      26             : #include <vcl/lstbox.hxx>
      27             : #include <vcl/button.hxx>
      28             : #include <svx/txencbox.hxx>
      29             : #include "scdllapi.h"
      30             : #include "global.hxx"
      31             : 
      32             : //===================================================================
      33             : 
      34           0 : class SC_DLLPUBLIC ScImportOptions
      35             : {
      36             : public:
      37             :         ScImportOptions()
      38             :             : nFieldSepCode(0), nTextSepCode(0),
      39             :             eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(false),
      40             :             bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      41             :         {}
      42             :         ScImportOptions( const String& rStr );
      43             : 
      44             :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, const String& rStr )
      45             :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep), aStrFont(rStr),
      46             :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      47             :         { eCharSet = ScGlobal::GetCharsetValue(aStrFont); }
      48             : 
      49           0 :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
      50             :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
      51           0 :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      52           0 :         { SetTextEncoding( nEnc ); }
      53             : 
      54             :         ScImportOptions( const ScImportOptions& rCpy )
      55             :             : nFieldSepCode     (rCpy.nFieldSepCode),
      56             :               nTextSepCode      (rCpy.nTextSepCode),
      57             :               aStrFont          (rCpy.aStrFont),
      58             :               eCharSet          (rCpy.eCharSet),
      59             :               bFixedWidth       (rCpy.bFixedWidth),
      60             :               bSaveAsShown      (rCpy.bSaveAsShown),
      61             :               bQuoteAllText     (rCpy.bQuoteAllText),
      62             :               bSaveFormulas     (rCpy.bSaveFormulas)
      63             :         {}
      64             : 
      65             :     ScImportOptions& operator=( const ScImportOptions& rCpy )
      66             :                         {
      67             :                             nFieldSepCode   = rCpy.nFieldSepCode;
      68             :                             nTextSepCode    = rCpy.nTextSepCode;
      69             :                             aStrFont        = rCpy.aStrFont;
      70             :                             eCharSet        = rCpy.eCharSet;
      71             :                             bFixedWidth     = rCpy.bFixedWidth;
      72             :                             bSaveAsShown    = rCpy.bSaveAsShown;
      73             :                             bQuoteAllText   = rCpy.bQuoteAllText;
      74             :                             bSaveFormulas   = rCpy.bSaveFormulas;
      75             :                             return *this;
      76             :                         }
      77             : 
      78             :     sal_Bool             operator==( const ScImportOptions& rCmp )
      79             :                         {
      80             :                             return
      81             :                                    nFieldSepCode    == rCmp.nFieldSepCode
      82             :                                 && nTextSepCode     == rCmp.nTextSepCode
      83             :                                 && eCharSet         == rCmp.eCharSet
      84             :                                 && aStrFont         == rCmp.aStrFont
      85             :                                 && bFixedWidth      == rCmp.bFixedWidth
      86             :                                 && bSaveAsShown     == rCmp.bSaveAsShown
      87             :                                 && bQuoteAllText    == rCmp.bQuoteAllText
      88             :                                 && bSaveFormulas    == rCmp.bSaveFormulas;
      89             :                         }
      90             :     String  BuildString() const;
      91             : 
      92             :     void    SetTextEncoding( rtl_TextEncoding nEnc );
      93             : 
      94             :     sal_Unicode nFieldSepCode;
      95             :     sal_Unicode nTextSepCode;
      96             :     String      aStrFont;
      97             :     CharSet     eCharSet;
      98             :     sal_Bool    bFixedWidth;
      99             :     sal_Bool    bSaveAsShown;
     100             :     sal_Bool    bQuoteAllText;
     101             :     sal_Bool    bSaveFormulas;
     102             : };
     103             : 
     104             : 
     105             : #endif // SC_IMOPTDLG_HXX
     106             : 
     107             : 
     108             : 
     109             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10