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

Pranav Kant pranavk at collabora.com
Mon May 23 08:10:18 UTC 2016


 desktop/source/lib/init.cxx      |   19 ++++++++++++++++++-
 sfx2/source/control/unoctitm.cxx |   19 ++++++++++++++++++-
 2 files changed, 36 insertions(+), 2 deletions(-)

New commits:
commit ddcbda3c48acab14928b91756836ca44543720c3
Author: Pranav Kant <pranavk at collabora.com>
Date:   Mon May 23 13:32:47 2016 +0530

    lok: Subcribe to more uno commands for state change
    
    Change-Id: Id2870b176de4163fbe01e4ac380b4981d3187d90

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 20a40ce..6660268 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -775,7 +775,24 @@ static void doc_iniUnoCommands ()
         OUString(".uno:Redo"),
         OUString(".uno:InsertPage"),
         OUString(".uno:DeletePage"),
-        OUString(".uno:DuplicatePage")
+        OUString(".uno:DuplicatePage"),
+        OUString(".uno:Cut"),
+        OUString(".uno:Copy"),
+        OUString(".uno:Paste"),
+        OUString(".uno:SelectAll"),
+        OUString(".uno:InsertAnnotation"),
+        OUString(".uno:InsertRowsBefore"),
+        OUString(".uno:InsertRowsAfter"),
+        OUString(".uno:InsertColumnsBefore"),
+        OUString(".uno:InsertColumnsAfter"),
+        OUString(".uno:DeleteRows"),
+        OUString(".uno:DeleteColumns"),
+        OUString(".uno:DeleteTable"),
+        OUString(".uno:SelectTable"),
+        OUString(".uno:EntireRow"),
+        OUString(".uno:EntireColumn"),
+        OUString(".uno:EntireCell"),
+        OUString(".uno:MergeCells")
     };
 
     util::URL aCommandURL;
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 895e105..35508ae 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1116,7 +1116,24 @@ void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShe
         aBuffer.append(nColor);
     }
     else if (aEvent.FeatureURL.Path == "Undo" ||
-             aEvent.FeatureURL.Path == "Redo")
+             aEvent.FeatureURL.Path == "Redo" ||
+             aEvent.FeatureURL.Path == "Cut" ||
+             aEvent.FeatureURL.Path == "Copy" ||
+             aEvent.FeatureURL.Path == "Paste" ||
+             aEvent.FeatureURL.Path == "SelectAll" ||
+             aEvent.FeatureURL.Path == "InsertAnnotation" ||
+             aEvent.FeatureURL.Path == "InsertRowsBefore" ||
+             aEvent.FeatureURL.Path == "InsertRowsAfter" ||
+             aEvent.FeatureURL.Path == "InsertColumnsBefore" ||
+             aEvent.FeatureURL.Path == "InsertColumnsAfter" ||
+             aEvent.FeatureURL.Path == "DeleteRows" ||
+             aEvent.FeatureURL.Path == "DeleteColumns" ||
+             aEvent.FeatureURL.Path == "DeleteTable" ||
+             aEvent.FeatureURL.Path == "SelectTable" ||
+             aEvent.FeatureURL.Path == "EntireRow" ||
+             aEvent.FeatureURL.Path == "EntireColumn" ||
+             aEvent.FeatureURL.Path == "EntireCell" ||
+             aEvent.FeatureURL.Path == "MergeCells")
     {
         aBuffer.append(aEvent.IsEnabled ? OUString("enabled") : OUString("disabled"));
     }


More information about the Libreoffice-commits mailing list