sw/inc/unocoll.hxx | 2 +- sw/source/writerfilter/dmapper/StyleSheetTable.cxx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
New commits: commit 2a141122eada200c2f55eefdc71bc54ec6f933e8 Author: Noel Grandin <[email protected]> AuthorDate: Mon Dec 1 09:41:33 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Mon Dec 1 10:53:27 2025 +0100 use more concrete UNO in StyleSheetTable Change-Id: I532cbab01c514b83eec1161df26487205299585f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194852 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins diff --git a/sw/inc/unocoll.hxx b/sw/inc/unocoll.hxx index c115254ade50..40ed1e61e776 100644 --- a/sw/inc/unocoll.hxx +++ b/sw/inc/unocoll.hxx @@ -313,7 +313,7 @@ public: SwXFrames(SwDoc* pDoc, FlyCntType eSet); //XEnumerationAccess - virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override; + virtual SW_DLLPUBLIC css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override; //XIndexAccess virtual sal_Int32 SAL_CALL getCount() override; diff --git a/sw/source/writerfilter/dmapper/StyleSheetTable.cxx b/sw/source/writerfilter/dmapper/StyleSheetTable.cxx index b3a63416ab5a..8cbc5e92e6cf 100644 --- a/sw/source/writerfilter/dmapper/StyleSheetTable.cxx +++ b/sw/source/writerfilter/dmapper/StyleSheetTable.cxx @@ -59,6 +59,7 @@ #include <unoxstyle.hxx> #include <unostyle.hxx> #include <unosett.hxx> +#include <unotextbodyhf.hxx> #include <SwXTextDefaults.hxx> using namespace ::com::sun::star; @@ -1023,7 +1024,7 @@ void StyleSheetTable::ApplyClonedTOCStyles() // text frames if (!m_xTextDocument) throw uno::RuntimeException(); - uno::Reference<container::XEnumerationAccess> const xFrames(m_xTextDocument->getTextFrames(), uno::UNO_QUERY_THROW); + rtl::Reference<SwXTextFrames> const xFrames(m_xTextDocument->getSwTextFrames()); uno::Reference<container::XEnumeration> const xFramesEnum(xFrames->createEnumeration()); while (xFramesEnum->hasMoreElements()) { @@ -1031,7 +1032,7 @@ void StyleSheetTable::ApplyClonedTOCStyles() ApplyClonedTOCStylesToXText(xFrame); } // body - uno::Reference<text::XText> const xBody(m_xTextDocument->getText()); + rtl::Reference<SwXBodyText> const xBody(m_xTextDocument->getBodyText()); ApplyClonedTOCStylesToXText(xBody); }
