diff --git a/browser/images/dark/lc_dataarearefresh.svg b/browser/images/dark/lc_dataarearefresh.svg new file mode 100644 index 000000000000..41dbc8b4ad53 --- /dev/null +++ b/browser/images/dark/lc_dataarearefresh.svg @@ -0,0 +1 @@ + diff --git a/browser/images/dark/lc_selectdb.svg b/browser/images/dark/lc_selectdb.svg new file mode 100644 index 000000000000..974cc9c3bcc3 --- /dev/null +++ b/browser/images/dark/lc_selectdb.svg @@ -0,0 +1 @@ + diff --git a/browser/images/lc_dataarearefresh.svg b/browser/images/lc_dataarearefresh.svg new file mode 100644 index 000000000000..ef1280b4d90c --- /dev/null +++ b/browser/images/lc_dataarearefresh.svg @@ -0,0 +1 @@ + diff --git a/browser/images/lc_selectdb.svg b/browser/images/lc_selectdb.svg new file mode 100644 index 000000000000..e1e71f27abcb --- /dev/null +++ b/browser/images/lc_selectdb.svg @@ -0,0 +1 @@ + diff --git a/browser/src/control/Control.NotebookbarCalc.js b/browser/src/control/Control.NotebookbarCalc.js index 710189ead354..90fde26116ce 100644 --- a/browser/src/control/Control.NotebookbarCalc.js +++ b/browser/src/control/Control.NotebookbarCalc.js @@ -1802,6 +1802,36 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({ 'command': '.uno:DefineDBName', 'accessibility': { focusBack: true, combination: 'DR', de: null } }, + { + 'type': 'container', + 'children': [ + { + 'type': 'toolbox', + 'children': [ + { + 'id': 'data-select-range', + 'type': 'toolitem', + 'text': _UNO('.uno:SelectDB', 'spreadsheet'), + 'command': '.uno:SelectDB', + 'accessibility': { focusBack: true, combination: 'SR', de: null } + } + ] + }, + { + 'type': 'toolbox', + 'children': [ + { + 'id': 'data-refresh-range', + 'type': 'toolitem', + 'text': _UNO('.uno:DataAreaRefresh', 'spreadsheet'), + 'command': '.uno:DataAreaRefresh', + 'accessibility': { focusBack: true, combination: 'DE', de: null } + }, + ] + }, + ], + 'vertical': 'true' + }, ]; return this.getTabPage('Data', content); diff --git a/browser/src/unocommands.js b/browser/src/unocommands.js index fd6b25537757..1a367b5f412c 100644 --- a/browser/src/unocommands.js +++ b/browser/src/unocommands.js @@ -74,6 +74,7 @@ var unoCommandsArray = { 'CovarianceDialog':{spreadsheet:{menu:_('~Covariance...'),},}, 'CustomAnimation':{presentation:{menu:_('Animation'),},}, 'Cut':{global:{menu:_('~Cut'),},}, + 'DataAreaRefresh':{spreadsheet:{menu:_('R~efresh Range'),},}, 'DataBarFormatDialog':{spreadsheet:{menu:_('Data Bar...'),},}, 'DataDataPilotRun':{spreadsheet:{context:_('~Properties...'),menu:_('Pi~vot Table...'),},}, 'DataFilterAutoFilter':{spreadsheet:{menu:_('Auto~Filter'),},}, @@ -412,6 +413,7 @@ var unoCommandsArray = { 'SearchDialog':{global:{menu:_('Find and Rep~lace...'),},}, 'SelectAll':{global:{menu:_('Select ~All'),},}, 'SelectBackground':{presentation:{menu:_('Set Background Image...'),},}, + 'SelectDB':{spreadsheet:{menu:_('Select ~Range...'),},}, 'SelectTable':{presentation:{context:_('Select Table'),menu:_('~Select Table'),},text:{context:_('Select Table'),menu:_('~Table'),},}, 'SendToBack':{global:{menu:_('~Send to Back'),},}, 'SetAnchorAtChar':{text:{menu:_('To ~Character'),},},