sd/source/ui/unoidl/unomodel.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit 62e7ba6b60529d43ae579217705f538e2a1985f6 Author: Henry Castro <[email protected]> AuthorDate: Tue Sep 9 08:05:53 2025 -0400 Commit: Henry Castro <[email protected]> CommitDate: Wed Oct 15 00:51:05 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 <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190704 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192397 Tested-by: Jenkins diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 8ba74363d3d5..1bd468942743 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> @@ -4654,6 +4656,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;
