Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/writerperfect/inc/WPFTEncodingDialog.hxx
Line
Count
Source
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
4
 *
5
 * This file is part of the LibreOffice project.
6
 *
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/.
10
 */
11
12
#pragma once
13
14
#include <config_options.h>
15
16
#include <vcl/weld/Button.hxx>
17
#include <vcl/weld/ComboBox.hxx>
18
#include <vcl/weld/DialogController.hxx>
19
#include <vcl/weld/Window.hxx>
20
21
#include "writerperfectdllapi.h"
22
23
namespace writerperfect
24
{
25
class UNLESS_MERGELIBS_MORE(WRITERPERFECT_DLLPUBLIC) WPFTEncodingDialog final
26
    : public weld::GenericDialogController
27
{
28
public:
29
    WPFTEncodingDialog(weld::Window* pParent, const OUString& title, const OUString& defEncoding);
30
31
    virtual ~WPFTEncodingDialog() override;
32
33
    OUString GetEncoding() const;
34
0
    bool hasUserCalledCancel() const { return m_userHasCancelled; }
35
36
private:
37
    bool m_userHasCancelled;
38
39
    std::unique_ptr<weld::ComboBox> m_xLbCharset;
40
    std::unique_ptr<weld::Button> m_xBtnCancel;
41
42
private:
43
    DECL_DLLPRIVATE_LINK(CancelHdl, weld::Button&, void);
44
    DECL_STATIC_LINK(WPFTEncodingDialog, InstallLOKNotifierHdl, void*,
45
                     vcl::ILibreOfficeKitNotifier*);
46
47
    WPFTEncodingDialog(WPFTEncodingDialog const&) = delete;
48
    WPFTEncodingDialog& operator=(WPFTEncodingDialog const&) = delete;
49
};
50
}
51
52
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */