Bump version to 6.4-15
[LibreOffice.git] / writerperfect / inc / WPFTEncodingDialog.hxx
blob81e0363a568dab4024c229852d8b0b1eb4f6b41e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* MSWorksImportFilter: Sets up the filter, and calls DocumentCollector
3 * to do the actual filtering
5 * This file is part of the LibreOffice project.
7 * This Source Code Form is subject to the terms of the Mozilla Public
8 * License, v. 2.0. If a copy of the MPL was not distributed with this
9 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #ifndef INCLUDED_WRITERPERFECT_WPFTENCODINGDIALOG_HXX
13 #define INCLUDED_WRITERPERFECT_WPFTENCODINGDIALOG_HXX
15 #include <sal/types.h>
17 #include <vcl/weld.hxx>
19 #include "writerperfectdllapi.h"
21 namespace writerperfect
23 class WRITERPERFECT_DLLPUBLIC WPFTEncodingDialog : public weld::GenericDialogController
25 public:
26 WPFTEncodingDialog(weld::Window* pParent, const OUString& title, const OUString& defEncoding);
28 virtual ~WPFTEncodingDialog() override;
30 OUString GetEncoding() const;
31 bool hasUserCalledCancel() const { return m_userHasCancelled; }
33 private:
34 bool m_userHasCancelled;
36 std::unique_ptr<weld::ComboBox> m_xLbCharset;
37 std::unique_ptr<weld::Button> m_xBtnOk;
38 std::unique_ptr<weld::Button> m_xBtnCancel;
40 private:
41 DECL_LINK(CancelHdl, weld::Button&, void);
43 WPFTEncodingDialog(WPFTEncodingDialog const&) = delete;
44 WPFTEncodingDialog& operator=(WPFTEncodingDialog const&) = delete;
48 #endif
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */