nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / core / inc / AccessibilityIssue.hxx
blobc929ead6f167926e9d3fede33286226249716913
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #ifndef INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
12 #define INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
14 #include <sfx2/AccessibilityIssue.hxx>
15 #include <doc.hxx>
17 namespace sw
19 enum class IssueObject
21 UNKNOWN,
22 GRAPHIC,
23 OLE,
24 TABLE,
25 TEXT,
28 class AccessibilityIssue final : public sfx::AccessibilityIssue
30 private:
31 IssueObject m_eIssueObject;
32 SwDoc* m_pDoc;
33 OUString m_sObjectID;
34 std::vector<OUString> m_aIssueAdditionalInfo;
35 SwNode* m_pNode;
37 sal_Int32 m_nStart;
38 sal_Int32 m_nEnd;
40 public:
41 AccessibilityIssue(sfx::AccessibilityIssueID eIssueID = sfx::AccessibilityIssueID::UNSPECIFIED);
43 void setIssueObject(IssueObject eIssueObject);
44 void setDoc(SwDoc& rDoc);
45 void setObjectID(OUString const& rID);
46 void setNode(SwNode* pNode) { m_pNode = pNode; }
48 void setStart(sal_Int32 nStart) { m_nStart = nStart; }
50 void setEnd(sal_Int32 nEnd) { m_nEnd = nEnd; }
52 std::vector<OUString> const& getAdditionalInfo() const { return m_aIssueAdditionalInfo; }
54 void setAdditionalInfo(std::vector<OUString> const& rIssueAdditionalInfo)
56 m_aIssueAdditionalInfo = rIssueAdditionalInfo;
59 bool canGotoIssue() const override;
60 void gotoIssue() const override;
63 } // end sw namespace
65 #endif
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */