Showing 1 changed files with 29 additions and 0 deletions
+29
analyse-votes-AN
... ...
@@ -248,9 +248,38 @@ function write_comparaison () {
248 248
 <manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
249 249
  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
250 250
  <manifest:file-entry manifest:full-path="content.xml" manifest:media-type="text/xml"/>
251
+ <manifest:file-entry manifest:full-path="settings.xml" manifest:media-type="text/xml"/>
251 252
 </manifest:manifest>
252 253
 EOmetainf
253 254
 
255
+    cat > "/dev/shm/$result/settings.xml" << EOsettings
256
+<?xml version="1.0" encoding="UTF-8"?>
257
+<office:document-settings xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" office:version="1.3">
258
+  <office:settings>
259
+    <config:config-item-set config:name="ooo:view-settings">
260
+      <config:config-item-map-indexed config:name="Views">
261
+        <config:config-item-map-entry>
262
+          <config:config-item config:name="ViewId" config:type="string">view1</config:config-item>
263
+          <config:config-item-map-named config:name="Tables">
264
+            <config:config-item-map-entry config:name="$result">
265
+              <config:config-item config:name="HorizontalSplitMode" config:type="short">2</config:config-item>
266
+              <config:config-item config:name="VerticalSplitMode" config:type="short">2</config:config-item>
267
+              <config:config-item config:name="HorizontalSplitPosition" config:type="int">${#id_cols[@]}</config:config-item>
268
+              <config:config-item config:name="VerticalSplitPosition" config:type="int">1</config:config-item>
269
+              <config:config-item config:name="ActiveSplitRange" config:type="short">1</config:config-item>
270
+              <config:config-item config:name="PositionLeft" config:type="int">0</config:config-item>
271
+              <config:config-item config:name="PositionRight" config:type="int">${#id_cols[@]}</config:config-item>
272
+              <config:config-item config:name="PositionTop" config:type="int">0</config:config-item>
273
+              <config:config-item config:name="PositionBottom" config:type="int">1</config:config-item>
274
+            </config:config-item-map-entry>
275
+          </config:config-item-map-named>
276
+        </config:config-item-map-entry>
277
+      </config:config-item-map-indexed>
278
+    </config:config-item-set>
279
+  </office:settings>
280
+</office:document-settings>
281
+EOsettings
282
+
254 283
     printf 'application/vnd.oasis.opendocument.spreadsheet' > "/dev/shm/$result/mimetype"
255 284
 
256 285
     echo '<?xml version="1.0" encoding="UTF-8"?>' > "$content"