rubyXL 3.4.38 → 3.4.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -4
  3. data/Rakefile +65 -29
  4. data/bin/console +10 -0
  5. data/bin/setup +3 -0
  6. data/lib/rubyXL/convenience_methods/cell.rb +17 -7
  7. data/lib/rubyXL/convenience_methods/worksheet.rb +51 -32
  8. data/lib/rubyXL/convenience_methods.rb +5 -5
  9. data/lib/rubyXL/{cell.rb → legacy_cell.rb} +2 -2
  10. data/lib/rubyXL/{worksheet.rb → legacy_worksheet.rb} +5 -17
  11. data/lib/rubyXL/objects/border.rb +11 -8
  12. data/lib/rubyXL/objects/calculation_chain.rb +4 -2
  13. data/lib/rubyXL/objects/cell_style.rb +4 -2
  14. data/lib/rubyXL/objects/chartsheet.rb +7 -5
  15. data/lib/rubyXL/objects/color.rb +5 -3
  16. data/lib/rubyXL/objects/column_range.rb +3 -1
  17. data/lib/rubyXL/objects/comments.rb +4 -2
  18. data/lib/rubyXL/objects/connection.rb +5 -3
  19. data/lib/rubyXL/objects/container_nodes.rb +4 -2
  20. data/lib/rubyXL/objects/content_types.rb +3 -1
  21. data/lib/rubyXL/objects/data_validation.rb +5 -3
  22. data/lib/rubyXL/objects/document_properties.rb +4 -2
  23. data/lib/rubyXL/objects/extensions.rb +3 -1
  24. data/lib/rubyXL/objects/external_links.rb +4 -0
  25. data/lib/rubyXL/objects/fill.rb +4 -2
  26. data/lib/rubyXL/objects/filters.rb +5 -3
  27. data/lib/rubyXL/objects/font.rb +5 -3
  28. data/lib/rubyXL/objects/formula.rb +4 -2
  29. data/lib/rubyXL/objects/ooxml_object.rb +17 -17
  30. data/lib/rubyXL/objects/query_table.rb +7 -5
  31. data/lib/rubyXL/objects/reference.rb +49 -32
  32. data/lib/rubyXL/objects/relationships.rb +1 -1
  33. data/lib/rubyXL/objects/root.rb +14 -5
  34. data/lib/rubyXL/objects/shared_strings.rb +5 -3
  35. data/lib/rubyXL/objects/sheet_common.rb +4 -2
  36. data/lib/rubyXL/objects/sheet_data.rb +18 -7
  37. data/lib/rubyXL/objects/simple_types.rb +101 -98
  38. data/lib/rubyXL/objects/storage.rb +4 -0
  39. data/lib/rubyXL/objects/stylesheet.rb +8 -6
  40. data/lib/rubyXL/objects/text.rb +13 -6
  41. data/lib/rubyXL/objects/theme.rb +2 -2
  42. data/lib/rubyXL/objects/workbook.rb +22 -19
  43. data/lib/rubyXL/objects/worksheet.rb +40 -19
  44. data/lib/rubyXL/parser.rb +2 -0
  45. data/lib/rubyXL/version.rb +3 -0
  46. data/lib/rubyXL.rb +3 -2
  47. data/rubyXL.gemspec +11 -480
  48. metadata +52 -427
  49. data/.circleci/config.yml +0 -71
  50. data/.codeclimate.yml +0 -3
  51. data/.rubocop.yml +0 -124
  52. data/CHANGELOG.md +0 -12
  53. data/Gemfile +0 -20
  54. data/VERSION +0 -1
  55. data/rdoc/README_rdoc.html +0 -871
  56. data/rdoc/RubyXL/AExtension.html +0 -703
  57. data/rdoc/RubyXL/AExtensionStorageArea.html +0 -543
  58. data/rdoc/RubyXL/ActiveX.html +0 -654
  59. data/rdoc/RubyXL/ActiveXBinary.html +0 -560
  60. data/rdoc/RubyXL/AdjustHandleList.html +0 -539
  61. data/rdoc/RubyXL/Alignment.html +0 -539
  62. data/rdoc/RubyXL/AlternateContent.html +0 -543
  63. data/rdoc/RubyXL/AlternateUrls.html +0 -539
  64. data/rdoc/RubyXL/Authors.html +0 -539
  65. data/rdoc/RubyXL/AutoFilter.html +0 -539
  66. data/rdoc/RubyXL/AutoFilterColumn.html +0 -539
  67. data/rdoc/RubyXL/BinaryImageFile.html +0 -568
  68. data/rdoc/RubyXL/BodyProperties.html +0 -539
  69. data/rdoc/RubyXL/BooleanNode.html +0 -543
  70. data/rdoc/RubyXL/BooleanValue.html +0 -543
  71. data/rdoc/RubyXL/Border.html +0 -758
  72. data/rdoc/RubyXL/BorderEdge.html +0 -656
  73. data/rdoc/RubyXL/Borders.html +0 -608
  74. data/rdoc/RubyXL/Break.html +0 -539
  75. data/rdoc/RubyXL/BreakList.html +0 -539
  76. data/rdoc/RubyXL/CT_AdjPoint2D.html +0 -539
  77. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +0 -539
  78. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +0 -539
  79. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +0 -539
  80. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +0 -539
  81. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +0 -539
  82. data/rdoc/RubyXL/CT_Backdrop.html +0 -539
  83. data/rdoc/RubyXL/CT_Bevel.html +0 -539
  84. data/rdoc/RubyXL/CT_BiLevelEffect.html +0 -539
  85. data/rdoc/RubyXL/CT_BlendEffect.html +0 -539
  86. data/rdoc/RubyXL/CT_Blip.html +0 -539
  87. data/rdoc/RubyXL/CT_BlipFillProperties.html +0 -539
  88. data/rdoc/RubyXL/CT_BlurEffect.html +0 -539
  89. data/rdoc/RubyXL/CT_Camera.html +0 -539
  90. data/rdoc/RubyXL/CT_Color.html +0 -539
  91. data/rdoc/RubyXL/CT_ColorChangeEffect.html +0 -539
  92. data/rdoc/RubyXL/CT_ColorMapping.html +0 -539
  93. data/rdoc/RubyXL/CT_ColorScheme.html +0 -539
  94. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +0 -539
  95. data/rdoc/RubyXL/CT_ConnectionSite.html +0 -539
  96. data/rdoc/RubyXL/CT_ConnectionSiteList.html +0 -539
  97. data/rdoc/RubyXL/CT_DashStop.html +0 -539
  98. data/rdoc/RubyXL/CT_DashStopList.html +0 -539
  99. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +0 -539
  100. data/rdoc/RubyXL/CT_DuotoneEffect.html +0 -539
  101. data/rdoc/RubyXL/CT_EffectContainer.html +0 -539
  102. data/rdoc/RubyXL/CT_EffectList.html +0 -539
  103. data/rdoc/RubyXL/CT_EffectReference.html +0 -539
  104. data/rdoc/RubyXL/CT_EffectStyleItem.html +0 -539
  105. data/rdoc/RubyXL/CT_EffectStyleList.html +0 -539
  106. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +0 -539
  107. data/rdoc/RubyXL/CT_FillEffect.html +0 -539
  108. data/rdoc/RubyXL/CT_FillOverlayEffect.html +0 -539
  109. data/rdoc/RubyXL/CT_FillStyleList.html +0 -539
  110. data/rdoc/RubyXL/CT_FlatText.html +0 -539
  111. data/rdoc/RubyXL/CT_FontCollection.html +0 -539
  112. data/rdoc/RubyXL/CT_FontReference.html +0 -539
  113. data/rdoc/RubyXL/CT_GeomGuideList.html +0 -539
  114. data/rdoc/RubyXL/CT_GlowEffect.html +0 -539
  115. data/rdoc/RubyXL/CT_GradientFillProperties.html +0 -539
  116. data/rdoc/RubyXL/CT_GradientStop.html +0 -539
  117. data/rdoc/RubyXL/CT_GradientStopList.html +0 -539
  118. data/rdoc/RubyXL/CT_HSLEffect.html +0 -539
  119. data/rdoc/RubyXL/CT_HslColor.html +0 -539
  120. data/rdoc/RubyXL/CT_Hyperlink.html +0 -539
  121. data/rdoc/RubyXL/CT_InnerShadowEffect.html +0 -539
  122. data/rdoc/RubyXL/CT_LightRig.html +0 -539
  123. data/rdoc/RubyXL/CT_LineEndProperties.html +0 -539
  124. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +0 -539
  125. data/rdoc/RubyXL/CT_LineProperties.html +0 -539
  126. data/rdoc/RubyXL/CT_LineStyleList.html +0 -539
  127. data/rdoc/RubyXL/CT_LinearShadeProperties.html +0 -539
  128. data/rdoc/RubyXL/CT_LuminanceEffect.html +0 -539
  129. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +0 -539
  130. data/rdoc/RubyXL/CT_OuterShadowEffect.html +0 -539
  131. data/rdoc/RubyXL/CT_Path2D.html +0 -539
  132. data/rdoc/RubyXL/CT_Path2DArcTo.html +0 -539
  133. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +0 -539
  134. data/rdoc/RubyXL/CT_Path2DList.html +0 -539
  135. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +0 -539
  136. data/rdoc/RubyXL/CT_Path2DTo.html +0 -539
  137. data/rdoc/RubyXL/CT_PathShadeProperties.html +0 -539
  138. data/rdoc/RubyXL/CT_PatternFillProperties.html +0 -539
  139. data/rdoc/RubyXL/CT_Point3D.html +0 -539
  140. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +0 -539
  141. data/rdoc/RubyXL/CT_PresetColor.html +0 -539
  142. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +0 -539
  143. data/rdoc/RubyXL/CT_PresetShadowEffect.html +0 -539
  144. data/rdoc/RubyXL/CT_PresetTextShape.html +0 -539
  145. data/rdoc/RubyXL/CT_ReflectionEffect.html +0 -539
  146. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +0 -539
  147. data/rdoc/RubyXL/CT_RelativeRect.html +0 -539
  148. data/rdoc/RubyXL/CT_SRgbColor.html +0 -539
  149. data/rdoc/RubyXL/CT_ScRgbColor.html +0 -539
  150. data/rdoc/RubyXL/CT_Scene3D.html +0 -539
  151. data/rdoc/RubyXL/CT_SchemeColor.html +0 -539
  152. data/rdoc/RubyXL/CT_Shape3D.html +0 -539
  153. data/rdoc/RubyXL/CT_ShapeStyle.html +0 -539
  154. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +0 -539
  155. data/rdoc/RubyXL/CT_SphereCoords.html +0 -539
  156. data/rdoc/RubyXL/CT_StretchInfoProperties.html +0 -539
  157. data/rdoc/RubyXL/CT_StyleMatrix.html +0 -539
  158. data/rdoc/RubyXL/CT_StyleMatrixReference.html +0 -539
  159. data/rdoc/RubyXL/CT_SupplementalFont.html +0 -539
  160. data/rdoc/RubyXL/CT_SystemColor.html +0 -539
  161. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +0 -539
  162. data/rdoc/RubyXL/CT_TextBlipBullet.html +0 -539
  163. data/rdoc/RubyXL/CT_TextCharBullet.html +0 -539
  164. data/rdoc/RubyXL/CT_TextCharacterProperties.html +0 -539
  165. data/rdoc/RubyXL/CT_TextFont.html +0 -539
  166. data/rdoc/RubyXL/CT_TextListStyle.html +0 -539
  167. data/rdoc/RubyXL/CT_TextNormalAutofit.html +0 -539
  168. data/rdoc/RubyXL/CT_TextParagraphProperties.html +0 -539
  169. data/rdoc/RubyXL/CT_TextSpacing.html +0 -539
  170. data/rdoc/RubyXL/CT_TextTabStop.html +0 -539
  171. data/rdoc/RubyXL/CT_TextTabStopList.html +0 -539
  172. data/rdoc/RubyXL/CT_TileInfoProperties.html +0 -539
  173. data/rdoc/RubyXL/CT_TintEffect.html +0 -539
  174. data/rdoc/RubyXL/CT_Transform2D.html +0 -539
  175. data/rdoc/RubyXL/CT_TransformEffect.html +0 -539
  176. data/rdoc/RubyXL/CT_Vector3D.html +0 -539
  177. data/rdoc/RubyXL/CT_XYAdjustHandle.html +0 -539
  178. data/rdoc/RubyXL/CalculationChain.html +0 -633
  179. data/rdoc/RubyXL/CalculationChainCell.html +0 -539
  180. data/rdoc/RubyXL/CalculationProperties.html +0 -539
  181. data/rdoc/RubyXL/Cell.html +0 -1315
  182. data/rdoc/RubyXL/CellConvenienceMethods.html +0 -2290
  183. data/rdoc/RubyXL/CellExt.html +0 -539
  184. data/rdoc/RubyXL/CellSmartTag.html +0 -539
  185. data/rdoc/RubyXL/CellSmartTagProperty.html +0 -539
  186. data/rdoc/RubyXL/CellSmartTags.html +0 -539
  187. data/rdoc/RubyXL/CellStyle.html +0 -539
  188. data/rdoc/RubyXL/CellStyleXFs.html +0 -608
  189. data/rdoc/RubyXL/CellStyles.html +0 -608
  190. data/rdoc/RubyXL/CellValue.html +0 -609
  191. data/rdoc/RubyXL/CellWatch.html +0 -539
  192. data/rdoc/RubyXL/CellWatches.html +0 -539
  193. data/rdoc/RubyXL/CellXFs.html +0 -609
  194. data/rdoc/RubyXL/ChartColorsFile.html +0 -568
  195. data/rdoc/RubyXL/ChartFile.html +0 -664
  196. data/rdoc/RubyXL/ChartStyleFile.html +0 -568
  197. data/rdoc/RubyXL/ChartUserShapesFile.html +0 -568
  198. data/rdoc/RubyXL/Chartsheet.html +0 -743
  199. data/rdoc/RubyXL/ChartsheetPageSetup.html +0 -539
  200. data/rdoc/RubyXL/ChartsheetProperties.html +0 -539
  201. data/rdoc/RubyXL/ChartsheetProtection.html +0 -539
  202. data/rdoc/RubyXL/ChartsheetView.html +0 -539
  203. data/rdoc/RubyXL/ChartsheetViews.html +0 -539
  204. data/rdoc/RubyXL/Color.html +0 -629
  205. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +0 -774
  206. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +0 -845
  207. data/rdoc/RubyXL/ColorConvenienceClasses.html +0 -528
  208. data/rdoc/RubyXL/ColorConvenienceMethods.html +0 -606
  209. data/rdoc/RubyXL/ColorFilter.html +0 -539
  210. data/rdoc/RubyXL/ColorScale.html +0 -539
  211. data/rdoc/RubyXL/ColorSet.html +0 -539
  212. data/rdoc/RubyXL/Colors.html +0 -539
  213. data/rdoc/RubyXL/ColumnRange.html +0 -786
  214. data/rdoc/RubyXL/ColumnRanges.html +0 -773
  215. data/rdoc/RubyXL/Comment.html +0 -539
  216. data/rdoc/RubyXL/CommentList.html +0 -539
  217. data/rdoc/RubyXL/CommentsFile.html +0 -657
  218. data/rdoc/RubyXL/ConditionalFormatValue.html +0 -539
  219. data/rdoc/RubyXL/ConditionalFormatting.html +0 -539
  220. data/rdoc/RubyXL/ConditionalFormattingRule.html +0 -539
  221. data/rdoc/RubyXL/Connection.html +0 -539
  222. data/rdoc/RubyXL/ConnectionTable.html +0 -539
  223. data/rdoc/RubyXL/ConnectionTables.html +0 -539
  224. data/rdoc/RubyXL/ConnectionTextField.html +0 -539
  225. data/rdoc/RubyXL/ConnectionTextFields.html +0 -539
  226. data/rdoc/RubyXL/Connections.html +0 -633
  227. data/rdoc/RubyXL/ContentTypeDefault.html +0 -543
  228. data/rdoc/RubyXL/ContentTypeOverride.html +0 -543
  229. data/rdoc/RubyXL/ContentTypes.html +0 -721
  230. data/rdoc/RubyXL/ControlPropertiesFile.html +0 -568
  231. data/rdoc/RubyXL/CorePropertiesFile.html +0 -1013
  232. data/rdoc/RubyXL/CustomColor.html +0 -539
  233. data/rdoc/RubyXL/CustomColorList.html +0 -539
  234. data/rdoc/RubyXL/CustomFilter.html +0 -539
  235. data/rdoc/RubyXL/CustomFilters.html +0 -539
  236. data/rdoc/RubyXL/CustomGeometry.html +0 -539
  237. data/rdoc/RubyXL/CustomProperties.html +0 -539
  238. data/rdoc/RubyXL/CustomPropertiesFile.html +0 -568
  239. data/rdoc/RubyXL/CustomProperty.html +0 -539
  240. data/rdoc/RubyXL/CustomPropertyFile.html +0 -568
  241. data/rdoc/RubyXL/CustomSheetView.html +0 -539
  242. data/rdoc/RubyXL/CustomSheetViews.html +0 -539
  243. data/rdoc/RubyXL/CustomWorkbookView.html +0 -539
  244. data/rdoc/RubyXL/CustomWorkbookViews.html +0 -539
  245. data/rdoc/RubyXL/CustomXMLFile.html +0 -560
  246. data/rdoc/RubyXL/DXF.html +0 -539
  247. data/rdoc/RubyXL/DXFs.html +0 -539
  248. data/rdoc/RubyXL/DataBar.html +0 -539
  249. data/rdoc/RubyXL/DataConsolidate.html +0 -539
  250. data/rdoc/RubyXL/DataConsolidationReference.html +0 -539
  251. data/rdoc/RubyXL/DataConsolidationReferences.html +0 -539
  252. data/rdoc/RubyXL/DataType.html +0 -589
  253. data/rdoc/RubyXL/DataValidation.html +0 -539
  254. data/rdoc/RubyXL/DataValidations.html +0 -539
  255. data/rdoc/RubyXL/DateGroupItem.html +0 -539
  256. data/rdoc/RubyXL/DefinedName.html +0 -539
  257. data/rdoc/RubyXL/DefinedNameExt.html +0 -539
  258. data/rdoc/RubyXL/DefinedNames.html +0 -616
  259. data/rdoc/RubyXL/DefinedNamesExt.html +0 -539
  260. data/rdoc/RubyXL/DocumentPropertiesFile.html +0 -725
  261. data/rdoc/RubyXL/DrawingFile.html +0 -663
  262. data/rdoc/RubyXL/DynamicFilter.html +0 -539
  263. data/rdoc/RubyXL/EmbeddedControl.html +0 -539
  264. data/rdoc/RubyXL/EmbeddedControls.html +0 -539
  265. data/rdoc/RubyXL/Extension.html +0 -539
  266. data/rdoc/RubyXL/ExtensionStorageArea.html +0 -539
  267. data/rdoc/RubyXL/Extents.html +0 -539
  268. data/rdoc/RubyXL/ExternalBook.html +0 -539
  269. data/rdoc/RubyXL/ExternalLinksFile.html +0 -659
  270. data/rdoc/RubyXL/ExternalReference.html +0 -539
  271. data/rdoc/RubyXL/ExternalReferences.html +0 -539
  272. data/rdoc/RubyXL/ExtraColorSchemeList.html +0 -539
  273. data/rdoc/RubyXL/FieldItem.html +0 -539
  274. data/rdoc/RubyXL/FileRecoveryProperties.html +0 -539
  275. data/rdoc/RubyXL/FileSharing.html +0 -539
  276. data/rdoc/RubyXL/FileVersion.html +0 -539
  277. data/rdoc/RubyXL/Fill.html +0 -608
  278. data/rdoc/RubyXL/Fills.html +0 -608
  279. data/rdoc/RubyXL/FilterContainer.html +0 -539
  280. data/rdoc/RubyXL/FloatNode.html +0 -543
  281. data/rdoc/RubyXL/FloatValue.html +0 -543
  282. data/rdoc/RubyXL/Font.html +0 -626
  283. data/rdoc/RubyXL/FontConvenienceMethods.html +0 -1169
  284. data/rdoc/RubyXL/FontScheme.html +0 -539
  285. data/rdoc/RubyXL/Fonts.html +0 -608
  286. data/rdoc/RubyXL/Formula.html +0 -539
  287. data/rdoc/RubyXL/FunctionGroup.html +0 -539
  288. data/rdoc/RubyXL/FunctionGroups.html +0 -539
  289. data/rdoc/RubyXL/GenericStorageObject.html +0 -803
  290. data/rdoc/RubyXL/GradientFill.html +0 -539
  291. data/rdoc/RubyXL/HeaderFooterSettings.html +0 -539
  292. data/rdoc/RubyXL/Hyperlink.html +0 -539
  293. data/rdoc/RubyXL/HyperlinkRelFile.html +0 -560
  294. data/rdoc/RubyXL/Hyperlinks.html +0 -539
  295. data/rdoc/RubyXL/IconFilter.html +0 -539
  296. data/rdoc/RubyXL/IconSet.html +0 -539
  297. data/rdoc/RubyXL/IgnoredError.html +0 -539
  298. data/rdoc/RubyXL/IgnoredErrors.html +0 -539
  299. data/rdoc/RubyXL/IndexedColors.html +0 -539
  300. data/rdoc/RubyXL/InputCells.html +0 -539
  301. data/rdoc/RubyXL/IntegerNode.html +0 -543
  302. data/rdoc/RubyXL/IntegerValue.html +0 -543
  303. data/rdoc/RubyXL/LegacyCell.html +0 -597
  304. data/rdoc/RubyXL/LegacyWorksheet.html +0 -894
  305. data/rdoc/RubyXL/MRUColors.html +0 -539
  306. data/rdoc/RubyXL/MacrosFile.html +0 -568
  307. data/rdoc/RubyXL/MergedCell.html +0 -539
  308. data/rdoc/RubyXL/MergedCells.html +0 -539
  309. data/rdoc/RubyXL/NumFmt.html +0 -539
  310. data/rdoc/RubyXL/NumberFormat.html +0 -609
  311. data/rdoc/RubyXL/NumberFormats.html +0 -625
  312. data/rdoc/RubyXL/OLEObject.html +0 -539
  313. data/rdoc/RubyXL/OLEObjectFile.html +0 -568
  314. data/rdoc/RubyXL/OLEObjects.html +0 -539
  315. data/rdoc/RubyXL/OLESize.html +0 -539
  316. data/rdoc/RubyXL/OOXMLContainerObject.html +0 -916
  317. data/rdoc/RubyXL/OOXMLIgnored.html +0 -681
  318. data/rdoc/RubyXL/OOXMLObject.html +0 -561
  319. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +0 -1030
  320. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +0 -1092
  321. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +0 -1174
  322. data/rdoc/RubyXL/OOXMLTopLevelObject.html +0 -891
  323. data/rdoc/RubyXL/OdbcOleDbProperties.html +0 -539
  324. data/rdoc/RubyXL/Offset.html +0 -539
  325. data/rdoc/RubyXL/OlapProperties.html +0 -539
  326. data/rdoc/RubyXL/OleItem.html +0 -539
  327. data/rdoc/RubyXL/OleItems.html +0 -539
  328. data/rdoc/RubyXL/OleLink.html +0 -539
  329. data/rdoc/RubyXL/OutlineProperties.html +0 -539
  330. data/rdoc/RubyXL/PageMargins.html +0 -539
  331. data/rdoc/RubyXL/PageSetup.html +0 -539
  332. data/rdoc/RubyXL/PageSetupProperties.html +0 -539
  333. data/rdoc/RubyXL/Pane.html +0 -539
  334. data/rdoc/RubyXL/Parser.html +0 -670
  335. data/rdoc/RubyXL/PatternFill.html +0 -539
  336. data/rdoc/RubyXL/PersonMetadata.html +0 -568
  337. data/rdoc/RubyXL/PhoneticProperties.html +0 -539
  338. data/rdoc/RubyXL/PhoneticRun.html +0 -539
  339. data/rdoc/RubyXL/PivotArea.html +0 -539
  340. data/rdoc/RubyXL/PivotCache.html +0 -539
  341. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +0 -590
  342. data/rdoc/RubyXL/PivotCacheRecordsFile.html +0 -568
  343. data/rdoc/RubyXL/PivotCaches.html +0 -539
  344. data/rdoc/RubyXL/PivotReference.html +0 -539
  345. data/rdoc/RubyXL/PivotReferences.html +0 -539
  346. data/rdoc/RubyXL/PivotTableFile.html +0 -590
  347. data/rdoc/RubyXL/PivotTableSelection.html +0 -539
  348. data/rdoc/RubyXL/PresetGeometry.html +0 -539
  349. data/rdoc/RubyXL/PrintOptions.html +0 -539
  350. data/rdoc/RubyXL/PrinterSettingsFile.html +0 -568
  351. data/rdoc/RubyXL/ProtectedRange.html +0 -539
  352. data/rdoc/RubyXL/ProtectedRanges.html +0 -539
  353. data/rdoc/RubyXL/Protection.html +0 -539
  354. data/rdoc/RubyXL/QueryParameter.html +0 -539
  355. data/rdoc/RubyXL/QueryParameters.html +0 -539
  356. data/rdoc/RubyXL/QueryTable.html +0 -655
  357. data/rdoc/RubyXL/QueryTableDeletedField.html +0 -539
  358. data/rdoc/RubyXL/QueryTableDeletedFields.html +0 -539
  359. data/rdoc/RubyXL/QueryTableField.html +0 -539
  360. data/rdoc/RubyXL/QueryTableFields.html +0 -539
  361. data/rdoc/RubyXL/QueryTableRefresh.html +0 -539
  362. data/rdoc/RubyXL/RID.html +0 -543
  363. data/rdoc/RubyXL/RawOOXML.html +0 -703
  364. data/rdoc/RubyXL/Reference.html +0 -1376
  365. data/rdoc/RubyXL/Relationship.html +0 -543
  366. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +0 -604
  367. data/rdoc/RubyXL/RelationshipSupport.html +0 -943
  368. data/rdoc/RubyXL/RevisionPointer.html +0 -539
  369. data/rdoc/RubyXL/RichText.html +0 -611
  370. data/rdoc/RubyXL/RichTextRun.html +0 -608
  371. data/rdoc/RubyXL/Row.html +0 -1003
  372. data/rdoc/RubyXL/RowExt.html +0 -539
  373. data/rdoc/RubyXL/RunProperties.html +0 -539
  374. data/rdoc/RubyXL/Scenario.html +0 -539
  375. data/rdoc/RubyXL/Scenarios.html +0 -539
  376. data/rdoc/RubyXL/Selection.html +0 -616
  377. data/rdoc/RubyXL/ShapeGuide.html +0 -539
  378. data/rdoc/RubyXL/ShapeTextRectangle.html +0 -539
  379. data/rdoc/RubyXL/SharedStringsTable.html +0 -952
  380. data/rdoc/RubyXL/Sheet.html +0 -539
  381. data/rdoc/RubyXL/SheetCalculationProperties.html +0 -539
  382. data/rdoc/RubyXL/SheetData.html +0 -652
  383. data/rdoc/RubyXL/SheetDataExt.html +0 -539
  384. data/rdoc/RubyXL/SheetDataSet.html +0 -539
  385. data/rdoc/RubyXL/SheetMetadata.html +0 -568
  386. data/rdoc/RubyXL/SheetName.html +0 -539
  387. data/rdoc/RubyXL/SheetNames.html +0 -539
  388. data/rdoc/RubyXL/Sheets.html +0 -539
  389. data/rdoc/RubyXL/SlicerCacheFile.html +0 -568
  390. data/rdoc/RubyXL/SlicerFile.html +0 -568
  391. data/rdoc/RubyXL/SmartTagProperties.html +0 -539
  392. data/rdoc/RubyXL/SmartTagType.html +0 -539
  393. data/rdoc/RubyXL/SmartTagTypes.html +0 -539
  394. data/rdoc/RubyXL/SmartTags.html +0 -539
  395. data/rdoc/RubyXL/SortCondition.html +0 -539
  396. data/rdoc/RubyXL/SortState.html +0 -539
  397. data/rdoc/RubyXL/Sqref.html +0 -681
  398. data/rdoc/RubyXL/Stop.html +0 -539
  399. data/rdoc/RubyXL/StringNode.html +0 -543
  400. data/rdoc/RubyXL/StringNodeW3C.html +0 -681
  401. data/rdoc/RubyXL/StringValue.html +0 -543
  402. data/rdoc/RubyXL/Stylesheet.html +0 -864
  403. data/rdoc/RubyXL/TableFile.html +0 -568
  404. data/rdoc/RubyXL/TableParts.html +0 -543
  405. data/rdoc/RubyXL/TableStyle.html +0 -539
  406. data/rdoc/RubyXL/TableStyles.html +0 -539
  407. data/rdoc/RubyXL/Text.html +0 -679
  408. data/rdoc/RubyXL/TextImportSettings.html +0 -539
  409. data/rdoc/RubyXL/Theme.html +0 -1077
  410. data/rdoc/RubyXL/ThemeElements.html +0 -539
  411. data/rdoc/RubyXL/ThumbnailFile.html +0 -568
  412. data/rdoc/RubyXL/Top10.html +0 -539
  413. data/rdoc/RubyXL/VMLDrawingFile.html +0 -590
  414. data/rdoc/RubyXL/Variant.html +0 -539
  415. data/rdoc/RubyXL/Vector.html +0 -612
  416. data/rdoc/RubyXL/VectorValue.html +0 -543
  417. data/rdoc/RubyXL/VisualProperties.html +0 -539
  418. data/rdoc/RubyXL/WebPublishObject.html +0 -539
  419. data/rdoc/RubyXL/WebPublishObjects.html +0 -539
  420. data/rdoc/RubyXL/WebPublishingItem.html +0 -539
  421. data/rdoc/RubyXL/WebPublishingItems.html +0 -539
  422. data/rdoc/RubyXL/WebPublishingProperties.html +0 -539
  423. data/rdoc/RubyXL/WebQueryProperties.html +0 -539
  424. data/rdoc/RubyXL/Workbook.html +0 -2085
  425. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +0 -1407
  426. data/rdoc/RubyXL/WorkbookProperties.html +0 -539
  427. data/rdoc/RubyXL/WorkbookProtection.html +0 -539
  428. data/rdoc/RubyXL/WorkbookRoot.html +0 -933
  429. data/rdoc/RubyXL/WorkbookView.html +0 -539
  430. data/rdoc/RubyXL/WorkbookViews.html +0 -539
  431. data/rdoc/RubyXL/Worksheet.html +0 -1090
  432. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +0 -4076
  433. data/rdoc/RubyXL/WorksheetDimensions.html +0 -539
  434. data/rdoc/RubyXL/WorksheetFormatProperties.html +0 -543
  435. data/rdoc/RubyXL/WorksheetProperties.html +0 -539
  436. data/rdoc/RubyXL/WorksheetProtection.html +0 -539
  437. data/rdoc/RubyXL/WorksheetView.html +0 -539
  438. data/rdoc/RubyXL/WorksheetViews.html +0 -539
  439. data/rdoc/RubyXL/XF.html +0 -539
  440. data/rdoc/RubyXL.html +0 -1373
  441. data/rdoc/created.rid +0 -45
  442. data/rdoc/css/rdoc.css +0 -1955
  443. data/rdoc/index.html +0 -455
  444. data/rdoc/js/aliki.js +0 -511
  445. data/rdoc/js/bash_highlighter.js +0 -167
  446. data/rdoc/js/c_highlighter.js +0 -299
  447. data/rdoc/js/search_controller.js +0 -129
  448. data/rdoc/js/search_data.js +0 -1
  449. data/rdoc/js/search_navigation.js +0 -105
  450. data/rdoc/js/search_ranker.js +0 -239
  451. data/rdoc/js/theme-toggle.js +0 -112
  452. data/spec/lib/cell_spec.rb +0 -654
  453. data/spec/lib/color_spec.rb +0 -21
  454. data/spec/lib/parser_spec.rb +0 -118
  455. data/spec/lib/reference_spec.rb +0 -97
  456. data/spec/lib/rgb_color_spec.rb +0 -29
  457. data/spec/lib/stylesheet_spec.rb +0 -27
  458. data/spec/lib/text_spec.rb +0 -27
  459. data/spec/lib/workbook_spec.rb +0 -197
  460. data/spec/lib/worksheet_spec.rb +0 -1769
  461. data/spec/spec_helper.rb +0 -13
  462. data/test/input/.gitkeep +0 -0
  463. data/test/output/.gitkeep +0 -0
  464. data/test/test_parse_write.rb +0 -15
  465. data/tmp/.gitignore +0 -1
@@ -1,80 +1,82 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RubyXL
2
- ST_PageOrder = %w{ downThenOver overThenDown }
3
- ST_Orientation = %w{ default portrait landscape }
4
- ST_CellComments = %w{ none asDisplayed atEnd }
5
- ST_PrintError = %w{ displayed blank dash NA }
6
- ST_CfvoType = %w{ num percent max min formula percentile }
7
- ST_SheetViewType = %w{ normal pageBreakPreview pageLayout }
8
- ST_PivotAreaType = %w{ none normal data all origin button topRight }
9
- ST_Axis = %w{ axisRow axisCol axisPage axisValues }
4
+ ST_PageOrder = %w{ downThenOver overThenDown }.freeze
5
+ ST_Orientation = %w{ default portrait landscape }.freeze
6
+ ST_CellComments = %w{ none asDisplayed atEnd }.freeze
7
+ ST_PrintError = %w{ displayed blank dash NA }.freeze
8
+ ST_CfvoType = %w{ num percent max min formula percentile }.freeze
9
+ ST_SheetViewType = %w{ normal pageBreakPreview pageLayout }.freeze
10
+ ST_PivotAreaType = %w{ none normal data all origin button topRight }.freeze
11
+ ST_Axis = %w{ axisRow axisCol axisPage axisValues }.freeze
10
12
  ST_BorderStyle = %w{ none thin medium dashed dotted thick double hair
11
- mediumDashed dashDot mediumDashDot dashDotDot slantDashDot }
12
- ST_HorizontalAlignment = %w{ general left center right fill justify centerContinuous distributed }
13
- ST_VerticalAlignment = %w{ top center bottom justify distributed }
13
+ mediumDashed dashDot mediumDashDot dashDotDot slantDashDot }.freeze
14
+ ST_HorizontalAlignment = %w{ general left center right fill justify centerContinuous distributed }.freeze
15
+ ST_VerticalAlignment = %w{ top center bottom justify distributed }.freeze
14
16
  ST_VectorBaseType = %w{ variant i1 i2 i4 i8 ui1 ui2 ui4 ui8 r4 r8
15
- lpstr lpwstr bstr date filetime bool cy error clsid cf }
16
- ST_PhoneticType = %w{ halfwidthKatakana fullwidthKatakana Hiragana noConversion }
17
- ST_PhoneticAlignment = %w{ noControl left center distributed }
18
- ST_WebSourceType = %w{ sheet printArea autoFilter range chart pivotTable query label }
19
- ST_CellType = %w{ b n e s str inlineStr }
20
- ST_GradientType = %w{ linear path }
17
+ lpstr lpwstr bstr date filetime bool cy error clsid cf }.freeze
18
+ ST_PhoneticType = %w{ halfwidthKatakana fullwidthKatakana Hiragana noConversion }.freeze
19
+ ST_PhoneticAlignment = %w{ noControl left center distributed }.freeze
20
+ ST_WebSourceType = %w{ sheet printArea autoFilter range chart pivotTable query label }.freeze
21
+ ST_CellType = %w{ b n e s str inlineStr }.freeze
22
+ ST_GradientType = %w{ linear path }.freeze
21
23
  ST_PatternType = %w{ none solid mediumGray darkGray lightGray
22
24
  darkHorizontal darkVertical darkDown darkUp darkGrid darkTrellis
23
25
  lightHorizontal lightVertical lightDown lightUp lightGrid lightTrellis
24
- gray125 gray0625 }
25
- ST_Objects = %w{ all placeholders none }
26
- ST_UpdateLinks = %w{ userSet never always }
27
- ST_Visibility = %w{ visible hidden veryHidden }
26
+ gray125 gray0625 }.freeze
27
+ ST_Objects = %w{ all placeholders none }.freeze
28
+ ST_UpdateLinks = %w{ userSet never always }.freeze
29
+ ST_Visibility = %w{ visible hidden veryHidden }.freeze
28
30
 
29
- ST_DateTimeGrouping = %w{ year month day hour minute second }
31
+ ST_DateTimeGrouping = %w{ year month day hour minute second }.freeze
30
32
  ST_CalendarType = %w{ none gregorian gregorianUs japan taiwan korea hijri thai hebrew
31
- gregorianMeFrench gregorianArabic gregorianXlitEnglish gregorianXlitFrench }
32
- ST_FilterOperator = %w{ equal lessThan lessThanOrEqual notEqual greaterThanOrEqual greaterThan }
33
+ gregorianMeFrench gregorianArabic gregorianXlitEnglish gregorianXlitFrench }.freeze
34
+ ST_FilterOperator = %w{ equal lessThan lessThanOrEqual notEqual greaterThanOrEqual greaterThan }.freeze
33
35
  ST_DynamicFilterType = %w{ null aboveAverage belowAverage tomorrow today yesterday
34
36
  nextWeek thisWeek lastWeek nextMonth thisMonth lastMonth
35
37
  nextQuarter thisQuarter lastQuarter nextYear thisYear lastYear
36
- yearToDate Q1 Q2 Q3 Q4 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 }
38
+ yearToDate Q1 Q2 Q3 Q4 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 }.freeze
37
39
  ST_IconSetType = %w{ 3Arrows 3ArrowsGray 3Flags 3TrafficLights1 3TrafficLights2
38
40
  3Signs 3Symbols 3Symbols2 4Arrows 4ArrowsGray 4RedToBlack
39
- 4Rating 4TrafficLights 5Arrows 5ArrowsGray 5Rating 5Quarters }
40
- ST_SortMethod = %w{ stroke pinYin none }
41
- ST_SortBy = %w{ value cellColor fontColor icon }
41
+ 4Rating 4TrafficLights 5Arrows 5ArrowsGray 5Rating 5Quarters }.freeze
42
+ ST_SortMethod = %w{ stroke pinYin none }.freeze
43
+ ST_SortBy = %w{ value cellColor fontColor icon }.freeze
42
44
 
43
- ST_CellFormulaType = %w{ normal array dataTable shared }
45
+ ST_CellFormulaType = %w{ normal array dataTable shared }.freeze
44
46
  ST_TargetScreenSize = %w{ 544x376 640x480 720x512 800x600 1024x768 1152x882
45
- 1152x900 1280x1024 1600x1200 1800x1440 1920x1200 }
46
- ST_SmartTagShow = %w{ all none noIndicator }
47
+ 1152x900 1280x1024 1600x1200 1800x1440 1920x1200 }.freeze
48
+ ST_SmartTagShow = %w{ all none noIndicator }.freeze
47
49
 
48
50
  ST_CfType = %w{ expression cellIs colorScale dataBar iconSet top10 uniqueValues
49
51
  duplicateValues containsText notContainsText beginsWith
50
52
  endsWith containsBlanks notContainsBlanks containsErrors
51
- notContainsErrors timePeriod aboveAverage }
53
+ notContainsErrors timePeriod aboveAverage }.freeze
52
54
  ST_TimePeriod = %w{ today yesterday tomorrow last7Days thisMonth
53
- lastMonth nextMonth thisWeek lastWeek nextWeek }
54
- ST_CalcMode = %w{ manual auto autoNoTable }
55
- ST_RefMode = %w{ A1 R1C1 }
55
+ lastMonth nextMonth thisWeek lastWeek nextWeek }.freeze
56
+ ST_CalcMode = %w{ manual auto autoNoTable }.freeze
57
+ ST_RefMode = %w{ A1 R1C1 }.freeze
56
58
 
57
- ST_DvAspect = %w{ DVASPECT_CONTENT DVASPECT_ICON }
58
- ST_OleUpdate = %w{ OLEUPDATE_ALWAYS OLEUPDATE_ONCALL }
59
+ ST_DvAspect = %w{ DVASPECT_CONTENT DVASPECT_ICON }.freeze
60
+ ST_OleUpdate = %w{ OLEUPDATE_ALWAYS OLEUPDATE_ONCALL }.freeze
59
61
 
60
- ST_Pane = %w{ bottomRight topRight bottomLeft topLeft }
61
- ST_PaneState = %w{ split frozen frozenSplit }
62
+ ST_Pane = %w{ bottomRight topRight bottomLeft topLeft }.freeze
63
+ ST_PaneState = %w{ split frozen frozenSplit }.freeze
62
64
 
63
- ST_Comments = %w{ commNone commIndicator commIndAndComment }
65
+ ST_Comments = %w{ commNone commIndicator commIndAndComment }.freeze
64
66
 
65
- ST_DataValidationType = %w{ none whole decimal list date time textLength custom }
66
- ST_DataValidationErrorStyle = %w{ stop warning information }
67
+ ST_DataValidationType = %w{ none whole decimal list date time textLength custom }.freeze
68
+ ST_DataValidationErrorStyle = %w{ stop warning information }.freeze
67
69
  ST_DataValidationImeMode = %w{ noControl off on disabled hiragana fullKatakana halfKatakana
68
- fullAlpha halfAlpha fullHangul halfHangul }
70
+ fullAlpha halfAlpha fullHangul halfHangul }.freeze
69
71
  ST_DataValidationOperator = %w{ between notBetween equal notEqual lessThan lessThanOrEqual
70
- greaterThan greaterThanOrEqual }
72
+ greaterThan greaterThanOrEqual }.freeze
71
73
 
72
74
  ST_DataConsolidateFunction = %w{ average count countNums max min
73
- product stdDev stdDevp sum var varp }
75
+ product stdDev stdDevp sum var varp }.freeze
74
76
 
75
77
  ST_ConditionalFormattingOperator = %w{ lessThan lessThanOrEqual equal notEqual greaterThanOrEqual greaterThan
76
- between notBetween containsText notContains beginsWith endsWith }
77
- ST_BlackWhiteMode = %w{ clr auto gray ltGray invGray grayWhite blackGray blackWhite black white hidden }
78
+ between notBetween containsText notContains beginsWith endsWith }.freeze
79
+ ST_BlackWhiteMode = %w{ clr auto gray ltGray invGray grayWhite blackGray blackWhite black white hidden }.freeze
78
80
  ST_ShapeType = %w{ line lineInv triangle rtTriangle rect diamond parallelogram trapezoid
79
81
  nonIsoscelesTrapezoid pentagon hexagon heptagon octagon decagon dodecagon
80
82
  star4 star5 star6 star7 star8 star10 star12 star16 star24 star32
@@ -108,15 +110,15 @@ module RubyXL
108
110
  actionButtonBackPrevious actionButtonEnd actionButtonBeginning actionButtonReturn
109
111
  actionButtonDocument actionButtonSound actionButtonMovie gear6 gear9 funnel
110
112
  mathPlus mathMinus mathMultiply mathDivide mathEqual mathNotEqual
111
- cornerTabs squareTabs plaqueTabs chartX chartStar chartPlus }
113
+ cornerTabs squareTabs plaqueTabs chartX chartStar chartPlus }.freeze
112
114
 
113
115
  ST_SystemColorVal = %w{ scrollBar background activeCaption inactiveCaption menu window windowFrame menuText
114
116
  windowText captionText activeBorder inactiveBorder appWorkspace highlight highlightText
115
117
  btnFace btnShadow grayText btnText inactiveCaptionText btnHighlight 3dDkShadow 3dLight
116
- infoText infoBk hotLight gradientActiveCaption gradientInactiveCaption menuHighlight menuBar }
118
+ infoText infoBk hotLight gradientActiveCaption gradientInactiveCaption menuHighlight menuBar }.freeze
117
119
 
118
120
  ST_SchemeColorVal = %w{ bg1 tx1 bg2 tx2 accent1 accent2 accent3 accent4 accent5 accent6
119
- hlink folHlink phClr dk1 lt1 dk2 lt2 }
121
+ hlink folHlink phClr dk1 lt1 dk2 lt2 }.freeze
120
122
 
121
123
  ST_PresetColorVal = %w{ aliceBlue antiqueWhite aqua aquamarine azure beige bisque black blanchedAlmond blue blueViolet
122
124
  brown burlyWood cadetBlue chartreuse chocolate coral cornflowerBlue cornsilk crimson cyan
@@ -133,14 +135,14 @@ module RubyXL
133
135
  paleTurquoise paleVioletRed papayaWhip peachPuff peru pink plum powderBlue purple
134
136
  red rosyBrown royalBlue saddleBrown salmon sandyBrown seaGreen seaShell sienna
135
137
  silver skyBlue slateBlue slateGray snow springGreen steelBlue tan teal thistle
136
- tomato turquoise violet wheat white whiteSmoke yellow yellowGreen }
137
-
138
- ST_PathFillMode = %w{ none norm lighten lightenLess darken darkenLess }
139
- ST_TextVertOverflowType = %w{ overflow ellipsis clip }
140
- ST_TextHorzOverflowType = %w{ overflow clip }
141
- ST_TextVerticalType = %w{ horz vert vert270 wordArtVert eaVert mongolianVert wordArtVertRtl }
142
- ST_TextWrappingType = %w{ none square }
143
- ST_TextAnchoringType = %w{ t ctr b just dist }
138
+ tomato turquoise violet wheat white whiteSmoke yellow yellowGreen }.freeze
139
+
140
+ ST_PathFillMode = %w{ none norm lighten lightenLess darken darkenLess }.freeze
141
+ ST_TextVertOverflowType = %w{ overflow ellipsis clip }.freeze
142
+ ST_TextHorzOverflowType = %w{ overflow clip }.freeze
143
+ ST_TextVerticalType = %w{ horz vert vert270 wordArtVert eaVert mongolianVert wordArtVertRtl }.freeze
144
+ ST_TextWrappingType = %w{ none square }.freeze
145
+ ST_TextAnchoringType = %w{ t ctr b just dist }.freeze
144
146
  ST_TextShapeType = %w{ textNoShape textPlain textStop textTriangle textTriangleInverted textChevron
145
147
  textChevronInverted textRingInside textRingOutside textArchUp textArchDown
146
148
  textCircle textButton textArchUpPour textArchDownPour textCirclePour textButtonPour
@@ -148,36 +150,36 @@ module RubyXL
148
150
  textWave4 textInflate textDeflate textInflateBottom textDeflateBottom textInflateTop
149
151
  textDeflateTop textDeflateInflate textDeflateInflateDeflate textFadeRight
150
152
  textFadeLeft textFadeUp textFadeDown textSlantUp textSlantDown
151
- textCascadeUp textCascadeDown }
153
+ textCascadeUp textCascadeDown }.freeze
152
154
 
153
155
  ST_PresetMaterialType = %w{ legacyMatte legacyPlastic legacyMetal legacyWireframe matte plastic metal
154
- warmMatte translucentPowder powder dkEdge softEdge clear flat softmetal }
156
+ warmMatte translucentPowder powder dkEdge softEdge clear flat softmetal }.freeze
155
157
 
156
158
  ST_BevelPresetType = %w{ relaxedInset circle slope cross angle softRound convex
157
- coolSlant divot riblet hardEdge artDeco }
159
+ coolSlant divot riblet hardEdge artDeco }.freeze
158
160
 
159
161
 
160
- ST_LineEndType = %w{ none triangle stealth diamond oval arrow }
161
- ST_LineEndWidth = %w{ sm med lg }
162
- ST_LineEndLength = %w{ sm med lg }
162
+ ST_LineEndType = %w{ none triangle stealth diamond oval arrow }.freeze
163
+ ST_LineEndWidth = %w{ sm med lg }.freeze
164
+ ST_LineEndLength = %w{ sm med lg }.freeze
163
165
 
164
166
  ST_PresetLineDashVal = %w{ solid dot dash lgDash dashDot lgDashDot lgDashDotDot
165
- sysDash sysDot sysDashDot sysDashDotDot }
167
+ sysDash sysDot sysDashDot sysDashDotDot }.freeze
166
168
 
167
- ST_TileFlipMode = %w{ none x y xy }
168
- ST_PathShadeType = %w{ shape circle rect }
169
+ ST_TileFlipMode = %w{ none x y xy }.freeze
170
+ ST_PathShadeType = %w{ shape circle rect }.freeze
169
171
 
170
172
  ST_PresetPatternVal = %w{ pct5 pct10 pct20 pct25 pct30 pct40 pct50 pct60 pct70 pct75 pct80 pct90
171
173
  horz vert ltHorz ltVert dkHorz dkVert narHorz narVert dashHorz dashVert
172
174
  cross dnDiag upDiag ltDnDiag ltUpDiag dkDnDiag dkUpDiag
173
175
  wdDnDiag wdUpDiag dashDnDiag dashUpDiag diagCross smCheck lgCheck
174
176
  smGrid lgGrid dotGrid smConfetti lgConfetti horzBrick diagBrick
175
- solidDmnd openDmnd dotDmnd plaid sphere weave divot shingle wave trellis zigZag }
176
- ST_RectAlignment = %w{ tl t tr l ctr r bl b br }
177
- ST_BlipCompression = %w{ email screen print hqprint none }
178
- ST_ColorSchemeIndex = %w{ dk1 lt1 dk2 lt2 accent1 accent2 accent3 accent4 accent5 accent6 hlink folHlink }
179
- ST_FontCollectionIndex = %w{ major minor none }
180
- ST_BlendMode = %w{ over mult screen darken lighten }
177
+ solidDmnd openDmnd dotDmnd plaid sphere weave divot shingle wave trellis zigZag }.freeze
178
+ ST_RectAlignment = %w{ tl t tr l ctr r bl b br }.freeze
179
+ ST_BlipCompression = %w{ email screen print hqprint none }.freeze
180
+ ST_ColorSchemeIndex = %w{ dk1 lt1 dk2 lt2 accent1 accent2 accent3 accent4 accent5 accent6 hlink folHlink }.freeze
181
+ ST_FontCollectionIndex = %w{ major minor none }.freeze
182
+ ST_BlendMode = %w{ over mult screen darken lighten }.freeze
181
183
  ST_PresetCameraType = %w{ legacyObliqueTopLeft legacyObliqueTop legacyObliqueTopRight legacyObliqueLeft
182
184
  legacyObliqueFront legacyObliqueRight legacyObliqueBottomLeft legacyObliqueBottom
183
185
  legacyObliqueBottomRight legacyPerspectiveTopLeft legacyPerspectiveTop
@@ -195,16 +197,16 @@ module RubyXL
195
197
  perspectiveContrastingLeftFacing perspectiveContrastingRightFacing
196
198
  perspectiveHeroicLeftFacing perspectiveHeroicRightFacing
197
199
  perspectiveHeroicExtremeLeftFacing perspectiveHeroicExtremeRightFacing
198
- perspectiveRelaxed perspectiveRelaxedModerately }
200
+ perspectiveRelaxed perspectiveRelaxedModerately }.freeze
199
201
  ST_LightRigType = %w{ legacyFlat1 legacyFlat2 legacyFlat3 legacyFlat4 legacyNormal1 legacyNormal2
200
202
  legacyNormal3 legacyNormal4 legacyHarsh1 legacyHarsh2 legacyHarsh3 legacyHarsh4
201
203
  threePt balanced soft harsh flood contrasting morning sunrise sunset chilly
202
- freezing flat twoPt glow brightRoom }
203
- ST_LightRigDirection = %w{ tl t tr l ctr r bl b br }
204
- ST_EffectContainerType = %w{ sib tree }
204
+ freezing flat twoPt glow brightRoom }.freeze
205
+ ST_LightRigDirection = %w{ tl t tr l ctr r bl b br }.freeze
206
+ ST_EffectContainerType = %w{ sib tree }.freeze
205
207
  ST_PresetShadowVal = %w{ shdw1 shdw2 shdw3 shdw4 shdw5 shdw6 shdw7 shdw8 shdw9 shdw10
206
- shdw11 shdw12 shdw13 shdw14 shdw15 shdw16 shdw17 shdw18 shdw19 shdw20 }
207
- ST_TextTabAlignType = %w{ l ctr r dec }
208
+ shdw11 shdw12 shdw13 shdw14 shdw15 shdw16 shdw17 shdw18 shdw19 shdw20 }.freeze
209
+ ST_TextTabAlignType = %w{ l ctr r dec }.freeze
208
210
  ST_TextAutonumberScheme = %w{ alphaLcParenBoth alphaUcParenBoth alphaLcParenR alphaUcParenR
209
211
  alphaLcPeriod alphaUcPeriod arabicParenBoth arabicParenR arabicPeriod arabicPlain
210
212
  romanLcParenBoth romanUcParenBoth romanLcParenR romanUcParenR
@@ -213,37 +215,38 @@ module RubyXL
213
215
  ea1ChtPeriod ea1ChtPlain ea1JpnChsDbPeriod ea1JpnKorPlain ea1JpnKorPeriod
214
216
  arabic1Minus arabic2Minus hebrew2Minus thaiAlphaPeriod thaiAlphaParenR
215
217
  thaiAlphaParenBoth thaiNumPeriod thaiNumParenR thaiNumParenBoth hindiAlphaPeriod
216
- hindiNumPeriod hindiNumParenR hindiAlpha1Period }
218
+ hindiNumPeriod hindiNumParenR hindiAlpha1Period }.freeze
217
219
 
