summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unopage.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-11-16 11:35:58 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-11-16 14:07:45 +0100
commit51eb969cb77f8b54681033f4959b15ce32116b56 (patch)
treedb2c03214965a7575df5bf0c0c5aa970f40be57b /sd/source/ui/unoidl/unopage.cxx
parent742f59eaa38a3f13b6110573b1428de45c55b035 (diff)
Replace comphelper::ServiceInfoHelper::addToSequence
Change-Id: I325e16fdf9bbbc6f2ba2d06c417da5eeb0d48023 Reviewed-on: https://gerrit.libreoffice.org/82975 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd/source/ui/unoidl/unopage.cxx')
-rw-r--r--sd/source/ui/unoidl/unopage.cxx27
1 files changed, 13 insertions, 14 deletions
diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx
index ed2fadd7be78..244c27bce6a4 100644
--- a/sd/source/ui/unoidl/unopage.cxx
+++ b/sd/source/ui/unoidl/unopage.cxx
@@ -46,8 +46,9 @@
#include <drawdoc.hxx>
#include <svx/unoshape.hxx>
#include <svl/style.hxx>
-#include <comphelper/serviceinfohelper.hxx>
#include <comphelper/extract.hxx>
+#include <comphelper/OUStringLiteralList.hxx>
+#include <comphelper/sequence.hxx>
#include <svx/svditer.hxx>
#include <vcl/wmf.hxx>
#include <svx/svdoole2.hxx>
@@ -1482,11 +1483,11 @@ Reference< drawing::XShape > SdGenericDrawPage::CreateShape(SdrObject *pObj) co
// XServiceInfo
Sequence< OUString > SAL_CALL SdGenericDrawPage::getSupportedServiceNames()
{
- Sequence< OUString > aSeq( SvxFmDrawPage::getSupportedServiceNames() );
- comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.drawing.GenericDrawPage",
- "com.sun.star.document.LinkTarget",
- "com.sun.star.document.LinkTargetSupplier"});
- return aSeq;
+ return comphelper::concatSequences(
+ SvxFmDrawPage::getSupportedServiceNames(),
+ comphelper::OUStringLiteralList({ "com.sun.star.drawing.GenericDrawPage",
+ "com.sun.star.document.LinkTarget",
+ "com.sun.star.document.LinkTargetSupplier" }));
}
// XLinkTargetSupplier
@@ -2185,13 +2186,12 @@ Sequence< OUString > SAL_CALL SdDrawPage::getSupportedServiceNames()
throwIfDisposed();
- Sequence< OUString > aSeq( SdGenericDrawPage::getSupportedServiceNames() );
- comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.drawing.DrawPage"} );
+ std::vector<OUStringLiteral> aAdd{ "com.sun.star.drawing.DrawPage" };
if( IsImpressDocument() )
- comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.presentation.DrawPage"} );
+ aAdd.emplace_back("com.sun.star.presentation.DrawPage");
- return aSeq;
+ return comphelper::concatSequences(SdGenericDrawPage::getSupportedServiceNames(), aAdd);
}
sal_Bool SAL_CALL SdDrawPage::supportsService( const OUString& ServiceName )
@@ -2705,13 +2705,12 @@ Sequence< OUString > SAL_CALL SdMasterPage::getSupportedServiceNames()
throwIfDisposed();
- Sequence< OUString > aSeq( SdGenericDrawPage::getSupportedServiceNames() );
- comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.drawing.MasterPage"} );
+ std::vector<OUStringLiteral> aAdd{ "com.sun.star.drawing.MasterPage" };
if( SvxFmDrawPage::mpPage && static_cast<SdPage*>(SvxFmDrawPage::mpPage)->GetPageKind() == PageKind::Handout )
- comphelper::ServiceInfoHelper::addToSequence( aSeq, {"com.sun.star.presentation.HandoutMasterPage"} );
+ aAdd.emplace_back("com.sun.star.presentation.HandoutMasterPage");
- return aSeq;
+ return comphelper::concatSequences(SdGenericDrawPage::getSupportedServiceNames(), aAdd);
}
sal_Bool SAL_CALL SdMasterPage::supportsService( const OUString& ServiceName )