rubyXL 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +1 -1
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/objects/content_types.rb +2 -0
  5. data/lib/rubyXL/objects/relationships.rb +1 -0
  6. data/lib/rubyXL/objects/simple_types.rb +2 -0
  7. data/lib/rubyXL/objects/theme.rb +146 -17
  8. data/lib/rubyXL/objects/worksheet.rb +1 -1
  9. data/lib/rubyXL/parser.rb +1 -0
  10. data/lib/rubyXL/workbook.rb +4 -3
  11. data/lib/rubyXL/worksheet.rb +2 -2
  12. data/rdoc/README_rdoc.html +2 -2
  13. data/rdoc/RubyXL.html +6 -1
  14. data/rdoc/RubyXL/AExtension.html +1 -1
  15. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  16. data/rdoc/RubyXL/AdjustHandleList.html +105 -0
  17. data/rdoc/RubyXL/Alignment.html +1 -1
  18. data/rdoc/RubyXL/AlternateContent.html +1 -1
  19. data/rdoc/RubyXL/AutoFilter.html +1 -1
  20. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  21. data/rdoc/RubyXL/BooleanNode.html +1 -1
  22. data/rdoc/RubyXL/BooleanValue.html +1 -1
  23. data/rdoc/RubyXL/Border.html +1 -1
  24. data/rdoc/RubyXL/BorderEdge.html +1 -1
  25. data/rdoc/RubyXL/Borders.html +1 -1
  26. data/rdoc/RubyXL/Break.html +1 -1
  27. data/rdoc/RubyXL/BreakList.html +1 -1
  28. data/rdoc/RubyXL/CT_AdjPoint2D.html +105 -0
  29. data/rdoc/RubyXL/CT_Color.html +1 -1
  30. data/rdoc/RubyXL/CT_ConnectionSite.html +105 -0
  31. data/rdoc/RubyXL/CT_ConnectionSiteList.html +105 -0
  32. data/rdoc/RubyXL/CT_FontCollection.html +105 -0
  33. data/rdoc/RubyXL/CT_GeomGuideList.html +105 -0
  34. data/rdoc/RubyXL/CT_Path2D.html +105 -0
  35. data/rdoc/RubyXL/CT_Path2DArcTo.html +105 -0
  36. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +105 -0
  37. data/rdoc/RubyXL/{AdjustValueList.html → CT_Path2DList.html} +4 -4
  38. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +105 -0
  39. data/rdoc/RubyXL/CT_Path2DTo.html +105 -0
  40. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +105 -0
  41. data/rdoc/RubyXL/CT_SupplementalFont.html +105 -0
  42. data/rdoc/RubyXL/CT_TextFont.html +105 -0
  43. data/rdoc/RubyXL/CT_XYAdjustHandle.html +105 -0
  44. data/rdoc/RubyXL/CalculationChain.html +1 -1
  45. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  46. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  47. data/rdoc/RubyXL/Cell.html +1 -1
  48. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  49. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  50. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  51. data/rdoc/RubyXL/CellStyle.html +1 -1
  52. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  53. data/rdoc/RubyXL/CellStyles.html +1 -1
  54. data/rdoc/RubyXL/CellValue.html +1 -1
  55. data/rdoc/RubyXL/CellWatch.html +1 -1
  56. data/rdoc/RubyXL/CellWatches.html +1 -1
  57. data/rdoc/RubyXL/CellXFs.html +1 -1
  58. data/rdoc/RubyXL/Chartsheet.html +1 -1
  59. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  60. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  61. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  62. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  63. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  64. data/rdoc/RubyXL/Color.html +1 -1
  65. data/rdoc/RubyXL/ColorFilter.html +1 -1
  66. data/rdoc/RubyXL/ColorScale.html +1 -1
  67. data/rdoc/RubyXL/ColorScheme.html +1 -1
  68. data/rdoc/RubyXL/ColorSet.html +1 -1
  69. data/rdoc/RubyXL/Colors.html +1 -1
  70. data/rdoc/RubyXL/ColumnRange.html +1 -1
  71. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  72. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  73. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  74. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  75. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  76. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  77. data/rdoc/RubyXL/ContentTypes.html +3 -1
  78. data/rdoc/RubyXL/CoreProperties.html +1 -1
  79. data/rdoc/RubyXL/CustomColor.html +1 -1
  80. data/rdoc/RubyXL/CustomColorList.html +1 -1
  81. data/rdoc/RubyXL/CustomFilter.html +1 -1
  82. data/rdoc/RubyXL/CustomFilters.html +1 -1
  83. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  84. data/rdoc/RubyXL/CustomProperties.html +1 -1
  85. data/rdoc/RubyXL/CustomProperty.html +1 -1
  86. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  87. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  88. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  89. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  90. data/rdoc/RubyXL/DXF.html +1 -1
  91. data/rdoc/RubyXL/DXFs.html +1 -1
  92. data/rdoc/RubyXL/DataBar.html +1 -1
  93. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  94. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  95. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  96. data/rdoc/RubyXL/DataValidation.html +1 -1
  97. data/rdoc/RubyXL/DataValidations.html +1 -1
  98. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  99. data/rdoc/RubyXL/DefinedName.html +1 -1
  100. data/rdoc/RubyXL/DefinedNames.html +1 -1
  101. data/rdoc/RubyXL/DocumentProperties.html +1 -1
  102. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  103. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  104. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  105. data/rdoc/RubyXL/Extension.html +1 -1
  106. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  107. data/rdoc/RubyXL/Extents.html +1 -1
  108. data/rdoc/RubyXL/ExternalReference.html +1 -1
  109. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  110. data/rdoc/RubyXL/ExtraColorScheme.html +1 -1
  111. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  112. data/rdoc/RubyXL/FieldItem.html +1 -1
  113. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  114. data/rdoc/RubyXL/FileSharing.html +1 -1
  115. data/rdoc/RubyXL/FileVersion.html +1 -1
  116. data/rdoc/RubyXL/Fill.html +1 -1
  117. data/rdoc/RubyXL/Fills.html +1 -1
  118. data/rdoc/RubyXL/FilterContainer.html +1 -1
  119. data/rdoc/RubyXL/FloatNode.html +1 -1
  120. data/rdoc/RubyXL/FloatValue.html +1 -1
  121. data/rdoc/RubyXL/Font.html +1 -1
  122. data/rdoc/RubyXL/FontScheme.html +1 -1
  123. data/rdoc/RubyXL/Fonts.html +1 -1
  124. data/rdoc/RubyXL/FormatScheme.html +1 -1
  125. data/rdoc/RubyXL/Formula.html +1 -1
  126. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  127. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  128. data/rdoc/RubyXL/GenericStorage.html +1 -1
  129. data/rdoc/RubyXL/GradientFill.html +1 -1
  130. data/rdoc/RubyXL/HSLColor.html +1 -1
  131. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  132. data/rdoc/RubyXL/Hyperlink.html +1 -1
  133. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  134. data/rdoc/RubyXL/IconFilter.html +1 -1
  135. data/rdoc/RubyXL/IconSet.html +1 -1
  136. data/rdoc/RubyXL/IgnoredError.html +1 -1
  137. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  138. data/rdoc/RubyXL/IndexedColors.html +1 -1
  139. data/rdoc/RubyXL/InputCells.html +1 -1
  140. data/rdoc/RubyXL/IntegerNode.html +1 -1
  141. data/rdoc/RubyXL/IntegerValue.html +1 -1
  142. data/rdoc/RubyXL/LegacyCell.html +1 -1
  143. data/rdoc/RubyXL/LegacyWorkbook.html +35 -21
  144. data/rdoc/RubyXL/LegacyWorksheet.html +3 -3
  145. data/rdoc/RubyXL/MRUColors.html +1 -1
  146. data/rdoc/RubyXL/MergedCell.html +1 -1
  147. data/rdoc/RubyXL/MergedCells.html +1 -1
  148. data/rdoc/RubyXL/NumFmt.html +1 -1
  149. data/rdoc/RubyXL/NumberFormat.html +1 -1
  150. data/rdoc/RubyXL/NumberFormats.html +1 -1
  151. data/rdoc/RubyXL/OLEObject.html +1 -1
  152. data/rdoc/RubyXL/OLEObjects.html +1 -1
  153. data/rdoc/RubyXL/OLESize.html +1 -1
  154. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  155. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  156. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
  157. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  158. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  159. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  160. data/rdoc/RubyXL/ObjectDefaults.html +1 -1
  161. data/rdoc/RubyXL/Offset.html +1 -1
  162. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  163. data/rdoc/RubyXL/PageMargins.html +1 -1
  164. data/rdoc/RubyXL/PageSetup.html +1 -1
  165. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  166. data/rdoc/RubyXL/Pane.html +1 -1
  167. data/rdoc/RubyXL/Parser.html +2 -1
  168. data/rdoc/RubyXL/PatternFill.html +1 -1
  169. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  170. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  171. data/rdoc/RubyXL/PivotArea.html +1 -1
  172. data/rdoc/RubyXL/PivotCache.html +1 -1
  173. data/rdoc/RubyXL/PivotCaches.html +1 -1
  174. data/rdoc/RubyXL/PivotReference.html +1 -1
  175. data/rdoc/RubyXL/PivotReferences.html +1 -1
  176. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  177. data/rdoc/RubyXL/PresetColor.html +1 -1
  178. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  179. data/rdoc/RubyXL/PrintOptions.html +1 -1
  180. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  181. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  182. data/rdoc/RubyXL/Protection.html +1 -1
  183. data/rdoc/RubyXL/RGBColorModelHex.html +1 -1
  184. data/rdoc/RubyXL/RGBColorModelPercentage.html +1 -1
  185. data/rdoc/RubyXL/RID.html +1 -1
  186. data/rdoc/RubyXL/RawOOXML.html +1 -1
  187. data/rdoc/RubyXL/Reference.html +1 -1
  188. data/rdoc/RubyXL/Relationship.html +1 -1
  189. data/rdoc/RubyXL/RichText.html +1 -1
  190. data/rdoc/RubyXL/RichTextRun.html +1 -1
  191. data/rdoc/RubyXL/RootRelationships.html +1 -1
  192. data/rdoc/RubyXL/Row.html +1 -1
  193. data/rdoc/RubyXL/RunProperties.html +1 -1
  194. data/rdoc/RubyXL/Scenario.html +1 -1
  195. data/rdoc/RubyXL/Scenarios.html +1 -1
  196. data/rdoc/RubyXL/SchemeColor.html +1 -1
  197. data/rdoc/RubyXL/Selection.html +1 -1
  198. data/rdoc/RubyXL/ShapeDefault.html +1 -1
  199. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  200. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  201. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  202. data/rdoc/RubyXL/Sheet.html +1 -1
  203. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  204. data/rdoc/RubyXL/SheetData.html +1 -1
  205. data/rdoc/RubyXL/Sheets.html +1 -1
  206. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  207. data/rdoc/RubyXL/SmartTagType.html +1 -1
  208. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  209. data/rdoc/RubyXL/SmartTags.html +1 -1
  210. data/rdoc/RubyXL/SortCondition.html +1 -1
  211. data/rdoc/RubyXL/SortState.html +1 -1
  212. data/rdoc/RubyXL/Sqref.html +1 -1
  213. data/rdoc/RubyXL/Stop.html +1 -1
  214. data/rdoc/RubyXL/StringNode.html +1 -1
  215. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  216. data/rdoc/RubyXL/StringValue.html +1 -1
  217. data/rdoc/RubyXL/Stylesheet.html +1 -1
  218. data/rdoc/RubyXL/SystemColor.html +1 -1
  219. data/rdoc/RubyXL/TableParts.html +1 -1
  220. data/rdoc/RubyXL/TableStyle.html +1 -1
  221. data/rdoc/RubyXL/TableStyles.html +1 -1
  222. data/rdoc/RubyXL/Text.html +1 -1
  223. data/rdoc/RubyXL/Theme.html +1 -1
  224. data/rdoc/RubyXL/ThemeElements.html +1 -1
  225. data/rdoc/RubyXL/Top10.html +1 -1
  226. data/rdoc/RubyXL/TwoDTransform.html +1 -1
  227. data/rdoc/RubyXL/Variant.html +1 -1
  228. data/rdoc/RubyXL/Vector.html +1 -1
  229. data/rdoc/RubyXL/VectorValue.html +1 -1
  230. data/rdoc/RubyXL/VisualProperties.html +1 -1
  231. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  232. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  233. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  234. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  235. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  236. data/rdoc/RubyXL/Workbook.html +1 -1
  237. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  238. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  239. data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
  240. data/rdoc/RubyXL/WorkbookView.html +1 -1
  241. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  242. data/rdoc/RubyXL/Worksheet.html +1 -1
  243. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  244. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  245. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  246. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  247. data/rdoc/RubyXL/WorksheetView.html +1 -1
  248. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  249. data/rdoc/RubyXL/XF.html +1 -1
  250. data/rdoc/created.rid +13 -13
  251. data/rdoc/index.html +2 -2
  252. data/rdoc/js/search_index.js +1 -1
  253. data/rdoc/table_of_contents.html +2 -2
  254. data/rubyXL.gemspec +19 -4
  255. data/spec/lib/worksheet_spec.rb +6 -6
  256. metadata +18 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c62e07b347225544af7f7a79ccf03f0ca48947af
4
- data.tar.gz: 048bf6cc5c67f5f8f3c46b2a10e07f8c78938065
3
+ metadata.gz: 984adf8d503f9958c9b90ee180db6011b87dc204
4
+ data.tar.gz: 93fb594f80bd02bdd3f943e7b3ea910c96e3b056
5
5
  SHA512:
6
- metadata.gz: 4c07d50da874a34e6ebcba3cdc31810bf5412aaf8220bc46baefbeeb0e2de134b01867eadd4c70697ef8eb161c4b122b76f03042644be55669c98dd5a3bfd6c2
7
- data.tar.gz: 1b2717f74996d5b0bdc2a166024f07e64913942bdb5e82fbf1f412e98db4408f7e86aae411836d37e2fc54f899b715664852646a693b7e0807f9cdc8569a54fd
6
+ metadata.gz: 2bd4bd5694eb73a1a1991163deed41fce2241b3fa2bdf2c7c1bdf47d684c3210fefab6a33c4166c6bb81f5e4fb6ea234f48870a865c5e630e86826d40f009096
7
+ data.tar.gz: 213cd9f3e86a5d8e00db8071fa25a4c6a3832abd2c79e83054f6de20d06d5574ec05fda471af868e26e5101bd803b5d1367defe457a0d65a438f69d64ebbea78
@@ -88,7 +88,7 @@ Please note: these methods are being phased out in favor of the OOXML object mod
88
88
  === Modifying
89
89
 
90
90
  ==== Adding Worksheets
91
- worlsheet = workbook.add_worksheet('Sheet2')
91
+ worksheet = workbook.add_worksheet('Sheet2')
92
92
 
93
93
  ==== Adding Cells
94
94
  worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string "A1"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.1
1
+ 2.4.2
@@ -44,7 +44,9 @@ module RubyXL
44
44
  defaults << RubyXL::ContentTypeDefault.new(:extension => 'xml',
45
45
  :content_type => 'application/xml' )
46
46
 
47
+ # TODO: Need to only write these types when respective content is actually present.
47
48
  defaults << RubyXL::ContentTypeDefault.new(:extension => 'jpeg', :content_type => 'image/jpeg' )
49
+ defaults << RubyXL::ContentTypeDefault.new(:extension => 'png', :content_type => 'image/png' )
48
50
 
49
51
  self.overrides = []
50
52
  overrides << generate_override(workbook)
@@ -85,6 +85,7 @@ module RubyXL
85
85
  self.relationships = []
86
86
 
87
87
  relationships << document_relationship('xl/workbook.xml', 'officeDocument')
88
+ relationships << metadata_relationship('docProps/thumbnail.jpeg', 'thumbnail') unless @workbook.thumbnail.empty?
88
89
  relationships << metadata_relationship('docProps/core.xml', 'core-properties')
89
90
  relationships << document_relationship('docProps/app.xml', 'extended-properties')
90
91
 
@@ -134,4 +134,6 @@ module RubyXL
134
134
  red rosyBrown royalBlue saddleBrown salmon sandyBrown seaGreen seaShell sienna
135
135
  silver skyBlue slateBlue slateGray snow springGreen steelBlue tan teal thistle
136
136
  tomato turquoise violet wheat white whiteSmoke yellow yellowGreen }
137
+
138
+ ST_PathFillMode = %w{ none norm lighten lightenLess darken darkenLess }
137
139
  end
@@ -23,7 +23,6 @@ module RubyXL
23
23
  end
24
24
 
25
25
  class AExtensionStorageArea < OOXMLObject
26
- #FIXME#
27
26
  define_child_node(RubyXL::AExtension, :collection => true)
28
27
  define_element_name 'a:extLst'
29
28
  end
@@ -265,13 +264,45 @@ module RubyXL
265
264
  define_element_name 'a:clrScheme'
266
265
  end
267
266
 
267
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_SupplementalFont.html
268
+ class CT_SupplementalFont < OOXMLObject
269
+ define_attribute(:script, :string, :required => true)
270
+ define_attribute(:typeface, :string, :required => true)
271
+ end
272
+
273
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_TextFont.html
274
+ class CT_TextFont < OOXMLObject
275
+ define_attribute(:typeface, :string)
276
+ define_attribute(:panose, :string)
277
+ define_attribute(:pitchFamily, :int, :default => 0)
278
+ define_attribute(:charset, :int, :default => 1)
279
+ end
280
+
281
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_FontCollection.html
282
+ class CT_FontCollection < OOXMLObject
283
+ define_child_node(RubyXL::CT_TextFont, :node_name => 'a:latin')
284
+ define_child_node(RubyXL::CT_TextFont, :node_name => 'a:ea')
285
+ define_child_node(RubyXL::CT_TextFont, :node_name => 'a:cs')
286
+ define_child_node(RubyXL::CT_SupplementalFont, :node_name => 'a:font', :collection => true)
287
+ define_child_node(RubyXL::AExtensionStorageArea)
288
+ end
289
+
290
+ # http://www.schemacentral.com/sc/ooxml/e-a_fontScheme-1.html
268
291
  class FontScheme < OOXMLObject
269
- #FIXME#
292
+ define_child_node(RubyXL::CT_FontCollection, :node_name => 'a:majorFont')
293
+ define_child_node(RubyXL::CT_FontCollection, :node_name => 'a:minorFont')
294
+ define_child_node(RubyXL::AExtensionStorageArea)
295
+ define_attribute(:name, :string, :required => true)
270
296
  define_element_name 'a:fontScheme'
271
297
  end
272
298
 
299
+ # http://www.schemacentral.com/sc/ooxml/e-a_fmtScheme-1.html
273
300
  class FormatScheme < OOXMLObject
274
- #FIXME#
301
+ # a:fillStyleLst [1..1] Fill Style List
302
+ # a:lnStyleLst [1..1] Line Style List
303
+ # a:effectStyleLst [1..1] Effect Style List
304
+ # a:bgFillStyleLst [1..1] Background Fill Style List define_element_name 'a:fontScheme'
305
+ define_attribute(:name, :string)
275
306
  define_element_name 'a:fmtScheme'
276
307
  end
277
308
 
@@ -316,9 +347,8 @@ module RubyXL
316
347
  end
317
348
 
318
349
  # http://www.schemacentral.com/sc/ooxml/e-a_avLst-1.html
319
- class AdjustValueList < OOXMLContainerObject
350
+ class CT_GeomGuideList < OOXMLContainerObject
320
351
  define_child_node(RubyXL::ShapeGuide, :collection => true)
321
- define_element_name 'a:avLst'
322
352
  end
323
353
 
324
354
  # http://www.schemacentral.com/sc/ooxml/e-a_rect-1.html
@@ -330,20 +360,119 @@ module RubyXL
330
360
  define_element_name 'a:rect'
331
361
  end
332
362
 
363
+ # http://www.schemacentral.com/sc/ooxml/e-a_pos-2.html
364
+ class CT_AdjPoint2D < OOXMLObject
365
+ define_attribute(:x, :int, :required => true)
366
+ define_attribute(:y, :int, :required => true)
367
+ define_element_name 'a:pos'
368
+ end
369
+
370
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
371
+ class CT_XYAdjustHandle < OOXMLObject
372
+ define_child_node(RubyXL::CT_AdjPoint2D)
373
+ define_attribute(:gdRefX, :string)
374
+ define_attribute(:minX, :int)
375
+ define_attribute(:maxX, :int)
376
+ define_attribute(:gdRefY, :string)
377
+ define_attribute(:minY, :int)
378
+ define_attribute(:maxY, :int)
379
+ define_element_name 'a:ahXY'
380
+ end
381
+
382
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
383
+ class CT_PolarAdjustHandle < OOXMLObject
384
+ define_child_node(RubyXL::CT_AdjPoint2D)
385
+ define_attribute(:gdRefR, :string)
386
+ define_attribute(:minR, :int)
387
+ define_attribute(:maxR, :int)
388
+ define_attribute(:gdRefAng, :string)
389
+ define_attribute(:minAng, :int)
390
+ define_attribute(:maxAng, :int)
391
+ define_element_name 'a:ahPolar'
392
+ end
393
+
394
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_AdjustHandleList.html
395
+ class AdjustHandleList < OOXMLObject
396
+ define_child_node(RubyXL::CT_XYAdjustHandle)
397
+ define_child_node(RubyXL::CT_PolarAdjustHandle)
398
+ define_element_name 'a:ahLst'
399
+ end
400
+
401
+ # http://www.schemacentral.com/sc/ooxml/e-a_cxn-1.html
402
+ class CT_ConnectionSite < OOXMLObject
403
+ define_child_node(RubyXL::CT_AdjPoint2D)
404
+ define_attribute(:ang, :int)
405
+ define_element_name 'a:cxn'
406
+ end
407
+
408
+ # http://www.schemacentral.com/sc/ooxml/e-a_cxnLst-1.html
409
+ class CT_ConnectionSiteList < OOXMLContainerObject
410
+ define_child_node(RubyXL::CT_ConnectionSite, :collection => true)
411
+ define_element_name 'a:cxnLst'
412
+ end
413
+
414
+ # http://www.schemacentral.com/sc/ooxml/t-a_CT_Path2DLineTo.html
415
+ class CT_Path2DTo < OOXMLContainerObject
416
+ define_child_node(RubyXL::CT_AdjPoint2D)
417
+ end
418
+
419
+ # http://www.schemacentral.com/sc/ooxml/e-a_arcTo-1.html
420
+ class CT_Path2DArcTo < OOXMLObject
421
+ define_attribute(:wR, :int, :required => true)
422
+ define_attribute(:hR, :int, :required => true)
423
+ define_attribute(:stAng, :int, :required => true)
424
+ define_attribute(:swAng, :int, :required => true)
425
+ define_element_name 'a:arcTo'
426
+ end
427
+
428
+ # http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
429
+ class CT_Path2DQuadBezierTo < OOXMLContainerObject
430
+ define_child_node(RubyXL::CT_AdjPoint2D, :collection => true, :node_name => 'a:pt')
431
+ define_element_name 'a:quadBezTo'
432
+ end
433
+
434
+ # http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
435
+ class CT_Path2DCubicBezierTo < OOXMLContainerObject
436
+ define_child_node(RubyXL::CT_AdjPoint2D, :collection => true, :node_name => 'a:pt')
437
+ define_element_name 'a:cubicBezTo'
438
+ end
439
+
440
+ # http://www.schemacentral.com/sc/ooxml/e-a_path-2.html
441
+ class CT_Path2D < OOXMLObject
442
+ define_child_node(RubyXL::BooleanValue, :node_name => 'a:close')
443
+ define_child_node(RubyXL::CT_Path2DTo, :node_name => 'a:moveTo')
444
+ define_child_node(RubyXL::CT_Path2DTo, :node_name => 'a:lnTo')
445
+ define_child_node(RubyXL::CT_Path2DArcTo, :node_name => 'a:arcTo')
446
+ define_child_node(RubyXL::CT_Path2DQuadBezierTo)
447
+ define_child_node(RubyXL::CT_Path2DCubicBezierTo)
448
+ define_attribute(:w, :int, :default => 0)
449
+ define_attribute(:h, :int, :default => 0)
450
+ define_attribute(:fill, RubyXL::ST_PathFillMode, :default => 'norm')
451
+ define_attribute(:stroke, :bool, :default => true)
452
+ define_attribute(:extrusionOk, :bool, :default => true)
453
+ define_element_name 'a:cxn'
454
+ end
455
+
456
+ # http://www.schemacentral.com/sc/ooxml/e-a_pathLst-1.html
457
+ class CT_Path2DList < OOXMLContainerObject
458
+ define_child_node(RubyXL::CT_Path2D, :collection => true)
459
+ define_element_name 'a:pathLst'
460
+ end
461
+
333
462
  # http://www.schemacentral.com/sc/ooxml/e-a_custGeom-1.html
334
463
  class CustomGeometry < OOXMLObject
335
- define_child_node(RubyXL::AdjustValueList)
336
- define_child_node(RubyXL::AdjustValueList, :node_name => 'a:gdLst')
337
- # a:ahLst [0..1] List of Shape Adjust Handles
338
- # a:cxnLst [0..1] List of Shape Connection Sites
464
+ define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
465
+ define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:gdLst')
466
+ define_child_node(RubyXL::AdjustHandleList)
467
+ define_child_node(RubyXL::CT_ConnectionSiteList)
339
468
  define_child_node(RubyXL::ShapeTextRectangle)
