loleaflet/dist/framed.html |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 790069ecbc31828c29eb2e19c8b843ee7471d7f6
Author: Tor Lillqvist <t...@collabora.com>
Date:   Mon Jan 22 14:53:19 2018 +0200

    Add input field for the name of the named range to add
    
    Change-Id: I37fdb1a3e28ef0b3cc298ec4d5dc8620ba919190

diff --git a/loleaflet/dist/framed.html b/loleaflet/dist/framed.html
index 946d20e9d..2dbdebbb6 100644
--- a/loleaflet/dist/framed.html
+++ b/loleaflet/dist/framed.html
@@ -85,6 +85,7 @@
         window.frames[0].postMessage(JSON.stringify({'MessageId': 
'Host_PostmessageReady'}), '*');
         // Our form below takes input in A1 format, the Python script wants 
zero-based indexes and width and height
         var abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+        var name = 
document.forms['add-named-range-form'].elements['name'].value;
         var x0 = document.forms['add-named-range-form'].elements['x0'].value;
         var x1 = document.forms['add-named-range-form'].elements['x1'].value;
         var y0 = 
parseInt(document.forms['add-named-range-form'].elements['y0'].value);
@@ -101,7 +102,7 @@
                                                                'y0': {'type': 
'long', 'value': y0-1},
                                                                'width': 
{'type': 'long', 'value': x1-x0+1},
                                                                'height': 
{'type': 'long', 'value': y1-y0+1},
-                                                               'name': 
{'type': 'string', 'value': 'N' + Date.now().toString()}
+                                                               'name': 
{'type': 'string', 'value': name}
                                                                }
                                                      }),
                                      '*');
@@ -167,8 +168,8 @@
     </form>
 
     <form id="add-named-range-form">
-      <!-- FIXME: Add input fields for the position, size, and name of the 
range -->
-      Click <button onclick="callAddNamedRange(); return false;">here</button> 
to add a new named range on Sheet1 from (A1 syntax)
+      Click <button onclick="callAddNamedRange(); return false;">here</button> 
to add a new named range called
+      <input type="text" name="name"> on Sheet1 from (A1 syntax)
       <input type="text" name="x0" value="A" size="1" pattern="[A-Z]{1}"> 
<input type="number" name="y0", min="1" max="999" value="1"> to
       <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>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to