Skip to content

Commit

Permalink
Add missing renamedocument button
Browse files Browse the repository at this point in the history
The newly added button in 24ac74d was
only added to writer

Also add css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I630640d94884cb5e50559fbbd8298554deb0a651
  • Loading branch information
pedropintosilva committed Aug 23, 2023
1 parent 2693406 commit 6d7efe9
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 11 deletions.
11 changes: 11 additions & 0 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,17 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
'accessibility': { focusBack: true, combination: 'PR', de: null }
}
]
},
{
'type': 'container',
'children': [
{
'id': 'renamedocument',
'class': 'unoRenameDocument',
'type': 'bigcustomtoolitem',
'text': _('Rename'),
}
]
}
];

Expand Down
11 changes: 11 additions & 0 deletions browser/src/control/Control.NotebookbarDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,17 @@ L.Control.NotebookbarDraw = L.Control.NotebookbarImpress.extend({
'accessibility': { focusBack: true, combination: 'FP', de: null }
}
]
},
{
'type': 'container',
'children': [
{
'id': 'renamedocument',
'class': 'unoRenameDocument',
'type': 'bigcustomtoolitem',
'text': _('Rename'),
}
]
}
];

Expand Down
35 changes: 24 additions & 11 deletions browser/src/control/Control.NotebookbarImpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,30 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
});
}

content.push({
'type': 'container',
'children': [
{
'id': 'properties',
'type': 'bigtoolitem',
'text': _('Properties'),
'command': '.uno:SetDocumentProperties'
}
]
});
content.push(
{
'type': 'container',
'children': [
{
'id': 'properties',
'type': 'bigtoolitem',
'text': _('Properties'),
'command': '.uno:SetDocumentProperties'
}
]
},
{
'type': 'container',
'children': [
{
'id': 'renamedocument',
'class': 'unoRenameDocument',
'type': 'bigcustomtoolitem',
'text': _('Rename'),
}
]
}
);

return this.getTabPage('File', content);
},
Expand Down
1 change: 1 addition & 0 deletions browser/src/control/Control.NotebookbarWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
'children': [
{
'id': 'renamedocument',
'class': 'unoRenameDocument',
'type': 'bigcustomtoolitem',
'text': _('Rename'),
}
Expand Down

0 comments on commit 6d7efe9

Please sign in to comment.