summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorRavindra_Vidhate <ravindra.vidhate@synerzip.com>2015-05-12 14:17:06 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-05-12 10:12:06 +0000
commitd2ef03ce0b9295034f9078bc04acbf4cfc939ef6 (patch)
treeef3eedc44f927648a4eef7c30cb30196eff54be8 /include/svx
parent2b5915da481990fd6ea272104215d82b6fbf5dbb (diff)
tdf#84153: "Edit Comment" in context menu when a cell has a comment
Problem Description : 1. When a cell doesn't has comment, the contextual menu shows menu item "Insert Comment". 2. Also when the cell has the comment, the contextual menu shows following menu items "Insert Comment" "Delete Comment" "Show Comment" In the second case mentioned above, the contextual menu should show the menu item "Edit Comment" instead of "Insert Comment" XML difference: None After RT : None Solution : In this patch, a new menu item "Edit Comment" have been added. So at the time of the display it checks whether cell has comment associated with it. If comments are present for cell, it will display "Edit Comment" in the contextual menu otherwise "Insert Comment" will be displayed. TODO: Writing a UT seems to be tricky for this change. Need to analyze and will raise the UT in separate CL. Change-Id: Ie0499d02157c4fd18894c5f203c363f64659f3b3 Reviewed-on: https://gerrit.libreoffice.org/15713 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svxcommands.h1
-rw-r--r--include/svx/svxids.hrc4
2 files changed, 4 insertions, 1 deletions
diff --git a/include/svx/svxcommands.h b/include/svx/svxcommands.h
index 6516bc89cabd..df3ddee75c4a 100644
--- a/include/svx/svxcommands.h
+++ b/include/svx/svxcommands.h
@@ -82,6 +82,7 @@
#define CMD_SID_GRID_USE ".uno:GridUse"
#define CMD_SID_GRID_VISIBLE ".uno:GridVisible"
#define CMD_SID_INSERT_POSTIT ".uno:InsertAnnotation"
+#define CMD_SID_EDIT_POSTIT ".uno:InsertAnnotation"
#define CMD_SID_REPLYTO_POSTIT ".uno:ReplyToAnnotation"
#define CMD_SID_RULER ".uno:ShowRuler"
#define CMD_SID_DELETE_POSTIT ".uno:DeleteAnnotation"
diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index 274cf9a7450a..ed45af082a20 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -1008,8 +1008,10 @@
#define SID_OBJECT_CROP ( SID_SVX_START + 1147 )
+#define SID_EDIT_POSTIT ( SID_SVX_START + 1148 )
+
// IMPORTANT NOTE: adjust SID_SVX_FIRSTFREE, when adding new slot id
-#define SID_SVX_FIRSTFREE ( SID_OBJECT_CROP + 1 )
+#define SID_SVX_FIRSTFREE (SID_EDIT_POSTIT + 1)
// Overflow check for slot IDs