LibreOffice Module sw (master) 1
ascfldlg.hxx
Go to the documentation of this file.
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#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_ASCFLDLG_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_ASCFLDLG_HXX
21
22#include <sfx2/basedlgs.hxx>
23#include <svx/txencbox.hxx>
24#include <svx/langbox.hxx>
25#include <tools/lineend.hxx>
26
27class SwAsciiOptions;
28class SvStream;
29class SwDocShell;
30
32{
34 OUString m_sExtraData;
35
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;
45
46 DECL_LINK(CharSetSelHdl, weld::ComboBox&, void);
47 DECL_LINK(LineEndHdl, weld::Toggleable&, void);
48 void SetCRLF(LineEnd eEnd);
49 LineEnd GetCRLF() const;
50 void SetIncludeBOM(bool bIncludeBOM);
51 bool GetIncludeBOM() const;
53
54public:
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;
59
60 void FillOptions(SwAsciiOptions& rOptions);
61};
62
63#endif
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwAsciiFilterDlg(weld::Window *pParent, SwDocShell &rDocSh, SvStream *pStream)
Definition: ascfldlg.cxx:57
std::unique_ptr< weld::Label > m_xFontFT
Definition: ascfldlg.hxx:37
OUString m_sExtraData
Definition: ascfldlg.hxx:34
DECL_LINK(LineEndHdl, weld::Toggleable &, void)
DECL_LINK(CharSetSelHdl, weld::ComboBox &, void)
void SetCRLF(LineEnd eEnd)
Definition: ascfldlg.cxx:310
std::unique_ptr< weld::Label > m_xLanguageFT
Definition: ascfldlg.hxx:39
LineEnd GetCRLF() const
Definition: ascfldlg.cxx:326
void UpdateIncludeBOMSensitiveState()
Definition: ascfldlg.cxx:348
std::unique_ptr< weld::RadioButton > m_xCRLF_RB
Definition: ascfldlg.hxx:41
void SetIncludeBOM(bool bIncludeBOM)
Definition: ascfldlg.cxx:338
virtual ~SwAsciiFilterDlg() override
Definition: ascfldlg.cxx:266
std::unique_ptr< weld::RadioButton > m_xLF_RB
Definition: ascfldlg.hxx:43
std::unique_ptr< SvxTextEncodingBox > m_xCharSetLB
Definition: ascfldlg.hxx:36
void FillOptions(SwAsciiOptions &rOptions)
Definition: ascfldlg.cxx:272
bool m_bSaveLineStatus
Definition: ascfldlg.hxx:33
bool GetIncludeBOM() const
Definition: ascfldlg.cxx:343
std::unique_ptr< weld::CheckButton > m_xIncludeBOM_CB
Definition: ascfldlg.hxx:44
std::unique_ptr< weld::ComboBox > m_xFontLB
Definition: ascfldlg.hxx:38
std::unique_ptr< weld::RadioButton > m_xCR_RB
Definition: ascfldlg.hxx:42
std::unique_ptr< SvxLanguageBox > m_xLanguageLB
Definition: ascfldlg.hxx:40
LineEnd