[Libreoffice-commits] core.git: 2 commits - sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 23 09:54:57 UTC 2019


 sc/source/ui/sidebar/AlignmentPropertyPanel.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 4501ea4283524fea6cd196456d21ab82bba44dd2
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 22 19:35:39 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 23 10:53:56 2019 +0100

    use ScIndentItem instead of SfxBoolItem(SID_ATTR_ALIGN_INDENT)
    
    Change-Id: I711ffb37cb4cd604d9f89c68387409ab83967a32
    Reviewed-on: https://gerrit.libreoffice.org/85719
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index ae004db4c8b6..e54e8bc1b16b 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -195,7 +195,7 @@ IMPL_LINK_NOARG(AlignmentPropertyPanel, MFLeftIndentMdyHdl, Edit&, void)
 {
     mpCBXWrapText->EnableTriState(false);
     sal_uInt16 nVal = static_cast<sal_uInt16>(mpMFLeftIndent->GetValue());
-    SfxUInt16Item aItem( SID_ATTR_ALIGN_INDENT,  static_cast<sal_uInt16>(CalcToUnit( nVal,  MapUnit::MapTwip )) );
+    ScIndentItem aItem(static_cast<sal_uInt16>(CalcToUnit(nVal,  MapUnit::MapTwip)));
 
     GetBindings()->GetDispatcher()->ExecuteList(SID_ATTR_ALIGN_INDENT,
             SfxCallMode::RECORD, { &aItem });
commit db278aca6da88d0e03e9a24331d13a640820473f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Dec 22 17:40:14 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Dec 23 10:53:44 2019 +0100

    use ScLineBreakCell instead of SfxBoolItem(SID_ATTR_ALIGN_LINEBREAK)
    
    Change-Id: I01bde41e4cba189c6e669e68396a9f9874f52cfb
    Reviewed-on: https://gerrit.libreoffice.org/85718
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index 37b74344e27a..ae004db4c8b6 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -219,7 +219,7 @@ IMPL_LINK_NOARG(AlignmentPropertyPanel, CBOXMergnCellClkHdl, Button*, void)
 IMPL_LINK_NOARG(AlignmentPropertyPanel, CBOXWrapTextClkHdl, Button*, void)
 {
     bool bState = mpCBXWrapText->IsChecked();
-    SfxBoolItem aItem( SID_ATTR_ALIGN_LINEBREAK , bState);
+    ScLineBreakCell aItem(bState);
     GetBindings()->GetDispatcher()->ExecuteList(SID_ATTR_ALIGN_LINEBREAK,
             SfxCallMode::RECORD, { &aItem });
 }
@@ -324,10 +324,10 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
         else
         {
             mpCBXWrapText->Enable();
-            if(eState >= SfxItemState::DEFAULT && dynamic_cast<const SfxBoolItem*>( pState) )
+            if(eState >= SfxItemState::DEFAULT && dynamic_cast<const ScLineBreakCell*>( pState) )
             {
                 mpCBXWrapText->EnableTriState(false);
-                const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(pState);
+                const ScLineBreakCell* pItem = static_cast<const ScLineBreakCell*>(pState);
                 mpCBXWrapText->Check(pItem->GetValue());
             }
             else if(eState == SfxItemState::DONTCARE)


More information about the Libreoffice-commits mailing list