sd/source/ui/unoidl/unomodel.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 301623a98ca3d6148d998c22455a3c96894cdd64 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue Sep 9 08:05:53 2025 -0400 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Sep 12 09:46:15 2025 +0200 sd: add "ally" property to slide information Implement formatted HTML to append to the canvas element to support screen readers Change-Id: I87774295b29f3d6784e53b3ed1359b856ff1af5e Signed-off-by: Henry Castro <hcas...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190704 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 98e4df25cc2b..ffa236635e1f 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -81,10 +81,12 @@ #include <notifydocumentevent.hxx> #include <tpaction.hxx> #include <unomodel.hxx> +#include <sdhtmlfilter.hxx> #include "unopool.hxx" #include <sfx2/lokhelper.hxx> #include <sfx2/dispatch.hxx> #include <vcl/svapp.hxx> +#include <Outliner.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> #include <editeng/UnoForbiddenCharsTable.hxx> @@ -4670,6 +4672,16 @@ OString SdXImpressDocument::getPresentationInfo() const { auto aName = SdDrawPage::getPageApiNameFromUiName(pPage->GetName()); aJsonWriter.put("name", aName); + { + OUStringBuffer aHtml; + SdrOutliner* pOutliner = mpDoc->GetInternalOutliner(); + if (pOutliner) + { + SdHTMLFilter::ExportPage(pOutliner, pPage, aHtml); + aJsonWriter.put("ally", aHtml.makeStringAndClear()); + pOutliner->Clear(); + } + } } bool bIsDrawPageEmpty = pSlide->getCount() == 0;