rubyXL 3.4.18 → 3.4.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (409) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +36 -29
  3. data/README.rdoc +9 -8
  4. data/VERSION +1 -1
  5. data/lib/rubyXL/convenience_methods/cell.rb +9 -4
  6. data/lib/rubyXL/convenience_methods/workbook.rb +8 -0
  7. data/lib/rubyXL/objects/font.rb +1 -1
  8. data/lib/rubyXL/objects/ooxml_object.rb +7 -5
  9. data/lib/rubyXL/objects/reference.rb +2 -5
  10. data/lib/rubyXL/objects/simple_types.rb +2 -0
  11. data/lib/rubyXL/objects/text.rb +2 -1
  12. data/rdoc/README_rdoc.html +17 -24
  13. data/rdoc/RubyXL/AExtension.html +2 -2
  14. data/rdoc/RubyXL/AExtensionStorageArea.html +2 -2
  15. data/rdoc/RubyXL/ActiveX.html +2 -2
  16. data/rdoc/RubyXL/ActiveXBinary.html +2 -2
  17. data/rdoc/RubyXL/AdjustHandleList.html +2 -2
  18. data/rdoc/RubyXL/Alignment.html +2 -2
  19. data/rdoc/RubyXL/AlternateContent.html +2 -2
  20. data/rdoc/RubyXL/Authors.html +2 -2
  21. data/rdoc/RubyXL/AutoFilter.html +2 -2
  22. data/rdoc/RubyXL/AutoFilterColumn.html +2 -2
  23. data/rdoc/RubyXL/BinaryImageFile.html +2 -2
  24. data/rdoc/RubyXL/BodyProperties.html +2 -2
  25. data/rdoc/RubyXL/BooleanNode.html +2 -2
  26. data/rdoc/RubyXL/BooleanValue.html +2 -2
  27. data/rdoc/RubyXL/Border.html +2 -2
  28. data/rdoc/RubyXL/BorderEdge.html +2 -2
  29. data/rdoc/RubyXL/Borders.html +2 -2
  30. data/rdoc/RubyXL/Break.html +2 -2
  31. data/rdoc/RubyXL/BreakList.html +2 -2
  32. data/rdoc/RubyXL/CT_AdjPoint2D.html +2 -2
  33. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +2 -2
  34. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +2 -2
  35. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +2 -2
  36. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +2 -2
  37. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +2 -2
  38. data/rdoc/RubyXL/CT_Backdrop.html +2 -2
  39. data/rdoc/RubyXL/CT_Bevel.html +2 -2
  40. data/rdoc/RubyXL/CT_BiLevelEffect.html +2 -2
  41. data/rdoc/RubyXL/CT_BlendEffect.html +2 -2
  42. data/rdoc/RubyXL/CT_Blip.html +2 -2
  43. data/rdoc/RubyXL/CT_BlipFillProperties.html +2 -2
  44. data/rdoc/RubyXL/CT_BlurEffect.html +2 -2
  45. data/rdoc/RubyXL/CT_Camera.html +2 -2
  46. data/rdoc/RubyXL/CT_Color.html +2 -2
  47. data/rdoc/RubyXL/CT_ColorChangeEffect.html +2 -2
  48. data/rdoc/RubyXL/CT_ColorMapping.html +2 -2
  49. data/rdoc/RubyXL/CT_ColorScheme.html +2 -2
  50. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +2 -2
  51. data/rdoc/RubyXL/CT_ConnectionSite.html +2 -2
  52. data/rdoc/RubyXL/CT_ConnectionSiteList.html +2 -2
  53. data/rdoc/RubyXL/CT_DashStop.html +2 -2
  54. data/rdoc/RubyXL/CT_DashStopList.html +2 -2
  55. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +2 -2
  56. data/rdoc/RubyXL/CT_DuotoneEffect.html +2 -2
  57. data/rdoc/RubyXL/CT_EffectContainer.html +2 -2
  58. data/rdoc/RubyXL/CT_EffectList.html +2 -2
  59. data/rdoc/RubyXL/CT_EffectReference.html +2 -2
  60. data/rdoc/RubyXL/CT_EffectStyleItem.html +2 -2
  61. data/rdoc/RubyXL/CT_EffectStyleList.html +2 -2
  62. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +2 -2
  63. data/rdoc/RubyXL/CT_FillEffect.html +2 -2
  64. data/rdoc/RubyXL/CT_FillOverlayEffect.html +2 -2
  65. data/rdoc/RubyXL/CT_FillStyleList.html +2 -2
  66. data/rdoc/RubyXL/CT_FlatText.html +2 -2
  67. data/rdoc/RubyXL/CT_FontCollection.html +2 -2
  68. data/rdoc/RubyXL/CT_FontReference.html +2 -2
  69. data/rdoc/RubyXL/CT_GeomGuideList.html +2 -2
  70. data/rdoc/RubyXL/CT_GlowEffect.html +2 -2
  71. data/rdoc/RubyXL/CT_GradientFillProperties.html +2 -2
  72. data/rdoc/RubyXL/CT_GradientStop.html +2 -2
  73. data/rdoc/RubyXL/CT_GradientStopList.html +2 -2
  74. data/rdoc/RubyXL/CT_HSLEffect.html +2 -2
  75. data/rdoc/RubyXL/CT_HslColor.html +2 -2
  76. data/rdoc/RubyXL/CT_Hyperlink.html +2 -2
  77. data/rdoc/RubyXL/CT_InnerShadowEffect.html +2 -2
  78. data/rdoc/RubyXL/CT_LightRig.html +2 -2
  79. data/rdoc/RubyXL/CT_LineEndProperties.html +2 -2
  80. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +2 -2
  81. data/rdoc/RubyXL/CT_LineProperties.html +2 -2
  82. data/rdoc/RubyXL/CT_LineStyleList.html +2 -2
  83. data/rdoc/RubyXL/CT_LinearShadeProperties.html +2 -2
  84. data/rdoc/RubyXL/CT_LuminanceEffect.html +2 -2
  85. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +2 -2
  86. data/rdoc/RubyXL/CT_OuterShadowEffect.html +2 -2
  87. data/rdoc/RubyXL/CT_Path2D.html +2 -2
  88. data/rdoc/RubyXL/CT_Path2DArcTo.html +2 -2
  89. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +2 -2
  90. data/rdoc/RubyXL/CT_Path2DList.html +2 -2
  91. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +2 -2
  92. data/rdoc/RubyXL/CT_Path2DTo.html +2 -2
  93. data/rdoc/RubyXL/CT_PathShadeProperties.html +2 -2
  94. data/rdoc/RubyXL/CT_PatternFillProperties.html +2 -2
  95. data/rdoc/RubyXL/CT_Point3D.html +2 -2
  96. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +2 -2
  97. data/rdoc/RubyXL/CT_PresetColor.html +2 -2
  98. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +2 -2
  99. data/rdoc/RubyXL/CT_PresetShadowEffect.html +2 -2
  100. data/rdoc/RubyXL/CT_PresetTextShape.html +2 -2
  101. data/rdoc/RubyXL/CT_ReflectionEffect.html +2 -2
  102. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +2 -2
  103. data/rdoc/RubyXL/CT_RelativeRect.html +2 -2
  104. data/rdoc/RubyXL/CT_SRgbColor.html +2 -2
  105. data/rdoc/RubyXL/CT_ScRgbColor.html +2 -2
  106. data/rdoc/RubyXL/CT_Scene3D.html +2 -2
  107. data/rdoc/RubyXL/CT_SchemeColor.html +2 -2
  108. data/rdoc/RubyXL/CT_Shape3D.html +2 -2
  109. data/rdoc/RubyXL/CT_ShapeStyle.html +2 -2
  110. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +2 -2
  111. data/rdoc/RubyXL/CT_SphereCoords.html +2 -2
  112. data/rdoc/RubyXL/CT_StretchInfoProperties.html +2 -2
  113. data/rdoc/RubyXL/CT_StyleMatrix.html +2 -2
  114. data/rdoc/RubyXL/CT_StyleMatrixReference.html +2 -2
  115. data/rdoc/RubyXL/CT_SupplementalFont.html +2 -2
  116. data/rdoc/RubyXL/CT_SystemColor.html +2 -2
  117. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +2 -2
  118. data/rdoc/RubyXL/CT_TextBlipBullet.html +2 -2
  119. data/rdoc/RubyXL/CT_TextCharBullet.html +2 -2
  120. data/rdoc/RubyXL/CT_TextCharacterProperties.html +2 -2
  121. data/rdoc/RubyXL/CT_TextFont.html +2 -2
  122. data/rdoc/RubyXL/CT_TextListStyle.html +2 -2
  123. data/rdoc/RubyXL/CT_TextNormalAutofit.html +2 -2
  124. data/rdoc/RubyXL/CT_TextParagraphProperties.html +2 -2
  125. data/rdoc/RubyXL/CT_TextSpacing.html +2 -2
  126. data/rdoc/RubyXL/CT_TextTabStop.html +2 -2
  127. data/rdoc/RubyXL/CT_TextTabStopList.html +2 -2
  128. data/rdoc/RubyXL/CT_TileInfoProperties.html +2 -2
  129. data/rdoc/RubyXL/CT_TintEffect.html +2 -2
  130. data/rdoc/RubyXL/CT_Transform2D.html +2 -2
  131. data/rdoc/RubyXL/CT_TransformEffect.html +2 -2
  132. data/rdoc/RubyXL/CT_Vector3D.html +2 -2
  133. data/rdoc/RubyXL/CT_XYAdjustHandle.html +2 -2
  134. data/rdoc/RubyXL/CalculationChain.html +2 -2
  135. data/rdoc/RubyXL/CalculationChainCell.html +2 -2
  136. data/rdoc/RubyXL/CalculationProperties.html +2 -2
  137. data/rdoc/RubyXL/Cell.html +2 -2
  138. data/rdoc/RubyXL/CellConvenienceMethods.html +55 -32
  139. data/rdoc/RubyXL/CellExt.html +2 -2
  140. data/rdoc/RubyXL/CellSmartTag.html +2 -2
  141. data/rdoc/RubyXL/CellSmartTagProperty.html +2 -2
  142. data/rdoc/RubyXL/CellSmartTags.html +2 -2
  143. data/rdoc/RubyXL/CellStyle.html +2 -2
  144. data/rdoc/RubyXL/CellStyleXFs.html +2 -2
  145. data/rdoc/RubyXL/CellStyles.html +2 -2
  146. data/rdoc/RubyXL/CellValue.html +2 -2
  147. data/rdoc/RubyXL/CellWatch.html +2 -2
  148. data/rdoc/RubyXL/CellWatches.html +2 -2
  149. data/rdoc/RubyXL/CellXFs.html +2 -2
  150. data/rdoc/RubyXL/ChartColorsFile.html +2 -2
  151. data/rdoc/RubyXL/ChartFile.html +2 -2
  152. data/rdoc/RubyXL/ChartStyleFile.html +2 -2
  153. data/rdoc/RubyXL/ChartUserShapesFile.html +2 -2
  154. data/rdoc/RubyXL/Chartsheet.html +2 -2
  155. data/rdoc/RubyXL/ChartsheetPageSetup.html +2 -2
  156. data/rdoc/RubyXL/ChartsheetProperties.html +2 -2
  157. data/rdoc/RubyXL/ChartsheetProtection.html +2 -2
  158. data/rdoc/RubyXL/ChartsheetView.html +2 -2
  159. data/rdoc/RubyXL/ChartsheetViews.html +2 -2
  160. data/rdoc/RubyXL/Color.html +3 -3
  161. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +2 -2
  162. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +2 -2
  163. data/rdoc/RubyXL/ColorConvenienceClasses.html +2 -2
  164. data/rdoc/RubyXL/ColorConvenienceMethods.html +2 -2
  165. data/rdoc/RubyXL/ColorFilter.html +2 -2
  166. data/rdoc/RubyXL/ColorScale.html +2 -2
  167. data/rdoc/RubyXL/ColorSet.html +2 -2
  168. data/rdoc/RubyXL/Colors.html +2 -2
  169. data/rdoc/RubyXL/ColumnRange.html +2 -2
  170. data/rdoc/RubyXL/ColumnRanges.html +2 -2
  171. data/rdoc/RubyXL/Comment.html +2 -2
  172. data/rdoc/RubyXL/CommentList.html +2 -2
  173. data/rdoc/RubyXL/CommentsFile.html +2 -2
  174. data/rdoc/RubyXL/ConditionalFormatValue.html +2 -2
  175. data/rdoc/RubyXL/ConditionalFormatting.html +2 -2
  176. data/rdoc/RubyXL/ConditionalFormattingRule.html +2 -2
  177. data/rdoc/RubyXL/Connection.html +2 -2
  178. data/rdoc/RubyXL/ConnectionTable.html +2 -2
  179. data/rdoc/RubyXL/ConnectionTables.html +2 -2
  180. data/rdoc/RubyXL/ConnectionTextField.html +2 -2
  181. data/rdoc/RubyXL/ConnectionTextFields.html +2 -2
  182. data/rdoc/RubyXL/Connections.html +2 -2
  183. data/rdoc/RubyXL/ContentTypeDefault.html +2 -2
  184. data/rdoc/RubyXL/ContentTypeOverride.html +2 -2
  185. data/rdoc/RubyXL/ContentTypes.html +2 -2
  186. data/rdoc/RubyXL/ControlPropertiesFile.html +2 -2
  187. data/rdoc/RubyXL/CorePropertiesFile.html +2 -2
  188. data/rdoc/RubyXL/CustomColor.html +2 -2
  189. data/rdoc/RubyXL/CustomColorList.html +2 -2
  190. data/rdoc/RubyXL/CustomFilter.html +2 -2
  191. data/rdoc/RubyXL/CustomFilters.html +2 -2
  192. data/rdoc/RubyXL/CustomGeometry.html +2 -2
  193. data/rdoc/RubyXL/CustomProperties.html +2 -2
  194. data/rdoc/RubyXL/CustomPropertiesFile.html +2 -2
  195. data/rdoc/RubyXL/CustomProperty.html +2 -2
  196. data/rdoc/RubyXL/CustomPropertyFile.html +2 -2
  197. data/rdoc/RubyXL/CustomSheetView.html +2 -2
  198. data/rdoc/RubyXL/CustomSheetViews.html +2 -2
  199. data/rdoc/RubyXL/CustomWorkbookView.html +2 -2
  200. data/rdoc/RubyXL/CustomWorkbookViews.html +2 -2
  201. data/rdoc/RubyXL/CustomXMLFile.html +2 -2
  202. data/rdoc/RubyXL/DXF.html +2 -2
  203. data/rdoc/RubyXL/DXFs.html +2 -2
  204. data/rdoc/RubyXL/DataBar.html +2 -2
  205. data/rdoc/RubyXL/DataConsolidate.html +2 -2
  206. data/rdoc/RubyXL/DataConsolidationReference.html +2 -2
  207. data/rdoc/RubyXL/DataConsolidationReferences.html +2 -2
  208. data/rdoc/RubyXL/DataType.html +2 -2
  209. data/rdoc/RubyXL/DataValidation.html +2 -2
  210. data/rdoc/RubyXL/DataValidations.html +2 -2
  211. data/rdoc/RubyXL/DateGroupItem.html +2 -2
  212. data/rdoc/RubyXL/DefinedName.html +2 -2
  213. data/rdoc/RubyXL/DefinedNameExt.html +2 -2
  214. data/rdoc/RubyXL/DefinedNames.html +2 -2
  215. data/rdoc/RubyXL/DefinedNamesExt.html +2 -2
  216. data/rdoc/RubyXL/DocumentPropertiesFile.html +2 -2
  217. data/rdoc/RubyXL/DrawingFile.html +2 -2
  218. data/rdoc/RubyXL/DynamicFilter.html +2 -2
  219. data/rdoc/RubyXL/EmbeddedControl.html +2 -2
  220. data/rdoc/RubyXL/EmbeddedControls.html +2 -2
  221. data/rdoc/RubyXL/Extension.html +2 -2
  222. data/rdoc/RubyXL/ExtensionStorageArea.html +2 -2
  223. data/rdoc/RubyXL/Extents.html +2 -2
  224. data/rdoc/RubyXL/ExternalBook.html +2 -2
  225. data/rdoc/RubyXL/ExternalLinksFile.html +2 -2
  226. data/rdoc/RubyXL/ExternalReference.html +2 -2
  227. data/rdoc/RubyXL/ExternalReferences.html +2 -2
  228. data/rdoc/RubyXL/ExtraColorSchemeList.html +2 -2
  229. data/rdoc/RubyXL/FieldItem.html +2 -2
  230. data/rdoc/RubyXL/FileRecoveryProperties.html +2 -2
  231. data/rdoc/RubyXL/FileSharing.html +2 -2
  232. data/rdoc/RubyXL/FileVersion.html +2 -2
  233. data/rdoc/RubyXL/Fill.html +2 -2
  234. data/rdoc/RubyXL/Fills.html +2 -2
  235. data/rdoc/RubyXL/FilterContainer.html +2 -2
  236. data/rdoc/RubyXL/FloatNode.html +2 -2
  237. data/rdoc/RubyXL/FloatValue.html +2 -2
  238. data/rdoc/RubyXL/Font.html +3 -3
  239. data/rdoc/RubyXL/FontConvenienceMethods.html +3 -3
  240. data/rdoc/RubyXL/FontScheme.html +2 -2
  241. data/rdoc/RubyXL/Fonts.html +2 -2
  242. data/rdoc/RubyXL/Formula.html +2 -2
  243. data/rdoc/RubyXL/FunctionGroup.html +2 -2
  244. data/rdoc/RubyXL/FunctionGroups.html +2 -2
  245. data/rdoc/RubyXL/GenericStorageObject.html +2 -2
  246. data/rdoc/RubyXL/GradientFill.html +2 -2
  247. data/rdoc/RubyXL/HeaderFooterSettings.html +2 -2
  248. data/rdoc/RubyXL/Hyperlink.html +2 -2
  249. data/rdoc/RubyXL/HyperlinkRelFile.html +2 -2
  250. data/rdoc/RubyXL/Hyperlinks.html +2 -2
  251. data/rdoc/RubyXL/IconFilter.html +2 -2
  252. data/rdoc/RubyXL/IconSet.html +2 -2
  253. data/rdoc/RubyXL/IgnoredError.html +2 -2
  254. data/rdoc/RubyXL/IgnoredErrors.html +2 -2
  255. data/rdoc/RubyXL/IndexedColors.html +2 -2
  256. data/rdoc/RubyXL/InputCells.html +2 -2
  257. data/rdoc/RubyXL/IntegerNode.html +2 -2
  258. data/rdoc/RubyXL/IntegerValue.html +2 -2
  259. data/rdoc/RubyXL/LegacyCell.html +2 -2
  260. data/rdoc/RubyXL/LegacyWorksheet.html +2 -2
  261. data/rdoc/RubyXL/MRUColors.html +2 -2
  262. data/rdoc/RubyXL/MacrosFile.html +2 -2
  263. data/rdoc/RubyXL/MergedCell.html +2 -2
  264. data/rdoc/RubyXL/MergedCells.html +2 -2
  265. data/rdoc/RubyXL/NumFmt.html +2 -2
  266. data/rdoc/RubyXL/NumberFormat.html +2 -2
  267. data/rdoc/RubyXL/NumberFormats.html +2 -2
  268. data/rdoc/RubyXL/OLEObject.html +2 -2
  269. data/rdoc/RubyXL/OLEObjectFile.html +2 -2
  270. data/rdoc/RubyXL/OLEObjects.html +2 -2
  271. data/rdoc/RubyXL/OLESize.html +2 -2
  272. data/rdoc/RubyXL/OOXMLContainerObject.html +8 -8
  273. data/rdoc/RubyXL/OOXMLIgnored.html +2 -2
  274. data/rdoc/RubyXL/OOXMLObject.html +3 -3
  275. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +17 -16
  276. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +15 -14
  277. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +2 -2
  278. data/rdoc/RubyXL/OOXMLTopLevelObject.html +8 -8
  279. data/rdoc/RubyXL/OdbcOleDbProperties.html +2 -2
  280. data/rdoc/RubyXL/Offset.html +2 -2
  281. data/rdoc/RubyXL/OlapProperties.html +2 -2
  282. data/rdoc/RubyXL/OleItem.html +2 -2
  283. data/rdoc/RubyXL/OleItems.html +2 -2
  284. data/rdoc/RubyXL/OleLink.html +2 -2
  285. data/rdoc/RubyXL/OutlineProperties.html +2 -2
  286. data/rdoc/RubyXL/PageMargins.html +2 -2
  287. data/rdoc/RubyXL/PageSetup.html +2 -2
  288. data/rdoc/RubyXL/PageSetupProperties.html +2 -2
  289. data/rdoc/RubyXL/Pane.html +2 -2
  290. data/rdoc/RubyXL/Parser.html +2 -2
  291. data/rdoc/RubyXL/PatternFill.html +2 -2
  292. data/rdoc/RubyXL/PhoneticProperties.html +2 -2
  293. data/rdoc/RubyXL/PhoneticRun.html +2 -2
  294. data/rdoc/RubyXL/PivotArea.html +2 -2
  295. data/rdoc/RubyXL/PivotCache.html +2 -2
  296. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +2 -2
  297. data/rdoc/RubyXL/PivotCacheRecordsFile.html +2 -2
  298. data/rdoc/RubyXL/PivotCaches.html +2 -2
  299. data/rdoc/RubyXL/PivotReference.html +2 -2
  300. data/rdoc/RubyXL/PivotReferences.html +2 -2
  301. data/rdoc/RubyXL/PivotTableFile.html +2 -2
  302. data/rdoc/RubyXL/PivotTableSelection.html +2 -2
  303. data/rdoc/RubyXL/PresetGeometry.html +2 -2
  304. data/rdoc/RubyXL/PrintOptions.html +2 -2
  305. data/rdoc/RubyXL/PrinterSettingsFile.html +2 -2
  306. data/rdoc/RubyXL/ProtectedRange.html +2 -2
  307. data/rdoc/RubyXL/ProtectedRanges.html +2 -2
  308. data/rdoc/RubyXL/Protection.html +2 -2
  309. data/rdoc/RubyXL/QueryParameter.html +2 -2
  310. data/rdoc/RubyXL/QueryParameters.html +2 -2
  311. data/rdoc/RubyXL/QueryTable.html +2 -2
  312. data/rdoc/RubyXL/QueryTableDeletedField.html +2 -2
  313. data/rdoc/RubyXL/QueryTableDeletedFields.html +2 -2
  314. data/rdoc/RubyXL/QueryTableField.html +2 -2
  315. data/rdoc/RubyXL/QueryTableFields.html +2 -2
  316. data/rdoc/RubyXL/QueryTableRefresh.html +2 -2
  317. data/rdoc/RubyXL/RID.html +2 -2
  318. data/rdoc/RubyXL/RawOOXML.html +2 -2
  319. data/rdoc/RubyXL/Reference.html +4 -7
  320. data/rdoc/RubyXL/Relationship.html +2 -2
  321. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +2 -2
  322. data/rdoc/RubyXL/RelationshipSupport.html +2 -2
  323. data/rdoc/RubyXL/RevisionPointer.html +2 -2
  324. data/rdoc/RubyXL/RichText.html +4 -3
  325. data/rdoc/RubyXL/RichTextRun.html +2 -2
  326. data/rdoc/RubyXL/Row.html +2 -2
  327. data/rdoc/RubyXL/RowExt.html +2 -2
  328. data/rdoc/RubyXL/RunProperties.html +2 -2
  329. data/rdoc/RubyXL/Scenario.html +2 -2
  330. data/rdoc/RubyXL/Scenarios.html +2 -2
  331. data/rdoc/RubyXL/Selection.html +2 -2
  332. data/rdoc/RubyXL/ShapeGuide.html +2 -2
  333. data/rdoc/RubyXL/ShapeTextRectangle.html +2 -2
  334. data/rdoc/RubyXL/SharedStringsTable.html +2 -2
  335. data/rdoc/RubyXL/Sheet.html +2 -2
  336. data/rdoc/RubyXL/SheetCalculationProperties.html +2 -2
  337. data/rdoc/RubyXL/SheetData.html +2 -2
  338. data/rdoc/RubyXL/SheetDataExt.html +2 -2
  339. data/rdoc/RubyXL/SheetDataSet.html +2 -2
  340. data/rdoc/RubyXL/SheetName.html +2 -2
  341. data/rdoc/RubyXL/SheetNames.html +2 -2
  342. data/rdoc/RubyXL/Sheets.html +2 -2
  343. data/rdoc/RubyXL/SlicerCacheFile.html +2 -2
  344. data/rdoc/RubyXL/SlicerFile.html +2 -2
  345. data/rdoc/RubyXL/SmartTagProperties.html +2 -2
  346. data/rdoc/RubyXL/SmartTagType.html +2 -2
  347. data/rdoc/RubyXL/SmartTagTypes.html +2 -2
  348. data/rdoc/RubyXL/SmartTags.html +2 -2
  349. data/rdoc/RubyXL/SortCondition.html +2 -2
  350. data/rdoc/RubyXL/SortState.html +2 -2
  351. data/rdoc/RubyXL/Sqref.html +4 -4
  352. data/rdoc/RubyXL/Stop.html +2 -2
  353. data/rdoc/RubyXL/StringNode.html +2 -2
  354. data/rdoc/RubyXL/StringNodeW3C.html +2 -2
  355. data/rdoc/RubyXL/StringValue.html +2 -2
  356. data/rdoc/RubyXL/Stylesheet.html +2 -2
  357. data/rdoc/RubyXL/TableFile.html +2 -2
  358. data/rdoc/RubyXL/TableParts.html +2 -2
  359. data/rdoc/RubyXL/TableStyle.html +2 -2
  360. data/rdoc/RubyXL/TableStyles.html +2 -2
  361. data/rdoc/RubyXL/Text.html +2 -2
  362. data/rdoc/RubyXL/TextImportSettings.html +2 -2
  363. data/rdoc/RubyXL/Theme.html +2 -2
  364. data/rdoc/RubyXL/ThemeElements.html +2 -2
  365. data/rdoc/RubyXL/ThumbnailFile.html +2 -2
  366. data/rdoc/RubyXL/Top10.html +2 -2
  367. data/rdoc/RubyXL/VMLDrawingFile.html +3 -3
  368. data/rdoc/RubyXL/Variant.html +2 -2
  369. data/rdoc/RubyXL/Vector.html +2 -2
  370. data/rdoc/RubyXL/VectorValue.html +2 -2
  371. data/rdoc/RubyXL/VisualProperties.html +2 -2
  372. data/rdoc/RubyXL/WebPublishObject.html +2 -2
  373. data/rdoc/RubyXL/WebPublishObjects.html +2 -2
  374. data/rdoc/RubyXL/WebPublishingItem.html +2 -2
  375. data/rdoc/RubyXL/WebPublishingItems.html +2 -2
  376. data/rdoc/RubyXL/WebPublishingProperties.html +2 -2
  377. data/rdoc/RubyXL/WebQueryProperties.html +2 -2
  378. data/rdoc/RubyXL/Workbook.html +2 -2
  379. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +47 -3
  380. data/rdoc/RubyXL/WorkbookProperties.html +2 -2
  381. data/rdoc/RubyXL/WorkbookProtection.html +2 -2
  382. data/rdoc/RubyXL/WorkbookRoot.html +2 -2
  383. data/rdoc/RubyXL/WorkbookView.html +2 -2
  384. data/rdoc/RubyXL/WorkbookViews.html +2 -2
  385. data/rdoc/RubyXL/Worksheet.html +2 -2
  386. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +3 -3
  387. data/rdoc/RubyXL/WorksheetDimensions.html +2 -2
  388. data/rdoc/RubyXL/WorksheetFormatProperties.html +2 -2
  389. data/rdoc/RubyXL/WorksheetProperties.html +2 -2
  390. data/rdoc/RubyXL/WorksheetProtection.html +2 -2
  391. data/rdoc/RubyXL/WorksheetView.html +2 -2
  392. data/rdoc/RubyXL/WorksheetViews.html +2 -2
  393. data/rdoc/RubyXL/XF.html +2 -2
  394. data/rdoc/RubyXL.html +4 -2
  395. data/rdoc/created.rid +9 -9
  396. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  397. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  398. data/rdoc/index.html +3 -3
  399. data/rdoc/js/navigation.js.gz +0 -0
  400. data/rdoc/js/search_index.js +1 -1
  401. data/rdoc/js/search_index.js.gz +0 -0
  402. data/rdoc/js/searcher.js.gz +0 -0
  403. data/rdoc/table_of_contents.html +18 -3
  404. data/rubyXL.gemspec +3 -3
  405. data/spec/lib/cell_spec.rb +9 -0
  406. data/spec/lib/rgb_color_spec.rb +14 -2
  407. data/spec/lib/workbook_spec.rb +11 -0
  408. data/spec/lib/worksheet_spec.rb +2 -2
  409. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 333f7f90125b86bfef6f8f87b70009a2e77cd44e70eb84fc22d9c3a820e69b5b
4
- data.tar.gz: eead0bf9e502b9df52536d9f34582f2637071d8b4cb1d8902f57f79a95badbc1
3
+ metadata.gz: 474d2b39dac1700addee159716c6b4f3b5f4e0fb6e345009581b21651cd0a108
4
+ data.tar.gz: 828d1c9fe9b798d9fc993be81407811c79cf73d0dd81fd767dcf80b40f6367d6
5
5
  SHA512:
6
- metadata.gz: 533d23c78736a6320243772d38b0a322bb071005f34448903a1f93da7ab5c4ee51f10dd47419a4bd18f192f44b1d90df0d38ce77bd16dbc7e362e02faab6c971
7
- data.tar.gz: 10a36c58a4b4d74f3d6d63c58e24c4e90664487337d049bfabf36b7ddb40032538d78271faf614d246983e50de0f9502369ee434ed47e11160039e38658548f8
6
+ metadata.gz: 4b48f5c71dac79e26bb8217d9684f5f02ca0ebec3817094468c379c63ed6885ae90ef4bb1a52403cbea9235bc30b53d5988f1d8de24aa1507e05b4d41cb036ee
7
+ data.tar.gz: 2c38fb075641d53089ec6a57a1784dc6ad6ec014f8b7b1a957a06bd44a8b453acea456e2b726fbc889bd11fc5a09af4e2a8bd2967eb99a6a935fdeb9ac2d8e40
data/Gemfile.lock CHANGED
@@ -6,28 +6,32 @@ GEM
6
6
  builder (3.2.4)
7
7
  descendants_tracker (0.0.4)
8
8
  thread_safe (~> 0.3, >= 0.3.1)
9
- diff-lcs (1.4.4)
9
+ diff-lcs (1.5.0)
10
10
  docile (1.4.0)
11
- faraday (1.6.0)
11
+ faraday (1.10.0)
12
12
  faraday-em_http (~> 1.0)
13
13
  faraday-em_synchrony (~> 1.0)
14
14
  faraday-excon (~> 1.1)
15
- faraday-httpclient (~> 1.0.1)
15
+ faraday-httpclient (~> 1.0)
16
+ faraday-multipart (~> 1.0)
16
17
  faraday-net_http (~> 1.0)
17
- faraday-net_http_persistent (~> 1.1)
18
+ faraday-net_http_persistent (~> 1.0)
18
19
  faraday-patron (~> 1.0)
19
20
  faraday-rack (~> 1.0)
20
- multipart-post (>= 1.2, < 3)
21
+ faraday-retry (~> 1.0)
21
22
  ruby2_keywords (>= 0.0.4)
22
23
  faraday-em_http (1.0.0)
23
24
  faraday-em_synchrony (1.0.0)
24
25
  faraday-excon (1.1.0)
25
26
  faraday-httpclient (1.0.1)
27
+ faraday-multipart (1.0.3)
28
+ multipart-post (>= 1.2, < 3)
26
29
  faraday-net_http (1.0.1)
27
30
  faraday-net_http_persistent (1.2.0)
28
31
  faraday-patron (1.0.0)
29
32
  faraday-rack (1.0.0)
30
- git (1.9.1)
33
+ faraday-retry (1.0.3)
34
+ git (1.10.2)
31
35
  rchardet (~> 1.8)
32
36
  github_api (0.19.0)
33
37
  addressable (~> 2.4)
@@ -49,43 +53,45 @@ GEM
49
53
  rake
50
54
  rdoc
51
55
  semver2
52
- jwt (2.2.3)
56
+ jwt (2.3.0)
53
57
  kamelcase (0.0.2)
54
58
  semver2 (~> 3)
55
- mini_portile2 (2.6.1)
59
+ mini_portile2 (2.8.0)
56
60
  multi_json (1.15.0)
57
61
  multi_xml (0.6.0)
58
62
  multipart-post (2.1.1)
59
- nokogiri (1.12.1)
60
- mini_portile2 (~> 2.6.1)
63
+ nokogiri (1.13.3)
64
+ mini_portile2 (~> 2.8.0)
61
65
  racc (~> 1.4)
62
- oauth2 (1.4.7)
63
- faraday (>= 0.8, < 2.0)
66
+ oauth2 (1.4.9)
67
+ faraday (>= 0.17.3, < 3.0)
64
68
  jwt (>= 1.0, < 3.0)
65
69
  multi_json (~> 1.3)
66
70
  multi_xml (~> 0.5)
67
71
  rack (>= 1.2, < 3)
68
- psych (4.0.1)
72
+ psych (4.0.3)
73
+ stringio
69
74
  public_suffix (4.0.6)
70
- racc (1.5.2)
75
+ racc (1.6.0)
71
76
  rack (2.2.3)
72
77
  rake (13.0.6)
73
78
  rchardet (1.8.0)
74
- rdoc (6.3.2)
75
- rspec (3.10.0)
76
- rspec-core (~> 3.10.0)
77
- rspec-expectations (~> 3.10.0)
78
- rspec-mocks (~> 3.10.0)
79
- rspec-core (3.10.1)
80
- rspec-support (~> 3.10.0)
81
- rspec-expectations (3.10.1)
79
+ rdoc (6.4.0)
80
+ psych (>= 4.0.0)
81
+ rspec (3.11.0)
82
+ rspec-core (~> 3.11.0)
83
+ rspec-expectations (~> 3.11.0)
84
+ rspec-mocks (~> 3.11.0)
85
+ rspec-core (3.11.0)
86
+ rspec-support (~> 3.11.0)
87
+ rspec-expectations (3.11.0)
82
88
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.10.0)
84
- rspec-mocks (3.10.2)
89
+ rspec-support (~> 3.11.0)
90
+ rspec-mocks (3.11.0)
85
91
  diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.10.0)
87
- rspec-support (3.10.2)
88
- rspec_junit_formatter (0.4.1)
92
+ rspec-support (~> 3.11.0)
93
+ rspec-support (3.11.0)
94
+ rspec_junit_formatter (0.5.1)
89
95
  rspec-core (>= 2, < 4, != 2.12.0)
90
96
  ruby-prof (1.4.3)
91
97
  ruby2_keywords (0.0.5)
@@ -96,7 +102,8 @@ GEM
96
102
  simplecov-html (~> 0.11)
97
103
  simplecov_json_formatter (~> 0.1)
98
104
  simplecov-html (0.12.3)
99
- simplecov_json_formatter (0.1.3)
105
+ simplecov_json_formatter (0.1.4)
106
+ stringio (3.0.1)
100
107
  thread_safe (0.3.6)
101
108
 
102
109
  PLATFORMS
@@ -114,4 +121,4 @@ DEPENDENCIES
114
121
  simplecov
115
122
 
116
123
  BUNDLED WITH
117
- 2.2.25
124
+ 2.3.5
data/README.rdoc CHANGED
@@ -138,25 +138,25 @@ Please note: these methods are being phased out in favor of the OOXML object mod
138
138
 
139
139
  ==== Changing Alignment
140
140
  ===== Horizontal
141
- center, distributed, justify, left, right
141
+ # Possible alignments: center, distributed, justify, left, right
142
142
  worksheet.sheet_data[0][0].change_horizontal_alignment('center') # Sets A1 to be centered
143
143
  worksheet.change_row_horizontal_alignment(0, 'justify') # Sets first row to be justified
144
144
  worksheet.change_column_horizontal_alignment(0, 'right') # Sets first column to be right-aligned
145
145
 
146
146
  ===== Vertical
147
- bottom, center, distributed, top
147
+ # Possible alignments: bottom, center, distributed, top
148
148
  worksheet.sheet_data[0][0].change_vertical_alignment('bottom') # Sets A1 to be bottom aligned
149
149
  worksheet.change_row_vertical_alignment(0, 'distributed') # Sets first row to be distributed vertically
150
150
  worksheet.change_column_vertical_alignment(0, 'top') # Sets first column to be top aligned
151
151
 
152
152
  ===== Rotation
153
+ # Possible values:
154
+ # * 0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;
155
+ # * 91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;
156
+ # * 180-254 - degrees clockwise, around the bottom LEFT corner of the cell, text becomes progressively invisible
157
+ # * 255 - text is in normal rotation but displayed vertically (one letter under another), line feed starts new line to the right of the previous.
153
158
  worksheet.sheet_data[0][0].change_text_rotation(90) # Sets A1 to be rotated by 90 degrees
154
159
 
155
- Values:
156
- * 0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;
157
- * 91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;
158
- * 180-254 - degrees clockwise, around the bottom LEFT corner of the cell, text becomes progressively invisible
159
- * 255 - text is in normal rotation but displayed vertically (one letter under another), line feed starts new line to the right of the previous.
160
160
 
161
161
  ==== Changing Row Height
162
162
  worksheet.change_row_height(0, 30) # Sets first row height to 30
@@ -211,6 +211,7 @@ WARNING: Use of this method WILL break formulas referencing cells which have bee
211
211
  cell = worksheet[0][0]
212
212
  cell.set_number_format '0.0000%' # For formats, see https://support.office.com/en-us/article/5026bbd6-04bc-48cd-bf33-80f18b4eae68
213
213
  cell.change_text_wrap(true) # Makes the text in the cell to wrap.
214
+ cell.change_shrink_to_fit(true) # Makes the text in the cell to shrink to fit.
214
215
  cell.change_text_indent(1) # Indents the text in the cell by 1 level
215
216
 
216
217
  == I/O
@@ -252,5 +253,5 @@ Take a look at the files in spec/lib/ for rspecs on most methods
252
253
 
253
254
  == Copyright
254
255
 
255
- Copyright (c) 2011 Vivek Bhagwat, 2013-2021 Wesha.
256
+ Copyright (c) 2011 Vivek Bhagwat, 2013-2022 Wesha.
256
257
  See LICENSE.txt for further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.4.18
1
+ 3.4.22
@@ -9,12 +9,12 @@ module RubyXL
9
9
  self.formula = RubyXL::Formula.new(:expression => formula_expression)
10
10
  else
11
11
  self.datatype = case data
12
- when Date, Numeric then nil
12
+ when Date, Time, Numeric then nil
13
13
  else RubyXL::DataType::RAW_STRING
14
14
  end
15
15
  end
16
16
 
17
- data = workbook.date_to_num(data) if data.is_a?(Date)
17
+ data = workbook.date_to_num(data) if data.is_a?(Date) || data.is_a?(Time)
18
18
 
19
19
  self.raw_value = data
20
20
  end
@@ -54,6 +54,11 @@ module RubyXL
54
54
  self.style_index = workbook.modify_alignment(self.style_index) { |a| a.wrap_text = wrap }
55
55
  end
56
56
 
57
+ def change_shrink_to_fit(shrink_to_fit = false)
58
+ validate_worksheet
59
+ self.style_index = workbook.modify_alignment(self.style_index) { |a| a.shrink_to_fit = shrink_to_fit }
60
+ end
61
+
57
62
  def change_text_rotation(rot)
58
63
  validate_worksheet
59
64
  self.style_index = workbook.modify_alignment(self.style_index) { |a| a.text_rotation = rot }
@@ -135,12 +140,12 @@ module RubyXL
135
140
  return nil if xf_obj.alignment.nil?
136
141
  xf_obj.alignment.wrap_text
137
142
  end
138
-
143
+
139
144
  def text_rotation
140
145
  validate_worksheet
141
146
  xf_obj = get_cell_xf
142
147
  return nil if xf_obj.alignment.nil?
143
- xf_obj.alignment.text_rotation
148
+ xf_obj.alignment.text_rotation
144
149
  end
145
150
 
146
151
  def text_indent()
@@ -130,6 +130,14 @@ module RubyXL
130
130
  self.defined_names && self.defined_names.find { |n| n.name == name }
131
131
  end
132
132
 
133
+ def title
134
+ self.root.core_properties.dc_title && self.root.core_properties.dc_title.value
135
+ end
136
+
137
+ def title=(v)
138
+ self.root.core_properties.dc_title = v && RubyXL::StringNode.new(:value => v)
139
+ end
140
+
133
141
  end
134
142
 
135
143
  RubyXL::Workbook.send(:include, RubyXL::WorkbookConvenienceMethods) # ruby 2.1 compat
@@ -21,7 +21,7 @@ module RubyXL
21
21
  define_child_node(RubyXL::BooleanValue, :node_name => :extend)
22
22
  define_child_node(RubyXL::Color)
23
23
  define_child_node(RubyXL::FloatValue, :node_name => :sz)
24
- define_child_node(RubyXL::BooleanValue, :node_name => :u)
24
+ define_child_node(RubyXL::StringValue, :node_name => :u) # ST_UnderlineValues (http://www.datypic.com/sc/ooxml/e-ssml_u-1.html)
25
25
  define_child_node(RubyXL::StringValue, :node_name => :vertAlign)
26
26
  define_child_node(RubyXL::StringValue, :node_name => :scheme)
27
27
  define_element_name 'font'
@@ -12,10 +12,10 @@ module RubyXL
12
12
  # addressing variable by name creates it in the context of defining class, while calling
13
13
  # the setter/getter method addresses it in the context of descendant class,
14
14
  # which is what we need.
15
- def obtain_class_variable(var_name, default = {})
15
+ def obtain_class_variable(var_name, default = nil)
16
16
  self.class_variable_get(var_name)
17
17
  rescue NameError
18
- self.class_variable_set(var_name, default)
18
+ self.class_variable_set(var_name, default || {})
19
19
  end
20
20
 
21
21
  # Defines an attribute of OOXML object.
@@ -45,9 +45,10 @@ module RubyXL
45
45
  # The value of the element will be accessible as a <tt>String</tt> by calling +obj.expression+
46
46
  # define_attribute(:errorStyle, %w{ stop warning information }, :default => 'stop',)
47
47
  # A <tt>String</tt> attribute named 'errorStyle' will be accessible as +obj.error_style+, valid values are <tt>"stop"</tt>, <tt>"warning"</tt>, <tt>"information"</tt>
48
- def define_attribute(attr_name, attr_type, extra_params = {})
48
+ def define_attribute(attr_name, attr_type, extra_params = nil)
49
49
  attrs = obtain_class_variable(:@@ooxml_attributes)
50
- attr_hash = extra_params.merge({ :attr_type => attr_type })
50
+ attr_hash = { :attr_type => attr_type }
51
+ attr_hash.merge!(extra_params) if extra_params
51
52
  attr_hash[:accessor] ||= accessorize(attr_name)
52
53
  attrs[attr_name.to_s] = attr_hash
53
54
  self.send(:attr_accessor, attr_hash[:accessor]) unless attr_hash[:computed]
@@ -224,8 +225,9 @@ module RubyXL
224
225
  end
225
226
  private :obtain_class_variable
226
227
 
227
- def initialize(params = {})
228
+ def initialize(params = nil)
228
229
  @local_namespaces = nil
230
+ params ||= {}
229
231
 
