nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / ascfldlg.hxx
blobc50d51956cd7b71530ad341d40374a5d63c2854a
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 .
19 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_ASCFLDLG_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_ASCFLDLG_HXX
22 #include <sfx2/basedlgs.hxx>
23 #include <svx/txencbox.hxx>
24 #include <svx/langbox.hxx>
25 #include <tools/lineend.hxx>
27 class SwAsciiOptions;
28 class SvStream;
29 class SwDocShell;
31 class SwAsciiFilterDlg : public SfxDialogController
33 bool m_bSaveLineStatus;
34 OUString m_sExtraData;
36 std::unique_ptr<SvxTextEncodingBox> m_xCharSetLB;
37 std::unique_ptr<weld::Label> m_xFontFT;
38 std::unique_ptr<weld::ComboBox> m_xFontLB;
39 std::unique_ptr<weld::Label> m_xLanguageFT;
40 std::unique_ptr<SvxLanguageBox> m_xLanguageLB;
41 std::unique_ptr<weld::RadioButton> m_xCRLF_RB;
42 std::unique_ptr<weld::RadioButton> m_xCR_RB;
43 std::unique_ptr<weld::RadioButton> m_xLF_RB;
44 std::unique_ptr<weld::CheckButton> m_xIncludeBOM_CB;
46 DECL_LINK(CharSetSelHdl, weld::ComboBox&, void);
47 DECL_LINK(LineEndHdl, weld::ToggleButton&, void);
48 void SetCRLF(LineEnd eEnd);
49 LineEnd GetCRLF() const;
50 void SetIncludeBOM(bool bIncludeBOM);
51 bool GetIncludeBOM() const;
52 void UpdateIncludeBOMSensitiveState();
54 public:
55 // CTOR: for import - pStream is the inputstream
56 // for export - pStream must be 0
57 SwAsciiFilterDlg(weld::Window* pParent, SwDocShell& rDocSh, SvStream* pStream);
58 virtual ~SwAsciiFilterDlg() override;
60 void FillOptions(SwAsciiOptions& rOptions);
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */