fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / imoptdlg.hxx
blob261b3c4ea78a8077dd6e11ec22ba7a4560536d95
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
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"
32 class SC_DLLPUBLIC ScImportOptions
34 public:
35 ScImportOptions()
36 : nFieldSepCode(0), nTextSepCode(0),
37 eCharSet(RTL_TEXTENCODING_DONTKNOW), bFixedWidth(false),
38 bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
40 ScImportOptions( const OUString& rStr );
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); }
47 ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
48 : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
49 bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
50 { SetTextEncoding( nEnc ); }
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)
63 ScImportOptions& operator=( const ScImportOptions& rCpy )
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;
76 bool operator==( const ScImportOptions& rCmp )
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;
88 OUString BuildString() const;
90 void SetTextEncoding( rtl_TextEncoding nEnc );
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;
102 #endif // INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */