LibreOffice Module sw (master) 1
A11yCheckIssuesPanel.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#pragma once
11
12#include <memory>
13
17#include <svl/poolitem.hxx>
18#include <tools/link.hxx>
19#include <vcl/weld.hxx>
20
21#include <doc.hxx>
22
23namespace sw::sidebar
24{
26{
27private:
28 std::unique_ptr<weld::Builder> m_xBuilder;
29 std::unique_ptr<weld::Container> m_xContainer;
30 std::unique_ptr<weld::Label> m_xLabel;
31 std::unique_ptr<weld::LinkButton> m_xGotoButton;
32 std::unique_ptr<weld::Button> m_xFixButton;
33
34 std::shared_ptr<sfx::AccessibilityIssue> const& m_pAccessibilityIssue;
35
36public:
38 std::shared_ptr<sfx::AccessibilityIssue> const& pAccessibilityIssue);
39
40 weld::Widget* get_widget() const { return m_xContainer.get(); }
41
42 DECL_LINK(GotoButtonClicked, weld::LinkButton&, bool);
43 DECL_LINK(FixButtonClicked, weld::Button&, void);
44};
45
48{
49public:
50 static std::unique_ptr<PanelLayout> Create(weld::Widget* pParent, SfxBindings* pBindings);
51
52 virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState,
53 const SfxPoolItem* pState) override;
54
55 virtual void GetControlState(const sal_uInt16 /*nSId*/,
56 boost::property_tree::ptree& /*rState*/) override{};
57
58 A11yCheckIssuesPanel(weld::Widget* pParent, SfxBindings* pBindings);
59 void ImplDestroy();
60 virtual ~A11yCheckIssuesPanel() override;
61
62private:
63 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aDocumentEntries;
64 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aStylesEntries;
65 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aNoAltEntries;
66 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aTableEntries;
67 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aFormattingEntries;
68 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aHyperlinkEntries;
69 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aFakesEntries;
70 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aNumberingEntries;
71 std::vector<std::unique_ptr<AccessibilityCheckEntry>> m_aOtherEntries;
72 std::unique_ptr<weld::Expander> m_xExpanderDocument;
73 std::unique_ptr<weld::Expander> m_xExpanderStyles;
74 std::unique_ptr<weld::Expander> m_xExpanderNoAlt;
75 std::unique_ptr<weld::Expander> m_xExpanderTable;
76 std::unique_ptr<weld::Expander> m_xExpanderFormatting;
77 std::unique_ptr<weld::Expander> m_xExpanderHyperlink;
78 std::unique_ptr<weld::Expander> m_xExpanderFakes;
79 std::unique_ptr<weld::Expander> m_xExpanderNumbering;
80 std::unique_ptr<weld::Expander> m_xExpanderOther;
81 std::unique_ptr<weld::Box> m_xBoxDocument;
82 std::unique_ptr<weld::Box> m_xBoxStyles;
83 std::unique_ptr<weld::Box> m_xBoxNoAlt;
84 std::unique_ptr<weld::Box> m_xBoxTable;
85 std::unique_ptr<weld::Box> m_xBoxFormatting;
86 std::unique_ptr<weld::Box> m_xBoxHyperlink;
87 std::unique_ptr<weld::Box> m_xBoxFakes;
88 std::unique_ptr<weld::Box> m_xBoxNumbering;
89 std::unique_ptr<weld::Box> m_xBoxOther;
91 void removeOldWidgets();
92 void populateIssues();
93
97 sal_Int32 mnIssueCount;
99};
100
101} //end of namespace sw::sidebar
102
103/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
Definition: doc.hxx:197
::sfx2::sidebar::ControllerItem maA11yCheckController
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aHyperlinkEntries
std::unique_ptr< weld::Expander > m_xExpanderDocument
std::unique_ptr< weld::Expander > m_xExpanderNoAlt
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aNoAltEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aDocumentEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aFormattingEntries
std::unique_ptr< weld::Box > m_xBoxHyperlink
std::unique_ptr< weld::Expander > m_xExpanderFakes
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
std::unique_ptr< weld::Box > m_xBoxNoAlt
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aTableEntries
std::unique_ptr< weld::Box > m_xBoxTable
std::unique_ptr< weld::Expander > m_xExpanderNumbering
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aFakesEntries
sfx::AccessibilityIssueCollection m_aIssueCollection
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
A11yCheckIssuesPanel(weld::Widget *pParent, SfxBindings *pBindings)
std::unique_ptr< weld::Box > m_xBoxDocument
std::unique_ptr< weld::Box > m_xBoxFakes
std::unique_ptr< weld::Expander > m_xExpanderFormatting
std::unique_ptr< weld::Box > m_xBoxOther
std::unique_ptr< weld::Box > m_xBoxNumbering
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aOtherEntries
std::unique_ptr< weld::Box > m_xBoxFormatting
std::unique_ptr< weld::Expander > m_xExpanderTable
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aNumberingEntries
std::unique_ptr< weld::Expander > m_xExpanderStyles
std::unique_ptr< weld::Expander > m_xExpanderOther
std::unique_ptr< weld::Box > m_xBoxStyles
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aStylesEntries
std::unique_ptr< weld::Expander > m_xExpanderHyperlink
std::shared_ptr< sfx::AccessibilityIssue > const & m_pAccessibilityIssue
DECL_LINK(GotoButtonClicked, weld::LinkButton &, bool)
AccessibilityCheckEntry(weld::Container *pParent, std::shared_ptr< sfx::AccessibilityIssue > const &pAccessibilityIssue)
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< weld::Button > m_xFixButton
std::unique_ptr< weld::Label > m_xLabel
std::unique_ptr< weld::LinkButton > m_xGotoButton
DECL_LINK(FixButtonClicked, weld::Button &, void)
SfxItemState