tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / writerperfect / inc / WPFTEncodingDialog.hxx
blob62fb817842ba9f1affdf554cd33af1b9f7db1a97
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 #pragma once
14 #include <config_options.h>
15 #include <vcl/weld.hxx>
17 #include "writerperfectdllapi.h"
19 namespace writerperfect
21 class UNLESS_MERGELIBS_MORE(WRITERPERFECT_DLLPUBLIC) WPFTEncodingDialog final
22 : public weld::GenericDialogController
24 public:
25 WPFTEncodingDialog(weld::Window* pParent, const OUString& title, const OUString& defEncoding);
27 virtual ~WPFTEncodingDialog() override;
29 OUString GetEncoding() const;
30 bool hasUserCalledCancel() const { return m_userHasCancelled; }
32 private:
33 bool m_userHasCancelled;
35 std::unique_ptr<weld::ComboBox> m_xLbCharset;
36 std::unique_ptr<weld::Button> m_xBtnCancel;
38 private:
39 DECL_DLLPRIVATE_LINK(CancelHdl, weld::Button&, void);
40 DECL_STATIC_LINK(WPFTEncodingDialog, InstallLOKNotifierHdl, void*,
41 vcl::ILibreOfficeKitNotifier*);
43 WPFTEncodingDialog(WPFTEncodingDialog const&) = delete;
44 WPFTEncodingDialog& operator=(WPFTEncodingDialog const&) = delete;
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */