LibreOffice Module sw (master)
1
sw
source
uibase
sidebar
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
14
#include <
sfx2/AccessibilityIssue.hxx
>
15
#include <
sfx2/sidebar/ControllerItem.hxx
>
16
#include <
sfx2/sidebar/PanelLayout.hxx
>
17
#include <
svl/poolitem.hxx
>
18
#include <
tools/link.hxx
>
19
#include <
vcl/weld.hxx
>
20
21
#include <
doc.hxx
>
22
23
namespace
sw::sidebar
24
{
25
class
AccessibilityCheckEntry
final
26
{
27
private
:
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
36
public
:
37
AccessibilityCheckEntry
(
weld::Container
* pParent,
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
46
class
A11yCheckIssuesPanel
:
public
PanelLayout
,
47
public
::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
48
{
49
public
:
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
62
private
:
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
;
90
sfx::AccessibilityIssueCollection
m_aIssueCollection
;
91
void
removeOldWidgets
();
92
void
populateIssues
();
93
94
SfxBindings
*
mpBindings
;
95
SwDoc
*
mpDoc
;
96
::sfx2::sidebar::ControllerItem
maA11yCheckController
;
97
sal_Int32
mnIssueCount
;
98
bool
mbAutomaticCheckEnabled
;
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: */
AccessibilityIssue.hxx
ControllerItem.hxx
PanelLayout.hxx
PanelLayout
SfxBindings
SfxPoolItem
SwDoc
Definition:
doc.hxx:197
sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
sfx2::sidebar::ControllerItem
sfx::AccessibilityIssueCollection
sw::sidebar::A11yCheckIssuesPanel
Definition:
A11yCheckIssuesPanel.hxx:48
sw::sidebar::A11yCheckIssuesPanel::mpDoc
SwDoc * mpDoc
Definition:
A11yCheckIssuesPanel.hxx:95
sw::sidebar::A11yCheckIssuesPanel::maA11yCheckController
::sfx2::sidebar::ControllerItem maA11yCheckController
Definition:
A11yCheckIssuesPanel.hxx:96
sw::sidebar::A11yCheckIssuesPanel::m_aHyperlinkEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aHyperlinkEntries
Definition:
A11yCheckIssuesPanel.hxx:68
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderDocument
std::unique_ptr< weld::Expander > m_xExpanderDocument
Definition:
A11yCheckIssuesPanel.hxx:72
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderNoAlt
std::unique_ptr< weld::Expander > m_xExpanderNoAlt
Definition:
A11yCheckIssuesPanel.hxx:74
sw::sidebar::A11yCheckIssuesPanel::m_aNoAltEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aNoAltEntries
Definition:
A11yCheckIssuesPanel.hxx:65
sw::sidebar::A11yCheckIssuesPanel::removeOldWidgets
void removeOldWidgets()
Definition:
A11yCheckIssuesPanel.cxx:172
sw::sidebar::A11yCheckIssuesPanel::m_aDocumentEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aDocumentEntries
Definition:
A11yCheckIssuesPanel.hxx:63
sw::sidebar::A11yCheckIssuesPanel::m_aFormattingEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aFormattingEntries
Definition:
A11yCheckIssuesPanel.hxx:67
sw::sidebar::A11yCheckIssuesPanel::m_xBoxHyperlink
std::unique_ptr< weld::Box > m_xBoxHyperlink
Definition:
A11yCheckIssuesPanel.hxx:86
sw::sidebar::A11yCheckIssuesPanel::mnIssueCount
sal_Int32 mnIssueCount
Definition:
A11yCheckIssuesPanel.hxx:97
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderFakes
std::unique_ptr< weld::Expander > m_xExpanderFakes
Definition:
A11yCheckIssuesPanel.hxx:78
sw::sidebar::A11yCheckIssuesPanel::ImplDestroy
void ImplDestroy()
Definition:
A11yCheckIssuesPanel.cxx:139
sw::sidebar::A11yCheckIssuesPanel::GetControlState
virtual void GetControlState(const sal_uInt16, boost::property_tree::ptree &) override
Definition:
A11yCheckIssuesPanel.hxx:55
sw::sidebar::A11yCheckIssuesPanel::m_xBoxNoAlt
std::unique_ptr< weld::Box > m_xBoxNoAlt
Definition:
A11yCheckIssuesPanel.hxx:83
sw::sidebar::A11yCheckIssuesPanel::m_aTableEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aTableEntries
Definition:
A11yCheckIssuesPanel.hxx:66
sw::sidebar::A11yCheckIssuesPanel::m_xBoxTable
std::unique_ptr< weld::Box > m_xBoxTable
Definition:
A11yCheckIssuesPanel.hxx:84
sw::sidebar::A11yCheckIssuesPanel::mpBindings
SfxBindings * mpBindings
Definition:
A11yCheckIssuesPanel.hxx:94
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderNumbering
std::unique_ptr< weld::Expander > m_xExpanderNumbering
Definition:
A11yCheckIssuesPanel.hxx:79
sw::sidebar::A11yCheckIssuesPanel::m_aFakesEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aFakesEntries
Definition:
A11yCheckIssuesPanel.hxx:69
sw::sidebar::A11yCheckIssuesPanel::m_aIssueCollection
sfx::AccessibilityIssueCollection m_aIssueCollection
Definition:
A11yCheckIssuesPanel.hxx:90
sw::sidebar::A11yCheckIssuesPanel::Create
static std::unique_ptr< PanelLayout > Create(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
A11yCheckIssuesPanel.cxx:83
sw::sidebar::A11yCheckIssuesPanel::A11yCheckIssuesPanel
A11yCheckIssuesPanel(weld::Widget *pParent, SfxBindings *pBindings)
Definition:
A11yCheckIssuesPanel.cxx:92
sw::sidebar::A11yCheckIssuesPanel::m_xBoxDocument
std::unique_ptr< weld::Box > m_xBoxDocument
Definition:
A11yCheckIssuesPanel.hxx:81
sw::sidebar::A11yCheckIssuesPanel::m_xBoxFakes
std::unique_ptr< weld::Box > m_xBoxFakes
Definition:
A11yCheckIssuesPanel.hxx:87
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderFormatting
std::unique_ptr< weld::Expander > m_xExpanderFormatting
Definition:
A11yCheckIssuesPanel.hxx:76
sw::sidebar::A11yCheckIssuesPanel::m_xBoxOther
std::unique_ptr< weld::Box > m_xBoxOther
Definition:
A11yCheckIssuesPanel.hxx:89
sw::sidebar::A11yCheckIssuesPanel::m_xBoxNumbering
std::unique_ptr< weld::Box > m_xBoxNumbering
Definition:
A11yCheckIssuesPanel.hxx:88
sw::sidebar::A11yCheckIssuesPanel::mbAutomaticCheckEnabled
bool mbAutomaticCheckEnabled
Definition:
A11yCheckIssuesPanel.hxx:98
sw::sidebar::A11yCheckIssuesPanel::m_aOtherEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aOtherEntries
Definition:
A11yCheckIssuesPanel.hxx:71
sw::sidebar::A11yCheckIssuesPanel::m_xBoxFormatting
std::unique_ptr< weld::Box > m_xBoxFormatting
Definition:
A11yCheckIssuesPanel.hxx:85
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderTable
std::unique_ptr< weld::Expander > m_xExpanderTable
Definition:
A11yCheckIssuesPanel.hxx:75
sw::sidebar::A11yCheckIssuesPanel::populateIssues
void populateIssues()
Definition:
A11yCheckIssuesPanel.cxx:211
sw::sidebar::A11yCheckIssuesPanel::m_aNumberingEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aNumberingEntries
Definition:
A11yCheckIssuesPanel.hxx:70
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderStyles
std::unique_ptr< weld::Expander > m_xExpanderStyles
Definition:
A11yCheckIssuesPanel.hxx:73
sw::sidebar::A11yCheckIssuesPanel::~A11yCheckIssuesPanel
virtual ~A11yCheckIssuesPanel() override
Definition:
A11yCheckIssuesPanel.cxx:170
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderOther
std::unique_ptr< weld::Expander > m_xExpanderOther
Definition:
A11yCheckIssuesPanel.hxx:80
sw::sidebar::A11yCheckIssuesPanel::m_xBoxStyles
std::unique_ptr< weld::Box > m_xBoxStyles
Definition:
A11yCheckIssuesPanel.hxx:82
sw::sidebar::A11yCheckIssuesPanel::NotifyItemUpdate
virtual void NotifyItemUpdate(const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override
Definition:
A11yCheckIssuesPanel.cxx:327
sw::sidebar::A11yCheckIssuesPanel::m_aStylesEntries
std::vector< std::unique_ptr< AccessibilityCheckEntry > > m_aStylesEntries
Definition:
A11yCheckIssuesPanel.hxx:64
sw::sidebar::A11yCheckIssuesPanel::m_xExpanderHyperlink
std::unique_ptr< weld::Expander > m_xExpanderHyperlink
Definition:
A11yCheckIssuesPanel.hxx:77
sw::sidebar::AccessibilityCheckEntry
Definition:
A11yCheckIssuesPanel.hxx:26
sw::sidebar::AccessibilityCheckEntry::m_pAccessibilityIssue
std::shared_ptr< sfx::AccessibilityIssue > const & m_pAccessibilityIssue
Definition:
A11yCheckIssuesPanel.hxx:34
sw::sidebar::AccessibilityCheckEntry::DECL_LINK
DECL_LINK(GotoButtonClicked, weld::LinkButton &, bool)
sw::sidebar::AccessibilityCheckEntry::AccessibilityCheckEntry
AccessibilityCheckEntry(weld::Container *pParent, std::shared_ptr< sfx::AccessibilityIssue > const &pAccessibilityIssue)
Definition:
A11yCheckIssuesPanel.cxx:31
sw::sidebar::AccessibilityCheckEntry::m_xBuilder
std::unique_ptr< weld::Builder > m_xBuilder
Definition:
A11yCheckIssuesPanel.hxx:28
sw::sidebar::AccessibilityCheckEntry::m_xContainer
std::unique_ptr< weld::Container > m_xContainer
Definition:
A11yCheckIssuesPanel.hxx:29
sw::sidebar::AccessibilityCheckEntry::m_xFixButton
std::unique_ptr< weld::Button > m_xFixButton
Definition:
A11yCheckIssuesPanel.hxx:32
sw::sidebar::AccessibilityCheckEntry::m_xLabel
std::unique_ptr< weld::Label > m_xLabel
Definition:
A11yCheckIssuesPanel.hxx:30
sw::sidebar::AccessibilityCheckEntry::get_widget
weld::Widget * get_widget() const
Definition:
A11yCheckIssuesPanel.hxx:40
sw::sidebar::AccessibilityCheckEntry::m_xGotoButton
std::unique_ptr< weld::LinkButton > m_xGotoButton
Definition:
A11yCheckIssuesPanel.hxx:31
sw::sidebar::AccessibilityCheckEntry::DECL_LINK
DECL_LINK(FixButtonClicked, weld::Button &, void)
weld::Button
weld::Container
weld::LinkButton
weld::Widget
doc.hxx
link.hxx
sw::sidebar
Definition:
A11yCheckIssuesPanel.cxx:30
poolitem.hxx
SfxItemState
SfxItemState
weld.hxx
Generated on Sun Jul 30 2023 04:30:02 for LibreOffice Module sw (master) by
1.9.3