From cbb038b9cf4f7126b3f1048f7b770e6a79d7c3b6 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Thu, 12 Dec 2024 16:07:57 -0500 Subject: [PATCH] feat: add assistant button to calc, draw, impress Signed-off-by: Elizabeth Danzberger Change-Id: I72e73874f9d5d98ca2659a3bb50167ed7dde5e17 --- browser/src/control/Control.NotebookbarCalc.js | 8 ++++++++ browser/src/control/Control.NotebookbarDraw.js | 8 ++++++++ browser/src/control/Control.NotebookbarImpress.js | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/browser/src/control/Control.NotebookbarCalc.js b/browser/src/control/Control.NotebookbarCalc.js index a479eb2c50be8..96a1e937e58b3 100644 --- a/browser/src/control/Control.NotebookbarCalc.js +++ b/browser/src/control/Control.NotebookbarCalc.js @@ -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': [ diff --git a/browser/src/control/Control.NotebookbarDraw.js b/browser/src/control/Control.NotebookbarDraw.js index 28ef750d2ac58..b9ad80d1b9ad4 100644 --- a/browser/src/control/Control.NotebookbarDraw.js +++ b/browser/src/control/Control.NotebookbarDraw.js @@ -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': [ diff --git a/browser/src/control/Control.NotebookbarImpress.js b/browser/src/control/Control.NotebookbarImpress.js index 4244e1e6aca3b..3894da62fbe9e 100644 --- a/browser/src/control/Control.NotebookbarImpress.js +++ b/browser/src/control/Control.NotebookbarImpress.js @@ -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',