Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / imoptdlg.hxx
blob82ecf28d155b0f24ea7b8b1aa487239ac7911eec
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( const OUString& rStr );
37 ScImportOptions( sal_Unicode nFieldSep, sal_Unicode nTextSep, rtl_TextEncoding nEnc )
38 : nFieldSepCode(nFieldSep), nTextSepCode(nTextSep),
39 bFixedWidth(false), bSaveAsShown(false), bQuoteAllText(false), bSaveFormulas(false)
40 { SetTextEncoding( nEnc ); }
42 ScImportOptions& operator=( const ScImportOptions& rCpy )
44 nFieldSepCode = rCpy.nFieldSepCode;
45 nTextSepCode = rCpy.nTextSepCode;
46 aStrFont = rCpy.aStrFont;
47 eCharSet = rCpy.eCharSet;
48 bFixedWidth = rCpy.bFixedWidth;
49 bSaveAsShown = rCpy.bSaveAsShown;
50 bQuoteAllText = rCpy.bQuoteAllText;
51 bSaveFormulas = rCpy.bSaveFormulas;
52 return *this;
55 OUString BuildString() const;
57 void SetTextEncoding( rtl_TextEncoding nEnc );
59 sal_Unicode nFieldSepCode;
60 sal_Unicode nTextSepCode;
61 OUString aStrFont;
62 rtl_TextEncoding eCharSet;
63 bool bFixedWidth;
64 bool bSaveAsShown;
65 bool bQuoteAllText;
66 bool bSaveFormulas;
69 #endif // INCLUDED_SC_SOURCE_UI_INC_IMOPTDLG_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */