[gnumeric] update paper size list in xsx import



commit 202dfa48ea3ad738072a7f161568a8b4bb84dfb0
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Jun 12 12:58:24 2013 -0600

    update paper size list in xsx import
    
    2013-06-12  Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * xlsx-read.c (xlsx_set_paper_from_code): update paper list

 plugins/excel/ChangeLog   |    8 +++++-
 plugins/excel/xlsx-read.c |   52 ++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 57 insertions(+), 3 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 332fa5b..e019763 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,11 +1,15 @@
 2013-06-12  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-       * xlsx-write.c (xlsx_find_paper_code): use te complete list
+       * xlsx-read.c (xlsx_set_paper_from_code): update paper list
+
+2013-06-12  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+       * xlsx-write.c (xlsx_find_paper_code): use the complete list
        (xlsx_write_print_info): write all applicable attributes
 
 2013-06-11  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-       * xlsx-read.c (lsx_parse_distance): new
+       * xlsx-read.c (xlsx_parse_distance): new
        (attr_distance): new
        (xlsx_paper_size): new
        (xlsx_set_paper_from_code): new
diff --git a/plugins/excel/xlsx-read.c b/plugins/excel/xlsx-read.c
index 2009bbe..7a4b3a0 100644
--- a/plugins/excel/xlsx-read.c
+++ b/plugins/excel/xlsx-read.c
@@ -1751,7 +1751,57 @@ xlsx_set_paper_from_code (PrintInformation *pi, int code)
                 { 65 , 201 , 276 , GTK_UNIT_MM , "iso_b5-extra_201x276mm" },
                 { 66 , 420 , 594 , GTK_UNIT_MM , "iso_a2_420x594mm" },
                 { 67 , 297 , 420 , GTK_UNIT_MM , GTK_PAPER_NAME_A3 },
-                { 68 , 322 , 445 , GTK_UNIT_MM , "iso_a3-extra_322x445mm" }};
+                { 68 , 322 , 445 , GTK_UNIT_MM , "iso_a3-extra_322x445mm" },
+                { 69 , 200 , 148 , GTK_UNIT_MM , NULL },
+                { 70 , 105 , 148 , GTK_UNIT_MM , "iso_a6_105x148mm" },
+                { 71 , 240 , 332 , GTK_UNIT_MM , "jpn_kaku2_240x332mm" },
+                { 72 , 216 , 277 , GTK_UNIT_MM , NULL },
+                { 73 , 120 , 235 , GTK_UNIT_MM , "jpn_chou3_120x235mm" },
+                { 74 , 90 , 205 , GTK_UNIT_MM , "jpn_chou4_90x205mm" },
+                { 75 , 11 , 8.5 , GTK_UNIT_INCH , NULL },
+                { 76 , 420 , 297 , GTK_UNIT_MM , NULL },
+                { 77 , 297 , 210 , GTK_UNIT_MM , NULL },
+                { 78 , 210 , 148 , GTK_UNIT_MM , NULL },
+                { 79 , 364 , 257 , GTK_UNIT_MM , NULL },
+                { 80 , 257 , 182 , GTK_UNIT_MM , NULL },
+                { 81 , 148 , 100 , GTK_UNIT_MM , NULL },
+                { 82 , 148 , 200 , GTK_UNIT_MM , "jpn_oufuku_148x200mm" },
+                { 83 , 148 , 105 , GTK_UNIT_MM , NULL },
+                { 84 , 332 , 240 , GTK_UNIT_MM , NULL },
+                { 85 , 277 , 216 , GTK_UNIT_MM , NULL },
+                { 86 , 235 , 120 , GTK_UNIT_MM , NULL },
+                { 87 , 205 , 90 , GTK_UNIT_MM , NULL },
+                { 88 , 128 , 182 , GTK_UNIT_MM , "jis_b6_128x182mm" },
+                { 89 , 182 , 128 , GTK_UNIT_MM , NULL },
+                { 90 , 12 , 11 , GTK_UNIT_INCH , NULL },
+                { 91 , 235 , 105 , GTK_UNIT_MM , NULL },
+                { 92 , 105 , 235 , GTK_UNIT_MM , "jpn_you4_105x235mm" },
+                { 93 , 146 , 215 , GTK_UNIT_MM , "prc_16k_146x215mm" },
+                { 94 , 97 , 151 , GTK_UNIT_MM , "prc_32k_97x151mm" },
+                { 95 , 97 , 151 , GTK_UNIT_MM , "prc_32k_97x151mm" },
+                { 96 , 102 , 165 , GTK_UNIT_MM , "prc_1_102x165mm" },
+                { 97 , 102 , 176 , GTK_UNIT_MM , "prc_2_102x176mm" },
+                { 98 , 125 , 176 , GTK_UNIT_MM , "prc_3_125x176mm" },
+                { 99 , 110 , 208 , GTK_UNIT_MM , "prc_4_110x208mm" },
+                { 100 , 110 , 220 , GTK_UNIT_MM , "prc_5_110x220mm" },
+                { 101 , 120 , 230 , GTK_UNIT_MM , "prc_6_120x230mm" },
+                { 102 , 160 , 230 , GTK_UNIT_MM , "prc_7_160x230mm" },
+                { 103 , 120 , 309 , GTK_UNIT_MM , "prc_8_120x309mm" },
+                { 104 , 229 , 324 , GTK_UNIT_MM , "iso_c4_229x324mm" },
+                { 105 , 324 , 458 , GTK_UNIT_MM , "prc_10_324x458mm" },
+                { 106 , 215 , 146 , GTK_UNIT_MM , NULL },
+                { 107 , 151 , 97 , GTK_UNIT_MM , NULL },
+                { 108 , 151 , 97 , GTK_UNIT_MM , NULL },
+                { 109 , 165 , 102 , GTK_UNIT_MM , NULL },
+                { 110 , 176 , 102 , GTK_UNIT_MM , NULL },
+                { 111 , 176 , 125 , GTK_UNIT_MM , NULL },
+                { 112 , 208 , 110 , GTK_UNIT_MM , NULL },
+                { 113 , 220 , 110 , GTK_UNIT_MM , NULL },
+                { 114 , 230 , 120 , GTK_UNIT_MM , NULL },
+                { 115 , 230 , 160 , GTK_UNIT_MM , NULL },
+                { 116 , 309 , 120 , GTK_UNIT_MM , NULL },
+                { 117 , 324 , 229 , GTK_UNIT_MM , NULL },
+                { 118 , 458 , 324 , GTK_UNIT_MM , NULL }};
 
        if (code < 1 || ((guint) code) >= G_N_ELEMENTS (paper) || paper[code].code == 0)
                return FALSE;


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