diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-10 13:15:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-12-10 20:35:53 +0100 |
commit | cf84ead0c4d91ce1473682cfe07914e965b68ab2 (patch) | |
tree | 3be458d64450b6ac4d30eccd35aa0a93a96e3f7e /sc/source/ui/sidebar | |
parent | e1807c61f1abc6cab74d0fa8ccac7a8ef9114b88 (diff) |
Related: tdf#129300 add ScRotateValueItem description in degrees
by inheriting from SdrAngleItem
Change-Id: Ifcaf46b12d685e683984e15ba2264c191c0d1e5f
Reviewed-on: https://gerrit.libreoffice.org/84847
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/sidebar')
-rw-r--r-- | sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index e92edd6943ca..a50c529cef9f 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -20,11 +20,13 @@ #include "AlignmentPropertyPanel.hxx" #include <editeng/justifyitem.hxx> #include <sc.hrc> +#include <attrib.hxx> #include <scitems.hxx> #include <sfx2/bindings.hxx> #include <sfx2/dispatch.hxx> #include <svl/intitem.hxx> #include <svx/rotmodit.hxx> +#include <svx/sdangitm.hxx> #include <svtools/unitconv.hxx> #include <unotools/localedatawrapper.hxx> #include <com/sun/star/lang/IllegalArgumentException.hpp> @@ -177,7 +179,7 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, AngleModifiedHdl, Edit&, void ) FormatDegrees(fTmp); sal_Int64 nTmp = static_cast<sal_Int64>(fTmp)*100; - SfxInt32Item aAngleItem( SID_ATTR_ALIGN_DEGREES,static_cast<sal_uInt32>(nTmp)); + ScRotateValueItem aAngleItem(static_cast<sal_uInt32>(nTmp)); GetBindings()->GetDispatcher()->ExecuteList( SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, { &aAngleItem }); @@ -380,7 +382,7 @@ void AlignmentPropertyPanel::NotifyItemUpdate( case SID_ATTR_ALIGN_DEGREES: if (eState >= SfxItemState::DEFAULT) { - long nTmp = static_cast<const SfxInt32Item*>(pState)->GetValue(); + long nTmp = static_cast<const ScRotateValueItem*>(pState)->GetValue(); mpMtrAngle->SetValue( nTmp / 100); //wj switch(nTmp) { |