loleaflet/dist/framed.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
New commits: commit 660c3fa255cb7bf9470462e8b547379df4c7ee19 Author: Tor Lillqvist <t...@collabora.com> Date: Wed Mar 28 16:51:59 2018 +0300 Add deletion of named range Change-Id: I31ffb07bef9d7244d1b8501f7a0abc0b144eaaf3 diff --git a/loleaflet/dist/framed.html b/loleaflet/dist/framed.html index e92e02c01..579e7968e 100644 --- a/loleaflet/dist/framed.html +++ b/loleaflet/dist/framed.html @@ -89,6 +89,19 @@ '*'); } + function callDeleteNamedRange() { + window.frames[0].postMessage(JSON.stringify({'MessageId': 'Host_PostmessageReady'}), '*'); + var name = document.forms['delete-named-range-form'].elements['name'].value; + window.frames[0].postMessage(JSON.stringify({'MessageId': 'CallPythonScript', + 'SendTime': Date.now(), + 'ScriptFile': 'NamedRanges.py', + 'Function': 'DeleteNamedRange', + 'Values': {'name': {'type': 'string', 'value': name} + } + }), + '*'); + } + function receiveMessage(event) { var msg = JSON.parse(event.data); console.log('==== framed.html receiveMessage: ' + event.data); @@ -155,6 +168,10 @@ <input type="text" name="x1" value="B" size="1" pattern="[A-Z]{1}"> <input type="number" name="y1", min="1" max="999" value="3">. </form> + <form id="delete-named-range-form"> + Click <button onclick="callDeleteNamedRange(); return false;">here</button> to delete the named range called <input type="text" name="name"> + </form> + <!-- The hostname and pathnames below are obviously specific to my personal environment and need to be changed appropriately. Also the hex string needs to be changed of course, to the right one as _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits