diff options
author | Jim Raykowski <raykowj@gmail.com> | 2020-01-20 21:58:54 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2020-02-01 20:24:37 +0100 |
commit | dfd027342e6b4107ebd3369de96ef2be3883724d (patch) | |
tree | f736da5581bf198bdd7d7331acba14ab249bcc01 /sw/inc | |
parent | 69e0d871ec1de2260f9213d3113464155eac173c (diff) |
tdf#128814 Navigator content context menu related
Adds Select menu item to Chapter, Table, and Section content context
menus to make document selection of content. Document selection made for
collapsed chapters includes all sub chapters. Multi chapter selections
can be made from the headings content navigation view.
Reworks chapter delete to follow chapter selection behavior.
Adds accelerator keys to context menu items Delete and Chapter/Level
Promote/Demote.
Makes chapter delete undo/redo entries show as 'Delete chapter' or
'Delete chapters' depending on single or multiselected chapter delete.
Renames 'Select Chapter' and 'Delete Chapter' menu items to 'Select' and
'Delete'.
Reworks an assert so as not to assert fail when delete key is pressed on
content type entry
Change-Id: I68c725bbf5c6d561615cf10a0a75d4284b698ace
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87168
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/crsrsh.hxx | 4 | ||||
-rw-r--r-- | sw/inc/strings.hrc | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index daf784a4c86a..5c5b71b8b8b8 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -617,8 +617,8 @@ public: SwOutlineNodes::size_type GetOutlinePos( sal_uInt8 nLevel = UCHAR_MAX ); // select the given range of OutlineNodes. Optionally including the children // the sal_uInt16s are the positions in OutlineNodes-Array (EditShell) - bool MakeOutlineSel( SwOutlineNodes::size_type nSttPos, SwOutlineNodes::size_type nEndPos, - bool bWithChildren ); + bool MakeOutlineSel(SwOutlineNodes::size_type nSttPos, SwOutlineNodes::size_type nEndPos, + bool bWithChildren, bool bKillPams = true ); bool GotoNextOutline(); bool GotoPrevOutline(); diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 1193d78f9823..fbb64babe662 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -550,6 +550,8 @@ #define STR_GRAPHIC NC_("STR_GRAPHIC", "image") #define STR_DRAWING_OBJECTS NC_("STR_DRAWING_OBJECTS", "drawing object(s)") #define STR_TABLE_NAME NC_("STR_TABLE_NAME", "table: $1$2$3") +#define STR_CHAPTER_NAME NC_("STR_CHAPTER_NAME", "chapter") +#define STR_CHAPTERS_NAME NC_("STR_CHAPTERS_NAME", "chapters") #define STR_PARAGRAPH_UNDO NC_("STR_PARAGRAPH_UNDO", "paragraph") #define STR_PARAGRAPH_SIGN_UNDO NC_("STR_PARAGRAPH_SIGN_UNDO", "Paragraph sign") #define STR_UNDO_FLYFRMFMT_TITLE NC_("STR_UNDO_FLYFRMFMT_TITLE", "Change object title of $1") @@ -641,7 +643,7 @@ #define STR_OUTLINE_LEVEL NC_("STR_OUTLINE_LEVEL", "Outline Level") #define STR_DRAGMODE NC_("STR_DRAGMODE", "Drag Mode") #define STR_SEND_OUTLINE_TO_CLIPBOARD_ENTRY NC_("STR_SEND_OUTLINE_TO_CLIPBOARD_ENTRY", "Send Outline to Clipboard") -#define STR_DELETE_CHAPTER NC_("STR_DELETE_CHAPTER", "Delete Chapter") +#define STR_SELECT NC_("STR_SELECT", "Select") #define STR_DEMOTE_CHAPTER NC_("STR_DEMOTE_CHAPTER", "Demote Chapter") #define STR_PROMOTE_CHAPTER NC_("STR_PROMOTE_CHAPTER", "Promote Chapter") #define STR_DEMOTE_LEVEL NC_("STR_DEMOTE_LEVEL", "Demote Level") |