summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.com>2016-05-23 13:32:47 +0530
committerPranav Kant <pranavk@collabora.com>2016-05-23 13:36:31 +0530
commit5c7ab8259c7016441df45e04fd3be242e6205c1d (patch)
tree9286e1d990b9e3be1b109ef5de841d2671840974 /sfx2
parentf1ea2290e66ac3cbb0d43e9e0727d421f29388eb (diff)
lok: Subcribe to more uno commands for state change
Change-Id: Id2870b176de4163fbe01e4ac380b4981d3187d90
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx19
1 files changed, 18 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 899fcd831b87..a2eaff9ebde0 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -986,7 +986,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"));
}