Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / scuiimoptdlg.hxx
blob9848e332e1f00fdb022c69c0658b1650ec6de5c4
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_SCUIIMOPTDLG_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_SCUIIMOPTDLG_HXX
23 #include <vcl/layout.hxx>
24 #include "imoptdlg.hxx"
26 class ScDelimiterTable;
28 class ScImportOptionsDlg : public ModalDialog
30 public:
31 ScImportOptionsDlg( vcl::Window* pParent,
32 bool bAscii = true,
33 const ScImportOptions* pOptions = nullptr,
34 const OUString* pStrTitle = nullptr,
35 bool bMultiByte = false,
36 bool bOnlyDbtoolsEncodings = false,
37 bool bImport = true );
39 virtual ~ScImportOptionsDlg();
40 virtual void dispose() override;
42 void GetImportOptions( ScImportOptions& rOptions ) const;
44 private:
45 VclPtr<VclFrame> m_pFieldFrame;
46 VclPtr<FixedText> m_pFtCharset;
47 VclPtr<VclContainer> m_pEncGrid;
48 VclPtr<SvxTextEncodingBox> m_pLbCharset;
49 VclPtr<FixedText> m_pFtFieldSep;
50 VclPtr<ComboBox> m_pEdFieldSep;
51 VclPtr<FixedText> m_pFtTextSep;
52 VclPtr<ComboBox> m_pEdTextSep;
53 VclPtr<CheckBox> m_pCbShown;
54 VclPtr<CheckBox> m_pCbFormulas;
55 VclPtr<CheckBox> m_pCbQuoteAll;
56 VclPtr<CheckBox> m_pCbFixed;
57 VclPtr<OKButton> m_pBtnOk;
60 ScDelimiterTable* pFieldSepTab;
61 ScDelimiterTable* pTextSepTab;
63 private:
64 sal_uInt16 GetCodeFromCombo( const ComboBox& rEd ) const;
66 DECL_LINK_TYPED( FixedWidthHdl, Button*, void );
67 DECL_LINK_TYPED( DoubleClickHdl, ListBox&, void );
70 #endif
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */