diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-08-30 21:24:35 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-31 07:14:47 +0000 |
commit | c1c6a8615c420e8b1dd1f94614a36e250dab8f96 (patch) | |
tree | 46304fa1a82b0f3bde8d7c3341818ff69cec7934 /sd/source/ui/unoidl | |
parent | 5670f4ca8785180f135927477945027518e92ed4 (diff) |
sd: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.
Change-Id: I01909ee45c31d17356e13b1ff2430440daff9aa7
Reviewed-on: https://gerrit.libreoffice.org/18146
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 10 | ||||
-rw-r--r-- | sd/source/ui/unoidl/randomnode.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/unoidl/sddetect.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unocpres.hxx | 8 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unolayer.hxx | 6 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodule.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unoobj.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopback.hxx | 4 |
10 files changed, 23 insertions, 25 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 390c81e79736..f87c75b7f2af 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -25,7 +25,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XMultiPropertySet.hpp> #include <com/sun/star/i18n/XForbiddenCharacters.hpp> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <comphelper/propertysethelper.hxx> #include <comphelper/propertysetinfo.hxx> @@ -66,7 +66,7 @@ using namespace ::com::sun::star::i18n; namespace sd { - class DocumentSettings : public WeakImplHelper3< XPropertySet, XMultiPropertySet, XServiceInfo >, + class DocumentSettings : public WeakImplHelper< XPropertySet, XMultiPropertySet, XServiceInfo >, public comphelper::PropertySetHelper, public DocumentSettingsSerializer { @@ -1197,17 +1197,17 @@ throw (UnknownPropertyException, WrappedTargetException, RuntimeException, std:: // XInterface Any SAL_CALL DocumentSettings::queryInterface( const Type& aType ) throw (RuntimeException, std::exception) { - return WeakImplHelper3< XPropertySet, XMultiPropertySet, XServiceInfo >::queryInterface( aType ); + return WeakImplHelper< XPropertySet, XMultiPropertySet, XServiceInfo >::queryInterface( aType ); } void SAL_CALL DocumentSettings::acquire( ) throw () { - WeakImplHelper3< XPropertySet, XMultiPropertySet, XServiceInfo >::acquire(); + WeakImplHelper< XPropertySet, XMultiPropertySet, XServiceInfo >::acquire(); } void SAL_CALL DocumentSettings::release( ) throw () { - WeakImplHelper3< XPropertySet, XMultiPropertySet, XServiceInfo >::release(); + WeakImplHelper< XPropertySet, XMultiPropertySet, XServiceInfo >::release(); } // XPropertySet diff --git a/sd/source/ui/unoidl/randomnode.cxx b/sd/source/ui/unoidl/randomnode.cxx index 3b4d83308cf0..22714d9c1dac 100644 --- a/sd/source/ui/unoidl/randomnode.cxx +++ b/sd/source/ui/unoidl/randomnode.cxx @@ -29,7 +29,7 @@ #include <com/sun/star/util/XCloneable.hpp> #include <comphelper/processfactory.hxx> -#include <cppuhelper/implbase5.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <osl/mutex.hxx> #include "CustomAnimationPreset.hxx" @@ -67,7 +67,7 @@ using namespace ::com::sun::star::animations; namespace sd { -typedef ::cppu::WeakImplHelper5< XTimeContainer, XEnumerationAccess, XCloneable, XServiceInfo, XInitialization > RandomAnimationNodeBase; +typedef ::cppu::WeakImplHelper< XTimeContainer, XEnumerationAccess, XCloneable, XServiceInfo, XInitialization > RandomAnimationNodeBase; class RandomAnimationNode : public RandomAnimationNodeBase { public: diff --git a/sd/source/ui/unoidl/sddetect.hxx b/sd/source/ui/unoidl/sddetect.hxx index 13fb23d1c6a7..c31ec8452081 100644 --- a/sd/source/ui/unoidl/sddetect.hxx +++ b/sd/source/ui/unoidl/sddetect.hxx @@ -24,7 +24,7 @@ #include <com/sun/star/document/XExtendedFilterDetection.hpp> #include <com/sun/star/uno/Exception.hpp> #include <com/sun/star/uno/Reference.h> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> @@ -50,7 +50,7 @@ namespace com #include <sfx2/sfxuno.hxx> -class SdFilterDetect : public ::cppu::WeakImplHelper2< css::document::XExtendedFilterDetection, css::lang::XServiceInfo > +class SdFilterDetect : public ::cppu::WeakImplHelper< css::document::XExtendedFilterDetection, css::lang::XServiceInfo > { public: SdFilterDetect(); diff --git a/sd/source/ui/unoidl/unocpres.hxx b/sd/source/ui/unoidl/unocpres.hxx index c28814aff9a1..b2bde6c2f5ac 100644 --- a/sd/source/ui/unoidl/unocpres.hxx +++ b/sd/source/ui/unoidl/unocpres.hxx @@ -27,13 +27,13 @@ #include <cppuhelper/interfacecontainer.h> #include <osl/mutex.hxx> -#include <cppuhelper/implbase5.hxx> +#include <cppuhelper/implbase.hxx> #include <comphelper/servicehelper.hxx> class SdXImpressDocument; class SdCustomShow; -class SdXCustomPresentation : public ::cppu::WeakImplHelper5< ::com::sun::star::container::XIndexContainer, +class SdXCustomPresentation : public ::cppu::WeakImplHelper< ::com::sun::star::container::XIndexContainer, ::com::sun::star::container::XNamed, ::com::sun::star::lang::XUnoTunnel, ::com::sun::star::lang::XComponent, @@ -95,14 +95,12 @@ public: #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> -#include <cppuhelper/implbase3.hxx> - #include "unomodel.hxx" #include "drawdoc.hxx" class List; -class SdXCustomPresentationAccess : public ::cppu::WeakImplHelper3< ::com::sun::star::container::XNameContainer, +class SdXCustomPresentationAccess : public ::cppu::WeakImplHelper< ::com::sun::star::container::XNameContainer, ::com::sun::star::lang::XSingleServiceFactory, ::com::sun::star::lang::XServiceInfo > { diff --git a/sd/source/ui/unoidl/unolayer.hxx b/sd/source/ui/unoidl/unolayer.hxx index feb28933f1ce..30f4bb116f58 100644 --- a/sd/source/ui/unoidl/unolayer.hxx +++ b/sd/source/ui/unoidl/unolayer.hxx @@ -23,7 +23,7 @@ #include <com/sun/star/drawing/XLayer.hpp> #include <com/sun/star/drawing/XLayerManager.hpp> -#include <cppuhelper/implbase5.hxx> +#include <cppuhelper/implbase.hxx> #include <comphelper/servicehelper.hxx> #include <unomodel.hxx> @@ -41,7 +41,7 @@ enum LayerAttribute { VISIBLE, PRINTABLE, LOCKED }; /*********************************************************************** * * ***********************************************************************/ -class SdLayer : public ::cppu::WeakImplHelper5< ::com::sun::star::drawing::XLayer, +class SdLayer : public ::cppu::WeakImplHelper< ::com::sun::star::drawing::XLayer, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::container::XChild, ::com::sun::star::lang::XUnoTunnel, @@ -106,7 +106,7 @@ private: * * ***********************************************************************/ -class SdLayerManager : public ::cppu::WeakImplHelper5< ::com::sun::star::drawing::XLayerManager, +class SdLayerManager : public ::cppu::WeakImplHelper< ::com::sun::star::drawing::XLayerManager, ::com::sun::star::container::XNameAccess, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::lang::XUnoTunnel, diff --git a/sd/source/ui/unoidl/unomodule.hxx b/sd/source/ui/unoidl/unomodule.hxx index f6a6cca7d4a3..fbbdc35e53bb 100644 --- a/sd/source/ui/unoidl/unomodule.hxx +++ b/sd/source/ui/unoidl/unomodule.hxx @@ -26,7 +26,7 @@ #include <com/sun/star/uno/RuntimeException.hpp> #include <com/sun/star/frame/DispatchDescriptor.hpp> #include <com/sun/star/uno/Reference.h> -#include <cppuhelper/implbase3.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -48,7 +48,7 @@ namespace com } } -class SdUnoModule : public ::cppu::WeakImplHelper3< css::frame::XDispatchProvider, css::frame::XNotifyingDispatch, css::lang::XServiceInfo > +class SdUnoModule : public ::cppu::WeakImplHelper< css::frame::XDispatchProvider, css::frame::XNotifyingDispatch, css::lang::XServiceInfo > { css::uno::Reference < css::lang::XMultiServiceFactory > m_xFactory; diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 95d217c72523..47b97e4a068c 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -39,6 +39,7 @@ #include <sfx2/bindings.hxx> #include <sfx2/sfxsids.hrc> #include <comphelper/extract.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <svx/unoprov.hxx> #include <svx/unoshape.hxx> @@ -1105,7 +1106,7 @@ uno::Any SdXShape::GetStyleSheet() const throw( beans::UnknownPropertyException return Any( uno::Reference< style::XStyle >( dynamic_cast< SfxUnoStyleSheet* >( pStyleSheet ) ) ); } -class SdUnoEventsAccess : public cppu::WeakImplHelper2< com::sun::star::container::XNameReplace, com::sun::star::lang::XServiceInfo > +class SdUnoEventsAccess : public cppu::WeakImplHelper< com::sun::star::container::XNameReplace, com::sun::star::lang::XServiceInfo > { private: const OUString maStrOnClick; diff --git a/sd/source/ui/unoidl/unoobj.hxx b/sd/source/ui/unoidl/unoobj.hxx index d28d97ba7a25..8adba5afe608 100644 --- a/sd/source/ui/unoidl/unoobj.hxx +++ b/sd/source/ui/unoidl/unoobj.hxx @@ -30,8 +30,6 @@ #include <editeng/unoipset.hxx> -#include <cppuhelper/implbase2.hxx> - class SdrObject; class SdXImpressDocument; class SdAnimationInfo; diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 2308701cc833..98e6c33f8b08 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/view/PaperOrientation.hpp> #include <com/sun/star/animations/AnimationNodeType.hpp> #include <com/sun/star/presentation/EffectNodeType.hpp> +#include <cppuhelper/implbase.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> @@ -2609,7 +2610,7 @@ void SdGenericDrawPage::setNavigationOrder( const Any& rValue ) throw IllegalArgumentException(); } -class SdNavigationOrderAccess : public ::cppu::WeakImplHelper1< XIndexAccess > +class SdNavigationOrderAccess : public ::cppu::WeakImplHelper< XIndexAccess > { public: SdNavigationOrderAccess( SdrPage* pPage ); diff --git a/sd/source/ui/unoidl/unopback.hxx b/sd/source/ui/unoidl/unopback.hxx index 6f3ba5a06dd7..8fd35c9a7b27 100644 --- a/sd/source/ui/unoidl/unopback.hxx +++ b/sd/source/ui/unoidl/unopback.hxx @@ -29,13 +29,13 @@ #include <comphelper/servicehelper.hxx> -#include <cppuhelper/implbase4.hxx> +#include <cppuhelper/implbase.hxx> const SvxItemPropertySet* ImplGetPageBackgroundPropertySet(); class SdDrawDocument; class SfxItemSet; -class SdUnoPageBackground : public ::cppu::WeakImplHelper4< +class SdUnoPageBackground : public ::cppu::WeakImplHelper< ::com::sun::star::beans::XPropertySet, ::com::sun::star::lang::XServiceInfo, ::com::sun::star::beans::XPropertyState, |