1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
11 #ifndef INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
12 #define INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
14 #include <sfx2/AccessibilityIssue.hxx>
15 #include <svx/svxdllapi.h>
16 #include <tools/link.hxx>
17 #include <vcl/weld.hxx>
21 class AccessibilityCheckEntry final
24 std::unique_ptr
<weld::Builder
> m_xBuilder
;
25 std::unique_ptr
<weld::Container
> m_xContainer
;
26 std::unique_ptr
<weld::Label
> m_xLabel
;
27 std::unique_ptr
<weld::Button
> m_xGotoButton
;
29 std::shared_ptr
<sfx::AccessibilityIssue
> const& m_pAccessibilityIssue
;
32 AccessibilityCheckEntry(weld::Container
* pParent
,
33 std::shared_ptr
<sfx::AccessibilityIssue
> const& pAccessibilityIssue
);
35 weld::Widget
* get_widget() const { return m_xContainer
.get(); }
37 DECL_LINK(GotoButtonClicked
, weld::Button
&, void);
40 class SVX_DLLPUBLIC AccessibilityCheckDialog final
: public weld::GenericDialogController
43 sfx::AccessibilityIssueCollection m_aIssueCollection
;
44 std::vector
<std::unique_ptr
<AccessibilityCheckEntry
>> m_aAccessibilityCheckEntries
;
47 std::unique_ptr
<weld::Box
> m_xAccessibilityCheckBox
;
50 AccessibilityCheckDialog(weld::Window
* pParent
,
51 sfx::AccessibilityIssueCollection
const& rIssueCollection
);
52 virtual ~AccessibilityCheckDialog() override
;
53 virtual short run() override
;
56 } // end svx namespace
58 #endif // INCLUDED_SVX_ACCESSIBILITYCHECKDIALOG_HXX
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */