rubyXL 3.4.20 → 3.4.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +20 -20
  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/simple_types.rb +2 -0
  10. data/lib/rubyXL/objects/storage.rb +5 -0
  11. data/rdoc/README_rdoc.html +13 -20
  12. data/rdoc/RubyXL/AExtension.html +1 -1
  13. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  14. data/rdoc/RubyXL/ActiveX.html +2 -2
  15. data/rdoc/RubyXL/ActiveXBinary.html +1 -1
  16. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  17. data/rdoc/RubyXL/Alignment.html +1 -1
  18. data/rdoc/RubyXL/AlternateContent.html +1 -1
  19. data/rdoc/RubyXL/Authors.html +1 -1
  20. data/rdoc/RubyXL/AutoFilter.html +1 -1
  21. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  22. data/rdoc/RubyXL/BinaryImageFile.html +1 -1
  23. data/rdoc/RubyXL/BodyProperties.html +1 -1
  24. data/rdoc/RubyXL/BooleanNode.html +1 -1
  25. data/rdoc/RubyXL/BooleanValue.html +1 -1
  26. data/rdoc/RubyXL/Border.html +1 -1
  27. data/rdoc/RubyXL/BorderEdge.html +1 -1
  28. data/rdoc/RubyXL/Borders.html +1 -1
  29. data/rdoc/RubyXL/Break.html +1 -1
  30. data/rdoc/RubyXL/BreakList.html +1 -1
  31. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  32. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  33. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  34. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  35. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  36. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  37. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  38. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  39. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  40. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  41. data/rdoc/RubyXL/CT_Blip.html +1 -1
  42. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  43. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  44. data/rdoc/RubyXL/CT_Camera.html +1 -1
  45. data/rdoc/RubyXL/CT_Color.html +1 -1
  46. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  47. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  48. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  49. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  50. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  51. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  52. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  53. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  54. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  55. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  56. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  57. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  58. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  59. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  60. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  61. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  62. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  63. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  64. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  65. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  66. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  67. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  68. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  69. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  70. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  71. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  72. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  73. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  74. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  75. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  76. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  77. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  78. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  79. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  80. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  81. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  82. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  83. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  84. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  85. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  86. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  87. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  88. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  89. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  90. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  91. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  92. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  93. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  94. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  95. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  96. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  97. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  98. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  99. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  100. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  101. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  102. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  103. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  104. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  105. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  106. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  107. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  108. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  109. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  110. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  111. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  112. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  113. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  114. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  115. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  116. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  117. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  118. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  119. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  120. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  121. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  122. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  123. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  124. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  125. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  126. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  127. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  128. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  129. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  130. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  131. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  132. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  133. data/rdoc/RubyXL/CalculationChain.html +1 -1
  134. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  135. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  136. data/rdoc/RubyXL/Cell.html +1 -1
  137. data/rdoc/RubyXL/CellConvenienceMethods.html +54 -31
  138. data/rdoc/RubyXL/CellExt.html +1 -1
  139. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  140. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  141. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  142. data/rdoc/RubyXL/CellStyle.html +1 -1
  143. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  144. data/rdoc/RubyXL/CellStyles.html +1 -1
  145. data/rdoc/RubyXL/CellValue.html +1 -1
  146. data/rdoc/RubyXL/CellWatch.html +1 -1
  147. data/rdoc/RubyXL/CellWatches.html +1 -1
  148. data/rdoc/RubyXL/CellXFs.html +1 -1
  149. data/rdoc/RubyXL/ChartColorsFile.html +1 -1
  150. data/rdoc/RubyXL/ChartFile.html +1 -1
  151. data/rdoc/RubyXL/ChartStyleFile.html +1 -1
  152. data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
  153. data/rdoc/RubyXL/Chartsheet.html +1 -1
  154. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  155. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  156. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  157. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  158. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  159. data/rdoc/RubyXL/Color.html +1 -1
  160. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +1 -1
  161. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +1 -1
  162. data/rdoc/RubyXL/ColorConvenienceClasses.html +1 -1
  163. data/rdoc/RubyXL/ColorConvenienceMethods.html +1 -1
  164. data/rdoc/RubyXL/ColorFilter.html +1 -1
  165. data/rdoc/RubyXL/ColorScale.html +1 -1
  166. data/rdoc/RubyXL/ColorSet.html +1 -1
  167. data/rdoc/RubyXL/Colors.html +1 -1
  168. data/rdoc/RubyXL/ColumnRange.html +1 -1
  169. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  170. data/rdoc/RubyXL/Comment.html +1 -1
  171. data/rdoc/RubyXL/CommentList.html +1 -1
  172. data/rdoc/RubyXL/CommentsFile.html +1 -1
  173. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  174. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  175. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  176. data/rdoc/RubyXL/Connection.html +1 -1
  177. data/rdoc/RubyXL/ConnectionTable.html +1 -1
  178. data/rdoc/RubyXL/ConnectionTables.html +1 -1
  179. data/rdoc/RubyXL/ConnectionTextField.html +1 -1
  180. data/rdoc/RubyXL/ConnectionTextFields.html +1 -1
  181. data/rdoc/RubyXL/Connections.html +1 -1
  182. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  183. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  184. data/rdoc/RubyXL/ContentTypes.html +1 -1
  185. data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
  186. data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
  187. data/rdoc/RubyXL/CustomColor.html +1 -1
  188. data/rdoc/RubyXL/CustomColorList.html +1 -1
  189. data/rdoc/RubyXL/CustomFilter.html +1 -1
  190. data/rdoc/RubyXL/CustomFilters.html +1 -1
  191. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  192. data/rdoc/RubyXL/CustomProperties.html +1 -1
  193. data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
  194. data/rdoc/RubyXL/CustomProperty.html +1 -1
  195. data/rdoc/RubyXL/CustomPropertyFile.html +1 -1
  196. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  197. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  198. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  199. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  200. data/rdoc/RubyXL/CustomXMLFile.html +1 -1
  201. data/rdoc/RubyXL/DXF.html +1 -1
  202. data/rdoc/RubyXL/DXFs.html +1 -1
  203. data/rdoc/RubyXL/DataBar.html +1 -1
  204. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  205. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  206. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  207. data/rdoc/RubyXL/DataType.html +1 -1
  208. data/rdoc/RubyXL/DataValidation.html +1 -1
  209. data/rdoc/RubyXL/DataValidations.html +1 -1
  210. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  211. data/rdoc/RubyXL/DefinedName.html +1 -1
  212. data/rdoc/RubyXL/DefinedNameExt.html +1 -1
  213. data/rdoc/RubyXL/DefinedNames.html +1 -1
  214. data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
  215. data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
  216. data/rdoc/RubyXL/DrawingFile.html +1 -1
  217. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  218. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  219. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  220. data/rdoc/RubyXL/Extension.html +1 -1
  221. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  222. data/rdoc/RubyXL/Extents.html +1 -1
  223. data/rdoc/RubyXL/ExternalBook.html +1 -1
  224. data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
  225. data/rdoc/RubyXL/ExternalReference.html +1 -1
  226. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  227. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  228. data/rdoc/RubyXL/FieldItem.html +1 -1
  229. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  230. data/rdoc/RubyXL/FileSharing.html +1 -1
  231. data/rdoc/RubyXL/FileVersion.html +1 -1
  232. data/rdoc/RubyXL/Fill.html +1 -1
  233. data/rdoc/RubyXL/Fills.html +1 -1
  234. data/rdoc/RubyXL/FilterContainer.html +1 -1
  235. data/rdoc/RubyXL/FloatNode.html +1 -1
  236. data/rdoc/RubyXL/FloatValue.html +1 -1
  237. data/rdoc/RubyXL/Font.html +1 -1
  238. data/rdoc/RubyXL/FontConvenienceMethods.html +1 -1
  239. data/rdoc/RubyXL/FontScheme.html +1 -1
  240. data/rdoc/RubyXL/Fonts.html +1 -1
  241. data/rdoc/RubyXL/Formula.html +1 -1
  242. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  243. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  244. data/rdoc/RubyXL/GenericStorageObject.html +1 -1
  245. data/rdoc/RubyXL/GradientFill.html +1 -1
  246. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  247. data/rdoc/RubyXL/Hyperlink.html +1 -1
  248. data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
  249. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  250. data/rdoc/RubyXL/IconFilter.html +1 -1
  251. data/rdoc/RubyXL/IconSet.html +1 -1
  252. data/rdoc/RubyXL/IgnoredError.html +1 -1
  253. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  254. data/rdoc/RubyXL/IndexedColors.html +1 -1
  255. data/rdoc/RubyXL/InputCells.html +1 -1
  256. data/rdoc/RubyXL/IntegerNode.html +1 -1
  257. data/rdoc/RubyXL/IntegerValue.html +1 -1
  258. data/rdoc/RubyXL/LegacyCell.html +1 -1
  259. data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
  260. data/rdoc/RubyXL/MRUColors.html +1 -1
  261. data/rdoc/RubyXL/MacrosFile.html +1 -1
  262. data/rdoc/RubyXL/MergedCell.html +1 -1
  263. data/rdoc/RubyXL/MergedCells.html +1 -1
  264. data/rdoc/RubyXL/NumFmt.html +1 -1
  265. data/rdoc/RubyXL/NumberFormat.html +1 -1
  266. data/rdoc/RubyXL/NumberFormats.html +1 -1
  267. data/rdoc/RubyXL/OLEObject.html +1 -1
  268. data/rdoc/RubyXL/OLEObjectFile.html +1 -1
  269. data/rdoc/RubyXL/OLEObjects.html +1 -1
  270. data/rdoc/RubyXL/OLESize.html +1 -1
  271. data/rdoc/RubyXL/OOXMLContainerObject.html +7 -7
  272. data/rdoc/RubyXL/OOXMLIgnored.html +1 -1
  273. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  274. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +12 -11
  275. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +12 -11
  276. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  277. data/rdoc/RubyXL/OOXMLTopLevelObject.html +6 -6
  278. data/rdoc/RubyXL/OdbcOleDbProperties.html +1 -1
  279. data/rdoc/RubyXL/Offset.html +1 -1
  280. data/rdoc/RubyXL/OlapProperties.html +1 -1
  281. data/rdoc/RubyXL/OleItem.html +1 -1
  282. data/rdoc/RubyXL/OleItems.html +1 -1
  283. data/rdoc/RubyXL/OleLink.html +1 -1
  284. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  285. data/rdoc/RubyXL/PageMargins.html +1 -1
  286. data/rdoc/RubyXL/PageSetup.html +1 -1
  287. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  288. data/rdoc/RubyXL/Pane.html +1 -1
  289. data/rdoc/RubyXL/Parser.html +1 -1
  290. data/rdoc/RubyXL/PatternFill.html +1 -1
  291. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  292. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  293. data/rdoc/RubyXL/PivotArea.html +1 -1
  294. data/rdoc/RubyXL/PivotCache.html +1 -1
  295. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
  296. data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
  297. data/rdoc/RubyXL/PivotCaches.html +1 -1
  298. data/rdoc/RubyXL/PivotReference.html +1 -1
  299. data/rdoc/RubyXL/PivotReferences.html +1 -1
  300. data/rdoc/RubyXL/PivotTableFile.html +1 -1
  301. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  302. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  303. data/rdoc/RubyXL/PrintOptions.html +1 -1
  304. data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
  305. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  306. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  307. data/rdoc/RubyXL/Protection.html +1 -1
  308. data/rdoc/RubyXL/QueryParameter.html +1 -1
  309. data/rdoc/RubyXL/QueryParameters.html +1 -1
  310. data/rdoc/RubyXL/QueryTable.html +1 -1
  311. data/rdoc/RubyXL/QueryTableDeletedField.html +1 -1
  312. data/rdoc/RubyXL/QueryTableDeletedFields.html +1 -1
  313. data/rdoc/RubyXL/QueryTableField.html +1 -1
  314. data/rdoc/RubyXL/QueryTableFields.html +1 -1
  315. data/rdoc/RubyXL/QueryTableRefresh.html +1 -1
  316. data/rdoc/RubyXL/RID.html +1 -1
  317. data/rdoc/RubyXL/RawOOXML.html +1 -1
  318. data/rdoc/RubyXL/Reference.html +1 -1
  319. data/rdoc/RubyXL/Relationship.html +1 -1
  320. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
  321. data/rdoc/RubyXL/RelationshipSupport.html +1 -1
  322. data/rdoc/RubyXL/RevisionPointer.html +1 -1
  323. data/rdoc/RubyXL/RichText.html +1 -1
  324. data/rdoc/RubyXL/RichTextRun.html +1 -1
  325. data/rdoc/RubyXL/Row.html +1 -1
  326. data/rdoc/RubyXL/RowExt.html +1 -1
  327. data/rdoc/RubyXL/RunProperties.html +1 -1
  328. data/rdoc/RubyXL/Scenario.html +1 -1
  329. data/rdoc/RubyXL/Scenarios.html +1 -1
  330. data/rdoc/RubyXL/Selection.html +1 -1
  331. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  332. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  333. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  334. data/rdoc/RubyXL/Sheet.html +1 -1
  335. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  336. data/rdoc/RubyXL/SheetData.html +1 -1
  337. data/rdoc/RubyXL/SheetDataExt.html +1 -1
  338. data/rdoc/RubyXL/SheetDataSet.html +1 -1
  339. data/rdoc/RubyXL/SheetMetadata.html +108 -0
  340. data/rdoc/RubyXL/SheetName.html +1 -1
  341. data/rdoc/RubyXL/SheetNames.html +1 -1
  342. data/rdoc/RubyXL/Sheets.html +1 -1
  343. data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
  344. data/rdoc/RubyXL/SlicerFile.html +1 -1
  345. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  346. data/rdoc/RubyXL/SmartTagType.html +1 -1
  347. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  348. data/rdoc/RubyXL/SmartTags.html +1 -1
  349. data/rdoc/RubyXL/SortCondition.html +1 -1
  350. data/rdoc/RubyXL/SortState.html +1 -1
  351. data/rdoc/RubyXL/Sqref.html +1 -1
  352. data/rdoc/RubyXL/Stop.html +1 -1
  353. data/rdoc/RubyXL/StringNode.html +1 -1
  354. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  355. data/rdoc/RubyXL/StringValue.html +1 -1
  356. data/rdoc/RubyXL/Stylesheet.html +1 -1
  357. data/rdoc/RubyXL/TableFile.html +1 -1
  358. data/rdoc/RubyXL/TableParts.html +1 -1
  359. data/rdoc/RubyXL/TableStyle.html +1 -1
  360. data/rdoc/RubyXL/TableStyles.html +1 -1
  361. data/rdoc/RubyXL/Text.html +1 -1
  362. data/rdoc/RubyXL/TextImportSettings.html +1 -1
  363. data/rdoc/RubyXL/Theme.html +1 -1
  364. data/rdoc/RubyXL/ThemeElements.html +1 -1
  365. data/rdoc/RubyXL/ThumbnailFile.html +1 -1
  366. data/rdoc/RubyXL/Top10.html +1 -1
  367. data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
  368. data/rdoc/RubyXL/Variant.html +1 -1
  369. data/rdoc/RubyXL/Vector.html +1 -1
  370. data/rdoc/RubyXL/VectorValue.html +1 -1
  371. data/rdoc/RubyXL/VisualProperties.html +1 -1
  372. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  373. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  374. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  375. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  376. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  377. data/rdoc/RubyXL/WebQueryProperties.html +1 -1
  378. data/rdoc/RubyXL/Workbook.html +1 -1
  379. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +45 -1
  380. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  381. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  382. data/rdoc/RubyXL/WorkbookRoot.html +1 -1
  383. data/rdoc/RubyXL/WorkbookView.html +1 -1
  384. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  385. data/rdoc/RubyXL/Worksheet.html +1 -1
  386. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +1 -1
  387. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  388. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  389. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  390. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  391. data/rdoc/RubyXL/WorksheetView.html +1 -1
  392. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  393. data/rdoc/RubyXL/XF.html +1 -1
  394. data/rdoc/RubyXL.html +3 -1
  395. data/rdoc/created.rid +8 -8
  396. data/rdoc/index.html +3 -2
  397. data/rdoc/js/navigation.js.gz +0 -0
  398. data/rdoc/js/search_index.js +1 -1
  399. data/rdoc/js/search_index.js.gz +0 -0
  400. data/rdoc/js/searcher.js.gz +0 -0
  401. data/rdoc/table_of_contents.html +20 -2
  402. data/rubyXL.gemspec +4 -3
  403. data/spec/lib/cell_spec.rb +9 -0
  404. data/spec/lib/rgb_color_spec.rb +14 -2
  405. data/spec/lib/workbook_spec.rb +11 -0
  406. data/spec/lib/worksheet_spec.rb +2 -2
  407. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 116ee9428a4b233645c4b8fc1d33c0589158230b8a070a274e2dfcbf5c4599cb
4
- data.tar.gz: c297883a5589040468eed44560482569452c953266f46877828d85d3a2b45828
3
+ metadata.gz: f9a16fce0e2736bd1e9a7c85bf206f448157aaba2744ed084c5616b51ec96138
4
+ data.tar.gz: b831dd0a128e14be3d80fde00c424210411ee2063ea49299f61eb4aa2fa449f4
5
5
  SHA512:
6
- metadata.gz: f508111555352f1868242db8491675d4aee3d1da93212049ae08db937f89857e29f15ca76fd985aca300d8400deda9b7a8032cbc5c0f0ec903121fb1cabbbbed
7
- data.tar.gz: ddd0250526862e617effdb282ee3361a0c81c662841a16c207dabc8d4a0d41405693b92c1187685ef66d71b8b9cf5899ffa635f63531daa482597c38ec4fe20f
6
+ metadata.gz: 9f383efaed8726be9275f969212f4b02675f4c8b6ffb8e9c06cd466ce7b8877fa5e31a73a9e5d47f731712e10140e60fd5e06ef5120509e577f6e59b6776835d
7
+ data.tar.gz: e7c1a9af22bd966c0dd9139ce7f45df29098068b0e931a5529cd80ba012ead1e14ca5cec01dc14cb50c87294e5735a228afcc26575f53819fee9a0eacedc5337
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GEM
8
8
  thread_safe (~> 0.3, >= 0.3.1)
9
9
  diff-lcs (1.5.0)
10
10
  docile (1.4.0)
11
- faraday (1.9.3)
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)
@@ -56,41 +56,41 @@ GEM
56
56
  jwt (2.3.0)
57
57
  kamelcase (0.0.2)
58
58
  semver2 (~> 3)
59
- mini_portile2 (2.7.1)
59
+ mini_portile2 (2.8.0)
60
60
  multi_json (1.15.0)
61
61
  multi_xml (0.6.0)
62
62
  multipart-post (2.1.1)
63
- nokogiri (1.13.1)
64
- mini_portile2 (~> 2.7.0)
63
+ nokogiri (1.13.4)
64
+ mini_portile2 (~> 2.8.0)
65
65
  racc (~> 1.4)
66
- oauth2 (1.4.7)
67
- faraday (>= 0.8, < 2.0)
66
+ oauth2 (1.4.9)
67
+ faraday (>= 0.17.3, < 3.0)
68
68
  jwt (>= 1.0, < 3.0)
69
69
  multi_json (~> 1.3)
70
70
  multi_xml (~> 0.5)
71
71
  rack (>= 1.2, < 3)
72
72
  psych (4.0.3)
73
73
  stringio
74
- public_suffix (4.0.6)
74
+ public_suffix (4.0.7)
75
75
  racc (1.6.0)
76
76
  rack (2.2.3)
77
77
  rake (13.0.6)
78
78
  rchardet (1.8.0)
79
79
  rdoc (6.4.0)
80
80
  psych (>= 4.0.0)
81
- rspec (3.10.0)
82
- rspec-core (~> 3.10.0)
83
- rspec-expectations (~> 3.10.0)
84
- rspec-mocks (~> 3.10.0)
85
- rspec-core (3.10.1)
86
- rspec-support (~> 3.10.0)
87
- rspec-expectations (3.10.1)
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)
88
88
  diff-lcs (>= 1.2.0, < 2.0)
89
- rspec-support (~> 3.10.0)
90
- rspec-mocks (3.10.2)
89
+ rspec-support (~> 3.11.0)
90
+ rspec-mocks (3.11.1)
91
91
  diff-lcs (>= 1.2.0, < 2.0)
92
- rspec-support (~> 3.10.0)
93
- rspec-support (3.10.3)
92
+ rspec-support (~> 3.11.0)
93
+ rspec-support (3.11.0)
94
94
  rspec_junit_formatter (0.5.1)
95
95
  rspec-core (>= 2, < 4, != 2.12.0)
96
96
  ruby-prof (1.4.3)
@@ -102,7 +102,7 @@ GEM
102
102
  simplecov-html (~> 0.11)
103
103
  simplecov_json_formatter (~> 0.1)
104
104
  simplecov-html (0.12.3)
105
- simplecov_json_formatter (0.1.3)
105
+ simplecov_json_formatter (0.1.4)
106
106
  stringio (3.0.1)
107
107
  thread_safe (0.3.6)
108
108
 
@@ -121,4 +121,4 @@ DEPENDENCIES
121
121
  simplecov
122
122
 
123
123
  BUNDLED WITH
124
- 2.2.29
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.20
1
+ 3.4.23
@@ -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]
@@ -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
 
@@ -167,6 +167,11 @@ module RubyXL
167
167
  REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject'
168
168
  end
169
169
 
170
+ class SheetMetadata < GenericStorageObject
171
+ CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml'
172
+ REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata'
173
+ end
174
+
170
175
  class ActiveX < GenericStorageObject
171
176
  REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/control'
172
177
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 3.4.20</title>
7
+ <title>README - rubyXL 3.4.23</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
 
@@ -463,7 +456,7 @@
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
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtension - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AExtension - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtensionStorageArea - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AExtensionStorageArea - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::ActiveX - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::ActiveX - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -127,7 +127,7 @@
127
127
 
128
128
 
129
129
  <div class="method-source-code" id="attach_relationship-source">
130
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/storage.rb, line 175</span>
130
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/storage.rb, line 180</span>
131
131
  <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">attach_relationship</span>(<span class="ruby-identifier">rid</span>, <span class="ruby-identifier">rf</span>)
132
132
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">rf</span>
133
133
  <span class="ruby-keyword">when</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ChartFile</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">store_relationship</span>(<span class="ruby-identifier">rf</span>) <span class="ruby-comment"># TODO</span>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::ActiveXBinary - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::ActiveXBinary - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AdjustHandleList - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AdjustHandleList - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Alignment - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::Alignment - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AlternateContent - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AlternateContent - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Authors - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::Authors - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilter - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AutoFilter - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilterColumn - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::AutoFilterColumn - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BinaryImageFile - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BinaryImageFile - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BodyProperties - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BodyProperties - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BooleanNode - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BooleanNode - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BooleanValue - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BooleanValue - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Border - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::Border - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BorderEdge - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BorderEdge - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Borders - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::Borders - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Break - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::Break - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BreakList - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::BreakList - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AdjPoint2D - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AdjPoint2D - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AlphaBiLevelEffect - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AlphaBiLevelEffect - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AlphaModulateEffect - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AlphaModulateEffect - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AlphaModulateFixedEffect - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AlphaModulateFixedEffect - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AlphaOutsetEffect - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AlphaOutsetEffect - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_AlphaReplaceEffect - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_AlphaReplaceEffect - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::CT_Backdrop - rubyXL 3.4.20</title>
7
+ <title>class RubyXL::CT_Backdrop - rubyXL 3.4.23</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";