Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / writerperfect / inc / WPFTEncodingDialog.hxx
blob9fc747d749ffe8718901a2432d551c66d0506164
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/button.hxx>
18 #include <vcl/dialog.hxx>
19 #include <vcl/lstbox.hxx>
21 #include <writerperfectdllapi.h>
23 namespace writerperfect
26 class WRITERPERFECT_DLLPUBLIC WPFTEncodingDialog : public ModalDialog
28 public:
29 WPFTEncodingDialog(const OUString &title, const OUString &defEncoding);
31 virtual ~WPFTEncodingDialog();
33 OUString GetEncoding() const;
34 bool hasUserCalledCancel() const
36 return m_userHasCancelled;
38 private:
39 VclPtr<ListBox> m_pLbCharset;
40 VclPtr<OKButton> m_pBtnOk;
41 VclPtr<CancelButton> m_pBtnCancel;
43 bool m_userHasCancelled;
44 private:
45 DECL_LINK_TYPED(DoubleClickHdl, ListBox &, void);
46 DECL_LINK_TYPED(CancelHdl, Button *, void);
48 void dispose() override;
50 WPFTEncodingDialog(WPFTEncodingDialog const &) = delete;
51 WPFTEncodingDialog &operator=(WPFTEncodingDialog const &) = delete;
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */