[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - desktop/source sfx2/source

Henry Castro hcastro at collabora.com
Fri Jul 15 12:53:00 UTC 2016


 desktop/source/lib/init.cxx      |    4 +++-
 sfx2/source/control/unoctitm.cxx |   10 ++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

New commits:
commit 6f1c8e1428cd3bbc26484bccf2897f2b85903985
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Jul 14 10:59:47 2016 -0400

    sc lok: add more toolbar items
    
    .uno:SortAscending
    .uno:SortDescending
    
    Change-Id: I3d307b43fb18ffce75b00a0b919b63320bf6db05
    Reviewed-on: https://gerrit.libreoffice.org/27223
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Henry Castro <hcastro at collabora.com>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index a052b6f..2413b3f 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -814,7 +814,9 @@ static void doc_iniUnoCommands ()
         OUString(".uno:ToggleMergeCells"),
         OUString(".uno:NumberFormatCurrency"),
         OUString(".uno:NumberFormatPercent"),
-        OUString(".uno:NumberFormatDate")
+        OUString(".uno:NumberFormatDate"),
+        OUString(".uno:SortAscending"),
+        OUString(".uno:SortDescending")
     };
 
     util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index d585a31..867bfdb 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1140,14 +1140,17 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
     }
     else if (aEvent.FeatureURL.Path == "InsertPage" ||
              aEvent.FeatureURL.Path == "DeletePage" ||
-             aEvent.FeatureURL.Path == "DuplicatePage")
+             aEvent.FeatureURL.Path == "DuplicatePage" ||
+             aEvent.FeatureURL.Path == "SortAscending" ||
+             aEvent.FeatureURL.Path == "SortDescending")
     {
         aBuffer.append(OUString::boolean(aEvent.IsEnabled));
     }
     else if (aEvent.FeatureURL.Path == "AssignLayout" ||
              aEvent.FeatureURL.Path == "StatusSelectionMode" ||
              aEvent.FeatureURL.Path == "Signature" ||
-             aEvent.FeatureURL.Path == "SelectionMode")
+             aEvent.FeatureURL.Path == "SelectionMode" ||
+             aEvent.FeatureURL.Path == "StatusBarFunc")
     {
         sal_Int32 aInt32;
 
@@ -1197,8 +1200,7 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
             aBuffer.append(OUString::number(aPoint.X) + OUString(" / ") + OUString::number(aPoint.Y));
         }
     }
-    else if (aEvent.FeatureURL.Path == "StatusBarFunc" ||
-             aEvent.FeatureURL.Path == "Size")
+    else if (aEvent.FeatureURL.Path == "Size")
     {
         css::awt::Size aSize;
 


More information about the Libreoffice-commits mailing list