218
- ST_TextAlignType = %w{ l ctr r just justLow dist thaiDist }
219
- ST_TextFontAlignType = %w{ auto t ctr base b }
220
- ST_LineCap = %w{ rnd sq flat }
221
- ST_CompoundLine = %w{ sng dbl thickThin thinThick tri }
222
- ST_PenAlignment = %w{ ctr in }
220
+ ST_TextAlignType = %w{ l ctr r just justLow dist thaiDist }.freeze
221
+ ST_TextFontAlignType = %w{ auto t ctr base b }.freeze
222
+ ST_LineCap = %w{ rnd sq flat }.freeze
223
+ ST_CompoundLine = %w{ sng dbl thickThin thinThick tri }.freeze
224
+ ST_PenAlignment = %w{ ctr in }.freeze
223
225
 
224
226
  ST_TextUnderlineType = %w{ none words sng dbl heavy dotted dottedHeavy dash dashHeavy dashLong dashLongHeavy
225
- dotDash dotDashHeavy dotDotDash dotDotDashHeavy wavy wavyHeavy wavyDbl }
226
- ST_UnderlineValues = %w{ single double singleAccounting doubleAccounting none }
227
+ dotDash dotDashHeavy dotDotDash dotDotDashHeavy wavy wavyHeavy wavyDbl }.freeze
228
+ ST_UnderlineValues = %w{ single double singleAccounting doubleAccounting none }.freeze
229
+
230
+ ST_TextStrikeType = %w{ noStrike sngStrike dblStrike }.freeze
231
+ ST_TextCapsType = %w{ none small all }.freeze
227
232
 
228
- ST_TextStrikeType = %w{ noStrike sngStrike dblStrike }
229
- ST_TextCapsType = %w{ none small all }
233
+ ST_RelationshipId = :string
234
+ ST_Xstring = :string
230
235
 
231
236
  # TODO: http://www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedIntHex.html
232
237
  ST_UnsignedIntHex = :string # length = 4
233
238
  # TODO: http://www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedShortHex.html
234
239
  ST_UnsignedShortHex = :string # length = 2
235
240
 
236
- ST_Xstring = :string
237
-
238
241
  # Query Tables
239
- ST_GrowShrinkType = %w{ insertDelete insertClear overwriteClear }
242
+ ST_GrowShrinkType = %w{ insertDelete insertClear overwriteClear }.freeze
240
243
 
241
244
  # Connections
242
- ST_CredMethod = %w{ integrated none stored prompt }
243
- ST_ParameterType = %w{ prompt value cell }
244
- ST_FileType = %w{ mac win dos }
245
- ST_Qualifier = %w{ doubleQuote singleQuote none }
246
- ST_ExternalConnectionType = %w{ general text MDY DMY YMD MYD DYM YDM skip EMD }
245
+ ST_CredMethod = %w{ integrated none stored prompt }.freeze
246
+ ST_ParameterType = %w{ prompt value cell }.freeze
247
+ ST_FileType = %w{ mac win dos }.freeze
248
+ ST_Qualifier = %w{ doubleQuote singleQuote none }.freeze
249
+ ST_ExternalConnectionType = %w{ general text MDY DMY YMD MYD DYM YDM skip EMD }.freeze
247
250
 
248
- ST_HtmlFmt = %w{ none rtf all }
251
+ ST_HtmlFmt = %w{ none rtf all }.freeze
249
252
  end
@@ -1,3 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'ooxml_object'
4
+
1
5
  module RubyXL
2
6
  class GenericStorageObject
3
7
  SAVE_ORDER = 0
@@ -1,9 +1,11 @@
1
- require 'rubyXL/objects/ooxml_object'
2
- require 'rubyXL/objects/cell_style'
3
- require 'rubyXL/objects/font'
4
- require 'rubyXL/objects/fill'
5
- require 'rubyXL/objects/border'
6
- require 'rubyXL/objects/extensions'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'ooxml_object'
4
+ require_relative 'cell_style'
5
+ require_relative 'font'
6
+ require_relative 'fill'
7
+ require_relative 'border'
8
+ require_relative 'extensions'
7
9
 
8
10
  module RubyXL
9
11
  # http://www.datypic.com/sc/ooxml/e-ssml_numFmt-1.html
@@ -1,7 +1,9 @@
1
- require 'rubyXL/objects/ooxml_object'
2
- require 'rubyXL/objects/simple_types'
3
- require 'rubyXL/objects/container_nodes'
4
- require 'rubyXL/objects/color'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'ooxml_object'
4
+ require_relative 'simple_types'
5
+ require_relative 'container_nodes'
6
+ require_relative 'color'
5
7
 
6
8
  module RubyXL
7
9
  # http://www.datypic.com/sc/ooxml/e-ssml_t-1.html
@@ -18,13 +20,18 @@ module RubyXL
18
20
 
19
21
  def before_write_xml
20
22
  preserve_whitespace
21
- self.value.gsub(INVALID_XML10_CHARS) { |bad_char| format('_x%04x_', bad_char.ord) }
23
+ self.value = RubyXL::Text::escape_bad_xml_chars(value)
22
24
  true
23
25
  end
24
26
 
25
27
  def to_s
26
28
  value.to_s.gsub(ESCAPED_UNICODE) { Regexp.last_match(1).hex.chr(::Encoding::UTF_8) }
27
29
  end
30
+
31
+ def self.escape_bad_xml_chars(str)
32
+ return str unless str.is_a?(String)
33
+ str.gsub(INVALID_XML10_CHARS) { |bad_char| format('_x%04X_', bad_char.ord) }
34
+ end
28
35
  end
29
36
 
30
37
  # http://www.datypic.com/sc/ooxml/e-ssml_rPr-1.html
@@ -54,7 +61,7 @@ module RubyXL
54
61
  define_element_name 'r'
55
62
 
56
63
  def to_s
57
- t.to_s
64
+ t&.to_s
58
65
  end
59
66
  end
60
67
 
@@ -1,5 +1,5 @@
1
- require 'rubyXL/objects/ooxml_object'
2
- require 'rubyXL/objects/extensions'
1
+ require_relative 'ooxml_object'
2
+ require_relative 'extensions'
3
3
 
4
4
  module RubyXL
5
5
  # http://www.datypic.com/sc/ooxml/e-a_ext-1.html
@@ -1,16 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'ooxml_object'
1
4
  require 'date'
2
- require 'rubyXL/objects/ooxml_object'
3
- require 'rubyXL/objects/shared_strings'
4
- require 'rubyXL/objects/stylesheet'
5
- require 'rubyXL/objects/theme'
6
- require 'rubyXL/objects/calculation_chain'
7
- require 'rubyXL/objects/worksheet'
8
- require 'rubyXL/objects/chartsheet'
9
- require 'rubyXL/objects/connection'
10
- require 'rubyXL/objects/relationships'
11
- require 'rubyXL/objects/simple_types'
12
- require 'rubyXL/objects/extensions'
13
- require 'rubyXL/objects/external_links'
5
+ require_relative 'ooxml_object'
6
+ require_relative 'shared_strings'
7
+ require_relative 'stylesheet'
8
+ require_relative 'theme'
9
+ require_relative 'calculation_chain'
10
+ require_relative 'worksheet'
11
+ require_relative 'chartsheet'
12
+ require_relative 'connection'
13
+ require_relative 'relationships'
14
+ require_relative 'simple_types'
15
+ require_relative 'extensions'
16
+ require_relative 'external_links'
14
17
 
