Skip to content

Commit

Permalink
Add fontwork dialog to the ui
Browse files Browse the repository at this point in the history
Change-Id: I3c66f2e6db4fbfa5dd42484e260113e6233d62fd
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
  • Loading branch information
eszkadev committed Jan 13, 2021
1 parent bfc9186 commit 5aed87e
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 1 deletion.
1 change: 1 addition & 0 deletions loleaflet/images/lc_fontworkgalleryfloater.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions loleaflet/src/control/Control.Menubar.js
Expand Up @@ -78,6 +78,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:InsertGraphic', 'text'), id: 'insertgraphicremote', type: 'action'},
{name: _UNO('.uno:InsertAnnotation', 'text'), id: 'insertcomment', type: 'action'},
{uno: '.uno:InsertObjectChart'},
{name: _UNO('.uno:FontworkGalleryFloater'), uno: '.uno:FontworkGalleryFloater'},
{type: 'separator'},
{uno: '.uno:InsertSection', id: 'insertsection'},
{name: _UNO('.uno:InsertField', 'text'), type: 'menu', menu: [
Expand Down Expand Up @@ -312,6 +313,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:SelectBackground', 'presentation'), id: 'selectbackground', type: 'action'},
{name: _UNO('.uno:InsertAnnotation', 'presentation'), id: 'insertcomment', type: 'action'},
{uno: '.uno:InsertObjectChart'},
{name: _UNO('.uno:FontworkGalleryFloater'), uno: '.uno:FontworkGalleryFloater'},
{type: 'separator'},
{name: _UNO('.uno:HyperlinkDialog'), id: 'inserthyperlink', type: 'action'},
{type: 'separator'},
Expand Down Expand Up @@ -785,6 +787,7 @@ L.Control.Menubar = L.Control.extend({
{type: 'separator'},
{name: _UNO('.uno:HyperlinkDialog'), id: 'inserthyperlink', type: 'action'},
{name: _UNO('.uno:ShapesMenu'), id: 'insertshape', type: 'action'},
{name: _UNO('.uno:FontworkGalleryFloater'), uno: '.uno:FontworkGalleryFloater'},
{name: _UNO('.uno:FormattingMarkMenu', 'text'), id: 'formattingmark', type: 'menu', menu: [
{uno: '.uno:InsertNonBreakingSpace'},
{uno: '.uno:InsertHardHyphen'},
Expand Down Expand Up @@ -817,6 +820,7 @@ L.Control.Menubar = L.Control.extend({
{name: _UNO('.uno:TableMenu'), id: 'inserttable', type: 'action'},
{name: _UNO('.uno:HyperlinkDialog'), id: 'inserthyperlink', type: 'action'},
{name: _UNO('.uno:ShapesMenu'), id: 'insertshape', type: 'action'},
{name: _UNO('.uno:FontworkGalleryFloater'), uno: '.uno:FontworkGalleryFloater'},
{name: _UNO('.uno:Text', 'presentation'), id: 'inserttextbox', type: 'action'},
{name: _UNO('.uno:InsertField', 'text'), id: 'insertfield', type: 'menu', menu: [
{uno: '.uno:InsertDateFieldFix'},
Expand Down
1 change: 0 additions & 1 deletion loleaflet/src/control/Control.NotebookbarBuilder.js
Expand Up @@ -111,7 +111,6 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
this._toolitemHandlers['.uno:ConnectorToolbox'] = function() {};
this._toolitemHandlers['.uno:PresentationCurrentSlide'] = function() {};
this._toolitemHandlers['.uno:PresentationLayout'] = function() {};
this._toolitemHandlers['.uno:FontworkGalleryFloater'] = function() {};
this._toolitemHandlers['.uno:CapturePoint'] = function() {};
this._toolitemHandlers['.uno:Objects3DToolbox'] = function() {};
this._toolitemHandlers['.uno:InsertMath'] = function() {};
Expand Down
22 changes: 22 additions & 0 deletions loleaflet/src/control/Control.NotebookbarCalc.js
Expand Up @@ -2170,6 +2170,28 @@ L.Control.NotebookbarCalc = L.Control.NotebookbarWriter.extend({
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Fontwork',
'type': 'container',
'text': '',
'enabled': 'true',
'children': [
{
'id': 'SectionBottom656',
'type': 'toolbox',
'text': '',
'enabled': 'true',
'children': [
{
'type': 'bigtoolitem',
'text': _UNO('.uno:FontworkGalleryFloater'),
'command': '.uno:FontworkGalleryFloater'
}
]
}
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Hyperlink',
'type': 'container',
Expand Down
22 changes: 22 additions & 0 deletions loleaflet/src/control/Control.NotebookbarImpress.js
Expand Up @@ -1996,6 +1996,28 @@ L.Control.NotebookbarImpress = L.Control.NotebookbarWriter.extend({
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Fontwork',
'type': 'container',
'text': '',
'enabled': 'true',
'children': [
{
'id': 'SectionBottom656',
'type': 'toolbox',
'text': '',
'enabled': 'true',
'children': [
{
'type': 'bigtoolitem',
'text': _UNO('.uno:FontworkGalleryFloater'),
'command': '.uno:FontworkGalleryFloater'
}
]
}
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Hyperlink',
'type': 'container',
Expand Down
22 changes: 22 additions & 0 deletions loleaflet/src/control/Control.NotebookbarWriter.js
Expand Up @@ -2033,6 +2033,28 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Fontwork',
'type': 'container',
'text': '',
'enabled': 'true',
'children': [
{
'id': 'SectionBottom656',
'type': 'toolbox',
'text': '',
'enabled': 'true',
'children': [
{
'type': 'bigtoolitem',
'text': _UNO('.uno:FontworkGalleryFloater'),
'command': '.uno:FontworkGalleryFloater'
}
]
}
],
'vertical': 'false'
},
{
'id': 'Insert-Section-Hyperlink',
'type': 'container',
Expand Down
1 change: 1 addition & 0 deletions loleaflet/src/unocommands.js
Expand Up @@ -108,6 +108,7 @@ var unoCommandsArray = {
FilterMenu:{spreadsheet:{menu:_('More ~Filters'),},},
FontColor:{global:{menu:_('Font Color'),},text:{menu:_('Font Color'),},},
FontDialog:{global:{menu:_('C~haracter...'),},},
FontworkGalleryFloater:{global:{menu:_('Fontwork...'),},},
FormatArea:{global:{menu:_('A~rea...'),},},
FormatAxis:{global:{menu:_('Format Axis...'),},},
FormatBulletsMenu:{global:{menu:_('Lis~ts'),},},
Expand Down

0 comments on commit 5aed87e

Please sign in to comment.