diff --git a/browser/images/lc_namegroup.svg b/browser/images/lc_namegroup.svg new file mode 100644 index 0000000000..59eca149e3 --- /dev/null +++ b/browser/images/lc_namegroup.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/browser/images/lc_objecttitledescription.svg b/browser/images/lc_objecttitledescription.svg new file mode 100644 index 0000000000..59eca149e3 --- /dev/null +++ b/browser/images/lc_objecttitledescription.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/browser/src/control/Control.Menubar.js b/browser/src/control/Control.Menubar.js index daa989bb1b..94058ff12c 100644 --- a/browser/src/control/Control.Menubar.js +++ b/browser/src/control/Control.Menubar.js @@ -286,7 +286,9 @@ L.Control.Menubar = L.Control.extend({ {type: 'separator'}, {uno: '.uno:TransformDialog'}, {uno: '.uno:FormatLine'}, - {uno: '.uno:FormatArea'} + {uno: '.uno:FormatArea'}, + {uno: '.uno:NameGroup'}, + {uno: '.uno:ObjectTitleDescription'}, ]}, {name: _('References'), id: 'references', type: 'menu', menu: [ {name: _UNO('.uno:IndexesMenu', 'text'), uno: '.uno:InsertMultiIndex'}, @@ -483,6 +485,8 @@ L.Control.Menubar = L.Control.extend({ {uno: '.uno:TransformDialog'}, {uno: '.uno:FormatLine'}, {uno: '.uno:FormatArea'}, + {uno: '.uno:NameGroup'}, + {uno: '.uno:ObjectTitleDescription'}, {type: 'separator'}, {uno: '.uno:OutlineBullet'}, {uno: '.uno:ThemeDialog'}] @@ -619,6 +623,8 @@ L.Control.Menubar = L.Control.extend({ {uno: '.uno:TransformDialog'}, {uno: '.uno:FormatLine'}, {uno: '.uno:FormatArea'}, + {uno: '.uno:NameGroup'}, + {uno: '.uno:ObjectTitleDescription'}, {type: 'separator'}, {uno: '.uno:OutlineBullet'}, {uno: '.uno:ThemeDialog'}] diff --git a/browser/src/control/Control.NotebookbarDraw.js b/browser/src/control/Control.NotebookbarDraw.js index f539b3306e..fa434f5852 100644 --- a/browser/src/control/Control.NotebookbarDraw.js +++ b/browser/src/control/Control.NotebookbarDraw.js @@ -1472,6 +1472,35 @@ L.Control.NotebookbarDraw = L.Control.NotebookbarImpress.extend({ 'command': '.uno:TransformDialog', 'accessibility': { focusBack: true, combination: 'TD', de: null } }, + { + 'id': 'format-name-description', + 'type': 'container', + 'children': [ + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:NameGroup', 'text'), + 'command': '.uno:NameGroup', + 'accessibility': { focusBack: false, combination: 'NG', de: null } + } + ] + }, + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:ObjectTitleDescription', 'text'), + 'command': '.uno:ObjectTitleDescription', + 'accessibility': { focusBack: false, combination: 'DS', de: null } + } + ] + } + ], + 'vertical': 'true' + }, { 'id': 'format-theme-dialog', 'type': 'bigtoolitem', diff --git a/browser/src/control/Control.NotebookbarImpress.js b/browser/src/control/Control.NotebookbarImpress.js index a68c7ead9c..82c00dee13 100644 --- a/browser/src/control/Control.NotebookbarImpress.js +++ b/browser/src/control/Control.NotebookbarImpress.js @@ -1067,6 +1067,35 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({ 'command': '.uno:TransformDialog', 'accessibility': { focusBack: true, combination: 'TD', de: null } }, + { + 'id': 'format-name-description', + 'type': 'container', + 'children': [ + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:NameGroup', 'text'), + 'command': '.uno:NameGroup', + 'accessibility': { focusBack: false, combination: 'NG', de: null } + } + ] + }, + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:ObjectTitleDescription', 'text'), + 'command': '.uno:ObjectTitleDescription', + 'accessibility': { focusBack: false, combination: 'DS', de: null } + } + ] + } + ], + 'vertical': 'true' + }, { 'id': 'format-theme-dialog', 'type': 'bigtoolitem', diff --git a/browser/src/control/Control.NotebookbarWriter.js b/browser/src/control/Control.NotebookbarWriter.js index 03a663850d..8dc70f6d8d 100644 --- a/browser/src/control/Control.NotebookbarWriter.js +++ b/browser/src/control/Control.NotebookbarWriter.js @@ -943,6 +943,35 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({ 'command': '.uno:ChapterNumberingDialog', 'accessibility': { focusBack: false, combination: 'I', de: null } }, + { + 'id': 'format-name-description', + 'type': 'container', + 'children': [ + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:NameGroup', 'text'), + 'command': '.uno:NameGroup', + 'accessibility': { focusBack: false, combination: 'NG', de: null } + } + ] + }, + { + 'type': 'toolbox', + 'children': [ + { + 'type': 'toolitem', + 'text': _UNO('.uno:ObjectTitleDescription', 'text'), + 'command': '.uno:ObjectTitleDescription', + 'accessibility': { focusBack: false, combination: 'DS', de: null } + } + ] + } + ], + 'vertical': 'true' + }, { 'id': 'format-theme-dialog', 'type': 'bigtoolitem', diff --git a/browser/src/unocommands.js b/browser/src/unocommands.js index 01d7058280..b9b077dafa 100644 --- a/browser/src/unocommands.js +++ b/browser/src/unocommands.js @@ -326,6 +326,7 @@ var unoCommandsArray = { 'MoveUp':{text:{menu:_('Move Item Up'),},}, 'MoveUpSubItems':{text:{menu:_('Move Item Up with Subpoints'),},}, 'MovingAverageDialog':{spreadsheet:{menu:_('~Moving Average...'),},}, + 'NameGroup':{global:{menu:_('Name...'),},}, 'NamesMenu':{spreadsheet:{menu:_('~Named Ranges and Expressions'),},}, 'Navigator':{global:{context:_('Show Navigator Window'),menu:_('Na~vigator'),},}, 'NextTrackedChange':{text:{context:_('Next Track Change'),menu:_('Next'),},}, @@ -345,6 +346,7 @@ var unoCommandsArray = { 'ObjectAlignRight':{global:{menu:_('~Right'),},}, 'ObjectBackOne':{global:{menu:_('Back One'),},}, 'ObjectForwardOne':{global:{menu:_('Forward One'),},}, + 'ObjectTitleDescription':{global:{menu:_('Description...'),},}, 'OnlineAutoFormat':{text:{menu:_('~While Typing'),},}, 'OpenHyperlinkOnCursor':{global:{menu:_('Open Hyperlink'),},}, 'OutlineBullet':{global:{menu:_('~Bullets and Numbering...'),},},