include/svx/svxids.hrc |   10 +++++-----
 sw/inc/cmdid.h         |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 70c8e6abc0a4ed4a2c7a948ee206ba9d4cffd22b
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Apr 25 12:39:22 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Apr 25 13:47:42 2022 +0200

    sw: make it easier to look up an uno command from a slot id
    
    This way if I see a slot id 20456, then searching with
    
            git grep define.*20400 include/ */inc
    
    finds FN_FORMAT, and searching with
    
            git grep FN_FORMAT.*56 include/ */inc
    
    finds FN_FORMAT_FRAME_DLG.
    
    Change-Id: Ibda8b131f73c81221569618cda33e52b03448feb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133374
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/include/svx/svxids.hrc b/include/svx/svxids.hrc
index 4f4c07f2e2d5..d50be073c40d 100644
--- a/include/svx/svxids.hrc
+++ b/include/svx/svxids.hrc
@@ -174,7 +174,7 @@ class XFillGradientItem;
 
 // Writer IDs
 
-#define FN_EDIT                 (SID_SW_START +  100)
+#define FN_EDIT                 (SID_SW_START +  100) // 20100
 #define FN_NUM_BULLET_OFF       (FN_EDIT + 37)  // numbering off
 #define FN_NUM_BULLET_ON        (FN_EDIT + 38)  // numbering with bullets on
 #define FN_NUM_NUMBERING_ON     (FN_EDIT + 44)  // numbering on
@@ -182,7 +182,7 @@ class XFillGradientItem;
 #define FN_NUM_NUM_RULE_INDEX   (FN_EDIT + 121)
 #define FN_OUTLINE_RULE_INDEX   (FN_EDIT + 122)
 
-#define FN_INSERT               (SID_SW_START +  300)
+#define FN_INSERT               (SID_SW_START +  300) // 20300
 #define FN_DELETE_BOOKMARK      (FN_INSERT + 1)
 #define FN_INSERT_BREAK         (FN_INSERT + 3)
 #define FN_INSERT_SOFT_HYPHEN   (FN_INSERT + 43)    /* optional hyphen */
@@ -191,12 +191,12 @@ class XFillGradientItem;
 #define FN_INSERT_HARDHYPHEN    (FN_INSERT + 85)    /* hyphen without break*/
 
 //!! be aware to not overwrite something that is used in sw/inc/cmdid.h 
already !!
-#define FN_FORMAT               (SID_SW_START +  400)
+#define FN_FORMAT               (SID_SW_START +  400) // 20400
 #define FN_FORMAT_RESET         (FN_FORMAT + 69)
 
-#define FN_EXTRA                (SID_SW_START +  600)
+#define FN_EXTRA                (SID_SW_START +  600) // 20600
 
-#define FN_SELECTION            (SID_SW_START +  900)
+#define FN_SELECTION            (SID_SW_START +  900) // 20900
 #define FN_END_OF_DOCUMENT      (FN_SELECTION +  8)
 #define FN_START_DOC_DIRECT     (FN_SELECTION + 78)
 #define FN_END_DOC_DIRECT       (FN_SELECTION + 79)
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index df1321bb00e9..29adc6a580d6 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -33,7 +33,7 @@ class SwUINumRuleItem;
 
 #define FN_FILE                 SID_SW_START
 //#define FN_EDIT                 (SID_SW_START +  100) defined in svxids.hrc
-#define FN_VIEW                 (SID_SW_START +  200)
+#define FN_VIEW                 (SID_SW_START +  200) // 20200
 //#define FN_INSERT               (SID_SW_START +  300) defined in svxids.hrc
 //#define FN_FORMAT               (SID_SW_START +  400) defined in svxids.hrc
 //#define FN_EXTRA                (SID_SW_START +  600) defined in svxids.hrc

Reply via email to