230
232
  obtain_class_variable(:@@ooxml_attributes).each_value { |v|
231
233
  instance_variable_set("@#{v[:accessor]}", params[v[:accessor]]) unless v[:computed]
@@ -71,7 +71,7 @@ module RubyXL
71
71
  end
72
72
 
73
73
  # Converts +row+ and +col+ zero-based indices to Excel-style cell reference
74
- # (0) A...Z, AA...AZ, BA... ...ZZ, AAA... ...AZZ, BAA... ...XFD (16383)
74
+ # <0> A...Z, AA...AZ, BA... ...ZZ, AAA... ...AZZ, BAA... ...XFD <16383>
75
75
  def self.ind2ref(row = 0, col = 0)
76
76
  str = ''
77
77
 
@@ -88,10 +88,7 @@ module RubyXL
88
88
  # Converts Excel-style cell reference to +row+ and +col+ zero-based indices.
89
89
  def self.ref2ind(str)
90
90
  return [ -1, -1 ] unless str =~ /\A([A-Z]+)(\d+)\Z/
91
-
92
- col = 0
93
- $1.each_byte { |chr| col = col * 26 + (chr - 64) }
94
- [ $2.to_i - 1, col - 1 ]
91
+ [ $2.to_i - 1, $1.each_byte.inject(0) { |col, chr| col * 26 + (chr - 64) } - 1 ]
95
92
  end
96
93
 
97
94
  end
@@ -223,6 +223,8 @@ module RubyXL
223
223
 
224
224
  ST_TextUnderlineType = %w{ none words sng dbl heavy dotted dottedHeavy dash dashHeavy dashLong dashLongHeavy
225
225
  dotDash dotDashHeavy dotDotDash dotDotDashHeavy wavy wavyHeavy wavyDbl }
226
+ ST_UnderlineValues = %w{ single double singleAccounting doubleAccounting none }
227
+
226
228
  ST_TextStrikeType = %w{ noStrike sngStrike dblStrike }
227
229
  ST_TextCapsType = %w{ none small all }
228
230
 
@@ -85,7 +85,8 @@ module RubyXL
85
85
  define_element_name 'is'
86
86
 
87
87
  def to_s
88
- str = if t.nil? then '' else t.to_s end
88
+ # `dup` here unfreezes the string since it's not a constant but initial value
89
+ str = if t.nil? then ''.dup else t.to_s end
89
90
  r && r.each { |rtr| str << rtr.to_s if rtr }
90
91
  str
91
92
  end
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 3.4.18</title>
7
+ <title>README - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
@@ -297,38 +297,30 @@
297
297
 
298
298
  <h5 id="label-Horizontal">Horizontal<span><a href="#label-Horizontal">&para;</a> <a href="#top">&uarr;</a></span></h5>
299
299
 
300
- <p>center, distributed, justify, left, right</p>
301
-
302
- <pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_horizontal_alignment</span>(<span class="ruby-string">&#39;center&#39;</span>) <span class="ruby-comment"># Sets A1 to be centered</span>
300
+ <pre class="ruby"><span class="ruby-comment"># Possible alignments: center, distributed, justify, left, right</span>
301
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_horizontal_alignment</span>(<span class="ruby-string">&#39;center&#39;</span>) <span class="ruby-comment"># Sets A1 to be centered</span>
303
302
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_horizontal_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-string">&#39;justify&#39;</span>) <span class="ruby-comment"># Sets first row to be justified</span>
304
303
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_horizontal_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-string">&#39;right&#39;</span>) <span class="ruby-comment"># Sets first column to be right-aligned</span>
305
304
  </pre>
306
305
 
307
306
  <h5 id="label-Vertical">Vertical<span><a href="#label-Vertical">&para;</a> <a href="#top">&uarr;</a></span></h5>
308
307
 
309
- <p>bottom, center, distributed, top</p>
310
-
311
- <pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_vertical_alignment</span>(<span class="ruby-string">&#39;bottom&#39;</span>) <span class="ruby-comment"># Sets A1 to be bottom aligned</span>
308
+ <pre class="ruby"><span class="ruby-comment"># Possible alignments: bottom, center, distributed, top</span>
309
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_vertical_alignment</span>(<span class="ruby-string">&#39;bottom&#39;</span>) <span class="ruby-comment"># Sets A1 to be bottom aligned</span>
312
310
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_vertical_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-string">&#39;distributed&#39;</span>) <span class="ruby-comment"># Sets first row to be distributed vertically</span>
313
311
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_vertical_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-string">&#39;top&#39;</span>) <span class="ruby-comment"># Sets first column to be top aligned</span>
314
312
  </pre>
315
313
 
316
314
  <h5 id="label-Rotation">Rotation<span><a href="#label-Rotation">&para;</a> <a href="#top">&uarr;</a></span></h5>
317
315
 
318
- <pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_text_rotation</span>(<span class="ruby-value">90</span>) <span class="ruby-comment"># Sets A1 to be rotated by 90 degrees</span>
316
+ <pre class="ruby"><span class="ruby-comment"># Possible values:</span>
317
+ <span class="ruby-comment"># * 0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;</span>
318
+ <span class="ruby-comment"># * 91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;</span>
319
+ <span class="ruby-comment"># * 180-254 - degrees clockwise, around the bottom LEFT corner of the cell, text becomes progressively invisible</span>
320
+ <span class="ruby-comment"># * 255 - text is in normal rotation but displayed vertically (one letter under another), line feed starts new line to the right of the previous.</span>
321
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_text_rotation</span>(<span class="ruby-value">90</span>) <span class="ruby-comment"># Sets A1 to be rotated by 90 degrees</span>
319
322
  </pre>
320
323
 
321
- <p>Values:</p>
322
- <ul><li>
323
- <p>0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;</p>
324
- </li><li>
325
- <p>91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;</p>
326
- </li><li>
327
- <p>180-254 - degrees clockwise, around the bottom LEFT corner of the cell, text becomes progressively invisible</p>
328
- </li><li>
329
- <p>255 - text is in normal rotation but displayed vertically (one letter under another), line feed starts new line to the right of the previous.</p>
330
- </li></ul>
331
-
332
324
  <h4 id="label-Changing+Row+Height">Changing Row Height<span><a href="#label-Changing+Row+Height">&para;</a> <a href="#top">&uarr;</a></span></h4>
333
325
 
334
326
  <pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_height</span>(<span class="ruby-value">0</span>, <span class="ruby-value">30</span>) <span class="ruby-comment"># Sets first row height to 30</span>
@@ -407,6 +399,7 @@
407
399
  <pre class="ruby"><span class="ruby-identifier">cell</span> = <span class="ruby-identifier">worksheet</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
408
400
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">set_number_format</span> <span class="ruby-string">&#39;0.0000%&#39;</span> <span class="ruby-comment"># For formats, see https://support.office.com/en-us/article/5026bbd6-04bc-48cd-bf33-80f18b4eae68</span>
409
401
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">change_text_wrap</span>(<span class="ruby-keyword">true</span>) <span class="ruby-comment"># Makes the text in the cell to wrap.</span>
402
+ <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">change_shrink_to_fit</span>(<span class="ruby-keyword">true</span>) <span class="ruby-comment"># Makes the text in the cell to shrink to fit.</span>
410
403
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">change_text_indent</span>(<span class="ruby-value">1</span>) <span class="ruby-comment"># Indents the text in the cell by 1 level</span>
411
404
  </pre>
412
405
 
@@ -446,9 +439,9 @@
446
439
 
447
440
  <h2 id="label-Contributing+to+rubyXL">Contributing to rubyXL<span><a href="#label-Contributing+to+rubyXL">&para;</a> <a href="#top">&uarr;</a></span></h2>
448
441
  <ul><li>
449
- <p>Check out the latest master to make sure the feature hasn&#39;t been implemented or the bug hasn&#39;t been fixed yet</p>
442
+ <p>Check out the latest master to make sure the feature hasnt been implemented or the bug hasnt been fixed yet</p>
450
443
  </li><li>
451
- <p>Check out the issue tracker to make sure someone already hasn&#39;t requested it and/or contributed it</p>
444
+ <p>Check out the issue tracker to make sure someone already hasnt requested it and/or contributed it</p>
452
445
  </li><li>
453
446
  <p>Fork the project</p>
454
447
  </li><li>
@@ -456,14 +449,14 @@
456
449
  </li><li>
457
450
  <p>Commit and push until you are happy with your contribution</p>
458
451
  </li><li>
459
- <p>Make sure to add tests for it. This is important so I don&#39;t break it in a future version unintentionally.</p>
452
+ <p>Make sure to add tests for it. This is important so I dont break it in a future version unintentionally.</p>
460
453
  </li><li>
461
454
  <p>Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.</p>
462
455
  </li></ul>
463
456
 
464
457
  <h2 id="label-Copyright">Copyright<span><a href="#label-Copyright">&para;</a> <a href="#top">&uarr;</a></span></h2>
465
458
 
466
- <p>Copyright © 2011 Vivek Bhagwat, 2013-2021 Wesha. See LICENSE.txt for further details.</p>
459
+ <p>Copyright © 2011 Vivek Bhagwat, 2013-2022 Wesha. See LICENSE.txt for further details.</p>
467
460
 
468
461
  </main>
469
462
 
@@ -471,7 +464,7 @@
471
464
 
472
465
  <footer id="validator-badges" role="contentinfo">
473
466
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
474
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
467
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
475
468
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
476
469
  </footer>
477
470
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtension - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AExtension - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -177,7 +177,7 @@
177
177
 
178
178
  <footer id="validator-badges" role="contentinfo">
179
179
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
180
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
180
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
181
181
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
182
182
  </footer>
183
183
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtensionStorageArea - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AExtensionStorageArea - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -91,7 +91,7 @@
91
91
 
92
92
  <footer id="validator-badges" role="contentinfo">
93
93
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
94
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
94
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
95
95
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
96
96
  </footer>
97
97
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::ActiveX - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::ActiveX - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -148,7 +148,7 @@
148
148
 
149
149
  <footer id="validator-badges" role="contentinfo">
150
150
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
151
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
151
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
152
152
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
153
153
  </footer>
154
154
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::ActiveXBinary - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::ActiveXBinary - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -100,7 +100,7 @@
100
100
 
101
101
  <footer id="validator-badges" role="contentinfo">
102
102
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
103
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
103
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
104
104
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
105
105
  </footer>
106
106
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AdjustHandleList - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AdjustHandleList - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -93,7 +93,7 @@
93
93
 
94
94
  <footer id="validator-badges" role="contentinfo">
95
95
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
96
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
97
97
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
98
  </footer>
99
99
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Alignment - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::Alignment - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -93,7 +93,7 @@
93
93
 
94
94
  <footer id="validator-badges" role="contentinfo">
95
95
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
96
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
97
97
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
98
  </footer>
99
99
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AlternateContent - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AlternateContent - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -91,7 +91,7 @@
91
91
 
92
92
  <footer id="validator-badges" role="contentinfo">
93
93
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
94
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
94
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
95
95
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
96
96
  </footer>
97
97
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Authors - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::Authors - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -93,7 +93,7 @@
93
93
 
94
94
  <footer id="validator-badges" role="contentinfo">
95
95
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
96
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
97
97
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
98
  </footer>
99
99
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilter - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AutoFilter - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -93,7 +93,7 @@
93
93
 
94
94
  <footer id="validator-badges" role="contentinfo">
95
95
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
96
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
97
97
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
98
  </footer>
99
99
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilterColumn - rubyXL 3.4.18</title>
7
+ <title>class RubyXL::AutoFilterColumn - rubyXL 3.4.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -93,7 +93,7 @@
93
93
 
94
94
  <footer id="validator-badges" role="contentinfo">
95
95
  <p><a href="https://validator.w3.org/check/referer">Validate</a>
96
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
96
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
97
97
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
98
  </footer>
99
99