Skip to content

Commit

Permalink
calc: add support for .uno:ConvertFormulaToValue command
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Raiyani <[email protected]>
Change-Id: Ia2f48eca778c396ae1fa17afe2d92d9631aadad5
  • Loading branch information
rparth07 authored and Darshan-upadhyay1110 committed Aug 10, 2024
1 parent ed4edcc commit 15c0198
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
1 change: 1 addition & 0 deletions browser/src/control/Control.Menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ L.Control.Menubar = L.Control.extend({
{uno: '.uno:SortDescending'},
{uno: '.uno:Validation'},
{uno: '.uno:Calculate'},
{uno: '.uno:ConvertFormulaToValue'},
{type: 'separator'},
{uno: '.uno:DataFilterAutoFilter'},
{name: _UNO('.uno:FilterMenu', 'spreadsheet'), type: 'menu', menu: [
Expand Down
34 changes: 29 additions & 5 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1735,11 +1735,35 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
'vertical': 'true'
},
{
'id': 'data-calculate',
'type': 'bigtoolitem',
'text': _UNO('.uno:Calculate', 'spreadsheet'),
'command': '.uno:Calculate',
'accessibility': { focusBack: true, combination: 'R', de: null }
'type': 'container',
'children': [
{
'type': 'toolbox',
'children': [
{
'id': 'data-calculate',
'type': 'toolitem',
'text': _UNO('.uno:Calculate', 'spreadsheet'),
'command': '.uno:Calculate',
'accessibility': { focusBack: true, combination: 'R', de: null }
}
]
},
{
'type': 'toolbox',
'children': [
{
'id': 'data-convert-formula-to-value',
'type': 'toolitem',
'text': _UNO('.uno:ConvertFormulaToValue', 'spreadsheet'),
'command': '.uno:ConvertFormulaToValue',
'image': false,
'accessibility': { focusBack: true, combination: 'R', de: null }
}
]
}
],
'vertical': 'true'
},
{
'type': 'container',
Expand Down
1 change: 1 addition & 0 deletions browser/src/unocommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ var unoCommandsArray = {
'ContinueNumbering':{text:{menu:_('~Add to List'),},},
'ContourDialog':{global:{menu:_('~Edit Contour...'),},},
'ControlCodes':{text:{context:_('Toggle Formatting Marks'),menu:_('For~matting Marks'),},},
'ConvertFormulaToValue':{spreadsheet:{menu:_('Formula to Value'),},},
'ConvertMenu':{presentation:{menu:_('~Convert'),},},
'Copy':{global:{menu:_('Cop~y'),},},
'CopyHyperlinkLocation':{global:{menu:_('Copy Hyperlink Location'),},},
Expand Down

0 comments on commit 15c0198

Please sign in to comment.