Skip to content

Commit

Permalink
feat: add assistant button to calc, draw, impress
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
Change-Id: I72e73874f9d5d98ca2659a3bb50167ed7dde5e17
  • Loading branch information
elzody committed Jan 6, 2025
1 parent 19439fe commit cbb038b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions browser/src/control/Control.NotebookbarCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,14 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
'command': 'remotelink',
'accessibility': { focusBack: true, combination: 'LR', de: null }
} : {},
(this._map['wopi'].EnableRemoteAIContent) ? {
'id': 'insert-insert-remote-ai-content',
'class': 'unoremotelink',
'type': 'bigcustomtoolitem',
'text': _('Assistant'),
'command': 'remoteaicontent',
'accessibility': { focusBack: true, combination: 'RL', de: null }
} : {},
{
'type': 'container',
'children': [
Expand Down
8 changes: 8 additions & 0 deletions browser/src/control/Control.NotebookbarDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,14 @@ L.Control.NotebookbarDraw = L.Control.NotebookbarImpress.extend({
'command': 'remotelink',
'accessibility': { focusBack: true, combination: 'RL', de: null }
} : {},
(this._map['wopi'].EnableRemoteAIContent) ? {
'id': 'insert-insert-remote-ai-content',
'class': 'unoremotelink',
'type': 'bigcustomtoolitem',
'text': _('Assistant'),
'command': 'remoteaicontent',
'accessibility': { focusBack: true, combination: 'RL', de: null }
} : {},
{
'type': 'container',
'children': [
Expand Down
8 changes: 8 additions & 0 deletions browser/src/control/Control.NotebookbarImpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,14 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
'command': 'hyperlinkdialog',
'accessibility': { focusBack: true, combination: 'IL', de: null }
},
(this._map['wopi'].EnableRemoteAIContent) ? {
'id': 'insert-insert-remote-ai-content',
'class': 'unoremotelink',
'type': 'bigcustomtoolitem',
'text': _('Assistant'),
'command': 'remoteaicontent',
'accessibility': { focusBack: true, combination: 'RL', de: null }
} : {},
{
'id': 'insert-insert-annotation',
'type': 'bigtoolitem',
Expand Down

0 comments on commit cbb038b

Please sign in to comment.