summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-02-20 13:30:13 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-02-20 14:09:13 +0530
commit866582435fa8ea0a76ad08d07e7df3a344072c94 (patch)
tree27ee1250b3f0d500416bf9a5d0496dbf9a284b31
parent57d75ba3176063249e27524a7c7e425b3a2e75b4 (diff)
lok: listen for DeleteAnnotation state changes
Change-Id: I2ea0d237cbbfd912b012ed400a328bfb6546cdfb
-rw-r--r--desktop/source/lib/init.cxx1
-rw-r--r--sfx2/source/control/unoctitm.cxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index c11e16192a28..ae63d498a2c0 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1395,6 +1395,7 @@ static void doc_iniUnoCommands ()
OUString(".uno:Paste"),
OUString(".uno:SelectAll"),
OUString(".uno:InsertAnnotation"),
+ OUString(".uno:DeleteAnnotation"),
OUString(".uno:ReplyComment"),
OUString(".uno:InsertRowsBefore"),
OUString(".uno:InsertRowsAfter"),
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index 9eca383e71a4..a34c140a9313 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1039,6 +1039,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c
aEvent.FeatureURL.Path == "Paste" ||
aEvent.FeatureURL.Path == "SelectAll" ||
aEvent.FeatureURL.Path == "InsertAnnotation" ||
+ aEvent.FeatureURL.Path == "DeleteAnnotation" ||
aEvent.FeatureURL.Path == "InsertRowsBefore" ||
aEvent.FeatureURL.Path == "InsertRowsAfter" ||
aEvent.FeatureURL.Path == "InsertColumnsBefore" ||