LibreOffice Module sw (master) 1
OnlineAccessibilityCheck.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
11#pragma once
12
13#include "ndindex.hxx"
14#include "ndtxt.hxx"
15#include <svl/listener.hxx>
16#include <vcl/timer.hxx>
17#include <AccessibilityCheck.hxx>
18#include <map>
19
20struct SwPosition;
21class SwTextNode;
22
23namespace sw
24{
28{
29private:
31
32public:
35
37 bool isAlive();
38
41 SwNode* getNode();
42};
43
45{
46private:
47 std::map<SwNode*, std::unique_ptr<WeakNodeContainer>> m_aNodes;
48
51 std::unique_ptr<WeakNodeContainer> m_pPreviousNode;
56 std::unique_ptr<sfx::AccessibilityIssueCollection> m_pDocumentAccessibilityIssues;
57
58 void runAccessibilityCheck(SwNode* pNode);
59 void updateStatusbar();
60 void updateNodeStatus(SwNode* pContentNode);
61 void initialCheck();
62 void lookForPreviousNodeAndUpdate(SwPosition const& rNewPos);
65
66public:
68 void update(SwPosition const& rNewPos);
69 void resetAndQueue(SwNode* pNode);
72};
73
74} // end sw
75
76/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:195
Base class of the Writer document model elements.
Definition: node.hxx:98
SwTextNode is a paragraph in the document model.
Definition: ndtxt.hxx:111
void update(SwPosition const &rNewPos)
std::unique_ptr< sfx::AccessibilityIssueCollection > m_pDocumentAccessibilityIssues
std::map< SwNode *, std::unique_ptr< WeakNodeContainer > > m_aNodes
sw::AccessibilityCheck m_aAccessibilityCheck
void updateNodeStatus(SwNode *pContentNode)
void lookForPreviousNodeAndUpdate(SwPosition const &rNewPos)
std::unique_ptr< WeakNodeContainer > m_pPreviousNode
Contains the node and tracks if the node gets deleted.
bool isAlive()
Is the node still alive or it was deleted?
SwNode * getNode()
Returns the pointer of the node or nullptr if the node got deleted.
Dialog to specify the properties of date form field.
Marks a position in the document model.
Definition: pam.hxx:37