From c270f802b88462a7da245ba34e4eb3ed86e2ce94 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Tue, 17 Jan 2023 10:23:21 -0400 Subject: [PATCH] browser: add "More..." menu entries specific to writer Change-Id: Id851b4b48b9c365ac416858058cfff9e8fa1a399 Signed-off-by: Henry Castro --- browser/src/control/Control.Menubar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/browser/src/control/Control.Menubar.js b/browser/src/control/Control.Menubar.js index d43bb495e..70ed072eb 100644 --- a/browser/src/control/Control.Menubar.js +++ b/browser/src/control/Control.Menubar.js @@ -321,9 +321,9 @@ L.Control.Menubar = L.Control.extend({ {uno: '.uno:ThesaurusDialog'}, {name: _UNO('.uno:LanguageMenu'), type: 'menu', menu: [ {name: _UNO('.uno:SetLanguageSelectionMenu', 'text'), type: 'menu', menu: [ - {name: _('None (Do not check spelling)'), id: 'noneselection', uno: '.uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE'}]}, + {name: _('None (Do not check spelling)'), id: 'noneselection', uno: '.uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE'}, {name: _('More...'), id: 'fontlanguage', uno: '.uno:FontDialog?Page:string=font'}]}, {name: _UNO('.uno:SetLanguageParagraphMenu', 'text'), type: 'menu', menu: [ - {name: _('None (Do not check spelling)'), id: 'noneparagraph', uno: '.uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE'}]}, + {name: _('None (Do not check spelling)'), id: 'noneparagraph', uno: '.uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE'}, {name: _('More...'), id: 'paragraphlanguage', uno: '.uno:FontDialogForParagraph'}]}, {name: _UNO('.uno:SetLanguageAllTextMenu', 'text'), type: 'menu', menu: [ {name: _('None (Do not check spelling)'), id: 'nonelanguage', uno: '.uno:LanguageStatus?Language:string=Default_LANGUAGE_NONE'}, {name: _('More...'), id: 'morelanguage', uno: '.uno:LanguageStatus?Language:string=*'}]}]}, {uno: '.uno:WordCountDialog'}, @@ -1301,7 +1301,9 @@ L.Control.Menubar = L.Control.extend({ var $menuDefault = $('#menu-nonelanguage').parent(); var noneselection = $('#menu-noneselection').detach(); + var fontlanguage = $('#menu-fontlanguage').detach(); var noneparagraph = $('#menu-noneparagraph').detach(); + var paragraphlanguage = $('#menu-paragraphlanguage').detach(); var nonelanguage = $('#menu-nonelanguage').detach(); var morelanguage = $('#menu-morelanguage').detach(); @@ -1329,7 +1331,9 @@ L.Control.Menubar = L.Control.extend({ $menuDefault.append(this._createUnoMenuItem(resetLang, constLang + constDefa)); $menuSelection.append(noneselection); + $menuSelection.append(fontlanguage); $menuParagraph.append(noneparagraph); + $menuParagraph.append(paragraphlanguage); $menuDefault.append(nonelanguage); $menuDefault.append(morelanguage); }