Skip to content

Commit

Permalink
calc: expose "Select Range" and "Refresh Range" buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Rashesh <[email protected]>
Change-Id: I5e533b7bd128fea77df702c68a0c22d77b2bf432
  • Loading branch information
Rash419 committed Sep 2, 2024
1 parent b490637 commit bd0865d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/images/dark/lc_dataarearefresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions browser/images/dark/lc_selectdb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions browser/images/lc_dataarearefresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions browser/images/lc_selectdb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions browser/src/unocommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),},},
Expand Down Expand Up @@ -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'),},},
Expand Down

0 comments on commit bd0865d

Please sign in to comment.