Kaydet (Commit) 14bead7f authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Caolán McNamara

forms: tdf#88206 replace cppu::WeakImplHelper* etc.

with the variadic variants.

Change-Id: Ia4f56692c9beddda13ee948ab8bbc1ee95098fbf
Reviewed-on: https://gerrit.libreoffice.org/17648Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 647b5aec
......@@ -63,7 +63,6 @@
#include <comphelper/sequence.hxx>
#include <connectivity/dbtools.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <rtl/math.hxx>
#include <rtl/tencinfo.h>
......
......@@ -34,7 +34,6 @@
#include <toolkit/helper/listenermultiplexer.hxx>
#include <cppuhelper/implbase5.hxx>
#include <comphelper/uno3.hxx>
#include <cppuhelper/implbase4.hxx>
#include <connectivity/sqlparse.hxx>
#include <svx/ParseContext.hxx>
......
......@@ -26,7 +26,7 @@
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <com/sun/star/container/XContainerListener.hpp>
#include <com/sun/star/container/XContainer.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <comphelper/types.hxx>
#include <algorithm>
......@@ -161,7 +161,7 @@ typedef std::map<OUString, OGroup> OGroupArr;
typedef std::vector<OGroupArr::iterator> OActiveGroups;
class OGroupManager : public ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::container::XContainerListener>
class OGroupManager : public ::cppu::WeakImplHelper< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::container::XContainerListener>
{
OGroup* m_pCompGroup; // Sort all Components by TabIndices
OGroupArr m_aGroupArr; // Sort all Components by group
......
......@@ -37,7 +37,7 @@
#include <comphelper/asyncnotification.hxx>
#include <connectivity/FValue.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase4.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
......
......@@ -22,7 +22,7 @@
#include <com/sun/star/awt/XWindowListener2.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <tools/diagnose_ex.h>
......@@ -41,7 +41,7 @@ namespace frm
using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::Exception;
typedef ::cppu::WeakImplHelper1 < XWindowListener2
typedef ::cppu::WeakImplHelper < XWindowListener2
> WindowStateGuard_Impl_Base;
class WindowStateGuard_Impl : public WindowStateGuard_Impl_Base
{
......
......@@ -23,7 +23,7 @@
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <comphelper/broadcasthelper.hxx>
class EditView;
......@@ -31,7 +31,7 @@ class EditView;
namespace frm
{
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::frame::XDispatch
typedef ::cppu::WeakImplHelper < ::com::sun::star::frame::XDispatch
> ORichTextFeatureDispatcher_Base;
class ORichTextFeatureDispatcher :public ::comphelper::OBaseMutex
......
......@@ -34,7 +34,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/compbase6.hxx>
#include <cppuhelper/compbase.hxx>
namespace frm
......@@ -44,7 +44,7 @@ namespace frm
//= FormOperations
typedef ::cppu::WeakComponentImplHelper6 < ::com::sun::star::form::runtime::XFormOperations
typedef ::cppu::WeakComponentImplHelper < ::com::sun::star::form::runtime::XFormOperations
, ::com::sun::star::lang::XInitialization
, ::com::sun::star::lang::XServiceInfo
, ::com::sun::star::beans::XPropertyChangeListener
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_FORMS_SOURCE_XFORMS_NAMECONTAINER_HXX
#define INCLUDED_FORMS_SOURCE_XFORMS_NAMECONTAINER_HXX
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <map>
#include <com/sun/star/container/XNameContainer.hpp>
......@@ -33,7 +33,7 @@
#include <com/sun/star/uno/Type.hxx>
#include <osl/diagnose.h>
typedef cppu::WeakImplHelper1<
typedef cppu::WeakImplHelper<
com::sun::star::container::XNameContainer
> NameContainer_t;
......
......@@ -21,7 +21,7 @@
#define INCLUDED_FORMS_SOURCE_XFORMS_BINDING_HXX
#include <com/sun/star/uno/Reference.hxx>
#include <cppuhelper/implbase8.hxx>
#include <cppuhelper/implbase.hxx>
#include <propertysetbase.hxx>
#include <com/sun/star/form/binding/XValueBinding.hpp>
#include <com/sun/star/form/binding/XListEntrySource.hpp>
......@@ -73,7 +73,7 @@ namespace xforms
* See http://www.w3.org/TR/xforms/ for more information.
*/
typedef cppu::ImplInheritanceHelper8<
typedef cppu::ImplInheritanceHelper<
PropertySetBase,
css::form::binding::XValueBinding,
css::form::binding::XListEntrySource,
......
......@@ -22,7 +22,7 @@
#include "enumeration.hxx"
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/container/ElementExistException.hpp>
#include <com/sun/star/container/NoSuchElementException.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
......@@ -41,7 +41,7 @@
#include <algorithm>
typedef cppu::WeakImplHelper3<
typedef cppu::WeakImplHelper<
css::container::XIndexReplace,
css::container::XSet,
css::container::XContainer>
......
......@@ -21,7 +21,7 @@
#define INCLUDED_FORMS_SOURCE_XFORMS_DATATYPEREPOSITORY_HXX
#include <com/sun/star/xforms/XDataTypeRepository.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
#include <map>
......@@ -32,7 +32,7 @@ namespace xforms
class OXSDDataType;
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::xforms::XDataTypeRepository
typedef ::cppu::WeakImplHelper < ::com::sun::star::xforms::XDataTypeRepository
> ODataTypeRepository_Base;
class ODataTypeRepository : public ODataTypeRepository_Base
{
......
......@@ -26,7 +26,7 @@
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/xsd/XDataType.hpp>
#include <com/sun/star/xsd/DataTypeClass.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <comphelper/uno3.hxx>
#include <comphelper/propertycontainer.hxx>
#include <comphelper/proparrhlp.hxx>
......@@ -44,7 +44,7 @@ namespace xforms
//= OXSDDataType
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::xsd::XDataType
typedef ::cppu::WeakImplHelper < ::com::sun::star::xsd::XDataType
> OXSDDataType_Base;
typedef ::comphelper::OMutexAndBroadcastHelper OXSDDataType_BBase;
typedef ::comphelper::OPropertyContainer OXSDDataType_PBase;
......
......@@ -21,7 +21,7 @@
#define INCLUDED_FORMS_SOURCE_XFORMS_ENUMERATION_HXX
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/container/XEnumeration.hpp>
#include <com/sun/star/uno/Reference.hxx>
......@@ -35,7 +35,7 @@ namespace com { namespace sun { namespace star {
/** implement XEnumeration based on container::XIndexAccess */
class Enumeration
: public cppu::WeakImplHelper1<com::sun::star::container::XEnumeration>
: public cppu::WeakImplHelper<com::sun::star::container::XEnumeration>
{
com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> mxContainer;
sal_Int32 mnIndex;
......
......@@ -21,13 +21,13 @@
#define INCLUDED_FORMS_SOURCE_XFORMS_NAMEDCOLLECTION_HXX
#include <collection.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/container/XNameAccess.hpp>
#include <algorithm>
template<class T>
class NamedCollection : public cppu::ImplInheritanceHelper1<
class NamedCollection : public cppu::ImplInheritanceHelper<
Collection<T>,
com::sun::star::container::XNameAccess>
{
......
......@@ -20,7 +20,7 @@
#ifndef INCLUDED_FORMS_SOURCE_XFORMS_SUBMISSION_HXX
#define INCLUDED_FORMS_SOURCE_XFORMS_SUBMISSION_HXX
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <propertysetbase.hxx>
#include <com/sun/star/util/XModifyBroadcaster.hpp>
#include <com/sun/star/container/XNamed.hpp>
......@@ -55,7 +55,7 @@ namespace xforms
*
* See http://www.w3.org/TR/xforms/ for more information.
*/
typedef cppu::ImplInheritanceHelper2<
typedef cppu::ImplInheritanceHelper<
PropertySetBase,
com::sun::star::lang::XUnoTunnel,
com::sun::star::xforms::XSubmission
......
......@@ -40,9 +40,7 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase3.hxx>
#include <cppuhelper/implbase.hxx>
#include "serialization.hxx"
......@@ -52,7 +50,7 @@ class CSubmissionPut;
class CSubmissionPost;
class CSubmissionGet;
class CCommandEnvironmentHelper : public cppu::WeakImplHelper1< css::ucb::XCommandEnvironment >
class CCommandEnvironmentHelper : public cppu::WeakImplHelper< css::ucb::XCommandEnvironment >
{
friend class CSubmissionPut;
friend class CSubmissionPost;
......@@ -74,7 +72,7 @@ public:
}
};
class CProgressHandlerHelper : public cppu::WeakImplHelper1< css::ucb::XProgressHandler >
class CProgressHandlerHelper : public cppu::WeakImplHelper< css::ucb::XProgressHandler >
{
friend class CSubmissionPut;
friend class CSubmissionPost;
......
......@@ -20,7 +20,7 @@
#define INCLUDED_FORMS_SOURCE_XFORMS_XFORMSEVENT_HXX
#include <sal/types.h>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xforms/XFormsEvent.hpp>
#include <com/sun/star/xml/dom/events/XEventTarget.hpp>
......@@ -30,7 +30,7 @@ namespace sun {
namespace star {
namespace xforms {
class XFormsEventConcrete : public cppu::WeakImplHelper1< XFormsEvent > {
class XFormsEventConcrete : public cppu::WeakImplHelper< XFormsEvent > {
public:
......
......@@ -24,8 +24,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
......@@ -39,7 +38,7 @@
class CLibxml2XFormsExtension : public cppu::WeakImplHelper2<
class CLibxml2XFormsExtension : public cppu::WeakImplHelper<
com::sun::star::xml::xpath::XXPathExtension, com::sun::star::lang::XInitialization>
{
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment