LCOV - code coverage report
Current view: top level - sc/source/ui/inc - imoptdlg.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 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 INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_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           0 : class SC_DLLPUBLIC ScImportOptions
      33             : {
      34             : public:
      35             :         ScImportOptions()
      36             :             : nFieldSepCode(0), nTextSepCode(0),
      37             :             eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(false),
      38             :             bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      39             :         {}
      40             :         ScImportOptions( const OUString& rStr );
      41             : 
      42             :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, const OUString& rStr )
      43             :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep), aStrFont(rStr),
      44             :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      45             :         { eCharSet = ScGlobal::GetCharsetValue(aStrFont); }
      46             : 
      47           0 :         ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
      48             :             : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
      49           0 :             bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
      50           0 :         { SetTextEncoding( nEnc ); }
      51             : 
      52             :         ScImportOptions( const ScImportOptions& rCpy )
      53             :             : nFieldSepCode     (rCpy.nFieldSepCode),
      54             :               nTextSepCode      (rCpy.nTextSepCode),
      55             :               aStrFont          (rCpy.aStrFont),
      56             :               eCharSet          (rCpy.eCharSet),
      57             :               bFixedWidth       (rCpy.bFixedWidth),
      58             :               bSaveAsShown      (rCpy.bSaveAsShown),
      59             :               bQuoteAllText     (rCpy.bQuoteAllText),
      60             :               bSaveFormulas     (rCpy.bSaveFormulas)
      61             :         {}
      62             : 
      63             :     ScImportOptions& operator=( const ScImportOptions& rCpy )
      64             :                         {
      65             :                             nFieldSepCode   = rCpy.nFieldSepCode;
      66             :                             nTextSepCode    = rCpy.nTextSepCode;
      67             :                             aStrFont        = rCpy.aStrFont;
      68             :                             eCharSet        = rCpy.eCharSet;
      69             :                             bFixedWidth     = rCpy.bFixedWidth;
      70             :                             bSaveAsShown    = rCpy.bSaveAsShown;
      71             :                             bQuoteAllText   = rCpy.bQuoteAllText;
      72             :                             bSaveFormulas   = rCpy.bSaveFormulas;
      73             :                             return *this;
      74             :                         }
      75             : 
      76             :     bool             operator==( const ScImportOptions& rCmp )
      77             :                         {
      78             :                             return
      79             :                                    nFieldSepCode    == rCmp.nFieldSepCode
      80             :                                 && nTextSepCode     == rCmp.nTextSepCode
      81             :                                 && eCharSet         == rCmp.eCharSet
      82             :                                 && aStrFont         == rCmp.aStrFont
      83             :                                 && bFixedWidth      == rCmp.bFixedWidth
      84             :                                 && bSaveAsShown     == rCmp.bSaveAsShown
      85             :                                 && bQuoteAllText    == rCmp.bQuoteAllText
      86             :                                 && bSaveFormulas    == rCmp.bSaveFormulas;
      87             :                         }
      88             :     OUString  BuildString() const;
      89             : 
      90             :     void    SetTextEncoding( rtl_TextEncoding nEnc );
      91             : 
      92             :     sal_Unicode nFieldSepCode;
      93             :     sal_Unicode nTextSepCode;
      94             :     OUString    aStrFont;
      95             :     rtl_TextEncoding eCharSet;
      96             :     bool        bFixedWidth;
      97             :     bool        bSaveAsShown;
      98             :     bool        bQuoteAllText;
      99             :     bool        bSaveFormulas;
     100             : };
     101             : 
     102             : #endif // INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11