diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-01 08:48:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-22 12:21:37 +0000 |
commit | d6a70bb641b96e8e5616448c2378131ed62658b4 (patch) | |
tree | 866e377261fd732ca60c8c145426c9aa66457d22 /include | |
parent | 1c17356958b07aa7e202d3f9242c807c5dc447ac (diff) |
loplugin:unocast (basegfx::unotools::UnoPolyPolygon)
(See the upcoming commit introducing that loplugin:unocast on why such
dynamic_casts from UNO types are dangerous.)
Change-Id: I166d8f31a13a98caf0bb7a3b5025a9d942808096
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144746
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/basegfx/utils/unopolypolygon.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/basegfx/utils/unopolypolygon.hxx b/include/basegfx/utils/unopolypolygon.hxx index 48788b074ede..4392f798c6ce 100644 --- a/include/basegfx/utils/unopolypolygon.hxx +++ b/include/basegfx/utils/unopolypolygon.hxx @@ -22,6 +22,7 @@ #include <comphelper/compbase.hxx> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/XUnoTunnel.hpp> #include <com/sun/star/rendering/FillRule.hpp> #include <com/sun/star/rendering/XLinePolyPolygon2D.hpp> #include <com/sun/star/rendering/XBezierPolyPolygon2D.hpp> @@ -34,7 +35,8 @@ namespace basegfx::unotools typedef comphelper::WeakComponentImplHelper< css::rendering::XLinePolyPolygon2D, css::rendering::XBezierPolyPolygon2D, - css::lang::XServiceInfo > UnoPolyPolygonBase; + css::lang::XServiceInfo, + css::lang::XUnoTunnel > UnoPolyPolygonBase; class BASEGFX_DLLPUBLIC UnoPolyPolygon : public UnoPolyPolygonBase @@ -68,6 +70,10 @@ namespace basegfx::unotools SAL_DLLPRIVATE virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; SAL_DLLPRIVATE virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + SAL_DLLPRIVATE sal_Int64 SAL_CALL getSomething( + css::uno::Sequence<sal_Int8> const & aIdentifier) override; + static SAL_DLLPRIVATE css::uno::Sequence<sal_Int8> const & getUnoTunnelId(); + SAL_DLLPRIVATE B2DPolyPolygon getPolyPolygon() const; protected: |