axlsx 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/.yardopts +4 -0
  2. data/README.md +7 -4
  3. data/examples/example.rb +6 -4
  4. data/examples/example.rb~ +112 -0
  5. data/lib/schema/dc.xsd~ +118 -0
  6. data/lib/schema/dcterms.xsd~ +331 -0
  7. data/lib/schema/opc-coreProperties.xsd~ +50 -0
  8. metadata +43 -193
  9. data/Gemfile +0 -3
  10. data/Gemfile.lock +0 -29
  11. data/axlsx.gemspec +0 -42
  12. data/doc/Axlsx.html +0 -2718
  13. data/doc/Axlsx/App.html +0 -2640
  14. data/doc/Axlsx/Axis.html +0 -1075
  15. data/doc/Axlsx/Bar3DChart.html +0 -1182
  16. data/doc/Axlsx/BarSeries.html +0 -711
  17. data/doc/Axlsx/Border.html +0 -779
  18. data/doc/Axlsx/BorderPr.html +0 -709
  19. data/doc/Axlsx/CatAxis.html +0 -769
  20. data/doc/Axlsx/CatAxisData.html +0 -397
  21. data/doc/Axlsx/Cell.html +0 -3187
  22. data/doc/Axlsx/CellAlignment.html +0 -1247
  23. data/doc/Axlsx/CellProtection.html +0 -565
  24. data/doc/Axlsx/CellStyle.html +0 -949
  25. data/doc/Axlsx/Chart.html +0 -1692
  26. data/doc/Axlsx/Color.html +0 -670
  27. data/doc/Axlsx/ContentType.html +0 -335
  28. data/doc/Axlsx/Core.html +0 -465
  29. data/doc/Axlsx/DataTypeValidator.html +0 -324
  30. data/doc/Axlsx/Default.html +0 -565
  31. data/doc/Axlsx/Drawing.html +0 -1264
  32. data/doc/Axlsx/Fill.html +0 -460
  33. data/doc/Axlsx/Font.html +0 -1554
  34. data/doc/Axlsx/GradientFill.html +0 -1026
  35. data/doc/Axlsx/GradientStop.html +0 -526
  36. data/doc/Axlsx/GraphicFrame.html +0 -642
  37. data/doc/Axlsx/Line3DChart.html +0 -1004
  38. data/doc/Axlsx/LineSeries.html +0 -605
  39. data/doc/Axlsx/Marker.html +0 -857
  40. data/doc/Axlsx/NumFmt.html +0 -562
  41. data/doc/Axlsx/OneCellAnchor.html +0 -982
  42. data/doc/Axlsx/Override.html +0 -552
  43. data/doc/Axlsx/Package.html +0 -825
  44. data/doc/Axlsx/Parser.html +0 -549
  45. data/doc/Axlsx/PatternFill.html +0 -681
  46. data/doc/Axlsx/Pic.html +0 -1701
  47. data/doc/Axlsx/PictureLocking.html +0 -1159
  48. data/doc/Axlsx/Pie3DChart.html +0 -489
  49. data/doc/Axlsx/PieSeries.html +0 -710
  50. data/doc/Axlsx/RegexValidator.html +0 -268
  51. data/doc/Axlsx/Relationship.html +0 -554
  52. data/doc/Axlsx/Relationships.html +0 -338
  53. data/doc/Axlsx/RestrictionValidator.html +0 -300
  54. data/doc/Axlsx/Row.html +0 -916
  55. data/doc/Axlsx/Scaling.html +0 -742
  56. data/doc/Axlsx/SerAxis.html +0 -641
  57. data/doc/Axlsx/Series.html +0 -813
  58. data/doc/Axlsx/SeriesTitle.html +0 -290
  59. data/doc/Axlsx/Styles.html +0 -1754
  60. data/doc/Axlsx/TableStyle.html +0 -705
  61. data/doc/Axlsx/TableStyleElement.html +0 -677
  62. data/doc/Axlsx/TableStyles.html +0 -594
  63. data/doc/Axlsx/Title.html +0 -543
  64. data/doc/Axlsx/TwoCellAnchor.html +0 -973
  65. data/doc/Axlsx/ValAxis.html +0 -538
  66. data/doc/Axlsx/ValAxisData.html +0 -321
  67. data/doc/Axlsx/View3D.html +0 -973
  68. data/doc/Axlsx/Workbook.html +0 -1630
  69. data/doc/Axlsx/Worksheet.html +0 -2682
  70. data/doc/Axlsx/Xf.html +0 -1780
  71. data/doc/_index.html +0 -649
  72. data/doc/class_list.html +0 -47
  73. data/doc/css/common.css +0 -1
  74. data/doc/css/full_list.css +0 -55
  75. data/doc/css/style.css +0 -322
  76. data/doc/file.LICENSE.html +0 -91
  77. data/doc/file.README.html +0 -338
  78. data/doc/file_list.html +0 -52
  79. data/doc/frames.html +0 -13
  80. data/doc/index.html +0 -338
  81. data/doc/js/app.js +0 -205
  82. data/doc/js/full_list.js +0 -167
  83. data/doc/js/jquery.js +0 -16
  84. data/doc/method_list.html +0 -3502
  85. data/doc/top-level-namespace.html +0 -103
  86. data/lib/axlsx.rb +0 -54
  87. data/lib/axlsx/content_type/content_type.rb +0 -23
  88. data/lib/axlsx/content_type/default.rb +0 -37
  89. data/lib/axlsx/content_type/override.rb +0 -37
  90. data/lib/axlsx/doc_props/app.rb +0 -178
  91. data/lib/axlsx/doc_props/core.rb +0 -34
  92. data/lib/axlsx/drawing/axis.rb +0 -90
  93. data/lib/axlsx/drawing/bar_3D_chart.rb +0 -128
  94. data/lib/axlsx/drawing/bar_series.rb +0 -64
  95. data/lib/axlsx/drawing/cat_axis.rb +0 -63
  96. data/lib/axlsx/drawing/cat_axis_data.rb +0 -35
  97. data/lib/axlsx/drawing/chart.rb +0 -179
  98. data/lib/axlsx/drawing/drawing.rb +0 -137
  99. data/lib/axlsx/drawing/graphic_frame.rb +0 -52
  100. data/lib/axlsx/drawing/line_3D_chart.rb +0 -106
  101. data/lib/axlsx/drawing/line_series.rb +0 -46
  102. data/lib/axlsx/drawing/marker.rb +0 -61
  103. data/lib/axlsx/drawing/one_cell_anchor.rb +0 -89
  104. data/lib/axlsx/drawing/pic.rb +0 -153
  105. data/lib/axlsx/drawing/picture_locking.rb +0 -72
  106. data/lib/axlsx/drawing/pie_3D_chart.rb +0 -41
  107. data/lib/axlsx/drawing/pie_series.rb +0 -56
  108. data/lib/axlsx/drawing/scaling.rb +0 -59
  109. data/lib/axlsx/drawing/ser_axis.rb +0 -45
  110. data/lib/axlsx/drawing/series.rb +0 -71
  111. data/lib/axlsx/drawing/series_title.rb +0 -22
  112. data/lib/axlsx/drawing/title.rb +0 -61
  113. data/lib/axlsx/drawing/two_cell_anchor.rb +0 -76
  114. data/lib/axlsx/drawing/val_axis.rb +0 -34
  115. data/lib/axlsx/drawing/val_axis_data.rb +0 -28
  116. data/lib/axlsx/drawing/view_3D.rb +0 -85
  117. data/lib/axlsx/package.rb +0 -214
  118. data/lib/axlsx/rels/relationship.rb +0 -44
  119. data/lib/axlsx/rels/relationships.rb +0 -25
  120. data/lib/axlsx/stylesheet/border.rb +0 -57
  121. data/lib/axlsx/stylesheet/border_pr.rb +0 -68
  122. data/lib/axlsx/stylesheet/cell_alignment.rb +0 -105
  123. data/lib/axlsx/stylesheet/cell_protection.rb +0 -36
  124. data/lib/axlsx/stylesheet/cell_style.rb +0 -65
  125. data/lib/axlsx/stylesheet/color.rb +0 -69
  126. data/lib/axlsx/stylesheet/fill.rb +0 -32
  127. data/lib/axlsx/stylesheet/font.rb +0 -139
  128. data/lib/axlsx/stylesheet/gradient_fill.rb +0 -76
  129. data/lib/axlsx/stylesheet/gradient_stop.rb +0 -33
  130. data/lib/axlsx/stylesheet/num_fmt.rb +0 -63
  131. data/lib/axlsx/stylesheet/pattern_fill.rb +0 -66
  132. data/lib/axlsx/stylesheet/styles.rb +0 -298
  133. data/lib/axlsx/stylesheet/table_style.rb +0 -47
  134. data/lib/axlsx/stylesheet/table_style_element.rb +0 -71
  135. data/lib/axlsx/stylesheet/table_styles.rb +0 -39
  136. data/lib/axlsx/stylesheet/xf.rb +0 -138
  137. data/lib/axlsx/util/constants.rb +0 -216
  138. data/lib/axlsx/util/parser.rb +0 -43
  139. data/lib/axlsx/util/simple_typed_list.rb +0 -160
  140. data/lib/axlsx/util/validators.rb +0 -132
  141. data/lib/axlsx/version.rb +0 -4
  142. data/lib/axlsx/workbook/workbook.rb +0 -160
  143. data/lib/axlsx/workbook/worksheet/cell.rb +0 -340
  144. data/lib/axlsx/workbook/worksheet/row.rb +0 -107
  145. data/lib/axlsx/workbook/worksheet/worksheet.rb +0 -278
@@ -1,2718 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Axlsx
8
-
9
- &mdash; AXLSX
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="_index.html">Index (A)</a> &raquo;
37
-
38
-
39
- <span class="title">Axlsx</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Module: Axlsx
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <dt class="r1 last">Defined in:</dt>
75
- <dd class="r1 last">lib/axlsx.rb<span class="defines">,<br />
76
- lib/axlsx/version.rb,<br /> lib/axlsx/package.rb,<br /> lib/axlsx/util/parser.rb,<br /> lib/axlsx/drawing/pic.rb,<br /> lib/axlsx/drawing/axis.rb,<br /> lib/axlsx/drawing/chart.rb,<br /> lib/axlsx/stylesheet/xf.rb,<br /> lib/axlsx/doc_props/app.rb,<br /> lib/axlsx/drawing/title.rb,<br /> lib/axlsx/doc_props/core.rb,<br /> lib/axlsx/drawing/series.rb,<br /> lib/axlsx/util/constants.rb,<br /> lib/axlsx/drawing/marker.rb,<br /> lib/axlsx/drawing/drawing.rb,<br /> lib/axlsx/drawing/scaling.rb,<br /> lib/axlsx/drawing/view_3D.rb,<br /> lib/axlsx/stylesheet/font.rb,<br /> lib/axlsx/stylesheet/fill.rb,<br /> lib/axlsx/util/validators.rb,<br /> lib/axlsx/drawing/val_axis.rb,<br /> lib/axlsx/drawing/cat_axis.rb,<br /> lib/axlsx/drawing/ser_axis.rb,<br /> lib/axlsx/stylesheet/color.rb,<br /> lib/axlsx/stylesheet/styles.rb,<br /> lib/axlsx/stylesheet/border.rb,<br /> lib/axlsx/workbook/workbook.rb,<br /> lib/axlsx/rels/relationship.rb,<br /> lib/axlsx/drawing/pie_series.rb,<br /> lib/axlsx/stylesheet/num_fmt.rb,<br /> lib/axlsx/drawing/bar_series.rb,<br /> lib/axlsx/rels/relationships.rb,<br /> lib/axlsx/drawing/line_series.rb,<br /> lib/axlsx/drawing/pie_3D_chart.rb,<br /> lib/axlsx/stylesheet/border_pr.rb,<br /> lib/axlsx/content_type/default.rb,<br /> lib/axlsx/drawing/bar_3D_chart.rb,<br /> lib/axlsx/drawing/series_title.rb,<br /> lib/axlsx/drawing/cat_axis_data.rb,<br /> lib/axlsx/content_type/override.rb,<br /> lib/axlsx/drawing/graphic_frame.rb,<br /> lib/axlsx/drawing/line_3D_chart.rb,<br /> lib/axlsx/drawing/val_axis_data.rb,<br /> lib/axlsx/stylesheet/cell_style.rb,<br /> lib/axlsx/util/simple_typed_list.rb,<br /> lib/axlsx/workbook/worksheet/row.rb,<br /> lib/axlsx/stylesheet/table_style.rb,<br /> lib/axlsx/stylesheet/pattern_fill.rb,<br /> lib/axlsx/stylesheet/table_styles.rb,<br /> lib/axlsx/workbook/worksheet/cell.rb,<br /> lib/axlsx/drawing/one_cell_anchor.rb,<br /> lib/axlsx/drawing/two_cell_anchor.rb,<br /> lib/axlsx/drawing/picture_locking.rb,<br /> lib/axlsx/stylesheet/gradient_fill.rb,<br /> lib/axlsx/stylesheet/gradient_stop.rb,<br /> lib/axlsx/stylesheet/cell_alignment.rb,<br /> lib/axlsx/content_type/content_type.rb,<br /> lib/axlsx/stylesheet/cell_protection.rb,<br /> lib/axlsx/workbook/worksheet/worksheet.rb,<br /> lib/axlsx/stylesheet/table_style_element.rb</span>
77
- </dd>
78
-
79
- </dl>
80
- <div class="clear"></div>
81
-
82
- <h2>Overview</h2><div class="docstring">
83
- <div class="discussion">
84
- <p>
85
- xlsx generation with charts, images, automated column width, customizable
86
- styles and full schema validation. Axlsx excels at helping you generate
87
- beautiful Office Open XML Spreadsheet documents without having to
88
- understand the entire ECMA specification. Check out the README for some
89
- examples of how easy it is. Best of all, you can validate your xlsx file
90
- before serialization so you know for sure that anything generated is going
91
- to load on your client&#8217;s machine.
92
- </p>
93
-
94
-
95
- </div>
96
- </div>
97
- <div class="tags">
98
-
99
-
100
- </div><h2>Defined Under Namespace</h2>
101
- <p class="children">
102
-
103
-
104
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Axlsx/Parser.html" title="Axlsx::Parser (module)">Parser</a></span>
105
-
106
-
107
-
108
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Axlsx/App.html" title="Axlsx::App (class)">App</a></span>, <span class='object_link'><a href="Axlsx/Axis.html" title="Axlsx::Axis (class)">Axis</a></span>, <span class='object_link'><a href="Axlsx/Bar3DChart.html" title="Axlsx::Bar3DChart (class)">Bar3DChart</a></span>, <span class='object_link'><a href="Axlsx/BarSeries.html" title="Axlsx::BarSeries (class)">BarSeries</a></span>, <span class='object_link'><a href="Axlsx/Border.html" title="Axlsx::Border (class)">Border</a></span>, <span class='object_link'><a href="Axlsx/BorderPr.html" title="Axlsx::BorderPr (class)">BorderPr</a></span>, <span class='object_link'><a href="Axlsx/CatAxis.html" title="Axlsx::CatAxis (class)">CatAxis</a></span>, <span class='object_link'><a href="Axlsx/CatAxisData.html" title="Axlsx::CatAxisData (class)">CatAxisData</a></span>, <span class='object_link'><a href="Axlsx/Cell.html" title="Axlsx::Cell (class)">Cell</a></span>, <span class='object_link'><a href="Axlsx/CellAlignment.html" title="Axlsx::CellAlignment (class)">CellAlignment</a></span>, <span class='object_link'><a href="Axlsx/CellProtection.html" title="Axlsx::CellProtection (class)">CellProtection</a></span>, <span class='object_link'><a href="Axlsx/CellStyle.html" title="Axlsx::CellStyle (class)">CellStyle</a></span>, <span class='object_link'><a href="Axlsx/Chart.html" title="Axlsx::Chart (class)">Chart</a></span>, <span class='object_link'><a href="Axlsx/Color.html" title="Axlsx::Color (class)">Color</a></span>, <span class='object_link'><a href="Axlsx/ContentType.html" title="Axlsx::ContentType (class)">ContentType</a></span>, <span class='object_link'><a href="Axlsx/Core.html" title="Axlsx::Core (class)">Core</a></span>, <span class='object_link'><a href="Axlsx/DataTypeValidator.html" title="Axlsx::DataTypeValidator (class)">DataTypeValidator</a></span>, <span class='object_link'><a href="Axlsx/Default.html" title="Axlsx::Default (class)">Default</a></span>, <span class='object_link'><a href="Axlsx/Drawing.html" title="Axlsx::Drawing (class)">Drawing</a></span>, <span class='object_link'><a href="Axlsx/Fill.html" title="Axlsx::Fill (class)">Fill</a></span>, <span class='object_link'><a href="Axlsx/Font.html" title="Axlsx::Font (class)">Font</a></span>, <span class='object_link'><a href="Axlsx/GradientFill.html" title="Axlsx::GradientFill (class)">GradientFill</a></span>, <span class='object_link'><a href="Axlsx/GradientStop.html" title="Axlsx::GradientStop (class)">GradientStop</a></span>, <span class='object_link'><a href="Axlsx/GraphicFrame.html" title="Axlsx::GraphicFrame (class)">GraphicFrame</a></span>, <span class='object_link'><a href="Axlsx/Line3DChart.html" title="Axlsx::Line3DChart (class)">Line3DChart</a></span>, <span class='object_link'><a href="Axlsx/LineSeries.html" title="Axlsx::LineSeries (class)">LineSeries</a></span>, <span class='object_link'><a href="Axlsx/Marker.html" title="Axlsx::Marker (class)">Marker</a></span>, <span class='object_link'><a href="Axlsx/NumFmt.html" title="Axlsx::NumFmt (class)">NumFmt</a></span>, <span class='object_link'><a href="Axlsx/OneCellAnchor.html" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span>, <span class='object_link'><a href="Axlsx/Override.html" title="Axlsx::Override (class)">Override</a></span>, <span class='object_link'><a href="Axlsx/Package.html" title="Axlsx::Package (class)">Package</a></span>, <span class='object_link'><a href="Axlsx/PatternFill.html" title="Axlsx::PatternFill (class)">PatternFill</a></span>, <span class='object_link'><a href="Axlsx/Pic.html" title="Axlsx::Pic (class)">Pic</a></span>, <span class='object_link'><a href="Axlsx/PictureLocking.html" title="Axlsx::PictureLocking (class)">PictureLocking</a></span>, <span class='object_link'><a href="Axlsx/Pie3DChart.html" title="Axlsx::Pie3DChart (class)">Pie3DChart</a></span>, <span class='object_link'><a href="Axlsx/PieSeries.html" title="Axlsx::PieSeries (class)">PieSeries</a></span>, <span class='object_link'><a href="Axlsx/RegexValidator.html" title="Axlsx::RegexValidator (class)">RegexValidator</a></span>, <span class='object_link'><a href="Axlsx/Relationship.html" title="Axlsx::Relationship (class)">Relationship</a></span>, <span class='object_link'><a href="Axlsx/Relationships.html" title="Axlsx::Relationships (class)">Relationships</a></span>, <span class='object_link'><a href="Axlsx/RestrictionValidator.html" title="Axlsx::RestrictionValidator (class)">RestrictionValidator</a></span>, <span class='object_link'><a href="Axlsx/Row.html" title="Axlsx::Row (class)">Row</a></span>, <span class='object_link'><a href="Axlsx/Scaling.html" title="Axlsx::Scaling (class)">Scaling</a></span>, <span class='object_link'><a href="Axlsx/SerAxis.html" title="Axlsx::SerAxis (class)">SerAxis</a></span>, <span class='object_link'><a href="Axlsx/Series.html" title="Axlsx::Series (class)">Series</a></span>, <span class='object_link'><a href="Axlsx/SeriesTitle.html" title="Axlsx::SeriesTitle (class)">SeriesTitle</a></span>, <span class='object_link'><a href="Axlsx/Styles.html" title="Axlsx::Styles (class)">Styles</a></span>, <span class='object_link'><a href="Axlsx/TableStyle.html" title="Axlsx::TableStyle (class)">TableStyle</a></span>, <span class='object_link'><a href="Axlsx/TableStyleElement.html" title="Axlsx::TableStyleElement (class)">TableStyleElement</a></span>, <span class='object_link'><a href="Axlsx/TableStyles.html" title="Axlsx::TableStyles (class)">TableStyles</a></span>, <span class='object_link'><a href="Axlsx/Title.html" title="Axlsx::Title (class)">Title</a></span>, <span class='object_link'><a href="Axlsx/TwoCellAnchor.html" title="Axlsx::TwoCellAnchor (class)">TwoCellAnchor</a></span>, <span class='object_link'><a href="Axlsx/ValAxis.html" title="Axlsx::ValAxis (class)">ValAxis</a></span>, <span class='object_link'><a href="Axlsx/ValAxisData.html" title="Axlsx::ValAxisData (class)">ValAxisData</a></span>, <span class='object_link'><a href="Axlsx/View3D.html" title="Axlsx::View3D (class)">View3D</a></span>, <span class='object_link'><a href="Axlsx/Workbook.html" title="Axlsx::Workbook (class)">Workbook</a></span>, <span class='object_link'><a href="Axlsx/Worksheet.html" title="Axlsx::Worksheet (class)">Worksheet</a></span>, <span class='object_link'><a href="Axlsx/Xf.html" title="Axlsx::Xf (class)">Xf</a></span>
109
-
110
-
111
- </p>
112
-
113
- <h2>Constant Summary</h2>
114
-
115
- <dl class="constants">
116
-
117
- <dt id="VERSION-constant" class="">VERSION =
118
- <div class="docstring">
119
- <div class="discussion">
120
- <p>
121
- version
122
- </p>
123
-
124
-
125
- </div>
126
- </div>
127
- <div class="tags">
128
-
129
-
130
- </div>
131
- </dt>
132
- <dd><pre class="code"><span class='string val'>&quot;1.0.11&quot;</span>
133
- </pre></dd>
134
-
135
- <dt id="ENCODING-constant" class="">ENCODING =
136
- <div class="docstring">
137
- <div class="discussion">
138
- <p>
139
- XML Encoding
140
- </p>
141
-
142
-
143
- </div>
144
- </div>
145
- <div class="tags">
146
-
147
-
148
- </div>
149
- </dt>
150
- <dd><pre class="code"><span class='string val'>&quot;UTF-8&quot;</span>
151
- </pre></dd>
152
-
153
- <dt id="XML_NS-constant" class="">XML_NS =
154
- <div class="docstring">
155
- <div class="discussion">
156
- <p>
157
- spreadsheetML namespace
158
- </p>
159
-
160
-
161
- </div>
162
- </div>
163
- <div class="tags">
164
-
165
-
166
- </div>
167
- </dt>
168
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/spreadsheetml/2006/main&quot;</span>
169
- </pre></dd>
170
-
171
- <dt id="XML_NS_T-constant" class="">XML_NS_T =
172
- <div class="docstring">
173
- <div class="discussion">
174
- <p>
175
- content-types namespace
176
- </p>
177
-
178
-
179
- </div>
180
- </div>
181
- <div class="tags">
182
-
183
-
184
- </div>
185
- </dt>
186
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/package/2006/content-types&quot;</span>
187
- </pre></dd>
188
-
189
- <dt id="APP_NS-constant" class="">APP_NS =
190
- <div class="docstring">
191
- <div class="discussion">
192
- <p>
193
- extended-properties namespace
194
- </p>
195
-
196
-
197
- </div>
198
- </div>
199
- <div class="tags">
200
-
201
-
202
- </div>
203
- </dt>
204
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/extended-properties&quot;</span>
205
- </pre></dd>
206
-
207
- <dt id="APP_NS_VT-constant" class="">APP_NS_VT =
208
- <div class="docstring">
209
- <div class="discussion">
210
- <p>
211
- doc props namespace
212
- </p>
213
-
214
-
215
- </div>
216
- </div>
217
- <div class="tags">
218
-
219
-
220
- </div>
221
- </dt>
222
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes&quot;</span>
223
- </pre></dd>
224
-
225
- <dt id="CORE_NS-constant" class="">CORE_NS =
226
- <div class="docstring">
227
- <div class="discussion">
228
- <p>
229
- core properties namespace
230
- </p>
231
-
232
-
233
- </div>
234
- </div>
235
- <div class="tags">
236
-
237
-
238
- </div>
239
- </dt>
240
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/package/2006/metadata/core-properties&quot;</span>
241
- </pre></dd>
242
-
243
- <dt id="CORE_NS_DC-constant" class="">CORE_NS_DC =
244
- <div class="docstring">
245
- <div class="discussion">
246
- <p>
247
- dc elements (core) namespace
248
- </p>
249
-
250
-
251
- </div>
252
- </div>
253
- <div class="tags">
254
-
255
-
256
- </div>
257
- </dt>
258
- <dd><pre class="code"><span class='string val'>&quot;http://purl.org/dc/elements/1.1/&quot;</span>
259
- </pre></dd>
260
-
261
- <dt id="CORE_NS_DCMIT-constant" class="">CORE_NS_DCMIT =
262
- <div class="docstring">
263
- <div class="discussion">
264
- <p>
265
- dcmit (core) namespcace
266
- </p>
267
-
268
-
269
- </div>
270
- </div>
271
- <div class="tags">
272
-
273
-
274
- </div>
275
- </dt>
276
- <dd><pre class="code"><span class='string val'>&quot;http://purl.org/dc/dcmitype/&quot;</span>
277
- </pre></dd>
278
-
279
- <dt id="CORE_NS_DCT-constant" class="">CORE_NS_DCT =
280
- <div class="docstring">
281
- <div class="discussion">
282
- <p>
283
- dc terms namespace
284
- </p>
285
-
286
-
287
- </div>
288
- </div>
289
- <div class="tags">
290
-
291
-
292
- </div>
293
- </dt>
294
- <dd><pre class="code"><span class='string val'>&quot;http://purl.org/dc/terms/&quot;</span>
295
- </pre></dd>
296
-
297
- <dt id="CORE_NS_XSI-constant" class="">CORE_NS_XSI =
298
- <div class="docstring">
299
- <div class="discussion">
300
- <p>
301
- xml schema namespace
302
- </p>
303
-
304
-
305
- </div>
306
- </div>
307
- <div class="tags">
308
-
309
-
310
- </div>
311
- </dt>
312
- <dd><pre class="code"><span class='string val'>&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
313
- </pre></dd>
314
-
315
- <dt id="XML_NS_XDR-constant" class="">XML_NS_XDR =
316
- <div class="docstring">
317
- <div class="discussion">
318
- <p>
319
- spreadsheet drawing namespace
320
- </p>
321
-
322
-
323
- </div>
324
- </div>
325
- <div class="tags">
326
-
327
-
328
- </div>
329
- </dt>
330
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing&quot;</span>
331
- </pre></dd>
332
-
333
- <dt id="XML_NS_A-constant" class="">XML_NS_A =
334
- <div class="docstring">
335
- <div class="discussion">
336
- <p>
337
- drawing namespace
338
- </p>
339
-
340
-
341
- </div>
342
- </div>
343
- <div class="tags">
344
-
345
-
346
- </div>
347
- </dt>
348
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/drawingml/2006/main&quot;</span>
349
- </pre></dd>
350
-
351
- <dt id="XML_NS_C-constant" class="">XML_NS_C =
352
- <div class="docstring">
353
- <div class="discussion">
354
- <p>
355
- chart namespace
356
- </p>
357
-
358
-
359
- </div>
360
- </div>
361
- <div class="tags">
362
-
363
-
364
- </div>
365
- </dt>
366
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/drawingml/2006/chart&quot;</span>
367
- </pre></dd>
368
-
369
- <dt id="XML_NS_R-constant" class="">XML_NS_R =
370
- <div class="docstring">
371
- <div class="discussion">
372
- <p>
373
- relationships namespace
374
- </p>
375
-
376
-
377
- </div>
378
- </div>
379
- <div class="tags">
380
-
381
-
382
- </div>
383
- </dt>
384
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships&quot;</span>
385
- </pre></dd>
386
-
387
- <dt id="RELS_R-constant" class="">RELS_R =
388
- <div class="docstring">
389
- <div class="discussion">
390
- <p>
391
- relationships name space
392
- </p>
393
-
394
-
395
- </div>
396
- </div>
397
- <div class="tags">
398
-
399
-
400
- </div>
401
- </dt>
402
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot;</span>
403
- </pre></dd>
404
-
405
- <dt id="TABLE_R-constant" class="">TABLE_R =
406
- <div class="docstring">
407
- <div class="discussion">
408
- <p>
409
- table rels namespace
410
- </p>
411
-
412
-
413
- </div>
414
- </div>
415
- <div class="tags">
416
-
417
-
418
- </div>
419
- </dt>
420
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/table&quot;</span>
421
- </pre></dd>
422
-
423
- <dt id="WORKBOOK_R-constant" class="">WORKBOOK_R =
424
- <div class="docstring">
425
- <div class="discussion">
426
- <p>
427
- workbook rels namespace
428
- </p>
429
-
430
-
431
- </div>
432
- </div>
433
- <div class="tags">
434
-
435
-
436
- </div>
437
- </dt>
438
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument&quot;</span>
439
- </pre></dd>
440
-
441
- <dt id="WORKSHEET_R-constant" class="">WORKSHEET_R =
442
- <div class="docstring">
443
- <div class="discussion">
444
- <p>
445
- worksheet rels namespace
446
- </p>
447
-
448
-
449
- </div>
450
- </div>
451
- <div class="tags">
452
-
453
-
454
- </div>
455
- </dt>
456
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet&quot;</span>
457
- </pre></dd>
458
-
459
- <dt id="APP_R-constant" class="">APP_R =
460
- <div class="docstring">
461
- <div class="discussion">
462
- <p>
463
- app rels namespace
464
- </p>
465
-
466
-
467
- </div>
468
- </div>
469
- <div class="tags">
470
-
471
-
472
- </div>
473
- </dt>
474
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties&quot;</span>
475
- </pre></dd>
476
-
477
- <dt id="CORE_R-constant" class="">CORE_R =
478
- <div class="docstring">
479
- <div class="discussion">
480
- <p>
481
- core rels namespace
482
- </p>
483
-
484
-
485
- </div>
486
- </div>
487
- <div class="tags">
488
-
489
-
490
- </div>
491
- </dt>
492
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/metadata/core-properties&quot;</span>
493
- </pre></dd>
494
-
495
- <dt id="STYLES_R-constant" class="">STYLES_R =
496
- <div class="docstring">
497
- <div class="discussion">
498
- <p>
499
- styles rels namespace
500
- </p>
501
-
502
-
503
- </div>
504
- </div>
505
- <div class="tags">
506
-
507
-
508
- </div>
509
- </dt>
510
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles&quot;</span>
511
- </pre></dd>
512
-
513
- <dt id="DRAWING_R-constant" class="">DRAWING_R =
514
- <div class="docstring">
515
- <div class="discussion">
516
- <p>
517
- drawing rels namespace
518
- </p>
519
-
520
-
521
- </div>
522
- </div>
523
- <div class="tags">
524
-
525
-
526
- </div>
527
- </dt>
528
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing&quot;</span>
529
- </pre></dd>
530
-
531
- <dt id="CHART_R-constant" class="">CHART_R =
532
- <div class="docstring">
533
- <div class="discussion">
534
- <p>
535
- chart rels namespace
536
- </p>
537
-
538
-
539
- </div>
540
- </div>
541
- <div class="tags">
542
-
543
-
544
- </div>
545
- </dt>
546
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart&quot;</span>
547
- </pre></dd>
548
-
549
- <dt id="IMAGE_R-constant" class="">IMAGE_R =
550
- <div class="docstring">
551
- <div class="discussion">
552
- <p>
553
- image rels namespace
554
- </p>
555
-
556
-
557
- </div>
558
- </div>
559
- <div class="tags">
560
-
561
-
562
- </div>
563
- </dt>
564
- <dd><pre class="code"><span class='string val'>&quot;http://schemas.openxmlformats.org/officeDocument/2006/relationships/image&quot;</span>
565
- </pre></dd>
566
-
567
- <dt id="TABLE_CT-constant" class="">TABLE_CT =
568
- <div class="docstring">
569
- <div class="discussion">
570
- <p>
571
- table content type
572
- </p>
573
-
574
-
575
- </div>
576
- </div>
577
- <div class="tags">
578
-
579
-
580
- </div>
581
- </dt>
582
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml&quot;</span>
583
- </pre></dd>
584
-
585
- <dt id="WORKBOOK_CT-constant" class="">WORKBOOK_CT =
586
- <div class="docstring">
587
- <div class="discussion">
588
- <p>
589
- workbook content type
590
- </p>
591
-
592
-
593
- </div>
594
- </div>
595
- <div class="tags">
596
-
597
-
598
- </div>
599
- </dt>
600
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml&quot;</span>
601
- </pre></dd>
602
-
603
- <dt id="APP_CT-constant" class="">APP_CT =
604
- <div class="docstring">
605
- <div class="discussion">
606
- <p>
607
- app content type
608
- </p>
609
-
610
-
611
- </div>
612
- </div>
613
- <div class="tags">
614
-
615
-
616
- </div>
617
- </dt>
618
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.extended-properties+xml&quot;</span>
619
- </pre></dd>
620
-
621
- <dt id="RELS_CT-constant" class="">RELS_CT =
622
- <div class="docstring">
623
- <div class="discussion">
624
- <p>
625
- rels content type
626
- </p>
627
-
628
-
629
- </div>
630
- </div>
631
- <div class="tags">
632
-
633
-
634
- </div>
635
- </dt>
636
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-package.relationships+xml&quot;</span>
637
- </pre></dd>
638
-
639
- <dt id="STYLES_CT-constant" class="">STYLES_CT =
640
- <div class="docstring">
641
- <div class="discussion">
642
- <p>
643
- styles content type
644
- </p>
645
-
646
-
647
- </div>
648
- </div>
649
- <div class="tags">
650
-
651
-
652
- </div>
653
- </dt>
654
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml&quot;</span>
655
- </pre></dd>
656
-
657
- <dt id="XML_CT-constant" class="">XML_CT =
658
- <div class="docstring">
659
- <div class="discussion">
660
- <p>
661
- xml content type
662
- </p>
663
-
664
-
665
- </div>
666
- </div>
667
- <div class="tags">
668
-
669
-
670
- </div>
671
- </dt>
672
- <dd><pre class="code"><span class='string val'>&quot;application/xml&quot;</span>
673
- </pre></dd>
674
-
675
- <dt id="WORKSHEET_CT-constant" class="">WORKSHEET_CT =
676
- <div class="docstring">
677
- <div class="discussion">
678
- <p>
679
- worksheet content type
680
- </p>
681
-
682
-
683
- </div>
684
- </div>
685
- <div class="tags">
686
-
687
-
688
- </div>
689
- </dt>
690
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml&quot;</span>
691
- </pre></dd>
692
-
693
- <dt id="SHARED_STRINGS_CT-constant" class="">SHARED_STRINGS_CT =
694
- <div class="docstring">
695
- <div class="discussion">
696
- <p>
697
- shared strings content type
698
- </p>
699
-
700
-
701
- </div>
702
- </div>
703
- <div class="tags">
704
-
705
-
706
- </div>
707
- </dt>
708
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml&quot;</span>
709
- </pre></dd>
710
-
711
- <dt id="CORE_CT-constant" class="">CORE_CT =
712
- <div class="docstring">
713
- <div class="discussion">
714
- <p>
715
- core content type
716
- </p>
717
-
718
-
719
- </div>
720
- </div>
721
- <div class="tags">
722
-
723
-
724
- </div>
725
- </dt>
726
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-package.core-properties+xml&quot;</span>
727
- </pre></dd>
728
-
729
- <dt id="CHART_CT-constant" class="">CHART_CT =
730
- <div class="docstring">
731
- <div class="discussion">
732
- <p>
733
- chart content type
734
- </p>
735
-
736
-
737
- </div>
738
- </div>
739
- <div class="tags">
740
-
741
-
742
- </div>
743
- </dt>
744
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.drawingml.chart+xml&quot;</span>
745
- </pre></dd>
746
-
747
- <dt id="JPEG_CT-constant" class="">JPEG_CT =
748
- <div class="docstring">
749
- <div class="discussion">
750
- <p>
751
- jpeg content type
752
- </p>
753
-
754
-
755
- </div>
756
- </div>
757
- <div class="tags">
758
-
759
-
760
- </div>
761
- </dt>
762
- <dd><pre class="code"><span class='string val'>&quot;image/jpeg&quot;</span>
763
- </pre></dd>
764
-
765
- <dt id="GIF_CT-constant" class="">GIF_CT =
766
- <div class="docstring">
767
- <div class="discussion">
768
- <p>
769
- gif content type
770
- </p>
771
-
772
-
773
- </div>
774
- </div>
775
- <div class="tags">
776
-
777
-
778
- </div>
779
- </dt>
780
- <dd><pre class="code"><span class='string val'>&quot;image/gif&quot;</span>
781
- </pre></dd>
782
-
783
- <dt id="PNG_CT-constant" class="">PNG_CT =
784
- <div class="docstring">
785
- <div class="discussion">
786
- <p>
787
- png content type
788
- </p>
789
-
790
-
791
- </div>
792
- </div>
793
- <div class="tags">
794
-
795
-
796
- </div>
797
- </dt>
798
- <dd><pre class="code"><span class='string val'>&quot;image/png&quot;</span>
799
- </pre></dd>
800
-
801
- <dt id="DRAWING_CT-constant" class="">DRAWING_CT =
802
- <div class="docstring">
803
- <div class="discussion">
804
- <p>
805
- drawing content type
806
- </p>
807
-
808
-
809
- </div>
810
- </div>
811
- <div class="tags">
812
-
813
-
814
- </div>
815
- </dt>
816
- <dd><pre class="code"><span class='string val'>&quot;application/vnd.openxmlformats-officedocument.drawing+xml&quot;</span>
817
- </pre></dd>
818
-
819
- <dt id="XML_EX-constant" class="">XML_EX =
820
- <div class="docstring">
821
- <div class="discussion">
822
- <p>
823
- xml content type extensions
824
- </p>
825
-
826
-
827
- </div>
828
- </div>
829
- <div class="tags">
830
-
831
-
832
- </div>
833
- </dt>
834
- <dd><pre class="code"><span class='string val'>&quot;xml&quot;</span>
835
- </pre></dd>
836
-
837
- <dt id="JPEG_EX-constant" class="">JPEG_EX =
838
- <div class="docstring">
839
- <div class="discussion">
840
- <p>
841
- jpeg extension
842
- </p>
843
-
844
-
845
- </div>
846
- </div>
847
- <div class="tags">
848
-
849
-
850
- </div>
851
- </dt>
852
- <dd><pre class="code"><span class='string val'>&quot;jpeg&quot;</span>
853
- </pre></dd>
854
-
855
- <dt id="GIF_EX-constant" class="">GIF_EX =
856
- <div class="docstring">
857
- <div class="discussion">
858
- <p>
859
- gif extension
860
- </p>
861
-
862
-
863
- </div>
864
- </div>
865
- <div class="tags">
866
-
867
-
868
- </div>
869
- </dt>
870
- <dd><pre class="code"><span class='string val'>&quot;gif&quot;</span>
871
- </pre></dd>
872
-
873
- <dt id="PNG_EX-constant" class="">PNG_EX =
874
- <div class="docstring">
875
- <div class="discussion">
876
- <p>
877
- png extension
878
- </p>
879
-
880
-
881
- </div>
882
- </div>
883
- <div class="tags">
884
-
885
-
886
- </div>
887
- </dt>
888
- <dd><pre class="code"><span class='string val'>&quot;png&quot;</span>
889
- </pre></dd>
890
-
891
- <dt id="RELS_EX-constant" class="">RELS_EX =
892
- <div class="docstring">
893
- <div class="discussion">
894
- <p>
895
- rels content type extension
896
- </p>
897
-
898
-
899
- </div>
900
- </div>
901
- <div class="tags">
902
-
903
-
904
- </div>
905
- </dt>
906
- <dd><pre class="code"><span class='string val'>&quot;rels&quot;</span>
907
- </pre></dd>
908
-
909
- <dt id="WORKBOOK_PN-constant" class="">WORKBOOK_PN =
910
- <div class="docstring">
911
- <div class="discussion">
912
- <p>
913
- workbook part
914
- </p>
915
-
916
-
917
- </div>
918
- </div>
919
- <div class="tags">
920
-
921
-
922
- </div>
923
- </dt>
924
- <dd><pre class="code"><span class='string val'>&quot;xl/workbook.xml&quot;</span>
925
- </pre></dd>
926
-
927
- <dt id="STYLES_PN-constant" class="">STYLES_PN =
928
- <div class="docstring">
929
- <div class="discussion">
930
- <p>
931
- styles part
932
- </p>
933
-
934
-
935
- </div>
936
- </div>
937
- <div class="tags">
938
-
939
-
940
- </div>
941
- </dt>
942
- <dd><pre class="code"><span class='string val'>&quot;styles.xml&quot;</span>
943
- </pre></dd>
944
-
945
- <dt id="APP_PN-constant" class="">APP_PN =
946
- <div class="docstring">
947
- <div class="discussion">
948
- <p>
949
- app part
950
- </p>
951
-
952
-
953
- </div>
954
- </div>
955
- <div class="tags">
956
-
957
-
958
- </div>
959
- </dt>
960
- <dd><pre class="code"><span class='string val'>&quot;docProps/app.xml&quot;</span>
961
- </pre></dd>
962
-
963
- <dt id="CORE_PN-constant" class="">CORE_PN =
964
- <div class="docstring">
965
- <div class="discussion">
966
- <p>
967
- core part
968
- </p>
969
-
970
-
971
- </div>
972
- </div>
973
- <div class="tags">
974
-
975
-
976
- </div>
977
- </dt>
978
- <dd><pre class="code"><span class='string val'>&quot;docProps/core.xml&quot;</span>
979
- </pre></dd>
980
-
981
- <dt id="CONTENT_TYPES_PN-constant" class="">CONTENT_TYPES_PN =
982
- <div class="docstring">
983
- <div class="discussion">
984
- <p>
985
- content types part
986
- </p>
987
-
988
-
989
- </div>
990
- </div>
991
- <div class="tags">
992
-
993
-
994
- </div>
995
- </dt>
996
- <dd><pre class="code"><span class='string val'>&quot;[Content_Types].xml&quot;</span>
997
- </pre></dd>
998
-
999
- <dt id="RELS_PN-constant" class="">RELS_PN =
1000
- <div class="docstring">
1001
- <div class="discussion">
1002
- <p>
1003
- rels part
1004
- </p>
1005
-
1006
-
1007
- </div>
1008
- </div>
1009
- <div class="tags">
1010
-
1011
-
1012
- </div>
1013
- </dt>
1014
- <dd><pre class="code"><span class='string val'>&quot;_rels/.rels&quot;</span>
1015
- </pre></dd>
1016
-
1017
- <dt id="WORKBOOK_RELS_PN-constant" class="">WORKBOOK_RELS_PN =
1018
- <div class="docstring">
1019
- <div class="discussion">
1020
- <p>
1021
- workbook rels part
1022
- </p>
1023
-
1024
-
1025
- </div>
1026
- </div>
1027
- <div class="tags">
1028
-
1029
-
1030
- </div>
1031
- </dt>
1032
- <dd><pre class="code"><span class='string val'>&quot;xl/_rels/workbook.xml.rels&quot;</span>
1033
- </pre></dd>
1034
-
1035
- <dt id="WORKSHEET_PN-constant" class="">WORKSHEET_PN =
1036
- <div class="docstring">
1037
- <div class="discussion">
1038
- <p>
1039
- worksheet part
1040
- </p>
1041
-
1042
-
1043
- </div>
1044
- </div>
1045
- <div class="tags">
1046
-
1047
-
1048
- </div>
1049
- </dt>
1050
- <dd><pre class="code"><span class='string val'>&quot;worksheets/sheet%d.xml&quot;</span>
1051
- </pre></dd>
1052
-
1053
- <dt id="WORKSHEET_RELS_PN-constant" class="">WORKSHEET_RELS_PN =
1054
- <div class="docstring">
1055
- <div class="discussion">
1056
- <p>
1057
- worksheet rels part
1058
- </p>
1059
-
1060
-
1061
- </div>
1062
- </div>
1063
- <div class="tags">
1064
-
1065
-
1066
- </div>
1067
- </dt>
1068
- <dd><pre class="code"><span class='string val'>&quot;worksheets/_rels/sheet%d.xml.rels&quot;</span>
1069
- </pre></dd>
1070
-
1071
- <dt id="DRAWING_PN-constant" class="">DRAWING_PN =
1072
- <div class="docstring">
1073
- <div class="discussion">
1074
- <p>
1075
- drawing part
1076
- </p>
1077
-
1078
-
1079
- </div>
1080
- </div>
1081
- <div class="tags">
1082
-
1083
-
1084
- </div>
1085
- </dt>
1086
- <dd><pre class="code"><span class='string val'>&quot;drawings/drawing%d.xml&quot;</span>
1087
- </pre></dd>
1088
-
1089
- <dt id="DRAWING_RELS_PN-constant" class="">DRAWING_RELS_PN =
1090
- <div class="docstring">
1091
- <div class="discussion">
1092
- <p>
1093
- drawing rels part
1094
- </p>
1095
-
1096
-
1097
- </div>
1098
- </div>
1099
- <div class="tags">
1100
-
1101
-
1102
- </div>
1103
- </dt>
1104
- <dd><pre class="code"><span class='string val'>&quot;drawings/_rels/drawing%d.xml.rels&quot;</span>
1105
- </pre></dd>
1106
-
1107
- <dt id="CHART_PN-constant" class="">CHART_PN =
1108
- <div class="docstring">
1109
- <div class="discussion">
1110
- <p>
1111
- chart part
1112
- </p>
1113
-
1114
-
1115
- </div>
1116
- </div>
1117
- <div class="tags">
1118
-
1119
-
1120
- </div>
1121
- </dt>
1122
- <dd><pre class="code"><span class='string val'>&quot;charts/chart%d.xml&quot;</span>
1123
- </pre></dd>
1124
-
1125
- <dt id="IMAGE_PN-constant" class="">IMAGE_PN =
1126
- <div class="docstring">
1127
- <div class="discussion">
1128
- <p>
1129
- chart part
1130
- </p>
1131
-
1132
-
1133
- </div>
1134
- </div>
1135
- <div class="tags">
1136
-
1137
-
1138
- </div>
1139
- </dt>
1140
- <dd><pre class="code"><span class='string val'>&quot;media/image%d.%s&quot;</span>
1141
- </pre></dd>
1142
-
1143
- <dt id="APP_XSD-constant" class="">APP_XSD =
1144
- <div class="docstring">
1145
- <div class="discussion">
1146
- <p>
1147
- App validation schema
1148
- </p>
1149
-
1150
-
1151
- </div>
1152
- </div>
1153
- <div class="tags">
1154
-
1155
-
1156
- </div>
1157
- </dt>
1158
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/shared-documentPropertiesExtended.xsd&quot;</span>
1159
- </pre></dd>
1160
-
1161
- <dt id="CORE_XSD-constant" class="">CORE_XSD =
1162
- <div class="docstring">
1163
- <div class="discussion">
1164
- <p>
1165
- core validation schema
1166
- </p>
1167
-
1168
-
1169
- </div>
1170
- </div>
1171
- <div class="tags">
1172
-
1173
-
1174
- </div>
1175
- </dt>
1176
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/opc-coreProperties.xsd&quot;</span>
1177
- </pre></dd>
1178
-
1179
- <dt id="CONTENT_TYPES_XSD-constant" class="">CONTENT_TYPES_XSD =
1180
- <div class="docstring">
1181
- <div class="discussion">
1182
- <p>
1183
- content types validation schema
1184
- </p>
1185
-
1186
-
1187
- </div>
1188
- </div>
1189
- <div class="tags">
1190
-
1191
-
1192
- </div>
1193
- </dt>
1194
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/opc-contentTypes.xsd&quot;</span>
1195
- </pre></dd>
1196
-
1197
- <dt id="RELS_XSD-constant" class="">RELS_XSD =
1198
- <div class="docstring">
1199
- <div class="discussion">
1200
- <p>
1201
- rels validation schema
1202
- </p>
1203
-
1204
-
1205
- </div>
1206
- </div>
1207
- <div class="tags">
1208
-
1209
-
1210
- </div>
1211
- </dt>
1212
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/opc-relationships.xsd&quot;</span>
1213
- </pre></dd>
1214
-
1215
- <dt id="SML_XSD-constant" class="">SML_XSD =
1216
- <div class="docstring">
1217
- <div class="discussion">
1218
- <p>
1219
- spreadsheetML validation schema
1220
- </p>
1221
-
1222
-
1223
- </div>
1224
- </div>
1225
- <div class="tags">
1226
-
1227
-
1228
- </div>
1229
- </dt>
1230
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/sml.xsd&quot;</span>
1231
- </pre></dd>
1232
-
1233
- <dt id="DRAWING_XSD-constant" class="">DRAWING_XSD =
1234
- <div class="docstring">
1235
- <div class="discussion">
1236
- <p>
1237
- drawing validation schema
1238
- </p>
1239
-
1240
-
1241
- </div>
1242
- </div>
1243
- <div class="tags">
1244
-
1245
-
1246
- </div>
1247
- </dt>
1248
- <dd><pre class="code"><span class='string val'>&quot;lib/schema/dml-spreadsheetDrawing.xsd&quot;</span>
1249
- </pre></dd>
1250
-
1251
- <dt id="NUM_FMT_PERCENT-constant" class="">NUM_FMT_PERCENT =
1252
- <div class="docstring">
1253
- <div class="discussion">
1254
- <p>
1255
- number format id for pecentage formatting using the default formatting id.
1256
- </p>
1257
-
1258
-
1259
- </div>
1260
- </div>
1261
- <div class="tags">
1262
-
1263
-
1264
- </div>
1265
- </dt>
1266
- <dd><pre class="code"><span class='integer val'>9</span>
1267
- </pre></dd>
1268
-
1269
- <dt id="NUM_FMT_YYYYMMDD-constant" class="">NUM_FMT_YYYYMMDD =
1270
- <div class="docstring">
1271
- <div class="discussion">
1272
- <p>
1273
- number format id for date format like 2011/11/13
1274
- </p>
1275
-
1276
-
1277
- </div>
1278
- </div>
1279
- <div class="tags">
1280
-
1281
-
1282
- </div>
1283
- </dt>
1284
- <dd><pre class="code"><span class='integer val'>100</span>
1285
- </pre></dd>
1286
-
1287
- <dt id="NUM_FMT_YYYYMMDDHHMMSS-constant" class="">NUM_FMT_YYYYMMDDHHMMSS =
1288
- <div class="docstring">
1289
- <div class="discussion">
1290
- <p>
1291
- number format id for time format the creates 2011/11/13 12:23:10
1292
- </p>
1293
-
1294
-
1295
- </div>
1296
- </div>
1297
- <div class="tags">
1298
-
1299
-
1300
- </div>
1301
- </dt>
1302
- <dd><pre class="code"><span class='integer val'>101</span>
1303
- </pre></dd>
1304
-
1305
- <dt id="STYLE_THIN_BORDER-constant" class="">STYLE_THIN_BORDER =
1306
- <div class="docstring">
1307
- <div class="discussion">
1308
- <p>
1309
- cellXfs id for thin borders around the cell
1310
- </p>
1311
-
1312
-
1313
- </div>
1314
- </div>
1315
- <div class="tags">
1316
-
1317
-
1318
- </div>
1319
- </dt>
1320
- <dd><pre class="code"><span class='integer val'>1</span>
1321
- </pre></dd>
1322
-
1323
- <dt id="STYLE_DATE-constant" class="">STYLE_DATE =
1324
- <div class="docstring">
1325
- <div class="discussion">
1326
- <p>
1327
- cellXfs id for default date styling
1328
- </p>
1329
-
1330
-
1331
- </div>
1332
- </div>
1333
- <div class="tags">
1334
-
1335
-
1336
- </div>
1337
- </dt>
1338
- <dd><pre class="code"><span class='integer val'>2</span>
1339
- </pre></dd>
1340
-
1341
- <dt id="ERR_RESTRICTION-constant" class="">ERR_RESTRICTION =
1342
- <div class="docstring">
1343
- <div class="discussion">
1344
- <p>
1345
- error messages RestrictionValidor
1346
- </p>
1347
-
1348
-
1349
- </div>
1350
- </div>
1351
- <div class="tags">
1352
-
1353
-
1354
- </div>
1355
- </dt>
1356
- <dd><pre class="code"><span class='string val'>&quot;Invalid Data: %s. %s must be one of %s.&quot;</span>
1357
- </pre></dd>
1358
-
1359
- <dt id="ERR_TYPE-constant" class="">ERR_TYPE =
1360
- <div class="docstring">
1361
- <div class="discussion">
1362
- <p>
1363
- error message DataTypeValidator
1364
- </p>
1365
-
1366
-
1367
- </div>
1368
- </div>
1369
- <div class="tags">
1370
-
1371
-
1372
- </div>
1373
- </dt>
1374
- <dd><pre class="code"><span class='string val'>&quot;Invalid Data %s for %s. must be %s.&quot;</span>
1375
- </pre></dd>
1376
-
1377
- <dt id="ERR_REGEX-constant" class="">ERR_REGEX =
1378
- <div class="docstring">
1379
- <div class="discussion">
1380
- <p>
1381
- error message for RegexValidator
1382
- </p>
1383
-
1384
-
1385
- </div>
1386
- </div>
1387
- <div class="tags">
1388
-
1389
-
1390
- </div>
1391
- </dt>
1392
- <dd><pre class="code"><span class='string val'>&quot;Invalid Data. %s does not match %s.&quot;</span>
1393
- </pre></dd>
1394
-
1395
- <dt id="ERR_DUPLICATE_SHEET_NAME-constant" class="">ERR_DUPLICATE_SHEET_NAME =
1396
- <div class="docstring">
1397
- <div class="discussion">
1398
- <p>
1399
- error message for duplicate sheet names
1400
- </p>
1401
-
1402
-
1403
- </div>
1404
- </div>
1405
- <div class="tags">
1406
-
1407
-
1408
- </div>
1409
- </dt>
1410
- <dd><pre class="code"><span class='string val'>&quot;There is already a worksheet in this workbook named '%s'. Please use a unique name&quot;</span>
1411
- </pre></dd>
1412
-
1413
- </dl>
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
- <h2>
1422
- Class Method Summary
1423
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
1424
- </h2>
1425
-
1426
- <ul class="summary">
1427
-
1428
- <li class="public ">
1429
- <span class="summary_signature">
1430
-
1431
- <a href="#cell_range-class_method" title="cell_range (class method)">+ (Object) <strong>cell_range</strong>(items) </a>
1432
-
1433
-
1434
-
1435
- </span>
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
- <span class="summary_desc"><div class='inline'><p>
1445
- determines the cell range for the items provided.
1446
- </p>
1447
- </div></span>
1448
-
1449
- </li>
1450
-
1451
-
1452
- <li class="public ">
1453
- <span class="summary_signature">
1454
-
1455
- <a href="#name_to_indices-class_method" title="name_to_indices (class method)">+ (Object) <strong>name_to_indices</strong>(name) </a>
1456
-
1457
-
1458
-
1459
- </span>
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
-
1468
- <span class="summary_desc"><div class='inline'></div></span>
1469
-
1470
- </li>
1471
-
1472
-
1473
- <li class="public ">
1474
- <span class="summary_signature">
1475
-
1476
- <a href="#validate_boolean-class_method" title="validate_boolean (class method)">+ (Object) <strong>validate_boolean</strong>(v) </a>
1477
-
1478
-
1479
-
1480
- </span>
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
- <span class="summary_desc"><div class='inline'><p>
1490
- Requires that the value is a form that can be evaluated as a boolean in an
1491
- xml document.
1492
- </p>
1493
- </div></span>
1494
-
1495
- </li>
1496
-
1497
-
1498
- <li class="public ">
1499
- <span class="summary_signature">
1500
-
1501
- <a href="#validate_content_type-class_method" title="validate_content_type (class method)">+ (Object) <strong>validate_content_type</strong>(v) </a>
1502
-
1503
-
1504
-
1505
- </span>
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
- <span class="summary_desc"><div class='inline'><p>
1515
- Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT,
1516
- APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT,
1517
- CORE_CT, CHART_CT, DRAWING_CT are allowed.
1518
- </p>
1519
- </div></span>
1520
-
1521
- </li>
1522
-
1523
-
1524
- <li class="public ">
1525
- <span class="summary_signature">
1526
-
1527
- <a href="#validate_float-class_method" title="validate_float (class method)">+ (Object) <strong>validate_float</strong>(v) </a>
1528
-
1529
-
1530
-
1531
- </span>
1532
-
1533
-
1534
-
1535
-
1536
-
1537
-
1538
-
1539
-
1540
- <span class="summary_desc"><div class='inline'><p>
1541
- Requires that the value is a Float.
1542
- </p>
1543
- </div></span>
1544
-
1545
- </li>
1546
-
1547
-
1548
- <li class="public ">
1549
- <span class="summary_signature">
1550
-
1551
- <a href="#validate_gradient_type-class_method" title="validate_gradient_type (class method)">+ (Object) <strong>validate_gradient_type</strong>(v) </a>
1552
-
1553
-
1554
-
1555
- </span>
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
- <span class="summary_desc"><div class='inline'><p>
1565
- Requires that the value is a gradient_type.
1566
- </p>
1567
- </div></span>
1568
-
1569
- </li>
1570
-
1571
-
1572
- <li class="public ">
1573
- <span class="summary_signature">
1574
-
1575
- <a href="#validate_horizontal_alignment-class_method" title="validate_horizontal_alignment (class method)">+ (Object) <strong>validate_horizontal_alignment</strong>(v) </a>
1576
-
1577
-
1578
-
1579
- </span>
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
- <span class="summary_desc"><div class='inline'><p>
1589
- Requires that the value is a valid horizontal_alignment :general, :left,
1590
- :center, :right, :fill, :justify, :centerContinuous, :distributed are
1591
- allowed.
1592
- </p>
1593
- </div></span>
1594
-
1595
- </li>
1596
-
1597
-
1598
- <li class="public ">
1599
- <span class="summary_signature">
1600
-
1601
- <a href="#validate_int-class_method" title="validate_int (class method)">+ (Object) <strong>validate_int</strong>(v) </a>
1602
-
1603
-
1604
-
1605
- </span>
1606
-
1607
-
1608
-
1609
-
1610
-
1611
-
1612
-
1613
-
1614
- <span class="summary_desc"><div class='inline'><p>
1615
- Requires that the value is a Fixnum or Integer.
1616
- </p>
1617
- </div></span>
1618
-
1619
- </li>
1620
-
1621
-
1622
- <li class="public ">
1623
- <span class="summary_signature">
1624
-
1625
- <a href="#validate_pattern_type-class_method" title="validate_pattern_type (class method)">+ (Object) <strong>validate_pattern_type</strong>(v) </a>
1626
-
1627
-
1628
-
1629
- </span>
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
- <span class="summary_desc"><div class='inline'><p>
1639
- Requires that the value is valid pattern type.
1640
- </p>
1641
- </div></span>
1642
-
1643
- </li>
1644
-
1645
-
1646
- <li class="public ">
1647
- <span class="summary_signature">
1648
-
1649
- <a href="#validate_relationship_type-class_method" title="validate_relationship_type (class method)">+ (Object) <strong>validate_relationship_type</strong>(v) </a>
1650
-
1651
-
1652
-
1653
- </span>
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
- <span class="summary_desc"><div class='inline'><p>
1663
- Requires that the value is a valid relationship_type XML_NS_R, TABLE_R,
1664
- WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R,
1665
- DRAWING_R are allowed.
1666
- </p>
1667
- </div></span>
1668
-
1669
- </li>
1670
-
1671
-
1672
- <li class="public ">
1673
- <span class="summary_signature">
1674
-
1675
- <a href="#validate_string-class_method" title="validate_string (class method)">+ (Object) <strong>validate_string</strong>(v) </a>
1676
-
1677
-
1678
-
1679
- </span>
1680
-
1681
-
1682
-
1683
-
1684
-
1685
-
1686
-
1687
-
1688
- <span class="summary_desc"><div class='inline'><p>
1689
- Requires that the value is a String.
1690
- </p>
1691
- </div></span>
1692
-
1693
- </li>
1694
-
1695
-
1696
- <li class="public ">
1697
- <span class="summary_signature">
1698
-
1699
- <a href="#validate_table_element_type-class_method" title="validate_table_element_type (class method)">+ (Object) <strong>validate_table_element_type</strong>(v) </a>
1700
-
1701
-
1702
-
1703
- </span>
1704
-
1705
-
1706
-
1707
-
1708
-
1709
-
1710
-
1711
-
1712
- <span class="summary_desc"><div class='inline'><p>
1713
- Requires that the value is a valid table element type :wholeTable,
1714
- :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe,
1715
- :secondRowStripe, :firstColumnStripe, :secondColumnStripe,
1716
- :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell,
1717
- :firstSubtotalColumn, :secondSubtotalColumn, :thirdSubtotalColumn,
1718
- :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow,
1719
- :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading,
1720
- :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading,
1721
- :pageFieldLabels, :pageFieldValues are allowed.
1722
- </p>
1723
- </div></span>
1724
-
1725
- </li>
1726
-
1727
-
1728
- <li class="public ">
1729
- <span class="summary_signature">
1730
-
1731
- <a href="#validate_unsigned_int-class_method" title="validate_unsigned_int (class method)">+ (Boolean) <strong>validate_unsigned_int</strong>(v) </a>
1732
-
1733
-
1734
-
1735
- </span>
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
- <span class="summary_desc"><div class='inline'><p>
1745
- Requires that the value is a Fixnum or Integer and is greater or equal to
1746
- 0.
1747
- </p>
1748
- </div></span>
1749
-
1750
- </li>
1751
-
1752
-
1753
- <li class="public ">
1754
- <span class="summary_signature">
1755
-
1756
- <a href="#validate_vertical_alignment-class_method" title="validate_vertical_alignment (class method)">+ (Object) <strong>validate_vertical_alignment</strong>(v) </a>
1757
-
1758
-
1759
-
1760
- </span>
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
- <span class="summary_desc"><div class='inline'><p>
1770
- Requires that the value is a valid vertical_alignment :top, :center,
1771
- :bottom, :justify, :distributed are allowed.
1772
- </p>
1773
- </div></span>
1774
-
1775
- </li>
1776
-
1777
-
1778
- </ul>
1779
-
1780
-
1781
-
1782
-
1783
- <div id="class_method_details" class="method_details_list">
1784
- <h2>Class Method Details</h2>
1785
-
1786
-
1787
- <div class="method_details first">
1788
- <p class="signature first" id="cell_range-class_method">
1789
-
1790
- + (<tt>Object</tt>) <strong>cell_range</strong>(items)
1791
-
1792
-
1793
-
1794
- </p><div class="docstring">
1795
- <div class="discussion">
1796
- <p>
1797
- determines the cell range for the items provided
1798
- </p>
1799
-
1800
-
1801
- </div>
1802
- </div>
1803
- <div class="tags">
1804
-
1805
-
1806
- </div><table class="source_code">
1807
- <tr>
1808
- <td>
1809
- <pre class="lines">
1810
-
1811
-
1812
- 37
1813
- 38
1814
- 39
1815
- 40
1816
- 41
1817
- 42
1818
- 43</pre>
1819
- </td>
1820
- <td>
1821
- <pre class="code"><span class="info file"># File 'lib/axlsx.rb', line 37</span>
1822
-
1823
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='cell_range identifier id'>cell_range</span><span class='lparen token'>(</span><span class='items identifier id'>items</span><span class='rparen token'>)</span>
1824
- <span class='return return kw'>return</span> <span class='string val'>&quot;&quot;</span> <span class='unless unless_mod kw'>unless</span> <span class='items identifier id'>items</span><span class='dot token'>.</span><span class='first identifier id'>first</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span> <span class='Cell constant id'>Cell</span>
1825
- <span class='ref identifier id'>ref</span> <span class='assign token'>=</span> <span class='dstring node'>&quot;#{items.first.row.worksheet.name}!&quot;</span> <span class='plus op'>+</span>
1826
- <span class='dstring node'>&quot;#{items.first.r_abs}&quot;</span>
1827
- <span class='ref identifier id'>ref</span> <span class='opasgn op'>+=</span> <span class='dstring node'>&quot;:#{items.last.r_abs}&quot;</span> <span class='if if_mod kw'>if</span> <span class='items identifier id'>items</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='gt op'>&gt;</span> <span class='integer val'>1</span>
1828
- <span class='ref identifier id'>ref</span>
1829
- <span class='end end kw'>end</span>
1830
- </pre>
1831
- </td>
1832
- </tr>
1833
- </table>
1834
- </div>
1835
-
1836
- <div class="method_details ">
1837
- <p class="signature " id="name_to_indices-class_method">
1838
-
1839
- + (<tt>Object</tt>) <strong>name_to_indices</strong>(name)
1840
-
1841
-
1842
-
1843
- </p><div class="docstring">
1844
- <div class="discussion">
1845
-
1846
-
1847
- </div>
1848
- </div>
1849
- <div class="tags">
1850
-
1851
- <h3>Raises:</h3>
1852
- <ul class="raise">
1853
-
1854
- <li>
1855
-
1856
-
1857
- <span class='type'>(<tt>ArgumentError</tt>)</span>
1858
-
1859
-
1860
-
1861
- </li>
1862
-
1863
- </ul>
1864
-
1865
- </div><table class="source_code">
1866
- <tr>
1867
- <td>
1868
- <pre class="lines">
1869
-
1870
-
1871
- 45
1872
- 46
1873
- 47
1874
- 48
1875
- 49
1876
- 50
1877
- 51
1878
- 52
1879
- 53</pre>
1880
- </td>
1881
- <td>
1882
- <pre class="code"><span class="info file"># File 'lib/axlsx.rb', line 45</span>
1883
-
1884
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='name_to_indices identifier id'>name_to_indices</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='rparen token'>)</span>
1885
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'invalid cell name'</span> <span class='unless unless_mod kw'>unless</span> <span class='name identifier id'>name</span><span class='dot token'>.</span><span class='size identifier id'>size</span> <span class='gt op'>&gt;</span> <span class='integer val'>1</span>
1886
- <span class='v identifier id'>v</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span><span class='lbrack token'>[</span><span class='regexp val'>/[A-Z]+/</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='reverse identifier id'>reverse</span><span class='dot token'>.</span><span class='chars identifier id'>chars</span><span class='dot token'>.</span><span class='reduce identifier id'>reduce</span><span class='lparen token'>(</span><span class='lbrace token'>{</span><span class='symbol val'>:base=</span><span class='gt op'>&gt;</span><span class='integer val'>1</span><span class='comma token'>,</span> <span class='symbol val'>:i=</span><span class='gt op'>&gt;</span><span class='integer val'>0</span><span class='rbrace token'>}</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='v identifier id'>v</span><span class='comma token'>,</span> <span class='c identifier id'>c</span><span class='bitor op'>|</span>
1887
- <span class='v identifier id'>v</span><span class='lbrack token'>[</span><span class='symbol val'>:i</span><span class='rbrack token'>]</span> <span class='opasgn op'>+=</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='c identifier id'>c</span><span class='dot token'>.</span><span class='bytes identifier id'>bytes</span><span class='dot token'>.</span><span class='first identifier id'>first</span> <span class='minus op'>-</span> <span class='integer val'>65</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='v identifier id'>v</span><span class='lbrack token'>[</span><span class='symbol val'>:base</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='semicolon token'>;</span> <span class='v identifier id'>v</span><span class='lbrack token'>[</span><span class='symbol val'>:base</span><span class='rbrack token'>]</span> <span class='opasgn op'>*=</span> <span class='integer val'>26</span><span class='semicolon token'>;</span> <span class='v identifier id'>v</span>
1888
- <span class='end end kw'>end</span>
1889
-
1890
- <span class='lbrack token'>[</span><span class='v identifier id'>v</span><span class='lbrack token'>[</span><span class='symbol val'>:i</span><span class='rbrack token'>]</span><span class='minus op'>-</span><span class='integer val'>1</span><span class='comma token'>,</span> <span class='lparen token'>(</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='lbrack token'>[</span><span class='regexp val'>/[1-9]+/</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='to_i identifier id'>to_i</span><span class='rparen token'>)</span><span class='minus op'>-</span><span class='integer val'>1</span><span class='rbrack token'>]</span>
1891
-
1892
- <span class='end end kw'>end</span>
1893
- </pre>
1894
- </td>
1895
- </tr>
1896
- </table>
1897
- </div>
1898
-
1899
- <div class="method_details ">
1900
- <p class="signature " id="validate_boolean-class_method">
1901
-
1902
- + (<tt>Object</tt>) <strong>validate_boolean</strong>(v)
1903
-
1904
-
1905
-
1906
- </p><div class="docstring">
1907
- <div class="discussion">
1908
- <p>
1909
- Requires that the value is a form that can be evaluated as a boolean in an
1910
- xml document. The value must be an instance of Fixnum, String, Integer,
1911
- Symbol, TrueClass or FalseClass and it must be one of 0, 1,
1912
- &quot;true&quot;, &quot;false&quot;, :true, :false, true, false,
1913
- &quot;0&quot;, or &quot;1&quot;
1914
- </p>
1915
-
1916
-
1917
- </div>
1918
- </div>
1919
- <div class="tags">
1920
- <h3>Parameters:</h3>
1921
- <ul class="param">
1922
-
1923
- <li>
1924
-
1925
- <span class='name'>v</span>
1926
-
1927
-
1928
- <span class='type'>(<tt>Any</tt>)</span>
1929
-
1930
-
1931
-
1932
- &mdash;
1933
- <div class='inline'><p>
1934
- The value validated
1935
- </p>
1936
- </div>
1937
-
1938
- </li>
1939
-
1940
- </ul>
1941
-
1942
-
1943
- </div><table class="source_code">
1944
- <tr>
1945
- <td>
1946
- <pre class="lines">
1947
-
1948
-
1949
- 65
1950
- 66
1951
- 67</pre>
1952
- </td>
1953
- <td>
1954
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 65</span>
1955
-
1956
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_boolean identifier id'>validate_boolean</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
1957
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='symbol val'>:boolean</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='Fixnum constant id'>Fixnum</span><span class='comma token'>,</span> <span class='String constant id'>String</span><span class='comma token'>,</span> <span class='Integer constant id'>Integer</span><span class='comma token'>,</span> <span class='Symbol constant id'>Symbol</span><span class='comma token'>,</span> <span class='TrueClass constant id'>TrueClass</span><span class='comma token'>,</span> <span class='FalseClass constant id'>FalseClass</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='comma token'>,</span> <span class='lambda identifier id'>lambda</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='arg identifier id'>arg</span><span class='bitor op'>|</span> <span class='lbrack token'>[</span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='integer val'>1</span><span class='comma token'>,</span> <span class='string val'>&quot;true&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;false&quot;</span><span class='comma token'>,</span> <span class='symbol val'>:true</span><span class='comma token'>,</span> <span class='symbol val'>:false</span><span class='comma token'>,</span> <span class='true true kw'>true</span><span class='comma token'>,</span> <span class='false false kw'>false</span><span class='comma token'>,</span> <span class='string val'>&quot;0&quot;</span><span class='comma token'>,</span> <span class='string val'>&quot;1&quot;</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='arg identifier id'>arg</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span>
1958
- <span class='end end kw'>end</span>
1959
- </pre>
1960
- </td>
1961
- </tr>
1962
- </table>
1963
- </div>
1964
-
1965
- <div class="method_details ">
1966
- <p class="signature " id="validate_content_type-class_method">
1967
-
1968
- + (<tt>Object</tt>) <strong>validate_content_type</strong>(v)
1969
-
1970
-
1971
-
1972
- </p><div class="docstring">
1973
- <div class="discussion">
1974
- <p>
1975
- Requires that the value is a valid content_type TABLE_CT, WORKBOOK_CT,
1976
- APP_CT, RELS_CT, STYLES_CT, XML_CT, WORKSHEET_CT, SHARED_STRINGS_CT,
1977
- CORE_CT, CHART_CT, DRAWING_CT are allowed
1978
- </p>
1979
-
1980
-
1981
- </div>
1982
- </div>
1983
- <div class="tags">
1984
- <h3>Parameters:</h3>
1985
- <ul class="param">
1986
-
1987
- <li>
1988
-
1989
- <span class='name'>v</span>
1990
-
1991
-
1992
- <span class='type'>(<tt>Any</tt>)</span>
1993
-
1994
-
1995
-
1996
- &mdash;
1997
- <div class='inline'><p>
1998
- The value validated
1999
- </p>
2000
- </div>
2001
-
2002
- </li>
2003
-
2004
- </ul>
2005
-
2006
-
2007
- </div><table class="source_code">
2008
- <tr>
2009
- <td>
2010
- <pre class="lines">
2011
-
2012
-
2013
- 114
2014
- 115
2015
- 116</pre>
2016
- </td>
2017
- <td>
2018
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 114</span>
2019
-
2020
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_content_type identifier id'>validate_content_type</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2021
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:content_type</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='TABLE_CT constant id'>TABLE_CT</span><span class='comma token'>,</span> <span class='WORKBOOK_CT constant id'>WORKBOOK_CT</span><span class='comma token'>,</span> <span class='APP_CT constant id'>APP_CT</span><span class='comma token'>,</span> <span class='RELS_CT constant id'>RELS_CT</span><span class='comma token'>,</span> <span class='STYLES_CT constant id'>STYLES_CT</span><span class='comma token'>,</span> <span class='XML_CT constant id'>XML_CT</span><span class='comma token'>,</span> <span class='WORKSHEET_CT constant id'>WORKSHEET_CT</span><span class='comma token'>,</span> <span class='SHARED_STRINGS_CT constant id'>SHARED_STRINGS_CT</span><span class='comma token'>,</span> <span class='CORE_CT constant id'>CORE_CT</span><span class='comma token'>,</span> <span class='CHART_CT constant id'>CHART_CT</span><span class='comma token'>,</span> <span class='JPEG_CT constant id'>JPEG_CT</span><span class='comma token'>,</span> <span class='GIF_CT constant id'>GIF_CT</span><span class='comma token'>,</span> <span class='PNG_CT constant id'>PNG_CT</span><span class='comma token'>,</span> <span class='DRAWING_CT constant id'>DRAWING_CT</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2022
- <span class='end end kw'>end</span>
2023
- </pre>
2024
- </td>
2025
- </tr>
2026
- </table>
2027
- </div>
2028
-
2029
- <div class="method_details ">
2030
- <p class="signature " id="validate_float-class_method">
2031
-
2032
- + (<tt>Object</tt>) <strong>validate_float</strong>(v)
2033
-
2034
-
2035
-
2036
- </p><div class="docstring">
2037
- <div class="discussion">
2038
- <p>
2039
- Requires that the value is a Float
2040
- </p>
2041
-
2042
-
2043
- </div>
2044
- </div>
2045
- <div class="tags">
2046
- <h3>Parameters:</h3>
2047
- <ul class="param">
2048
-
2049
- <li>
2050
-
2051
- <span class='name'>v</span>
2052
-
2053
-
2054
- <span class='type'>(<tt>Any</tt>)</span>
2055
-
2056
-
2057
-
2058
- &mdash;
2059
- <div class='inline'><p>
2060
- The value validated
2061
- </p>
2062
- </div>
2063
-
2064
- </li>
2065
-
2066
- </ul>
2067
-
2068
-
2069
- </div><table class="source_code">
2070
- <tr>
2071
- <td>
2072
- <pre class="lines">
2073
-
2074
-
2075
- 77
2076
- 78
2077
- 79</pre>
2078
- </td>
2079
- <td>
2080
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 77</span>
2081
-
2082
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_float identifier id'>validate_float</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2083
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:float</span><span class='comma token'>,</span> <span class='Float constant id'>Float</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2084
- <span class='end end kw'>end</span>
2085
- </pre>
2086
- </td>
2087
- </tr>
2088
- </table>
2089
- </div>
2090
-
2091
- <div class="method_details ">
2092
- <p class="signature " id="validate_gradient_type-class_method">
2093
-
2094
- + (<tt>Object</tt>) <strong>validate_gradient_type</strong>(v)
2095
-
2096
-
2097
-
2098
- </p><div class="docstring">
2099
- <div class="discussion">
2100
- <p>
2101
- Requires that the value is a gradient_type. valid types are :linear and
2102
- :path
2103
- </p>
2104
-
2105
-
2106
- </div>
2107
- </div>
2108
- <div class="tags">
2109
- <h3>Parameters:</h3>
2110
- <ul class="param">
2111
-
2112
- <li>
2113
-
2114
- <span class='name'>v</span>
2115
-
2116
-
2117
- <span class='type'>(<tt>Any</tt>)</span>
2118
-
2119
-
2120
-
2121
- &mdash;
2122
- <div class='inline'><p>
2123
- The value validated
2124
- </p>
2125
- </div>
2126
-
2127
- </li>
2128
-
2129
- </ul>
2130
-
2131
-
2132
- </div><table class="source_code">
2133
- <tr>
2134
- <td>
2135
- <pre class="lines">
2136
-
2137
-
2138
- 93
2139
- 94
2140
- 95</pre>
2141
- </td>
2142
- <td>
2143
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 93</span>
2144
-
2145
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_gradient_type identifier id'>validate_gradient_type</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2146
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:gradient_type</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:linear</span><span class='comma token'>,</span> <span class='symbol val'>:path</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2147
- <span class='end end kw'>end</span>
2148
- </pre>
2149
- </td>
2150
- </tr>
2151
- </table>
2152
- </div>
2153
-
2154
- <div class="method_details ">
2155
- <p class="signature " id="validate_horizontal_alignment-class_method">
2156
-
2157
- + (<tt>Object</tt>) <strong>validate_horizontal_alignment</strong>(v)
2158
-
2159
-
2160
-
2161
- </p><div class="docstring">
2162
- <div class="discussion">
2163
- <p>
2164
- Requires that the value is a valid horizontal_alignment :general, :left,
2165
- :center, :right, :fill, :justify, :centerContinuous, :distributed are
2166
- allowed
2167
- </p>
2168
-
2169
-
2170
- </div>
2171
- </div>
2172
- <div class="tags">
2173
- <h3>Parameters:</h3>
2174
- <ul class="param">
2175
-
2176
- <li>
2177
-
2178
- <span class='name'>v</span>
2179
-
2180
-
2181
- <span class='type'>(<tt>Any</tt>)</span>
2182
-
2183
-
2184
-
2185
- &mdash;
2186
- <div class='inline'><p>
2187
- The value validated
2188
- </p>
2189
- </div>
2190
-
2191
- </li>
2192
-
2193
- </ul>
2194
-
2195
-
2196
- </div><table class="source_code">
2197
- <tr>
2198
- <td>
2199
- <pre class="lines">
2200
-
2201
-
2202
- 100
2203
- 101
2204
- 102</pre>
2205
- </td>
2206
- <td>
2207
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 100</span>
2208
-
2209
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_horizontal_alignment identifier id'>validate_horizontal_alignment</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2210
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:horizontal_alignment</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:general</span><span class='comma token'>,</span> <span class='symbol val'>:left</span><span class='comma token'>,</span> <span class='symbol val'>:center</span><span class='comma token'>,</span> <span class='symbol val'>:right</span><span class='comma token'>,</span> <span class='symbol val'>:fill</span><span class='comma token'>,</span> <span class='symbol val'>:justify</span><span class='comma token'>,</span> <span class='symbol val'>:centerContinuous</span><span class='comma token'>,</span> <span class='symbol val'>:distributed</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2211
- <span class='end end kw'>end</span>
2212
- </pre>
2213
- </td>
2214
- </tr>
2215
- </table>
2216
- </div>
2217
-
2218
- <div class="method_details ">
2219
- <p class="signature " id="validate_int-class_method">
2220
-
2221
- + (<tt>Object</tt>) <strong>validate_int</strong>(v)
2222
-
2223
-
2224
-
2225
- </p><div class="docstring">
2226
- <div class="discussion">
2227
- <p>
2228
- Requires that the value is a Fixnum or Integer
2229
- </p>
2230
-
2231
-
2232
- </div>
2233
- </div>
2234
- <div class="tags">
2235
- <h3>Parameters:</h3>
2236
- <ul class="param">
2237
-
2238
- <li>
2239
-
2240
- <span class='name'>v</span>
2241
-
2242
-
2243
- <span class='type'>(<tt>Any</tt>)</span>
2244
-
2245
-
2246
-
2247
- &mdash;
2248
- <div class='inline'><p>
2249
- The value validated
2250
- </p>
2251
- </div>
2252
-
2253
- </li>
2254
-
2255
- </ul>
2256
-
2257
-
2258
- </div><table class="source_code">
2259
- <tr>
2260
- <td>
2261
- <pre class="lines">
2262
-
2263
-
2264
- 57
2265
- 58
2266
- 59</pre>
2267
- </td>
2268
- <td>
2269
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 57</span>
2270
-
2271
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_int identifier id'>validate_int</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2272
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:unsigned_int</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='Fixnum constant id'>Fixnum</span><span class='comma token'>,</span> <span class='Integer constant id'>Integer</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2273
- <span class='end end kw'>end</span>
2274
- </pre>
2275
- </td>
2276
- </tr>
2277
- </table>
2278
- </div>
2279
-
2280
- <div class="method_details ">
2281
- <p class="signature " id="validate_pattern_type-class_method">
2282
-
2283
- + (<tt>Object</tt>) <strong>validate_pattern_type</strong>(v)
2284
-
2285
-
2286
-
2287
- </p><div class="docstring">
2288
- <div class="discussion">
2289
- <p>
2290
- Requires that the value is valid pattern type. valid pattern types must be
2291
- one of :none, :solid, :mediumGray, :darkGray, :lightGray, :darkHorizontal,
2292
- :darkVertical, :darkDown, :darkUp, :darkGrid, :darkTrellis,
2293
- :lightHorizontal, :lightVertical, :lightDown, :lightUp, :lightGrid,
2294
- :lightTrellis, :gray125, or :gray0625.
2295
- </p>
2296
-
2297
-
2298
- </div>
2299
- </div>
2300
- <div class="tags">
2301
- <h3>Parameters:</h3>
2302
- <ul class="param">
2303
-
2304
- <li>
2305
-
2306
- <span class='name'>v</span>
2307
-
2308
-
2309
- <span class='type'>(<tt>Any</tt>)</span>
2310
-
2311
-
2312
-
2313
- &mdash;
2314
- <div class='inline'><p>
2315
- The value validated
2316
- </p>
2317
- </div>
2318
-
2319
- </li>
2320
-
2321
- </ul>
2322
-
2323
-
2324
- </div><table class="source_code">
2325
- <tr>
2326
- <td>
2327
- <pre class="lines">
2328
-
2329
-
2330
- 85
2331
- 86
2332
- 87
2333
- 88</pre>
2334
- </td>
2335
- <td>
2336
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 85</span>
2337
-
2338
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_pattern_type identifier id'>validate_pattern_type</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2339
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:pattern_type</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:none</span><span class='comma token'>,</span> <span class='symbol val'>:solid</span><span class='comma token'>,</span> <span class='symbol val'>:mediumGray</span><span class='comma token'>,</span> <span class='symbol val'>:darkGray</span><span class='comma token'>,</span> <span class='symbol val'>:lightGray</span><span class='comma token'>,</span> <span class='symbol val'>:darkHorizontal</span><span class='comma token'>,</span> <span class='symbol val'>:darkVertical</span><span class='comma token'>,</span> <span class='symbol val'>:darkDown</span><span class='comma token'>,</span> <span class='symbol val'>:darkUp</span><span class='comma token'>,</span> <span class='symbol val'>:darkGrid</span><span class='comma token'>,</span>
2340
- <span class='symbol val'>:darkTrellis</span><span class='comma token'>,</span> <span class='symbol val'>:lightHorizontal</span><span class='comma token'>,</span> <span class='symbol val'>:lightVertical</span><span class='comma token'>,</span> <span class='symbol val'>:lightDown</span><span class='comma token'>,</span> <span class='symbol val'>:lightUp</span><span class='comma token'>,</span> <span class='symbol val'>:lightGrid</span><span class='comma token'>,</span> <span class='symbol val'>:lightTrellis</span><span class='comma token'>,</span> <span class='symbol val'>:gray125</span><span class='comma token'>,</span> <span class='symbol val'>:gray0625</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2341
- <span class='end end kw'>end</span>
2342
- </pre>
2343
- </td>
2344
- </tr>
2345
- </table>
2346
- </div>
2347
-
2348
- <div class="method_details ">
2349
- <p class="signature " id="validate_relationship_type-class_method">
2350
-
2351
- + (<tt>Object</tt>) <strong>validate_relationship_type</strong>(v)
2352
-
2353
-
2354
-
2355
- </p><div class="docstring">
2356
- <div class="discussion">
2357
- <p>
2358
- Requires that the value is a valid relationship_type XML_NS_R, TABLE_R,
2359
- WORKBOOK_R, WORKSHEET_R, APP_R, RELS_R, CORE_R, STYLES_R, CHART_R,
2360
- DRAWING_R are allowed
2361
- </p>
2362
-
2363
-
2364
- </div>
2365
- </div>
2366
- <div class="tags">
2367
- <h3>Parameters:</h3>
2368
- <ul class="param">
2369
-
2370
- <li>
2371
-
2372
- <span class='name'>v</span>
2373
-
2374
-
2375
- <span class='type'>(<tt>Any</tt>)</span>
2376
-
2377
-
2378
-
2379
- &mdash;
2380
- <div class='inline'><p>
2381
- The value validated
2382
- </p>
2383
- </div>
2384
-
2385
- </li>
2386
-
2387
- </ul>
2388
-
2389
-
2390
- </div><table class="source_code">
2391
- <tr>
2392
- <td>
2393
- <pre class="lines">
2394
-
2395
-
2396
- 121
2397
- 122
2398
- 123</pre>
2399
- </td>
2400
- <td>
2401
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 121</span>
2402
-
2403
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_relationship_type identifier id'>validate_relationship_type</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2404
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:relationship_type</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='XML_NS_R constant id'>XML_NS_R</span><span class='comma token'>,</span> <span class='TABLE_R constant id'>TABLE_R</span><span class='comma token'>,</span> <span class='WORKBOOK_R constant id'>WORKBOOK_R</span><span class='comma token'>,</span> <span class='WORKSHEET_R constant id'>WORKSHEET_R</span><span class='comma token'>,</span> <span class='APP_R constant id'>APP_R</span><span class='comma token'>,</span> <span class='RELS_R constant id'>RELS_R</span><span class='comma token'>,</span> <span class='CORE_R constant id'>CORE_R</span><span class='comma token'>,</span> <span class='STYLES_R constant id'>STYLES_R</span><span class='comma token'>,</span> <span class='CHART_R constant id'>CHART_R</span><span class='comma token'>,</span> <span class='DRAWING_R constant id'>DRAWING_R</span><span class='comma token'>,</span> <span class='IMAGE_R constant id'>IMAGE_R</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2405
- <span class='end end kw'>end</span>
2406
- </pre>
2407
- </td>
2408
- </tr>
2409
- </table>
2410
- </div>
2411
-
2412
- <div class="method_details ">
2413
- <p class="signature " id="validate_string-class_method">
2414
-
2415
- + (<tt>Object</tt>) <strong>validate_string</strong>(v)
2416
-
2417
-
2418
-
2419
- </p><div class="docstring">
2420
- <div class="discussion">
2421
- <p>
2422
- Requires that the value is a String
2423
- </p>
2424
-
2425
-
2426
- </div>
2427
- </div>
2428
- <div class="tags">
2429
- <h3>Parameters:</h3>
2430
- <ul class="param">
2431
-
2432
- <li>
2433
-
2434
- <span class='name'>v</span>
2435
-
2436
-
2437
- <span class='type'>(<tt>Any</tt>)</span>
2438
-
2439
-
2440
-
2441
- &mdash;
2442
- <div class='inline'><p>
2443
- The value validated
2444
- </p>
2445
- </div>
2446
-
2447
- </li>
2448
-
2449
- </ul>
2450
-
2451
-
2452
- </div><table class="source_code">
2453
- <tr>
2454
- <td>
2455
- <pre class="lines">
2456
-
2457
-
2458
- 71
2459
- 72
2460
- 73</pre>
2461
- </td>
2462
- <td>
2463
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 71</span>
2464
-
2465
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_string identifier id'>validate_string</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2466
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:string</span><span class='comma token'>,</span> <span class='String constant id'>String</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2467
- <span class='end end kw'>end</span>
2468
- </pre>
2469
- </td>
2470
- </tr>
2471
- </table>
2472
- </div>
2473
-
2474
- <div class="method_details ">
2475
- <p class="signature " id="validate_table_element_type-class_method">
2476
-
2477
- + (<tt>Object</tt>) <strong>validate_table_element_type</strong>(v)
2478
-
2479
-
2480
-
2481
- </p><div class="docstring">
2482
- <div class="discussion">
2483
- <p>
2484
- Requires that the value is a valid table element type :wholeTable,
2485
- :headerRow, :totalRow, :firstColumn, :lastColumn, :firstRowStripe,
2486
- :secondRowStripe, :firstColumnStripe, :secondColumnStripe,
2487
- :firstHeaderCell, :lastHeaderCell, :firstTotalCell, :lastTotalCell,
2488
- :firstSubtotalColumn, :secondSubtotalColumn, :thirdSubtotalColumn,
2489
- :firstSubtotalRow, :secondSubtotalRow, :thirdSubtotalRow, :blankRow,
2490
- :firstColumnSubheading, :secondColumnSubheading, :thirdColumnSubheading,
2491
- :firstRowSubheading, :secondRowSubheading, :thirdRowSubheading,
2492
- :pageFieldLabels, :pageFieldValues are allowed
2493
- </p>
2494
-
2495
-
2496
- </div>
2497
- </div>
2498
- <div class="tags">
2499
- <h3>Parameters:</h3>
2500
- <ul class="param">
2501
-
2502
- <li>
2503
-
2504
- <span class='name'>v</span>
2505
-
2506
-
2507
- <span class='type'>(<tt>Any</tt>)</span>
2508
-
2509
-
2510
-
2511
- &mdash;
2512
- <div class='inline'><p>
2513
- The value validated
2514
- </p>
2515
- </div>
2516
-
2517
- </li>
2518
-
2519
- </ul>
2520
-
2521
-
2522
- </div><table class="source_code">
2523
- <tr>
2524
- <td>
2525
- <pre class="lines">
2526
-
2527
-
2528
- 128
2529
- 129
2530
- 130</pre>
2531
- </td>
2532
- <td>
2533
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 128</span>
2534
-
2535
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_table_element_type identifier id'>validate_table_element_type</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2536
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:table_element_type</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:wholeTable</span><span class='comma token'>,</span> <span class='symbol val'>:headerRow</span><span class='comma token'>,</span> <span class='symbol val'>:totalRow</span><span class='comma token'>,</span> <span class='symbol val'>:firstColumn</span><span class='comma token'>,</span> <span class='symbol val'>:lastColumn</span><span class='comma token'>,</span> <span class='symbol val'>:firstRowStripe</span><span class='comma token'>,</span> <span class='symbol val'>:secondRowStripe</span><span class='comma token'>,</span> <span class='symbol val'>:firstColumnStripe</span><span class='comma token'>,</span> <span class='symbol val'>:secondColumnStripe</span><span class='comma token'>,</span> <span class='symbol val'>:firstHeaderCell</span><span class='comma token'>,</span> <span class='symbol val'>:lastHeaderCell</span><span class='comma token'>,</span> <span class='symbol val'>:firstTotalCell</span><span class='comma token'>,</span> <span class='symbol val'>:lastTotalCell</span><span class='comma token'>,</span> <span class='symbol val'>:firstSubtotalColumn</span><span class='comma token'>,</span> <span class='symbol val'>:secondSubtotalColumn</span><span class='comma token'>,</span> <span class='symbol val'>:thirdSubtotalColumn</span><span class='comma token'>,</span> <span class='symbol val'>:firstSubtotalRow</span><span class='comma token'>,</span> <span class='symbol val'>:secondSubtotalRow</span><span class='comma token'>,</span> <span class='symbol val'>:thirdSubtotalRow</span><span class='comma token'>,</span> <span class='symbol val'>:blankRow</span><span class='comma token'>,</span> <span class='symbol val'>:firstColumnSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:secondColumnSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:thirdColumnSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:firstRowSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:secondRowSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:thirdRowSubheading</span><span class='comma token'>,</span> <span class='symbol val'>:pageFieldLabels</span><span class='comma token'>,</span> <span class='symbol val'>:pageFieldValues</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2537
- <span class='end end kw'>end</span>
2538
- </pre>
2539
- </td>
2540
- </tr>
2541
- </table>
2542
- </div>
2543
-
2544
- <div class="method_details ">
2545
- <p class="signature " id="validate_unsigned_int-class_method">
2546
-
2547
- + (<tt>Boolean</tt>) <strong>validate_unsigned_int</strong>(v)
2548
-
2549
-
2550
-
2551
- </p><div class="docstring">
2552
- <div class="discussion">
2553
- <p>
2554
- Requires that the value is a Fixnum or Integer and is greater or equal to 0
2555
- </p>
2556
-
2557
-
2558
- </div>
2559
- </div>
2560
- <div class="tags">
2561
- <h3>Parameters:</h3>
2562
- <ul class="param">
2563
-
2564
- <li>
2565
-
2566
- <span class='name'>v</span>
2567
-
2568
-
2569
- <span class='type'>(<tt>Any</tt>)</span>
2570
-
2571
-
2572
-
2573
- &mdash;
2574
- <div class='inline'><p>
2575
- The value validated
2576
- </p>
2577
- </div>
2578
-
2579
- </li>
2580
-
2581
- </ul>
2582
-
2583
- <h3>Returns:</h3>
2584
- <ul class="return">
2585
-
2586
- <li>
2587
-
2588
-
2589
- <span class='type'>(<tt>Boolean</tt>)</span>
2590
-
2591
-
2592
-
2593
- &mdash;
2594
- <div class='inline'><p>
2595
- true if the data is valid
2596
- </p>
2597
- </div>
2598
-
2599
- </li>
2600
-
2601
- </ul>
2602
- <h3>Raises:</h3>
2603
- <ul class="raise">
2604
-
2605
- <li>
2606
-
2607
-
2608
- <span class='type'>(<tt>ArgumentError</tt>)</span>
2609
-
2610
-
2611
-
2612
- &mdash;
2613
- <div class='inline'><p>
2614
- raised if the value is not a Fixnum or Integer value greater or equal to 0
2615
- </p>
2616
- </div>
2617
-
2618
- </li>
2619
-
2620
- </ul>
2621
-
2622
- </div><table class="source_code">
2623
- <tr>
2624
- <td>
2625
- <pre class="lines">
2626
-
2627
-
2628
- 51
2629
- 52
2630
- 53</pre>
2631
- </td>
2632
- <td>
2633
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 51</span>
2634
-
2635
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_unsigned_int identifier id'>validate_unsigned_int</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2636
- <span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='lparen token'>(</span><span class='symbol val'>:unsigned_int</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='Fixnum constant id'>Fixnum</span><span class='comma token'>,</span> <span class='Integer constant id'>Integer</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='comma token'>,</span> <span class='lambda identifier id'>lambda</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='arg identifier id'>arg</span><span class='bitor op'>|</span> <span class='arg identifier id'>arg</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:&gt;=</span><span class='rparen token'>)</span> <span class='andop op'>&amp;&amp;</span> <span class='arg identifier id'>arg</span> <span class='geq op'>&gt;=</span> <span class='integer val'>0</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span>
2637
- <span class='end end kw'>end</span>
2638
- </pre>
2639
- </td>
2640
- </tr>
2641
- </table>
2642
- </div>
2643
-
2644
- <div class="method_details ">
2645
- <p class="signature " id="validate_vertical_alignment-class_method">
2646
-
2647
- + (<tt>Object</tt>) <strong>validate_vertical_alignment</strong>(v)
2648
-
2649
-
2650
-
2651
- </p><div class="docstring">
2652
- <div class="discussion">
2653
- <p>
2654
- Requires that the value is a valid vertical_alignment :top, :center,
2655
- :bottom, :justify, :distributed are allowed
2656
- </p>
2657
-
2658
-
2659
- </div>
2660
- </div>
2661
- <div class="tags">
2662
- <h3>Parameters:</h3>
2663
- <ul class="param">
2664
-
2665
- <li>
2666
-
2667
- <span class='name'>v</span>
2668
-
2669
-
2670
- <span class='type'>(<tt>Any</tt>)</span>
2671
-
2672
-
2673
-
2674
- &mdash;
2675
- <div class='inline'><p>
2676
- The value validated
2677
- </p>
2678
- </div>
2679
-
2680
- </li>
2681
-
2682
- </ul>
2683
-
2684
-
2685
- </div><table class="source_code">
2686
- <tr>
2687
- <td>
2688
- <pre class="lines">
2689
-
2690
-
2691
- 107
2692
- 108
2693
- 109</pre>
2694
- </td>
2695
- <td>
2696
- <pre class="code"><span class="info file"># File 'lib/axlsx/util/validators.rb', line 107</span>
2697
-
2698
- <span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate_vertical_alignment identifier id'>validate_vertical_alignment</span><span class='lparen token'>(</span><span class='v identifier id'>v</span><span class='rparen token'>)</span>
2699
- <span class='RestrictionValidator constant id'>RestrictionValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='symbol val'>:vertical_alignment</span><span class='comma token'>,</span> <span class='lbrack token'>[</span><span class='symbol val'>:top</span><span class='comma token'>,</span> <span class='symbol val'>:center</span><span class='comma token'>,</span> <span class='symbol val'>:bottom</span><span class='comma token'>,</span> <span class='symbol val'>:justify</span><span class='comma token'>,</span> <span class='symbol val'>:distributed</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='v identifier id'>v</span>
2700
- <span class='end end kw'>end</span>
2701
- </pre>
2702
- </td>
2703
- </tr>
2704
- </table>
2705
- </div>
2706
-
2707
- </div>
2708
-
2709
- </div>
2710
-
2711
- <div id="footer">
2712
- Generated on Mon Dec 5 14:21:14 2011 by
2713
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2714
- 0.7.3 (ruby-1.8.7).
2715
- </div>
2716
-
2717
- </body>
2718
- </html>