summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/sdxmlimp_impl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-18 08:34:29 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-21 15:48:24 +0200
commitabe6ab7aec0993dd54746d9f0c743fc42cf7ce79 (patch)
tree2a1f5261eaa4cd1d79950d86d128b2d8bb3dfec2 /xmloff/source/draw/sdxmlimp_impl.hxx
parent3c0cd84287dc94858d9c92830d60eda59c626df3 (diff)
set master slide name at creation time
which avoids some expensive broadcasting when the name is changed a similar mega-master-page scenario as reported in tdf#158773 48s -> 20s Change-Id: Ifcfd96077a9e83868ac96671ce9f208ae3ca418f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175126 Tested-by: Jenkins Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff/source/draw/sdxmlimp_impl.hxx')
-rw-r--r--xmloff/source/draw/sdxmlimp_impl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx
index 60641601a93f..212e65c01c16 100644
--- a/xmloff/source/draw/sdxmlimp_impl.hxx
+++ b/xmloff/source/draw/sdxmlimp_impl.hxx
@@ -20,6 +20,7 @@
#pragma once
#include <com/sun/star/drawing/XDrawPage.hpp>
+#include <com/sun/star/drawing/XDrawPages2.hpp>
#include <com/sun/star/task/XStatusIndicator.hpp>
#include <xmloff/xmltkmap.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
@@ -48,7 +49,7 @@ typedef std::map<OUString, DateTimeDeclContextImpl> DateTimeDeclMap;
class SdXMLImport: public SvXMLImport
{
css::uno::Reference< css::container::XNameAccess > mxDocStyleFamilies;
- css::uno::Reference< css::container::XIndexAccess > mxDocMasterPages;
+ css::uno::Reference< css::drawing::XDrawPages2 > mxDocMasterPages;
css::uno::Reference< css::container::XIndexAccess > mxDocDrawPages;
css::uno::Reference< css::container::XNameAccess > mxPageLayouts;
@@ -103,7 +104,7 @@ public:
// export local parameters concerning page access and similar
const css::uno::Reference< css::container::XNameAccess >& GetLocalDocStyleFamilies() const { return mxDocStyleFamilies; }
- const css::uno::Reference< css::container::XIndexAccess >& GetLocalMasterPages() const { return mxDocMasterPages; }
+ const css::uno::Reference< css::drawing::XDrawPages2 >& GetLocalMasterPages() const { return mxDocMasterPages; }
const css::uno::Reference< css::container::XIndexAccess >& GetLocalDrawPages() const { return mxDocDrawPages; }
sal_Int32 GetNewPageCount() const { return mnNewPageCount; }