Kaydet (Commit) 2bebc1fc authored tarafından Jochen Nitschke's avatar Jochen Nitschke Kaydeden (comit) Noel Grandin

tdf#88206 replace cppu::WeakImplHelper* in sfx2 and svl

some fallout in include/editeng/unotext.hxx
which uses WeakAggImplHelper1 from implbase1.hxx

Change-Id: I7237c46c1eb17752c63eeddc6a3aee41788fbbd2
Reviewed-on: https://gerrit.libreoffice.org/29374Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d200c344
......@@ -44,7 +44,7 @@
#include <com/sun/star/style/TabStop.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <comphelper/interfacecontainer2.hxx>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/weakagg.hxx>
#include <osl/diagnose.hxx>
#include <osl/mutex.hxx>
......
......@@ -28,7 +28,7 @@
#include <com/sun/star/rdf/XDocumentMetadataAccess.hpp>
#include <com/sun/star/rdf/XRepositorySupplier.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <memory>
......@@ -69,7 +69,7 @@ createBaseURI(
struct DocumentMetadataAccess_Impl;
class SFX2_DLLPUBLIC DocumentMetadataAccess :
public ::cppu::WeakImplHelper1< css::rdf::XDocumentMetadataAccess>
public cppu::WeakImplHelper<css::rdf::XDocumentMetadataAccess>
{
DocumentMetadataAccess(const DocumentMetadataAccess&) = delete;
DocumentMetadataAccess& operator=( const DocumentMetadataAccess& ) = delete;
......
......@@ -23,7 +23,7 @@
#include <sfx2/dllapi.h>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/rdf/XMetadatable.hpp>
#include <memory>
......@@ -135,8 +135,7 @@ private:
Metadatable.</p>
*/
class SFX2_DLLPUBLIC MetadatableMixin :
public ::cppu::WeakImplHelper1<
css::rdf::XMetadatable>
public cppu::WeakImplHelper<css::rdf::XMetadatable>
{
public:
......
......@@ -24,7 +24,7 @@
#include <com/sun/star/util/XModifyListener.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
namespace comphelper { class SolarMutex; }
......@@ -50,7 +50,7 @@ namespace sfx2
//= DocumentStorageModifyListener
typedef ::cppu::WeakImplHelper1 < css::util::XModifyListener > DocumentStorageModifyListener_Base;
typedef cppu::WeakImplHelper<css::util::XModifyListener> DocumentStorageModifyListener_Base;
class SFX2_DLLPUBLIC DocumentStorageModifyListener : public DocumentStorageModifyListener_Base
{
......
......@@ -30,9 +30,9 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/frame/XStatusListener.hpp>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
class SFX2_DLLPUBLIC SfxStatusListener : public ::cppu::WeakImplHelper2<
class SFX2_DLLPUBLIC SfxStatusListener : public cppu::WeakImplHelper<
css::frame::XStatusListener,
css::lang::XComponent>
{
......
......@@ -22,12 +22,12 @@
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
namespace
{
typedef ::cppu::WeakComponentImplHelper1 <
typedef cppu::WeakComponentImplHelper <
css::accessibility::XAccessible
> AccessibleInterfaceBase;
}
......
......@@ -38,13 +38,13 @@
#include <com/sun/star/ui/XSidebar.hpp>
#include <boost/optional.hpp>
#include <cppuhelper/compbase4.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
namespace
{
typedef ::cppu::WeakComponentImplHelper4 <
typedef cppu::WeakComponentImplHelper <
css::ui::XContextChangeEventListener,
css::beans::XPropertyChangeListener,
css::ui::XSidebar,
......
......@@ -22,7 +22,7 @@
#include <vcl/EnumContext.hxx>
#include <sfx2/sidebar/IContextChangeReceiver.hxx>
#include <cppuhelper/compbase5.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/frame/XController.hpp>
......@@ -42,7 +42,7 @@ namespace sfx2 { namespace sidebar {
namespace
{
typedef cppu::WeakComponentImplHelper5<css::ui::XContextChangeEventListener,
typedef cppu::WeakComponentImplHelper<css::ui::XContextChangeEventListener,
css::ui::XUIElement,
css::ui::XToolPanel,
css::ui::XSidebarPanel,
......
......@@ -23,7 +23,7 @@
#include <tools/color.hxx>
#include <vcl/image.hxx>
#include <cppuhelper/compbase2.hxx>
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <tools/gen.hxx>
#include <rtl/ref.hxx>
......@@ -42,7 +42,7 @@ namespace sfx2 { namespace sidebar {
namespace
{
typedef ::cppu::WeakComponentImplHelper2 <
typedef cppu::WeakComponentImplHelper <
css::beans::XPropertySet,
css::beans::XPropertySetInfo
> ThemeInterfaceBase;
......
......@@ -16,15 +16,14 @@
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/ui/XPanels.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
/** get the decks
*/
class SfxUnoDeck : public ::cppu::WeakImplHelper1< css::ui::XDeck >
class SfxUnoDeck : public cppu::WeakImplHelper<css::ui::XDeck>
{
public:
......
......@@ -18,15 +18,14 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/ResourceManager.hxx>
/** get the decks
*/
class SfxUnoDecks : public ::cppu::WeakImplHelper1< css::ui::XDecks >
class SfxUnoDecks : public cppu::WeakImplHelper<css::ui::XDecks>
{
public:
......
......@@ -16,8 +16,7 @@
#include <com/sun/star/awt/XWindow.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/Panel.hxx>
......@@ -27,7 +26,7 @@
/** get the Panel
*/
class SfxUnoPanel : public ::cppu::WeakImplHelper1< css::ui::XPanel >
class SfxUnoPanel : public cppu::WeakImplHelper<css::ui::XPanel>
{
public:
......
......@@ -17,14 +17,13 @@
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
/** get the decks
*/
class SfxUnoPanels : public ::cppu::WeakImplHelper1< css::ui::XPanels >
class SfxUnoPanels : public cppu::WeakImplHelper<css::ui::XPanels>
{
public:
......
......@@ -18,8 +18,7 @@
#include <com/sun/star/awt/XWindow2.hpp>
#include <cppuhelper/compbase1.hxx>
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/compbase.hxx>
#include <sfx2/sidebar/SidebarController.hxx>
#include <sfx2/sidebar/SidebarDockingWindow.hxx>
......@@ -29,7 +28,7 @@
/** get the sidebar for a given frame
*/
class SfxUnoSidebar : public ::cppu::WeakImplHelper1< css::ui::XSidebarProvider >
class SfxUnoSidebar : public cppu::WeakImplHelper<css::ui::XSidebarProvider>
{
private:
......
......@@ -32,7 +32,7 @@
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <sfx2/ctrlitem.hxx>
......@@ -45,7 +45,7 @@ class SfxDispatcher;
typedef cppu::OMultiTypeInterfaceContainerHelperVar<OUString>
SfxStatusDispatcher_Impl_ListenerContainer;
class SfxStatusDispatcher : public ::cppu::WeakImplHelper1< css::frame::XNotifyingDispatch >
class SfxStatusDispatcher : public cppu::WeakImplHelper<css::frame::XNotifyingDispatch>
{
::osl::Mutex aMutex;
SfxStatusDispatcher_Impl_ListenerContainer aListeners;
......@@ -70,7 +70,7 @@ public:
class SfxSlotServer;
class SfxDispatchController_Impl;
class SfxOfficeDispatch : public ::cppu::ImplInheritanceHelper1< SfxStatusDispatcher, css::lang::XUnoTunnel >
class SfxOfficeDispatch : public cppu::ImplInheritanceHelper<SfxStatusDispatcher, css::lang::XUnoTunnel>
{
friend class SfxDispatchController_Impl;
std::unique_ptr<SfxDispatchController_Impl> pImpl;
......
......@@ -22,7 +22,7 @@
#include <com/sun/star/beans/XPropertySetInfo.hpp>
#include <com/sun/star/beans/PropertyState.hpp>
#include <com/sun/star/lang/IllegalArgumentException.hpp>
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase.hxx>
#include <svl/itemset.hxx>
#include <svl/svldllapi.h>
#include <vector>
......@@ -155,7 +155,7 @@ public:
};
struct SfxItemPropertySetInfo_Impl;
class SVL_DLLPUBLIC SfxItemPropertySetInfo : public cppu::WeakImplHelper1<css::beans::XPropertySetInfo>
class SVL_DLLPUBLIC SfxItemPropertySetInfo : public cppu::WeakImplHelper<css::beans::XPropertySetInfo>
{
std::unique_ptr<SfxItemPropertySetInfo_Impl> m_pImpl;
......@@ -179,7 +179,7 @@ public:
};
class SVL_DLLPUBLIC SfxExtItemPropertySetInfo: public cppu::WeakImplHelper1<css::beans::XPropertySetInfo >
class SVL_DLLPUBLIC SfxExtItemPropertySetInfo: public cppu::WeakImplHelper<css::beans::XPropertySetInfo>
{
SfxItemPropertyMap aExtMap;
public:
......
......@@ -25,7 +25,7 @@
#include <rtl/ref.hxx>
#include <comphelper/weak.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implbase.hxx>
#include <svl/svldllapi.h>
#include <rsc/rscsfx.hxx>
#include <svl/hint.hxx>
......@@ -273,7 +273,7 @@ public:
virtual bool SetParent( const OUString& ) override;
protected:
SfxStyleSheet() // do not use! needed by MSVC at compile time to satisfy ImplInheritanceHelper2
SfxStyleSheet() // do not use! needed by MSVC at compile time to satisfy ImplInheritanceHelper
: SfxStyleSheetBase(OUString("dummy"), nullptr, SfxStyleFamily::All, 0)
{
assert(false);
......@@ -332,7 +332,7 @@ public:
const OUString& GetOldName() const { return aName; }
};
class SVL_DLLPUBLIC SfxUnoStyleSheet : public ::cppu::ImplInheritanceHelper2< SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel >
class SVL_DLLPUBLIC SfxUnoStyleSheet : public cppu::ImplInheritanceHelper<SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel>
{
public:
SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetBasePool& _rPool, SfxStyleFamily _eFamily, sal_uInt16 _nMaske );
......
......@@ -929,7 +929,7 @@ SfxStyleSheetBase* SfxStyleSheetPool::Create( const OUString& rName,
}
SfxUnoStyleSheet::SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetBasePool& _rPool, SfxStyleFamily _eFamily, sal_uInt16 _nMaske )
: ::cppu::ImplInheritanceHelper2< SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel >( _rName, _rPool, _eFamily, _nMaske )
: cppu::ImplInheritanceHelper<SfxStyleSheet, css::style::XStyle, css::lang::XUnoTunnel>(_rName, _rPool, _eFamily, _nMaske)
{
}
......
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