diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-09-28 21:53:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-29 06:53:56 +0000 |
commit | 2bebc1fc2e76f73d953ca1e1f64803fd4c42a62c (patch) | |
tree | 2dde75809db61a0f03efd141aeb1d41efa1d91c8 /include/sfx2 | |
parent | d200c344cfd7bf25b6dc6cac5626728c3ef94fff (diff) |
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/29374
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/DocumentMetadataAccess.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/Metadatable.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/docstoragemodifylistener.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sfxstatuslistener.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/Accessible.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarController.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/SidebarPanelBase.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/Theme.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoDeck.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoDecks.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoPanel.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoPanels.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sidebar/UnoSidebar.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/unoctitm.hxx | 6 |
14 files changed, 29 insertions, 35 deletions
diff --git a/include/sfx2/DocumentMetadataAccess.hxx b/include/sfx2/DocumentMetadataAccess.hxx index 7af6e3264721..973808d0840e 100644 --- a/include/sfx2/DocumentMetadataAccess.hxx +++ b/include/sfx2/DocumentMetadataAccess.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; diff --git a/include/sfx2/Metadatable.hxx b/include/sfx2/Metadatable.hxx index 2d7bc54d14fb..b838c9f95e24 100644 --- a/include/sfx2/Metadatable.hxx +++ b/include/sfx2/Metadatable.hxx @@ -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: diff --git a/include/sfx2/docstoragemodifylistener.hxx b/include/sfx2/docstoragemodifylistener.hxx index 4733e2a5f935..fa1a291d9916 100644 --- a/include/sfx2/docstoragemodifylistener.hxx +++ b/include/sfx2/docstoragemodifylistener.hxx @@ -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 { diff --git a/include/sfx2/sfxstatuslistener.hxx b/include/sfx2/sfxstatuslistener.hxx index ab9cb1e85363..c5a18e9515bd 100644 --- a/include/sfx2/sfxstatuslistener.hxx +++ b/include/sfx2/sfxstatuslistener.hxx @@ -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> { diff --git a/include/sfx2/sidebar/Accessible.hxx b/include/sfx2/sidebar/Accessible.hxx index eaa3f52eeba9..cb1d729e9053 100644 --- a/include/sfx2/sidebar/Accessible.hxx +++ b/include/sfx2/sidebar/Accessible.hxx @@ -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; } diff --git a/include/sfx2/sidebar/SidebarController.hxx b/include/sfx2/sidebar/SidebarController.hxx index c32e9c4410a7..6b64fdefe750 100644 --- a/include/sfx2/sidebar/SidebarController.hxx +++ b/include/sfx2/sidebar/SidebarController.hxx @@ -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, diff --git a/include/sfx2/sidebar/SidebarPanelBase.hxx b/include/sfx2/sidebar/SidebarPanelBase.hxx index e0943b4bccf9..b41a86c1e92b 100644 --- a/include/sfx2/sidebar/SidebarPanelBase.hxx +++ b/include/sfx2/sidebar/SidebarPanelBase.hxx @@ -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, diff --git a/include/sfx2/sidebar/Theme.hxx b/include/sfx2/sidebar/Theme.hxx index 84552e54bd44..fc9921e5e206 100644 --- a/include/sfx2/sidebar/Theme.hxx +++ b/include/sfx2/sidebar/Theme.hxx @@ -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; diff --git a/include/sfx2/sidebar/UnoDeck.hxx b/include/sfx2/sidebar/UnoDeck.hxx index 9de2feb69c1c..43d57b2816a4 100644 --- a/include/sfx2/sidebar/UnoDeck.hxx +++ b/include/sfx2/sidebar/UnoDeck.hxx @@ -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: diff --git a/include/sfx2/sidebar/UnoDecks.hxx b/include/sfx2/sidebar/UnoDecks.hxx index 88571996ace4..e17b7a35a089 100644 --- a/include/sfx2/sidebar/UnoDecks.hxx +++ b/include/sfx2/sidebar/UnoDecks.hxx @@ -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: diff --git a/include/sfx2/sidebar/UnoPanel.hxx b/include/sfx2/sidebar/UnoPanel.hxx index 88f47e9ecf45..a622675ef3b1 100644 --- a/include/sfx2/sidebar/UnoPanel.hxx +++ b/include/sfx2/sidebar/UnoPanel.hxx @@ -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: diff --git a/include/sfx2/sidebar/UnoPanels.hxx b/include/sfx2/sidebar/UnoPanels.hxx index f34aefca4f31..3a5848bc5bd8 100644 --- a/include/sfx2/sidebar/UnoPanels.hxx +++ b/include/sfx2/sidebar/UnoPanels.hxx @@ -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: diff --git a/include/sfx2/sidebar/UnoSidebar.hxx b/include/sfx2/sidebar/UnoSidebar.hxx index 79a3386d3628..515ba9648906 100644 --- a/include/sfx2/sidebar/UnoSidebar.hxx +++ b/include/sfx2/sidebar/UnoSidebar.hxx @@ -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: diff --git a/include/sfx2/unoctitm.hxx b/include/sfx2/unoctitm.hxx index 9446bc10d50d..aea822037fac 100644 --- a/include/sfx2/unoctitm.hxx +++ b/include/sfx2/unoctitm.hxx @@ -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; |