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 89e5e1f
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 1 deletion.
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.
60 changes: 60 additions & 0 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1802,6 +1802,66 @@ 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'
},
// {
// 'type': 'container',
// 'children': [
// {
// 'type': 'toolbox',
// 'children': [
// {
// 'id': 'data-define-name',
// 'type': 'toolitem',
// 'text': _UNO('.uno:AddName', 'spreadsheet'),
// 'command': '.uno:AddName',
// 'accessibility': { focusBack: true, combination: 'DR', de: null }
// },
// ]
// },
// {
// 'type': 'toolbox',
// 'children': [
// {
// 'id': 'data-manage-name',
// 'type': 'toolitem',
// 'text': _UNO('.uno:DefineName', 'spreadsheet'),
// 'command': '.uno:DefineName',
// 'accessibility': { focusBack: true, combination: 'SR', de: null }
// }
// ]
// }
// ],
// 'vertical': 'true'
// },
];

return this.getTabPage('Data', content);
Expand Down
4 changes: 3 additions & 1 deletion 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 @@ -358,7 +359,7 @@ var unoCommandsArray = {
'ObjectAlignRight':{global:{menu:_('~Right'),},},
'ObjectBackOne':{global:{menu:_('Back One'),},},
'ObjectForwardOne':{global:{menu:_('Forward One'),},},
'ObjectTitleDescription':{global:{context:_('Add descriptions of non-text content (for accessibility)'),menu:_('Alt Text...'),},},
'ObjectTitleDescription':{global:{context:_('Add descriptions of non-text content (for accessibility)'),menu:_('Description...'),},},
'OnlineAutoFormat':{text:{menu:_('~While Typing'),},},
'OpenHyperlinkOnCursor':{global:{menu:_('Open Hyperlink'),},},
'OutlineBullet':{global:{menu:_('~Bullets and Numbering...'),},},
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 89e5e1f

Please sign in to comment.