diff options
author | homeboy445 <akshitsan13@gmail.com> | 2021-04-12 20:31:05 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-10-29 13:46:12 +0200 |
commit | d37a44a9ebdafec1435f98194417a1d8cc8208b5 (patch) | |
tree | de021550906549b9ae78d95cef8329bc6afc7a17 /svx/source/unodraw/unoshap2.cxx | |
parent | 31315fea28ad327f36c0e593156bf808c7af3467 (diff) |
tdf#141193 Added support for bar codes in qrcode dialog box[API Change].
Change-Id: I6b79ece1d5419ef92b76755d3bd921a64d6e38fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113989
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index ad441e7a725d..710f2e38099d 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -30,7 +30,7 @@ #include <com/sun/star/drawing/PointSequence.hpp> #include <com/sun/star/drawing/PolygonKind.hpp> #include <com/sun/star/graphic/XGraphic.hpp> -#include <com/sun/star/drawing/QRCode.hpp> +#include <com/sun/star/drawing/BarCode.hpp> #include <o3tl/any.hxx> #include <o3tl/safeint.hxx> #include <vcl/svapp.hxx> @@ -1382,10 +1382,10 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte case OWN_ATTR_QRCODE: { - css::drawing::QRCode aQrCode; - if (rValue >>= aQrCode) + css::drawing::BarCode aBarCode; + if (rValue >>= aBarCode) { - static_cast<SdrGrafObj*>(GetSdrObject())->setQrCode(aQrCode); + static_cast<SdrGrafObj*>(GetSdrObject())->setQrCode(aBarCode); bOk = true; } break; @@ -1535,7 +1535,7 @@ bool SvxGraphicObject::getPropertyValueImpl( const OUString& rName, const SfxIte case OWN_ATTR_QRCODE: { - css::drawing::QRCode* ptr = static_cast<SdrGrafObj*>(GetSdrObject())->getQrCode(); + css::drawing::BarCode* ptr = static_cast<SdrGrafObj*>(GetSdrObject())->getQrCode(); if(ptr) { rValue <<= *ptr; |