Skip to content

Commit 9c47306

Browse files
committed
Notebookbar: Impress: add a button to insert canvas slide & reshuffle
pages Signed-off-by: Mohit Marathe <[email protected]> Change-Id: I82120479cf599f9058a6151cda0827ea12c8d777
1 parent f387edf commit 9c47306

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

browser/src/control/Control.NotebookbarImpress.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,7 @@ window.L.Control.NotebookbarImpress = window.L.Control.NotebookbarWriter.extend(
13041304
},
13051305

13061306
getFormatTab: function() {
1307+
const isODF = app.LOUtil.isFileODF(this.map);
13071308
var content = [
13081309
{
13091310
'type': 'overflowgroup',
@@ -1397,12 +1398,22 @@ window.L.Control.NotebookbarImpress = window.L.Control.NotebookbarWriter.extend(
13971398
],
13981399
'vertical': 'true'
13991400
},
1401+
{ type: 'separator', id: 'format-namedescription-break', orientation: 'vertical', 'visible': isODF && app.isExperimentalMode() },
1402+
{
1403+
'id': 'format-shuffle-pages',
1404+
'type': 'bigtoolitem',
1405+
'text': _UNO('.uno:ReshufflePages'),
1406+
'command': '.uno:ReshufflePages',
1407+
'visible': isODF && app.isExperimentalMode(),
1408+
'accessibility': { focusBack: true, combination: 'RP', de: null }
1409+
},
14001410
];
14011411

14021412
return this.getTabPage('Format', content);
14031413
},
14041414

14051415
getInsertTab: function() {
1416+
const isODF = app.LOUtil.isFileODF(this.map);
14061417
var content = [
14071418
{
14081419
'type': 'overflowgroup',
@@ -1446,6 +1457,14 @@ window.L.Control.NotebookbarImpress = window.L.Control.NotebookbarWriter.extend(
14461457
}
14471458
],
14481459
'vertical': 'true'
1460+
},
1461+
{
1462+
'id': 'insert-canvas-slide',
1463+
'type': 'bigtoolitem',
1464+
'text': _UNO('.uno:InsertCanvasSlide', 'presentation'),
1465+
'command': '.uno:InsertCanvasSlide',
1466+
'visible': isODF && app.isExperimentalMode(),
1467+
'accessibility': { focusBack: true, combination: 'CS', de: null }
14491468
}
14501469
]
14511470
},

browser/src/unocommands.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ var unoCommandsArray = {
373373
'InsertAxisTitle':{global:{menu:_('Insert Axis Title'),},},
374374
'InsertBookmark':{text:{context:_('Insert Bookmark'),menu:_('Bookmar~k...'),},},
375375
'InsertBreak':{text:{menu:_('Manual ~Break...'),},},
376+
'InsertCanvasSlide':{presentation:{menu:_('New Canvas Slide'),},},
376377
'InsertCaptionDialog':{text:{context:_('Insert Caption...'),menu:_('Caption...'),},},
377378
'InsertCell':{spreadsheet:{context:_('~Insert...'),menu:_('Insert ~Cells...'),},},
378379
'InsertColumnBreak':{spreadsheet:{menu:_('~Column Break'),},text:{menu:_('Insert Column Break'),},},
@@ -531,6 +532,7 @@ var unoCommandsArray = {
531532
'ResetAllDataPoints':{global:{menu:_('Reset all Data Points'),},},
532533
'ResetAttributes':{global:{context:_('Clear Direct Formatting'),menu:_('~Clear Direct Formatting'),},spreadsheet:{context:_('Clear Direct Formatting'),menu:_('Clear ~Direct Formatting'),},text:{context:_('Clear Direct Formatting'),menu:_('Clear ~Direct Formatting'),},},
533534
'ResetDataPoint':{global:{menu:_('Reset Data Point'),},},
535+
'ReshufflePages':{presentation:{menu:_('Re-order pages'),},},
534536
'RightPara':{global:{context:_('Align Right'),menu:_('Right'),},},
535537
'RotateLeft':{text:{menu:_('Rotate 90° ~Left'),},},
536538
'RotateMenu':{global:{menu:_('Rot~ate'),},},

0 commit comments

Comments
 (0)