340
- # a:pathLst [1..1] List of Shape Paths
469
+ define_child_node(RubyXL::CT_Path2DList)
341
470
  define_element_name 'a:custGeom'
342
471
  end
343
472
 
344
473
  # http://www.schemacentral.com/sc/ooxml/e-a_prstGeom-1.html
345
474
  class PresetGeometry < OOXMLObject
346
- define_child_node(RubyXL::AdjustValueList)
475
+ define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
347
476
  define_attribute(:prst, RubyXL::ST_ShapeType, :required => true)
348
477
  define_element_name 'a:prstGeom'
349
478
  end
@@ -406,12 +535,12 @@ module RubyXL
406
535
 
407
536
  # http://www.schemacentral.com/sc/ooxml/e-a_custClr-1.html
408
537
  class CustomColor < OOXMLObject
409
- # a:scrgbClr RGB Color Model - Percentage Variant
410
- # a:srgbClr RGB Color Model - Hex Variant
411
- # a:hslClr Hue, Saturation, Luminance Color Model
412
- # a:sysClr System Color
413
- # a:schemeClr Scheme Color
414
- # a:prstClr Preset Color
538
+ define_child_node(RubyXL::RGBColorModelPercentage)
539
+ define_child_node(RubyXL::RGBColorModelHex)
540
+ define_child_node(RubyXL::HSLColor)
541
+ define_child_node(RubyXL::SystemColor)
542
+ define_child_node(RubyXL::SchemeColor)
543
+ define_child_node(RubyXL::PresetColor)
415
544
  define_attribute(:name, :string, :default => '')
416
545
  define_element_name 'a:custClr'
417
546
  end
@@ -684,7 +684,7 @@ module RubyXL
684
684
  end
685
685
 
686
686
  row.r = row_index + 1
687
- row.spans = "#{first_nonempty_cell + 1}:#{last_nonempty_cell + 1}"
687
+ row.spans = "#{first_nonempty_cell + 1}:#{last_nonempty_cell + 1}" unless first_nonempty_cell.nil?
688
688
  row.custom_format = (row.style_index.to_i != 0)
689
689
  }
690
690
 
@@ -59,6 +59,7 @@ module RubyXL
59
59
  wb.worksheet_rels.load_dir(dir_path)
60
60
  wb.chartsheet_rels.load_dir(dir_path)
61
61
  wb.macros.load_file(dir_path, 'vbaProject.bin')
62
+ wb.thumbnail.load_file(dir_path, 'thumbnail.jpeg')
62
63
 
63
64
  wb.theme = RubyXL::Theme.parse_file(dir_path)
64
65
  wb.core_properties = RubyXL::CoreProperties.parse_file(dir_path)
@@ -6,7 +6,7 @@ module RubyXL
6
6
  include Enumerable
7
7
  attr_accessor :worksheets, :filepath, :theme,
8
8
  :media, :external_links, :external_links_rels, :drawings, :drawings_rels, :charts, :chart_rels,
9
- :worksheet_rels, :chartsheet_rels, :printer_settings, :macros
9
+ :worksheet_rels, :chartsheet_rels, :printer_settings, :macros, :thumbnail
10
10
 
11
11
  attr_accessor :stylesheet, :shared_strings_container, :document_properties, :calculation_chain,
12
12
  :relationship_container, :root_relationship_container, :core_properties, :content_types
@@ -40,6 +40,7 @@ module RubyXL
40
40
  @chartsheet_rels = RubyXL::GenericStorage.new(File.join('xl', 'chartsheets', '_rels'))
41
41
  @printer_settings = RubyXL::GenericStorage.new(File.join('xl', 'printerSettings')).binary
42
42
  @macros = RubyXL::GenericStorage.new('xl').binary
43
+ @thumbnail = RubyXL::GenericStorage.new('docProps').binary
43
44
 
44
45
  @theme = RubyXL::Theme.new
45
46
  @shared_strings_container = RubyXL::SharedStringsTable.new
@@ -112,7 +113,7 @@ module RubyXL
112
113
  core_properties.add_to_zip(zipfile)
113
114
  content_types.workbook = self
114
115
  content_types.add_to_zip(zipfile)
