summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/textlayout.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-12-14 21:07:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-12-23 22:56:54 +0000
commit03efbf72f4ddf7a84aa8aabef348331bd4b75e8a (patch)
tree1151e1a258f6918e390dda0ac652bb5cedb12162 /canvas/source/vcl/textlayout.hxx
parent80099fdd51a69eaa6c36ca88ef772810e4a777fa (diff)
loplugin:unocast (vclcanvas::TextLayout)
(See the upcoming commit introducing that loplugin:unocast on why such dynamic_casts from UNO types are dangerous.) Change-Id: I4ee48fe50c6c579952478e6d3f6c2aac168d095c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144769 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/vcl/textlayout.hxx')
-rw-r--r--canvas/source/vcl/textlayout.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/canvas/source/vcl/textlayout.hxx b/canvas/source/vcl/textlayout.hxx
index be8603d812f1..53f3f73033ac 100644
--- a/canvas/source/vcl/textlayout.hxx
+++ b/canvas/source/vcl/textlayout.hxx
@@ -23,6 +23,7 @@
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
+#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/rendering/StringContext.hpp>
#include <com/sun/star/rendering/XTextLayout.hpp>
@@ -34,7 +35,8 @@
namespace vclcanvas
{
typedef ::cppu::WeakComponentImplHelper< css::rendering::XTextLayout,
- css::lang::XServiceInfo > TextLayout_Base;
+ css::lang::XServiceInfo,
+ css::lang::XUnoTunnel > TextLayout_Base;
class TextLayout : public ::cppu::BaseMutex,
public TextLayout_Base
@@ -78,6 +80,9 @@ namespace vclcanvas
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
+ sal_Int64 SAL_CALL getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) override;
+ static css::uno::Sequence<sal_Int8> const & getUnoTunnelId();
+
void draw( OutputDevice& rOutDev,
const Point& rOutpos,
const css::rendering::ViewState& viewState,