use more concrete UNO in StyleSheetTable
Change-Id: I532cbab01c514b83eec1161df26487205299585f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194852 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user