https://bugs.documentfoundation.org/show_bug.cgi?id=169508
--- Comment #1 from Saburo <[email protected]> --- Created attachment 204057 --> https://bugs.documentfoundation.org/attachment.cgi?id=204057&action=edit sample-footnote https://opengrok.libreoffice.org/xref/core/sw/source/core/access/AccessibilityCheck.cxx 2608 class FootnoteEndnoteCheck : public DocumentCheck 2609 { 2610 public: 2611 FootnoteEndnoteCheck(sfx::AccessibilityIssueCollection& rIssueCollection) 2612 : DocumentCheck(rIssueCollection) 2613 { 2614 } 2615 2616 void check(SwDoc* pDoc) override 2617 { 2618 for (SwTextFootnote* pTextFootnote : pDoc->GetFootnoteIdxs()) 2619 { 2620 SwFormatFootnote const& rFootnote = pTextFootnote->GetFootnote(); 2621 OUString sError = rFootnote.IsEndNote() ? SwResId(STR_AVOID_ENDNOTES) 2622 : SwResId(STR_AVOID_FOOTNOTES); 2623 sfx::AccessibilityIssueID eIssueID = rFootnote.IsEndNote() 2624 ? sfx::AccessibilityIssueID::AVOID_FOOTNOTES 2625 : sfx::AccessibilityIssueID::AVOID_ENDNOTES; 2626 auto pIssue = lclAddIssue(m_rIssueCollection, sError, eIssueID, 2627 sfx::AccessibilityIssueLevel::WARNLEV); 2628 pIssue->setDoc(*pDoc); 2629 pIssue->setIssueObject(IssueObject::FOOTENDNOTE); 2630 pIssue->setTextFootnote(pTextFootnote); 2631 } 2632 } 2633 }; Proposed fixes for generation AI 2623 sfx::AccessibilityIssueID eIssueID = rFootnote.IsEndNote() 2624 ? sfx::AccessibilityIssueID::AVOID_ENDNOTES 2625 : sfx::AccessibilityIssueID::AVOID_FOOTNOTES; -- You are receiving this mail because: You are the assignee for the bug.
