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,47 +0,0 @@
1
- module Axlsx
2
- # A single table style definition and is a collection for tableStyleElements
3
- # @note Table are not supported in this version and only the defaults required for a valid workbook are created.
4
- class TableStyle < SimpleTypedList
5
-
6
- # The name of this table style
7
- # @return [string]
8
- attr_reader :name
9
-
10
- # indicates if this style should be applied to pivot tables
11
- # @return [Boolean]
12
- attr_reader :pivot
13
-
14
- # indicates if this style should be applied to tables
15
- # @return [Boolean]
16
- attr_reader :table
17
-
18
- # creates a new TableStyle object
19
- # @raise [ArgumentError] if name option is not provided.
20
- # @param [String] name
21
- # @option options [Boolean] pivot
22
- # @option options [Boolean] table
23
- def initialize(name, options={})
24
- self.name = name
25
- options.each do |o|
26
- self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
27
- end
28
- super TableStyleElement
29
- end
30
-
31
- # @see name
32
- def name=(v) Axlsx::validate_string v; @name=v end
33
- # @see pivot
34
- def pivot=(v) Axlsx::validate_boolean v; @pivot=v end
35
- # @see table
36
- def table=(v) Axlsx::validate_boolean v; @table=v end
37
-
38
- # Serializes the table style
39
- # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
40
- # @return [String]
41
- def to_xml(xml)
42
- attr = self.instance_values.select { |k, v| [:name, :pivot, :table].include? k }
43
- attr[:count] = self.size
44
- xml.tableStyle(attr) { self.each { |table_style_el| table_style_el.to_xml(xml) } }
45
- end
46
- end
47
- end
@@ -1,71 +0,0 @@
1
- module Axlsx
2
- # an element of style that belongs to a table style.
3
- # @note tables and table styles are not supported in this version. This class exists in preparation for that support.
4
- class TableStyleElement
5
- # The type of style element. The following type are allowed
6
- # :wholeTable
7
- # :headerRow
8
- # :totalRow
9
- # :firstColumn
10
- # :lastColumn
11
- # :firstRowStripe
12
- # :secondRowStripe
13
- # :firstColumnStripe
14
- # :secondColumnStripe
15
- # :firstHeaderCell
16
- # :lastHeaderCell
17
- # :firstTotalCell
18
- # :lastTotalCell
19
- # :firstSubtotalColumn
20
- # :secondSubtotalColumn
21
- # :thirdSubtotalColumn
22
- # :firstSubtotalRow
23
- # :secondSubtotalRow
24
- # :thirdSubtotalRow
25
- # :blankRow
26
- # :firstColumnSubheading
27
- # :secondColumnSubheading
28
- # :thirdColumnSubheading
29
- # :firstRowSubheading
30
- # :secondRowSubheading
31
- # :thirdRowSubheading
32
- # :pageFieldLabels
33
- # :pageFieldValues
34
- # @return [Symbol]
35
- attr_reader :type
36
-
37
- # Number of rows or columns used in striping when the type is firstRowStripe, secondRowStripe, firstColumnStripe, or secondColumnStripe.
38
- # @return [Integer]
39
- attr_reader :size
40
-
41
- # The dxfId this style element points to
42
- # @return [Integer]
43
- attr_reader :dxfId
44
-
45
- # creates a new TableStyleElement object
46
- # @option options [Symbol] type
47
- # @option options [Integer] size
48
- # @option options [Integer] dxfId
49
- def initialize(options={})
50
- options.each do |o|
51
- self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
52
- end
53
- end
54
-
55
- # @see type
56
- def type=(v) Axlsx::validate_table_element_type v; @type = v end
57
-
58
- # @see size
59
- def size=(v) Axlsx::validate_unsigned_int v; @size = v end
60
-
61
- # @see dxfId
62
- def dxfId=(v) Axlsx::validate_unsigned_int v; @dxfId = v end
63
-
64
- # Serializes the table style element
65
- # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
66
- # @return [String]
67
- def to_xml(xml)
68
- xml.tableStyleElement self.instance_values
69
- end
70
- end
71
- end
@@ -1,39 +0,0 @@
1
- module Axlsx
2
- # TableStyles represents a collection of style definitions for table styles and pivot table styles.
3
- # @note Support for custom table styles does not exist in this version. Many of the classes required are defined in preparation for future release. Please do not attempt to add custom table styles.
4
- class TableStyles < SimpleTypedList
5
-
6
- # The default table style. The default value is 'TableStyleMedium9'
7
- # @return [String]
8
- attr_reader :defaultTableStyle
9
-
10
- # The default pivot table style. The default value is 'PivotStyleLight6'
11
- # @return [String]
12
- attr_reader :defaultPivotStyle
13
-
14
- # Creates a new TableStyles object that is a container for TableStyle objects
15
- # @option options [String] defaultTableStyle
16
- # @option options [String] defaultPivotStyle
17
- def initialize(options={})
18
- @defaultTableStyle = options[:defaultTableStyle] || "TableStyleMedium9"
19
- @defaultPivotStyle = options[:defaultPivotStyle] || "PivotStyleLight16"
20
- super TableStyle
21
- end
22
- # @see defaultTableStyle
23
- def defaultTableStyle=(v) Axlsx::validate_string(v); @defaultTableStyle = v; end
24
- # @see defaultPivotStyle
25
- def defaultPivotStyle=(v) Axlsx::validate_string(v); @defaultPivotStyle = v; end
26
-
27
- # Serializes the table styles element
28
- # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
29
- # @return [String]
30
- def to_xml(xml)
31
- attr = self.instance_values.reject {|k, v| ![:defaultTableStyle, :defaultPivotStyle].include?(k.to_sym) }
32
- attr[:count] = self.size
33
- xml.tableStyles(attr) {
34
- self.each { |table_style| table_style.to_xml(xml) }
35
- }
36
- end
37
- end
38
-
39
- end
@@ -1,138 +0,0 @@
1
- module Axlsx
2
- # The Xf class defines a formatting record for use in Styles. The recommended way to manage styles for your workbook is with Styles#add_style
3
- # @see Styles#add_style
4
- class Xf
5
- #does not support extList (ExtensionList)
6
-
7
- # The cell alignment for this style
8
- # @return [CellAlignment]
9
- # @see CellAlignment
10
- attr_reader :alignment
11
-
12
- # The cell protection for this style
13
- # @return [CellProtection]
14
- # @see CellProtection
15
- attr_reader :protection
16
-
17
- # id of the numFmt to apply to this style
18
- # @return [Integer]
19
- attr_reader :numFmtId
20
-
21
- # index (0 based) of the font to be used in this style
22
- # @return [Integer]
23
- attr_reader :fontId
24
-
25
- # index (0 based) of the fill to be used in this style
26
- # @return [Integer]
27
- attr_reader :fillId
28
-
29
- # index (0 based) of the border to be used in this style
30
- # @return [Integer]
31
- attr_reader :borderId
32
-
33
- # index (0 based) of cellStylesXfs item to be used in this style. Only applies to cellXfs items
34
- # @return [Integer]
35
- attr_reader :xfId
36
-
37
- # indecates if text should be prefixed by a single quote in the cell
38
- # @return [Boolean]
39
- attr_reader :quotePrefix
40
-
41
- # indicates if the cell has a pivot table drop down button
42
- # @return [Boolean]
43
- attr_reader :pivotButton
44
-
45
- # indicates if the numFmtId should be applied
46
- # @return [Boolean]
47
- attr_reader :applyNumberFormat
48
-
49
- # indicates if the fontId should be applied
50
- # @return [Boolean]
51
- attr_reader :applyFont
52
-
53
- # indicates if the fillId should be applied
54
- # @return [Boolean]
55
- attr_reader :applyFill
56
-
57
- # indicates if the borderId should be applied
58
- # @return [Boolean]
59
- attr_reader :applyBorder
60
-
61
- # Indicates if the alignment options should be applied
62
- # @return [Boolean]
63
- attr_reader :applyAlignment
64
-
65
- # Indicates if the protection options should be applied
66
- # @return [Boolean]
67
- attr_reader :applyProtection
68
-
69
- # Creates a new Xf object
70
- # @option options [Integer] numFmtId
71
- # @option options [Integer] fontId
72
- # @option options [Integer] fillId
73
- # @option options [Integer] borderId
74
- # @option options [Integer] xfId
75
- # @option options [Boolean] quotePrefix
76
- # @option options [Boolean] pivotButton
77
- # @option options [Boolean] applyNumberFormat
78
- # @option options [Boolean] applyFont
79
- # @option options [Boolean] applyFill
80
- # @option options [Boolean] applyBorder
81
- # @option options [Boolean] applyAlignment
82
- # @option options [Boolean] applyProtection
83
- # @option options [CellAlignment] alignment
84
- # @option options [CellProtection] protection
85
- def initialize(options={})
86
- options.each do |o|
87
- self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
88
- end
89
- end
90
-
91
- # @see Xf#alignment
92
- def alignment=(v) DataTypeValidator.validate "Xf.alignment", CellAlignment, v; @alignment = v end
93
-
94
- # @see protection
95
- def protection=(v) DataTypeValidator.validate "Xf.protection", CellProtection, v; @protection = v end
96
-
97
- # @see numFmtId
98
- def numFmtId=(v) Axlsx::validate_unsigned_int v; @numFmtId = v end
99
-
100
- # @see fontId
101
- def fontId=(v) Axlsx::validate_unsigned_int v; @fontId = v end
102
- # @see fillId
103
- def fillId=(v) Axlsx::validate_unsigned_int v; @fillId = v end
104
- # @see borderId
105
- def borderId=(v) Axlsx::validate_unsigned_int v; @borderId = v end
106
- # @see xfId
107
- def xfId=(v) Axlsx::validate_unsigned_int v; @xfId = v end
108
- # @see quotePrefix
109
- def quotePrefix=(v) Axlsx::validate_boolean v; @quotePrefix = v end
110
- # @see pivotButton
111
- def pivotButton=(v) Axlsx::validate_boolean v; @pivotButton = v end
112
- # @see applyNumberFormat
113
- def applyNumberFormat=(v) Axlsx::validate_boolean v; @applyNumberFormat = v end
114
- # @see applyFont
115
- def applyFont=(v) Axlsx::validate_boolean v; @applyFont = v end
116
- # @see applyFill
117
- def applyFill=(v) Axlsx::validate_boolean v; @applyFill = v end
118
-
119
- # @see applyBorder
120
- def applyBorder=(v) Axlsx::validate_boolean v; @applyBorder = v end
121
-
122
- # @see applyAlignment
123
- def applyAlignment=(v) Axlsx::validate_boolean v; @applyAlignment = v end
124
-
125
- # @see applyProtection
126
- def applyProtection=(v) Axlsx::validate_boolean v; @applyProtection = v end
127
-
128
- # Serializes the xf elemen
129
- # @param [Nokogiri::XML::Builder] xml The document builder instance this objects xml will be added to.
130
- # @return [String]
131
- def to_xml(xml)
132
- xml.xf(self.instance_values.reject { |k, v| [:alignment, :protection, :extList, :name].include? k.to_sym}) {
133
- alignment.to_xml(xml) if self.alignment
134
- protection.to_xml(xml) if self.protection
135
- }
136
- end
137
- end
138
- end
@@ -1,216 +0,0 @@
1
- module Axlsx
2
-
3
- # XML Encoding
4
- ENCODING = "UTF-8"
5
-
6
- # spreadsheetML namespace
7
- XML_NS = "http://schemas.openxmlformats.org/spreadsheetml/2006/main"
8
-
9
- # content-types namespace
10
- XML_NS_T = "http://schemas.openxmlformats.org/package/2006/content-types"
11
-
12
- # extended-properties namespace
13
- APP_NS = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
14
-
15
- # doc props namespace
16
- APP_NS_VT = "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
17
-
18
- # core properties namespace
19
- CORE_NS = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
20
-
21
- # dc elements (core) namespace
22
- CORE_NS_DC = "http://purl.org/dc/elements/1.1/"
23
-
24
- # dcmit (core) namespcace
25
- CORE_NS_DCMIT = "http://purl.org/dc/dcmitype/"
26
-
27
- # dc terms namespace
28
- CORE_NS_DCT = "http://purl.org/dc/terms/"
29
-
30
- # xml schema namespace
31
- CORE_NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"
32
-
33
- # spreadsheet drawing namespace
34
- XML_NS_XDR = "http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
35
-
36
- # drawing namespace
37
- XML_NS_A = "http://schemas.openxmlformats.org/drawingml/2006/main"
38
-
39
- # chart namespace
40
- XML_NS_C = "http://schemas.openxmlformats.org/drawingml/2006/chart"
41
-
42
- # relationships namespace
43
- XML_NS_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
44
-
45
-
46
- # relationships name space
47
- RELS_R = "http://schemas.openxmlformats.org/package/2006/relationships"
48
-
49
- # table rels namespace
50
- TABLE_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"
51
-
52
- # workbook rels namespace
53
- WORKBOOK_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
54
-
55
- # worksheet rels namespace
56
- WORKSHEET_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"
57
-
58
- # app rels namespace
59
- APP_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
60
-
61
- # core rels namespace
62
- CORE_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/metadata/core-properties"
63
-
64
- # styles rels namespace
65
- STYLES_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"
66
-
67
- # drawing rels namespace
68
- DRAWING_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"
69
-
70
- # chart rels namespace
71
- CHART_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"
72
-
73
- # image rels namespace
74
- IMAGE_R = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"
75
-
76
- # table content type
77
- TABLE_CT = "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"
78
-
79
- # workbook content type
80
- WORKBOOK_CT = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"
81
-
82
- # app content type
83
- APP_CT = "application/vnd.openxmlformats-officedocument.extended-properties+xml"
84
-
85
- # rels content type
86
- RELS_CT = "application/vnd.openxmlformats-package.relationships+xml"
87
-
88
- # styles content type
89
- STYLES_CT = "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"
90
-
91
- # xml content type
92
- XML_CT = "application/xml"
93
-
94
- # worksheet content type
95
- WORKSHEET_CT = "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"
96
-
97
- # shared strings content type
98
- SHARED_STRINGS_CT = "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"
99
-
100
- # core content type
101
- CORE_CT = "application/vnd.openxmlformats-package.core-properties+xml"
102
-
103
- # chart content type
104
- CHART_CT = "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"
105
-
106
- # jpeg content type
107
- JPEG_CT = "image/jpeg"
108
-
109
- # gif content type
110
- GIF_CT = "image/gif"
111
-
112
- # png content type
113
- PNG_CT = "image/png"
114
-
115
- #drawing content type
116
- DRAWING_CT = "application/vnd.openxmlformats-officedocument.drawing+xml"
117
-
118
- # xml content type extensions
119
- XML_EX = "xml"
120
-
121
- # jpeg extension
122
- JPEG_EX = "jpeg"
123
-
124
- # gif extension
125
- GIF_EX = "gif"
126
-
127
- # png extension
128
- PNG_EX = "png"
129
-
130
- # rels content type extension
131
- RELS_EX = "rels"
132
-
133
- # workbook part
134
- WORKBOOK_PN = "xl/workbook.xml"
135
-
136
- # styles part
137
- STYLES_PN = "styles.xml"
138
-
139
- # app part
140
- APP_PN = "docProps/app.xml"
141
-
142
- # core part
143
- CORE_PN = "docProps/core.xml"
144
-
145
- # content types part
146
- CONTENT_TYPES_PN = "[Content_Types].xml"
147
-
148
- # rels part
149
- RELS_PN = "_rels/.rels"
150
-
151
- # workbook rels part
152
- WORKBOOK_RELS_PN = "xl/_rels/workbook.xml.rels"
153
-
154
- # worksheet part
155
- WORKSHEET_PN = "worksheets/sheet%d.xml"
156
-
157
- # worksheet rels part
158
- WORKSHEET_RELS_PN = "worksheets/_rels/sheet%d.xml.rels"
159
-
160
- # drawing part
161
- DRAWING_PN = "drawings/drawing%d.xml"
162
-
163
- # drawing rels part
164
- DRAWING_RELS_PN = "drawings/_rels/drawing%d.xml.rels"
165
-
166
- # chart part
167
- CHART_PN = "charts/chart%d.xml"
168
-
169
- # chart part
170
- IMAGE_PN = "media/image%d.%s"
171
-
172
- # App validation schema
173
- APP_XSD = "lib/schema/shared-documentPropertiesExtended.xsd"
174
-
175
- # core validation schema
176
- CORE_XSD = "lib/schema/opc-coreProperties.xsd"
177
-
178
- # content types validation schema
179
- CONTENT_TYPES_XSD = "lib/schema/opc-contentTypes.xsd"
180
-
181
- # rels validation schema
182
- RELS_XSD = "lib/schema/opc-relationships.xsd"
183
-
184
- # spreadsheetML validation schema
185
- SML_XSD = "lib/schema/sml.xsd"
186
-
187
- # drawing validation schema
188
- DRAWING_XSD = "lib/schema/dml-spreadsheetDrawing.xsd"
189
-
190
- # number format id for pecentage formatting using the default formatting id.
191
- NUM_FMT_PERCENT = 9
192
-
193
- # number format id for date format like 2011/11/13
194
- NUM_FMT_YYYYMMDD = 100
195
-
196
- # number format id for time format the creates 2011/11/13 12:23:10
197
- NUM_FMT_YYYYMMDDHHMMSS = 101
198
-
199
- # cellXfs id for thin borders around the cell
200
- STYLE_THIN_BORDER = 1
201
-
202
- # cellXfs id for default date styling
203
- STYLE_DATE = 2
204
-
205
- # error messages RestrictionValidor
206
- ERR_RESTRICTION = "Invalid Data: %s. %s must be one of %s."
207
-
208
- # error message DataTypeValidator
209
- ERR_TYPE = "Invalid Data %s for %s. must be %s."
210
-
211
- # error message for RegexValidator
212
- ERR_REGEX = "Invalid Data. %s does not match %s."
213
-
214
- # error message for duplicate sheet names
215
- ERR_DUPLICATE_SHEET_NAME = "There is already a worksheet in this workbook named '%s'. Please use a unique name"
216
- end