[Libreoffice-commits] online.git: loleaflet/images loleaflet/src
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 16 21:12:24 UTC 2020
loleaflet/images/lc_inserttextbox.svg | 1 +
loleaflet/src/control/Control.Menubar.js | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit e2a6737a5b46f6b4020687a6ba34b7bf157afe1b
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Thu Apr 16 22:22:04 2020 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Thu Apr 16 23:12:06 2020 +0200
Move uno:Text param from core to online - online part
Change-Id: I3d3e9bf4496d9c327a437acb5d0e4e65dfe2d3c8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92391
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/loleaflet/images/lc_inserttextbox.svg b/loleaflet/images/lc_inserttextbox.svg
new file mode 100644
index 000000000..e766b7390
--- /dev/null
+++ b/loleaflet/images/lc_inserttextbox.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m1.5 2.5h21v19h-21z" fill="#fff" stroke="#808080" stroke-linecap="round" stroke-linejoin="round"/><text fill="#4d82b8" font-family="sans-serif" font-size="18.365749" letter-spacing="0" transform="scale(.99242009 1.0076378)" word-spacing="0" x="2.987043" y="15.878721"><tspan fill="#4d82b8" font-family="Carlito" font-weight="bold" x="2.987043" y="15.878721">A</tspan></text><g fill="#808080"><rect height="1" ry=".5" width="6" x="15" y="14"/><rect height="1" ry=".5" width="6" x="15" y="10"/><rect height="1" ry=".5" width="6" x="15" y="6"/><rect height="1" ry=".5" width="18" x="3" y="18"/></g></svg>
\ No newline at end of file
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 3d3f8307c..b0c042d9e 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -690,7 +690,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'},
- {uno: '.uno:Text'},
+ {name: _UNO('.uno:Text', 'presentation'), id: 'inserttextbox', type: 'action'},
{name: _UNO('.uno:InsertField', 'text'), id: 'insertfield', type: 'menu', menu: [
{uno: '.uno:InsertDateFieldFix'},
{uno: '.uno:InsertDateFieldVar'},
@@ -1211,6 +1211,8 @@ L.Control.Menubar = L.Control.extend({
$('#toolbar-search').show();
$('#mobile-edit-button').hide();
L.DomUtil.get('search-input').focus();
+ } else if (id === 'inserttextbox') {
+ this._map.sendUnoCommand('.uno:Text?CreateDirectly:bool=true');
}
// Inform the host if asked
if (postmessage)
More information about the Libreoffice-commits
mailing list