115
- relationship_container.workbook = self
116
+ relationship_container.workbook = root_relationship_container.workbook = self
116
117
  relationship_container.add_to_zip(zipfile)
117
118
  stylesheet.add_to_zip(zipfile)
118
119
  root_relationship_container.add_to_zip(zipfile)
@@ -120,7 +121,7 @@ module RubyXL
120
121
 
121
122
  [ @media, @external_links, @external_links_rels,
122
123
  @drawings, @drawings_rels, @charts, @chart_rels,
123
- @printer_settings, @worksheet_rels, @chartsheet_rels, @macros ].each { |s| s.add_to_zip(zipfile) }
124
+ @printer_settings, @worksheet_rels, @chartsheet_rels, @macros, @thumbnail ].each { |s| s.add_to_zip(zipfile) }
124
125
 
125
126
  @worksheets.each { |sheet| sheet.add_to_zip(zipfile) }
126
127
  }
@@ -337,8 +337,8 @@ module LegacyWorksheet
337
337
  c.column = column
338
338
  c.raw_value = data
339
339
  c.datatype = (formula || data.is_a?(Numeric)) ? '' : RubyXL::Cell::RAW_STRING
340
- c.formula = formula
341
-
340
+ c.formula = RubyXL::Formula.new(:expression => formula) if formula
341
+
342
342
  range = cols && cols.find(column)
343
343
  c.style_index = sheet_data.rows[row].style_index || (range && range.style_index) || 0
344
344
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 2.4.1</title>
7
+ <title>README - rubyXL 2.4.2</title>
8
8
 
9
9
  <link href="./fonts.css" rel="stylesheet">
10
10
  <link href="./rdoc.css" rel="stylesheet">
@@ -225,7 +225,7 @@ worksheet.get_column_border_right(0)</pre>
225
225
 
226
226
  <h4 id="label-Adding+Worksheets">Adding Worksheets<span><a href="#label-Adding+Worksheets">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
227
227
 
228
- <pre>worlsheet = workbook.add_worksheet(&#39;Sheet2&#39;)</pre>
228
+ <pre>worksheet = workbook.add_worksheet(&#39;Sheet2&#39;)</pre>
229
229
 
230
230
  <h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
231
231
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL - rubyXL 2.4.1</title>
7
+ <title>module RubyXL - rubyXL 2.4.2</title>
8
8
 
9
9
  <link href="./fonts.css" rel="stylesheet">
10
10
  <link href="./rdoc.css" rel="stylesheet">
@@ -238,6 +238,11 @@
238
238
  <dd>
239
239
 
240
240
 
241
+ <dt id="ST_PathFillMode">ST_PathFillMode
242
+
243
+ <dd>
244
+
245
+
241
246
  <dt id="ST_PatternType">ST_PatternType
242
247
 
243
248
  <dd>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtension - rubyXL 2.4.1</title>
7
+ <title>class RubyXL::AExtension - rubyXL 2.4.2</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtensionStorageArea - rubyXL 2.4.1</title>
7
+ <title>class RubyXL::AExtensionStorageArea - rubyXL 2.4.2</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -0,0 +1,105 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class RubyXL::AdjustHandleList - rubyXL 2.4.2</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
16
+ <script src="../js/jquery.js"></script>
17
+ <script src="../js/navigation.js"></script>
18
+ <script src="../js/search_index.js"></script>
19
+ <script src="../js/search.js"></script>
20
+ <script src="../js/searcher.js"></script>
21
+ <script src="../js/darkfish.js"></script>
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
63
+
64
+ <p class="link"><a href="OOXMLObject.html">RubyXL::OOXMLObject</a>
65
+
66
+ </div>
67
+
68
+
69
+
70
+
71
+ </div>
72
+ </nav>
73
+
74
+ <main role="main" aria-labelledby="class-RubyXL::AdjustHandleList">
75
+ <h1 id="class-RubyXL::AdjustHandleList" class="class">
76
+ class RubyXL::AdjustHandleList
77
+ </h1>
78
+
79
+ <section class="description">
80
+
81
+ </section>
82
+
83
+
84
+
85
+
86
+ <section id="5Buntitled-5D" class="documentation-section">
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ </section>
97
+ </main>
98
+
99
+
100
+ <footer id="validator-badges" role="contentinfo">
101
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
102
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
103
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
104
+ </footer>
105
+