28#include <officecfg/Office/Common.hxx>
38 auto* pBroadcast =
dynamic_cast<sw::BroadcastingModify*
>(
m_pNode);
70 : m_rDocument(rDocument)
71 , m_aAccessibilityCheck(&m_rDocument)
72 , m_nPreviousNodeIndex(-1)
73 , m_nAccessibilityIssues(0)
74 , m_bInitialCheck(false)
75 , m_bOnlineCheckStatus(
76 !
utl::ConfigManager::IsFuzzing()
92 m_aNodes.emplace(pNode, std::make_unique<WeakNodeContainer>(pNode));
97 auto& pWeakContentNode = iterator->second;
98 if (pWeakContentNode->isAlive())
100 auto& rStatus = pWeakContentNode->getNode()->getAccessibilityCheckStatus();
101 if (rStatus.pCollection)
108 iterator =
m_aNodes.erase(iterator);
113 iterator =
m_aNodes.erase(iterator);
143 = std::make_unique<sfx::AccessibilityIssueCollection>(aCollection);
152 = std::make_unique<sfx::AccessibilityIssueCollection>(aCollection);
180 bool bOnlineCheckStatus
190 if (!bOnlineCheckStatus)
221 auto* pCurrentNode = &rNewPos.
GetNode();
223 if (!pCurrentNode->IsContentNode() && !pCurrentNode->IsTableNode())
226 auto pCurrentWeak = std::make_unique<WeakNodeContainer>(pCurrentNode);
227 if (!pCurrentWeak->isAlive())
299 bool bOnlineCheckStatus
301 if (!bOnlineCheckStatus)
316 bool bOnlineCheckStatus
318 if (!bOnlineCheckStatus)
void Invalidate(sal_uInt16 nId)
SfxBindings * GetBindings() const
SfxDispatcher * GetDispatcher() const
bool HasBroadcaster() const
bool StartListening(SvtBroadcaster &rBroadcaster)
SwDocShell * GetDocShell()
Base class of the Writer document model elements.
SwNodes & GetNodes()
Node is in which nodes-array/doc?
bool IsContentNode() const
sw::AccessibilityCheckStatus & getAccessibilityCheckStatus()
std::vector< SwFrameFormat * > const & GetAnchoredFlys() const
AccessibilityIssueCollection & getIssueCollection()
void checkNode(SwNode *pNode)
void checkObject(SwNode *pNode, SdrObject *pObject)
void checkDocumentProperties()
sal_Int32 m_nAccessibilityIssues
void runDocumentLevelAccessibilityCheck()
void update(SwPosition const &rNewPos)
void resetAndQueueDocumentLevel()
void resetAndQueue(SwNode *pNode)
void updateCheckerActivity()
void clearAccessibilityIssuesFromAllNodes()
OnlineAccessibilityCheck(SwDoc &rDocument)
std::unique_ptr< sfx::AccessibilityIssueCollection > m_pDocumentAccessibilityIssues
bool m_bOnlineCheckStatus
std::map< SwNode *, std::unique_ptr< WeakNodeContainer > > m_aNodes
sw::AccessibilityCheck m_aAccessibilityCheck
void updateNodeStatus(SwNode *pContentNode)
SwNodeOffset m_nPreviousNodeIndex
void lookForPreviousNodeAndUpdate(SwPosition const &rNewPos)
std::unique_ptr< WeakNodeContainer > m_pPreviousNode
void runAccessibilityCheck(SwNode *pNode)
WeakNodeContainer(SwNode *pNode)
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.
#define FN_STAT_ACCESSIBILITY_CHECK
EmbeddedObjectRef * pObject
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
Dialog to specify the properties of date form field.
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
Marks a position in the document model.
SwNodeOffset GetNodeIndex() const
std::unique_ptr< sfx::AccessibilityIssueCollection > pCollection