diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-08-22 17:06:40 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-23 06:06:04 +0000 |
commit | 7f4e0d6aa29da640408cf4cc84b2fc1a0c11f8ba (patch) | |
tree | 7d078f47d4d7b72c627bae7e7192cf7316b5ebeb /oox | |
parent | 9beb2bedc0f65b90cd35f7fa6c9b53ee6729a0c4 (diff) |
oox: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.
Change-Id: I8a82df7ea24874d8e246dc983418d872f1943c8e
Reviewed-on: https://gerrit.libreoffice.org/17919
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/inc/pch/precompiled_oox.hxx | 3 | ||||
-rw-r--r-- | oox/source/core/recordparser.cxx | 4 | ||||
-rw-r--r-- | oox/source/crypto/DocumentDecryption.cxx | 6 | ||||
-rw-r--r-- | oox/source/docprop/docprophandler.hxx | 4 | ||||
-rw-r--r-- | oox/source/docprop/ooxmldocpropimport.hxx | 4 | ||||
-rw-r--r-- | oox/source/export/ColorPropertySet.cxx | 4 | ||||
-rw-r--r-- | oox/source/export/ColorPropertySet.hxx | 4 | ||||
-rw-r--r-- | oox/source/helper/propertymap.cxx | 4 | ||||
-rw-r--r-- | oox/source/helper/textinputstream.cxx | 4 | ||||
-rw-r--r-- | oox/source/ole/olestorage.cxx | 4 | ||||
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 1 | ||||
-rw-r--r-- | oox/source/shape/ShapeContextHandler.hxx | 4 |
12 files changed, 22 insertions, 24 deletions
diff --git a/oox/inc/pch/precompiled_oox.hxx b/oox/inc/pch/precompiled_oox.hxx index 990b6863bc60..7b81b907f624 100644 --- a/oox/inc/pch/precompiled_oox.hxx +++ b/oox/inc/pch/precompiled_oox.hxx @@ -348,8 +348,7 @@ #include <comphelper/string.hxx> #include <config_folders.h> #include <cppuhelper/exc_hlp.hxx> -#include <cppuhelper/implbase1.hxx> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/supportsservice.hxx> #include <cstdio> diff --git a/oox/source/core/recordparser.cxx b/oox/source/core/recordparser.cxx index 708632b237b9..4fe4b04a18e4 100644 --- a/oox/source/core/recordparser.cxx +++ b/oox/source/core/recordparser.cxx @@ -22,7 +22,7 @@ #include <vector> #include <com/sun/star/lang/DisposedException.hpp> #include <com/sun/star/xml/sax/XLocator.hpp> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include "oox/core/fragmenthandler.hxx" @@ -36,7 +36,7 @@ using namespace ::com::sun::star::xml::sax; namespace prv { -class Locator : public ::cppu::WeakImplHelper1< XLocator > +class Locator : public ::cppu::WeakImplHelper< XLocator > { public: inline explicit Locator( RecordParser* pParser ) : mpParser( pParser ) {} diff --git a/oox/source/crypto/DocumentDecryption.cxx b/oox/source/crypto/DocumentDecryption.cxx index d582c7ddf63b..1d68344ff66a 100644 --- a/oox/source/crypto/DocumentDecryption.cxx +++ b/oox/source/crypto/DocumentDecryption.cxx @@ -12,7 +12,7 @@ #include <comphelper/sequenceashashmap.hxx> #include <sax/tools/converter.hxx> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/io/XSeekable.hpp> #include <com/sun/star/uno/XComponentContext.hpp> @@ -44,7 +44,7 @@ vector<sal_uInt8> convertToVector(Sequence<sal_Int8>& input) return vector<sal_uInt8>(inputArray, inputArray + input.getLength()); } -class AgileTokenHandler : public cppu::WeakImplHelper1< XFastTokenHandler > +class AgileTokenHandler : public cppu::WeakImplHelper< XFastTokenHandler > { public: virtual sal_Int32 SAL_CALL getTokenFromUTF8( const Sequence< sal_Int8 >& /*nIdentifier*/ ) throw (RuntimeException, std::exception) SAL_OVERRIDE @@ -58,7 +58,7 @@ public: } }; -class AgileDocumentHandler : public ::cppu::WeakImplHelper1< XFastDocumentHandler > +class AgileDocumentHandler : public ::cppu::WeakImplHelper< XFastDocumentHandler > { AgileEncryptionInfo& mInfo; diff --git a/oox/source/docprop/docprophandler.hxx b/oox/source/docprop/docprophandler.hxx index daabc03234b5..26d3593b00e9 100644 --- a/oox/source/docprop/docprophandler.hxx +++ b/oox/source/docprop/docprophandler.hxx @@ -24,7 +24,7 @@ #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/xml/sax/XFastDocumentHandler.hpp> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include "oox/token/namespaces.hxx" #include "oox/token/tokens.hxx" @@ -39,7 +39,7 @@ namespace docprop { #define DC_TOKEN( token ) (::oox::NMSP_dc | XML_##token) #define DCT_TOKEN( token ) (::oox::NMSP_dcTerms | XML_##token) -class OOXMLDocPropHandler : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XFastDocumentHandler > +class OOXMLDocPropHandler : public ::cppu::WeakImplHelper< ::com::sun::star::xml::sax::XFastDocumentHandler > { ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties > m_xDocProp; diff --git a/oox/source/docprop/ooxmldocpropimport.hxx b/oox/source/docprop/ooxmldocpropimport.hxx index 861825a5dd5d..c186eb0083b5 100644 --- a/oox/source/docprop/ooxmldocpropimport.hxx +++ b/oox/source/docprop/ooxmldocpropimport.hxx @@ -24,13 +24,13 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/xml/sax/InputSource.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> namespace oox { namespace docprop { class DocumentPropertiesImport : - public ::cppu::WeakImplHelper2< + public ::cppu::WeakImplHelper< ::com::sun::star::lang::XServiceInfo, ::com::sun::star::document::XOOXMLDocumentPropertiesImporter > { diff --git a/oox/source/export/ColorPropertySet.cxx b/oox/source/export/ColorPropertySet.cxx index aa32446cfc84..ebdfb1cbad93 100644 --- a/oox/source/export/ColorPropertySet.cxx +++ b/oox/source/export/ColorPropertySet.cxx @@ -21,7 +21,7 @@ #include "ColorPropertySet.hxx" -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include <com/sun/star/drawing/FillStyle.hpp> @@ -34,7 +34,7 @@ using ::com::sun::star::uno::RuntimeException; namespace { -class lcl_ColorPropertySetInfo : public ::cppu::WeakImplHelper1< +class lcl_ColorPropertySetInfo : public ::cppu::WeakImplHelper< XPropertySetInfo > { public: diff --git a/oox/source/export/ColorPropertySet.hxx b/oox/source/export/ColorPropertySet.hxx index 0463163133d9..522a0e045511 100644 --- a/oox/source/export/ColorPropertySet.hxx +++ b/oox/source/export/ColorPropertySet.hxx @@ -22,7 +22,7 @@ // FIXME? this file is identical to xmloff/source/chart/ColorPropertySet.hxx -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertyState.hpp> @@ -32,7 +32,7 @@ namespace oox namespace drawingml { -class ColorPropertySet : public ::cppu::WeakImplHelper2< +class ColorPropertySet : public ::cppu::WeakImplHelper< ::com::sun::star::beans::XPropertySet, ::com::sun::star::beans::XPropertyState > { diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index 22e8e6f03d1d..8fc744fef916 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -45,7 +45,7 @@ using ::com::sun::star::text::WritingMode; #include <com/sun/star/drawing/EnhancedCustomShapeParameterPair.hpp> #include <com/sun/star/drawing/EnhancedCustomShapeParameterType.hpp> #include <com/sun/star/drawing/HomogenMatrix3.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include <osl/mutex.hxx> #include "oox/token/propertynames.hxx" @@ -97,7 +97,7 @@ namespace { Properties of all names and types can be set and later retrieved. TODO: move this to comphelper or better find an existing implementation */ -class GenericPropertySet : public ::cppu::WeakImplHelper2< XPropertySet, XPropertySetInfo > +class GenericPropertySet : public ::cppu::WeakImplHelper< XPropertySet, XPropertySetInfo > { public: explicit GenericPropertySet( const PropertyMap& rPropMap ); diff --git a/oox/source/helper/textinputstream.cxx b/oox/source/helper/textinputstream.cxx index b292e563f72d..10bda133c0d9 100644 --- a/oox/source/helper/textinputstream.cxx +++ b/oox/source/helper/textinputstream.cxx @@ -21,7 +21,7 @@ #include <com/sun/star/io/XActiveDataSink.hpp> #include <com/sun/star/io/TextInputStream.hpp> -#include <cppuhelper/implbase1.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include <rtl/tencinfo.h> #include "oox/helper/binaryinputstream.hxx" @@ -34,7 +34,7 @@ using namespace ::com::sun::star::uno; namespace { -typedef ::cppu::WeakImplHelper1< XInputStream > UnoBinaryInputStream_BASE; +typedef ::cppu::WeakImplHelper< XInputStream > UnoBinaryInputStream_BASE; /** Implementation of a UNO input stream wrapping a binary input stream. */ diff --git a/oox/source/ole/olestorage.cxx b/oox/source/ole/olestorage.cxx index 2a961cb4ddae..7e254a3b2d32 100644 --- a/oox/source/ole/olestorage.cxx +++ b/oox/source/ole/olestorage.cxx @@ -29,7 +29,7 @@ #include <com/sun/star/io/XStream.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <osl/diagnose.h> #include "oox/helper/binaryinputstream.hxx" #include "oox/helper/binaryoutputstream.hxx" @@ -51,7 +51,7 @@ namespace { /** Implementation of an OLE storage output stream that inserts itself into the storage when it is closed. */ -class OleOutputStream : public ::cppu::WeakImplHelper2< XSeekable, XOutputStream > +class OleOutputStream : public ::cppu::WeakImplHelper< XSeekable, XOutputStream > { public: explicit OleOutputStream( diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 8a0c83e175a1..f8b8535a5f70 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -25,7 +25,6 @@ #include <com/sun/star/script/vba/XVBAModuleInfo.hpp> #include <com/sun/star/awt/KeyEvent.hpp> #include <osl/diagnose.h> -#include <cppuhelper/implbase1.hxx> #include <filter/msfilter/msvbahelper.hxx> #include "oox/helper/binaryinputstream.hxx" #include "oox/helper/storagebase.hxx" diff --git a/oox/source/shape/ShapeContextHandler.hxx b/oox/source/shape/ShapeContextHandler.hxx index ad57ad933416..72b9f882b384 100644 --- a/oox/source/shape/ShapeContextHandler.hxx +++ b/oox/source/shape/ShapeContextHandler.hxx @@ -21,7 +21,7 @@ #include <boost/shared_ptr.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include <cppuhelper/implbase2.hxx> +#include <cppuhelper/implbase.hxx> #include <com/sun/star/xml/sax/XFastShapeContextHandler.hpp> #include "oox/drawingml/graphicshapecontext.hxx" #include "oox/drawingml/shape.hxx" @@ -47,7 +47,7 @@ public: }; class ShapeContextHandler: - public ::cppu::WeakImplHelper2< css::xml::sax::XFastShapeContextHandler, + public ::cppu::WeakImplHelper< css::xml::sax::XFastShapeContextHandler, css::lang::XServiceInfo > { public: |