From 866582435fa8ea0a76ad08d07e7df3a344072c94 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 20 Feb 2017 13:30:13 +0530 Subject: lok: listen for DeleteAnnotation state changes Change-Id: I2ea0d237cbbfd912b012ed400a328bfb6546cdfb --- desktop/source/lib/init.cxx | 1 + sfx2/source/control/unoctitm.cxx | 1 + 2 files changed, 2 insertions(+) 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" || -- cgit