summaryrefslogtreecommitdiff
path: root/canvas/source/cairo/cairo_canvasfont.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-12-14 21:39:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-12-18 16:04:49 +0000
commit28c27a0623bc78a0590858f97d03b620985bc84c (patch)
tree6a5ab15e9d35d4a52ed44feb4b3e9d410e5ad332 /canvas/source/cairo/cairo_canvasfont.cxx
parentc3497353cabdef735dcebd66a8818ea117623dac (diff)
loplugin:unocast (cairocanvas::CanvasFont)
(See the upcoming commit introducing that loplugin:unocast on why such dynamic_casts from UNO types are dangerous.) Change-Id: I2d5c330bb542dc74ea572f1667a24be8107fb87c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144351 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/cairo/cairo_canvasfont.cxx')
-rw-r--r--canvas/source/cairo/cairo_canvasfont.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/canvas/source/cairo/cairo_canvasfont.cxx b/canvas/source/cairo/cairo_canvasfont.cxx
index 36c1733ef62a..9c660a5c4c6e 100644
--- a/canvas/source/cairo/cairo_canvasfont.cxx
+++ b/canvas/source/cairo/cairo_canvasfont.cxx
@@ -21,6 +21,7 @@
#include <basegfx/numeric/ftools.hxx>
#include <com/sun/star/rendering/PanoseProportion.hpp>
+#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <rtl/math.hxx>
@@ -147,6 +148,15 @@ namespace cairocanvas
return { "com.sun.star.rendering.CanvasFont" };
}
+ sal_Int64 CanvasFont::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) {
+ return comphelper::getSomethingImpl(aIdentifier, this);
+ }
+
+ css::uno::Sequence<sal_Int8> const & CanvasFont::getUnoTunnelId() {
+ static comphelper::UnoIdInit const id;
+ return id.getSeq();
+ }
+
vcl::Font const & CanvasFont::getVCLFont() const
{
return *maFont;