diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-21 11:07:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-21 11:58:06 +0000 |
commit | 19dfdf86ad1f5b08041d8b7a9f196caf881231ab (patch) | |
tree | 1adebc04d3525cea4ff32d4857f4cc17da1628f2 /extensions/source/propctrlr/usercontrol.cxx | |
parent | 01249238dd9711aeec88721b9b24a390d2d0ac3f (diff) |
iloplugin:unocast (pcr::OFormattedNumericControl)
(See the upcoming commit introducing that loplugin:unocast on why such
dynamic_casts from UNO types are dangerous.)
(Making the base class pcr::CommonBehaviourControl TControlInterface template
parameter variadic required swapping it with the other TControlWindow template
parameter.)
Change-Id: Iadc9dc7eb8fbe882b63b5db49d8a39ae5c4c05c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144653
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions/source/propctrlr/usercontrol.cxx')
-rw-r--r-- | extensions/source/propctrlr/usercontrol.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx index 8cccb48e84b5..854abfa72037 100644 --- a/extensions/source/propctrlr/usercontrol.cxx +++ b/extensions/source/propctrlr/usercontrol.cxx @@ -20,6 +20,7 @@ #include "usercontrol.hxx" #include <com/sun/star/inspection/PropertyControlType.hpp> +#include <comphelper/servicehelper.hxx> #include <svl/numuno.hxx> #include <vcl/GraphicObject.hxx> #include <vcl/event.hxx> @@ -199,6 +200,17 @@ namespace pcr return ::cppu::UnoType<double>::get(); } + sal_Int64 OFormattedNumericControl::getSomething( + css::uno::Sequence<sal_Int8> const & aIdentifier) + { + return comphelper::getSomethingImpl(aIdentifier, this); + } + + css::uno::Sequence<sal_Int8> const & OFormattedNumericControl::getUnoTunnelId() { + static comphelper::UnoIdInit const id; + return id.getSeq(); + } + void OFormattedNumericControl::SetFormatDescription(const FormatDescription& rDesc) { bool bFallback = true; |