15
18
  module RubyXL
16
19
  # Eventually, the entire code for Workbook will be moved here.
@@ -93,8 +96,8 @@ module RubyXL
93
96
 
94
97
  # http://www.datypic.com/sc/ooxml/e-ssml_sheet-1.html
95
98
  class Sheet < OOXMLObject
96
- define_attribute(:name, :string, :required => true)
97
- define_attribute(:sheetId, :int, :required => true)
99
+ define_attribute(:name, RubyXL::ST_Xstring, :required => true)
100
+ define_attribute(:sheetId, :uint, :required => true)
98
101
  define_attribute(:state, RubyXL::ST_Visibility, :default => 'visible')
99
102
  define_relationship(:required => true)
100
103
  define_element_name 'sheet'
@@ -381,8 +384,8 @@ module RubyXL
381
384
  worksheets.each { |sheet, i|
382
385
  rel = relationship_container.find_by_target(sheet.xlsx_path)
383
386
 
384
- raise "Worksheet name '#{sheet.sheet_name}' contains forbidden characters" if sheet.sheet_name =~ SHEET_NAME_FORBIDDEN_CHARS
385
- raise "Worksheet name '#{sheet.sheet_name}' is forbidden" if SHEET_NAME_FORBIDDEN_NAMES.include?(sheet.sheet_name)
387
+ raise(RuntimeError, "Worksheet name '#{sheet.sheet_name}' contains forbidden characters") if sheet.sheet_name =~ SHEET_NAME_FORBIDDEN_CHARS
388
+ raise(RuntimeError, "Worksheet name '#{sheet.sheet_name}' is forbidden") if SHEET_NAME_FORBIDDEN_NAMES.include?(sheet.sheet_name)
386
389
 
387
390
  sheets << RubyXL::Sheet.new(:name => sheet.sheet_name[0..30], # Max sheet name length is 31 char
388
391
  :sheet_id => sheet.sheet_id || (max_sheet_id += 1),
@@ -408,7 +411,7 @@ module RubyXL
408
411
 
409
412
  extension = File.extname(dst_file_path)
410
413
  unless %w{.xlsx .xlsm .xltx .xltm}.include?(extension.downcase)
411
- raise "Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported)."
414
+ raise ArgumentError, "Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported)."
412
415
  end
413
416
 
414
417
  File.open(dst_file_path, 'wb') { |output_file| FileUtils.copy_stream(root.stream, output_file) }
@@ -437,13 +440,13 @@ module RubyXL
437
440
  def num_to_date(num)
438
441
  return nil if num.nil?
439
442
 
440
- # Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)
443
+ # Bug-for-bug Excel compatibility (https://web.archive.org/web/20070403035139/http://support.microsoft.com/kb/214058)
441
444
  if num < MARCH_1_1900 then
442
445
  num += 1 unless workbook_properties&.date1904
443
446
  end
444
447
 
445
448
  dateparts = num.divmod(1)
446
- base_date + (dateparts[0] + ((dateparts[1] * 86400).round(6) / 86400))
449
+ base_date + (dateparts[0] + ((dateparts[1] * 86400).round(6).quo(86400)))
447
450
  end
448
451
 
449
452
  include Enumerable
@@ -1,18 +1,20 @@
1
- require 'rubyXL/objects/ooxml_object'
2
- require 'rubyXL/objects/simple_types'
3
- require 'rubyXL/objects/extensions'
4
- require 'rubyXL/objects/relationships'
5
- require 'rubyXL/objects/sheet_common'
6
- require 'rubyXL/objects/text'
7
- require 'rubyXL/objects/formula'
8
- require 'rubyXL/objects/sheet_data'
9
- require 'rubyXL/objects/column_range'
10
- require 'rubyXL/objects/filters'
11
- require 'rubyXL/objects/data_validation'
12
- require 'rubyXL/objects/comments'
13
- require 'rubyXL/objects/connection'
14
- require 'rubyXL/objects/query_table'
15
- require 'rubyXL/worksheet'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'ooxml_object'
4
+ require_relative 'simple_types'
5
+ require_relative 'extensions'
6
+ require_relative 'relationships'
7
+ require_relative 'sheet_common'
8
+ require_relative 'text'
9
+ require_relative 'formula'
10
+ require_relative 'sheet_data'
11
+ require_relative 'column_range'
12
+ require_relative 'filters'
13
+ require_relative 'data_validation'
14
+ require_relative 'comments'
15
+ require_relative 'connection'
16
+ require_relative 'query_table'
17
+ require_relative '../legacy_worksheet'
16
18
 
17
19
  module RubyXL
18
20
  # Eventually, the entire code for Worksheet will be moved here. One small step at a time!
@@ -51,6 +53,10 @@ module RubyXL
51
53
  end
52
54
 
53
55
  # http://www.datypic.com/sc/ooxml/e-ssml_dimension-3.html
56
+ # http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.sheetdimension%28v=office.14%29.aspx
57
+ # "This element specifies the used range of the worksheet. It specifies the row and column bounds of used cells
58
+ # in the worksheet. +This is optional and is not required+. Used cells include cells with formulas, text content,
59
+ # and cell formatting. When an entire column is formatted, only the first cell in that column is considered used."
54
60
  class WorksheetDimensions < OOXMLObject
55
61
  define_attribute(:ref, :ref)
56
62
  define_element_name 'dimension'
@@ -547,14 +553,14 @@ module RubyXL
547
553
  define_attribute(:offset, :ref)
548
554
  define_attribute(:collapsedLevelsAreSubtotals, :bool, :default => false)
549
555
  define_attribute(:axis, RubyXL::ST_Axis)
550
- define_attribute(:fieldPosition, :int, :default => 0)
556
+ define_attribute(:fieldPosition, :uint, :default => 0)
551
557
  define_child_node(RubyXL::PivotReferences)
552
558
  define_child_node(RubyXL::ExtensionStorageArea)
553
559
  define_element_name 'pivotArea'
554
560
  end
555
561
 
556
562
  # http://www.datypic.com/sc/ooxml/e-ssml_pivotSelection-1.html
557
- class PivotTableSelection < OOXMLObject
563
+ class PivotSelection < OOXMLObject
558
564
  define_attribute(:pane, RubyXL::ST_Pane, :default => 'topLeft')
559
565
  define_attribute(:showHeader, :bool, :default => false)
560
566
  define_attribute(:label, :bool, :default => false)
@@ -599,7 +605,7 @@ module RubyXL
599
605
  define_attribute(:workbookViewId, :uint, :required => true, :default => 0)
600
606
  define_child_node(RubyXL::Pane)
601
607
  define_child_node(RubyXL::Selection, :collection => true, :accessor => :selections)
602
- define_child_node(RubyXL::PivotTableSelection, :collection => true, :accessor => :pivot_table_selections)
608
+ define_child_node(RubyXL::PivotSelection, :collection => true, :accessor => :pivot_selections)
603
609
  define_child_node(RubyXL::ExtensionStorageArea)
604
610
  define_element_name 'sheetView'
605
611
  end
@@ -753,10 +759,25 @@ module RubyXL
753
759
 
754
760
  def cell_at(ref)
755
761
  reference = RubyXL::Reference.new(ref)
756
- raise "Invalid reference: #{ref}" unless reference.valid? && reference.single_cell?
762
+ raise(ArgumentError, "Invalid reference: #{ref}") unless reference.valid? && reference.single_cell?
757
763
  sheet_data&.rows&.[](reference.first_row)&.cells&.[](reference.first_col)
758
764
  end
759
765
 
766
+ # Allows for easier access to sheet_data
767
+ def [](row = 0)
768
+ sheet_data[row]
769
+ end
770
+
771
+ def each
772
+ sheet_data.rows.each { |row| yield(row) }
773
+ end
774
+
775
+ def add_row(row_index = 0, params = {})
776
+ new_row = RubyXL::Row.new(params)
777
+ new_row.worksheet = self
778
+ sheet_data.rows[row_index] = new_row
779
+ end
780
+
760
781
  include LegacyWorksheet
761
782
  end
762
783
  end
data/lib/rubyXL/parser.rb CHANGED
@@ -1,3 +1,5 @@
1
+ gem 'rubyzip'
2
+
1
3
  module RubyXL
2
4
  class Parser
3
5
  # Parse <tt>.xslx</tt> file by reading it from local disk.
@@ -0,0 +1,3 @@
1
+ module RubyXL
2
+ VERSION = "3.4.43"
3
+ end
data/lib/rubyXL.rb CHANGED
@@ -1,5 +1,6 @@
1
- require 'rubyXL/objects/root'
2
- require 'rubyXL/parser'
1
+ require_relative 'rubyXL/objects/root'
2
+ require_relative 'rubyXL/parser'
3
+ require_relative 'rubyXL/version'
3
4
 
4
5
  module RubyXL
5
6
  @@suppress_warnings = false