summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-10 10:28:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-10 12:19:50 +0200
commit367fedcc4456a74cb2fc29a28279bef314bd47ff (patch)
treea63115d6cfa2b2a2e3c2c4d3a55f623e7ecfd6d5 /sw/inc
parent183b0b0b6038ec1fafb9f65024a846c90493a873 (diff)
loplugin:unusedenumconstants
Change-Id: I54c0c1fca8ea5c89e71c6cd1110fad081ed3d334 Reviewed-on: https://gerrit.libreoffice.org/40953 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/strings.hrc5
-rw-r--r--sw/inc/swundo.hxx53
2 files changed, 21 insertions, 37 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 18b0dadd0c72..bbd31e3318f5 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -401,7 +401,6 @@
#define STR_REPLACE_UNDO NC_("STR_REPLACE_UNDO", "Replace $1 $2 $3")
#define STR_INSERT_PAGE_BREAK_UNDO NC_("STR_INSERT_PAGE_BREAK_UNDO", "Insert page break")
#define STR_INSERT_COLUMN_BREAK_UNDO NC_("STR_INSERT_COLUMN_BREAK_UNDO", "Insert column break")
-#define STR_PLAY_MACRO_UNDO NC_("STR_PLAY_MACRO_UNDO", "Run macro")
#define STR_INSERT_ENV_UNDO NC_("STR_INSERT_ENV_UNDO", "Insert Envelope")
#define STR_DRAG_AND_COPY NC_("STR_DRAG_AND_COPY", "Copy: $1")
#define STR_DRAG_AND_MOVE NC_("STR_DRAG_AND_MOVE", "Move: $1")
@@ -414,7 +413,6 @@
#define STR_INSERTSECTION NC_("STR_INSERTSECTION", "Insert section")
#define STR_DELETESECTION NC_("STR_DELETESECTION", "Delete section")
#define STR_CHANGESECTION NC_("STR_CHANGESECTION", "Modify section")
-#define STR_CHANGESECTPASSWD NC_("STR_CHANGESECTPASSWD", "Change password protection")
#define STR_CHANGEDEFATTR NC_("STR_CHANGEDEFATTR", "Modify default values")
#define STR_REPLACE_STYLE NC_("STR_REPLACE_STYLE", "Replace style: $1 $2 $3")
#define STR_DELETE_PAGE_BREAK NC_("STR_DELETE_PAGE_BREAK", "Delete page break")
@@ -446,7 +444,6 @@
#define STR_DRAWDELETE NC_("STR_DRAWDELETE", "Delete drawing objects")
#define STR_REREAD NC_("STR_REREAD", "Replace Image")
#define STR_DELGRF NC_("STR_DELGRF", "Delete Image")
-#define STR_DELOLE NC_("STR_DELOLE", "Delete object")
#define STR_TABLE_ATTR NC_("STR_TABLE_ATTR", "Apply table attributes")
#define STR_UNDO_TABLE_AUTOFMT NC_("STR_UNDO_TABLE_AUTOFMT", "AutoFormat Table")
#define STR_UNDO_TABLE_INSCOL NC_("STR_UNDO_TABLE_INSCOL", "Insert Column")
@@ -465,11 +462,9 @@
#define STR_UNDO_CHAIN NC_("STR_UNDO_CHAIN", "Link text frames")
#define STR_UNDO_UNCHAIN NC_("STR_UNDO_UNCHAIN", "Unlink text frames")
#define STR_UNDO_FTNINFO NC_("STR_UNDO_FTNINFO", "Modify footnote options")
-#define STR_UNDO_ENDNOTEINFO NC_("STR_UNDO_ENDNOTEINFO", "Modify endnote settings")
#define STR_UNDO_COMPAREDOC NC_("STR_UNDO_COMPAREDOC", "Compare Document")
#define STR_UNDO_SETFLYFRMFMT NC_("STR_UNDO_SETFLYFRMFMT", "Apply frame style: $1")
#define STR_UNDO_SETRUBYATTR NC_("STR_UNDO_SETRUBYATTR", "Ruby Setting")
-#define STR_UNDO_TMPAUTOCORR NC_("STR_UNDO_TMPAUTOCORR", "AutoCorrect")
#define STR_INSERT_FOOTNOTE NC_("STR_INSERT_FOOTNOTE", "Insert footnote")
#define STR_INSERT_URLBTN NC_("STR_INSERT_URLBTN", "insert URL button")
#define STR_INSERT_URLTXT NC_("STR_INSERT_URLTXT", "Insert Hyperlink")
diff --git a/sw/inc/swundo.hxx b/sw/inc/swundo.hxx
index 54fc7225a6b1..c393554f0614 100644
--- a/sw/inc/swundo.hxx
+++ b/sw/inc/swundo.hxx
@@ -74,12 +74,7 @@ enum class SwUndoId
TRANSLITERATE, // 39
PASTE_CLIPBOARD, // 40
TYPING, // 41
- REPEAT_DUMMY_6, // 42
- REPEAT_DUMMY_7, // 43
- REPEAT_DUMMY_8, // 44
- REPEAT_DUMMY_9, // 45
-
- REPEAT_END,
+ REPEAT_END = 46,
MOVE = REPEAT_END, // 46
INSGLOSSARY, // 47
@@ -91,8 +86,7 @@ enum class SwUndoId
REPLACE, // 53
DELSECTION, // 54
CHGSECTION, // 55
- CHGSECTIONPASSWD, // 56
- SETDEFTATTR, // 57
+ SETDEFTATTR = 57, // 57
DELNUM, // 58
DRAWUNDO, // 59
DRAWGROUP, // 60
@@ -100,8 +94,7 @@ enum class SwUndoId
DRAWDELETE, // 62
REREAD, // 63
DELGRF, // 64
- DELOLE, // 65
- TABLE_ATTR, // 66
+ TABLE_ATTR = 66, // 66
TABLE_AUTOFMT, // 67
TABLE_INSCOL, // 68
TABLE_INSROW, // 69
@@ -117,12 +110,10 @@ enum class SwUndoId
CHAINE, // 79
UNCHAIN, // 80
FTNINFO, // 81
- ENDNOTEINFO, // 82
- COMPAREDOC, // 83
+ COMPAREDOC = 83, // 83
SETFLYFRMFMT, // 84
SETRUBYATTR, // 85
- TMPAUTOCORR, // 86
- TOXCHANGE, // 87
+ TOXCHANGE = 87, // 87
CREATE_PAGEDESC, // 88
CHANGE_PAGEDESC, // 89
DELETE_PAGEDESC, // 90
@@ -154,26 +145,24 @@ enum class SwUndoId
TBLSTYLE_DELETE, // 115
TBLSTYLE_UPDATE, // 116
PARA_SIGN_ADD, // 117
- STD_END = PARA_SIGN_ADD,
// UI undo ID's...
- UI_REPLACE = STD_END + 1,
- UI_INSERT_PAGE_BREAK,
- UI_INSERT_COLUMN_BREAK,
- UI_PLAY_MACRO,
- UI_INSERT_ENVELOPE,
- UI_DRAG_AND_COPY,
- UI_DRAG_AND_MOVE,
- UI_INSERT_CHART,
- UI_INSERT_FOOTNOTE,
- UI_INSERT_URLBTN,
- UI_INSERT_URLTXT,
- UI_DELETE_INVISIBLECNTNT,
- UI_REPLACE_STYLE,
- UI_DELETE_PAGE_BREAK,
- UI_TEXT_CORRECTION,
- UI_TABLE_DELETE,
- CONFLICT
+ UI_REPLACE, // 118
+ UI_INSERT_PAGE_BREAK, // 119
+ UI_INSERT_COLUMN_BREAK, // 120
+ UI_INSERT_ENVELOPE = 122, // 122
+ UI_DRAG_AND_COPY, // 123
+ UI_DRAG_AND_MOVE, // 124
+ UI_INSERT_CHART, // 125
+ UI_INSERT_FOOTNOTE, // 126
+ UI_INSERT_URLBTN, // 127
+ UI_INSERT_URLTXT, // 128
+ UI_DELETE_INVISIBLECNTNT, // 129
+ UI_REPLACE_STYLE, // 130
+ UI_DELETE_PAGE_BREAK, // 131
+ UI_TEXT_CORRECTION, // 132
+ UI_TABLE_DELETE, // 133
+ CONFLICT // 134
};
OUString GetUndoComment(SwUndoId eId);