gnumeric r16539 - in trunk: . src test



Author: mortenw
Date: Tue Apr 29 23:43:38 2008
New Revision: 16539
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16539&view=rev

Log:
2008-04-29  Morten Welinder  <terra gnome org>

	* src/xml-sax-write.c (xml_write_sheet_names): Write sheet sizes.



Modified:
   trunk/ChangeLog
   trunk/src/xml-sax-write.c
   trunk/test/t5900-sc.pl
   trunk/test/t5901-qpro.pl
   trunk/test/t5902-applix.pl
   trunk/test/t5903-sylk.pl

Modified: trunk/src/xml-sax-write.c
==============================================================================
--- trunk/src/xml-sax-write.c	(original)
+++ trunk/src/xml-sax-write.c	Tue Apr 29 23:43:38 2008
@@ -161,8 +161,13 @@
 	gsf_xml_out_start_element (state->output, GNM "SheetNameIndex");
 	for (i = 0 ; i < n ; i++) {
 		sheet = workbook_sheet_by_index (state->wb, i);
-		gsf_xml_out_simple_element (state->output, GNM "SheetName",
-			sheet->name_unquoted);
+		gsf_xml_out_start_element (state->output, GNM "SheetName");
+		gsf_xml_out_add_int (state->output, GNM "Cols",
+							 gnm_sheet_get_max_cols (sheet));
+		gsf_xml_out_add_int (state->output, GNM "Rows",
+							 gnm_sheet_get_max_rows (sheet));
+		gsf_xml_out_add_cstr (state->output, NULL, sheet->name_unquoted);
+		gsf_xml_out_end_element (state->output); /* </gnm:SheetName> */
 	}
 	gsf_xml_out_end_element (state->output); /* </gnm:SheetNameIndex> */
 }

Modified: trunk/test/t5900-sc.pl
==============================================================================
--- trunk/test/t5900-sc.pl	(original)
+++ trunk/test/t5900-sc.pl	Tue Apr 29 23:43:38 2008
@@ -9,5 +9,5 @@
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the sc importer.");
-&test_importer ("$samples/sc/demo_func", "4c087eee7a0ee8814e11338b2a6b1f365021c23c", $mode);
-&test_importer ("$samples/sc/demo_math", "0996bb36fd49bb0d94bf60d97aaea25abd18d6ca", $mode);
+&test_importer ("$samples/sc/demo_func", "53d6a70a2ee23b41c6756facc399b39a68076980", $mode);
+&test_importer ("$samples/sc/demo_math", "af1ae27b470296a27f6525f3231729e02961b0b2", $mode);

Modified: trunk/test/t5901-qpro.pl
==============================================================================
--- trunk/test/t5901-qpro.pl	(original)
+++ trunk/test/t5901-qpro.pl	Tue Apr 29 23:43:38 2008
@@ -9,4 +9,4 @@
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the Quattro Pro importer.");
-&test_importer ("$samples/qpro/gantt.wb3", "843abc280518bde08c938f1e8800dd7e0a07bc93", $mode);
+&test_importer ("$samples/qpro/gantt.wb3", "f7f2f4999762809e65ceae36d83f9f7661f78afe", $mode);

Modified: trunk/test/t5902-applix.pl
==============================================================================
--- trunk/test/t5902-applix.pl	(original)
+++ trunk/test/t5902-applix.pl	Tue Apr 29 23:43:38 2008
@@ -9,4 +9,4 @@
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the applix importer.");
-&test_importer ("$samples/applix/sample.as", "97c93ede6bba14209e20c445fd4bdb9787f5bc61", $mode);
+&test_importer ("$samples/applix/sample.as", "04ec7bcbf5edd60f16ba85a5912f956284f2ef9a", $mode);

Modified: trunk/test/t5903-sylk.pl
==============================================================================
--- trunk/test/t5903-sylk.pl	(original)
+++ trunk/test/t5903-sylk.pl	Tue Apr 29 23:43:38 2008
@@ -9,5 +9,5 @@
 my $mode = ((shift @ARGV) || "check");
 
 &message ("Check the sylk importer.");
-&test_importer ("$samples/sylk/test.sylk", "90f60d33651e057b617a5e21fd5efab3ad1704f0", $mode);
-&test_importer ("$samples/sylk/encoding.sylk", "457029e2e46c3f792111b3e6a02aa007e06c3a67", $mode);
+&test_importer ("$samples/sylk/test.sylk", "484b3510db7bad9ab62f5d668ffd55ac1697b22b", $mode);
+&test_importer ("$samples/sylk/encoding.sylk", "004f25ce96e7a2b48d8b4521105b0648f527c779", $mode);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]