LibreOffice Module sw (master)  1
AccessibilityIssue.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 #ifndef INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
12 #define INCLUDED_SW_SOURCE_CORE_ACCESSIBILITYISSUE_HXX
13 
15 #include <doc.hxx>
16 
17 namespace sw
18 {
19 enum class IssueObject
20 {
21  UNKNOWN,
22  GRAPHIC,
23  OLE,
24  TABLE,
25  TEXT,
26 };
27 
29 {
30 private:
33  OUString m_sObjectID;
34  std::vector<OUString> m_aIssueAdditionalInfo;
36 
37  sal_Int32 m_nStart;
38  sal_Int32 m_nEnd;
39 
40 public:
42 
43  void setIssueObject(IssueObject eIssueObject);
44  void setDoc(SwDoc* pDoc);
45  void setObjectID(OUString const& rID);
46  void setNode(SwNode* pNode) { m_pNode = pNode; }
47 
48  void setStart(sal_Int32 nStart) { m_nStart = nStart; }
49 
50  void setEnd(sal_Int32 nEnd) { m_nEnd = nEnd; }
51 
52  std::vector<OUString> const& getAdditionalInfo() const { return m_aIssueAdditionalInfo; }
53 
54  void setAdditionalInfo(std::vector<OUString> const& rIssueAdditionalInfo)
55  {
56  m_aIssueAdditionalInfo = rIssueAdditionalInfo;
57  }
58 
59  bool canGotoIssue() const override;
60  void gotoIssue() const override;
61 };
62 
63 } // end sw namespace
64 
65 #endif
66 
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: doc.hxx:184
void setStart(sal_Int32 nStart)
Dialog to specify the properties of date form field.
void setAdditionalInfo(std::vector< OUString > const &rIssueAdditionalInfo)
void setObjectID(OUString const &rID)
void setEnd(sal_Int32 nEnd)
void setNode(SwNode *pNode)
void setIssueObject(IssueObject eIssueObject)
std::vector< OUString > const & getAdditionalInfo() const
AccessibilityIssue(sfx::AccessibilityIssueID eIssueID=sfx::AccessibilityIssueID::UNSPECIFIED)
bool canGotoIssue() const override
AccessibilityIssueID
std::vector< OUString > m_aIssueAdditionalInfo
void gotoIssue() const override
Base class of the Writer document model elements.
Definition: node.hxx:79