rubyXL 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. checksums.yaml +7 -0
  2. data/README.rdoc +1 -0
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/cell.rb +5 -10
  5. data/lib/rubyXL/objects/color.rb +3 -3
  6. data/lib/rubyXL/objects/column_range.rb +4 -4
  7. data/lib/rubyXL/objects/container_nodes.rb +2 -2
  8. data/lib/rubyXL/objects/fill.rb +7 -7
  9. data/lib/rubyXL/objects/filters.rb +4 -4
  10. data/lib/rubyXL/objects/ooxml_object.rb +12 -7
  11. data/lib/rubyXL/objects/sheet_common.rb +6 -6
  12. data/lib/rubyXL/objects/sheet_data.rb +9 -9
  13. data/lib/rubyXL/objects/theme.rb +2 -0
  14. data/lib/rubyXL/objects/workbook.rb +1 -1
  15. data/lib/rubyXL/objects/worksheet.rb +11 -11
  16. data/lib/rubyXL/worksheet.rb +2 -18
  17. data/rdoc/README_rdoc.html +31 -28
  18. data/rdoc/RubyXL.html +1 -1
  19. data/rdoc/RubyXL/AExtension.html +1 -1
  20. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  21. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  22. data/rdoc/RubyXL/Alignment.html +1 -1
  23. data/rdoc/RubyXL/AlternateContent.html +1 -1
  24. data/rdoc/RubyXL/Authors.html +1 -1
  25. data/rdoc/RubyXL/AutoFilter.html +1 -1
  26. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  27. data/rdoc/RubyXL/BinaryImageFile.html +1 -1
  28. data/rdoc/RubyXL/BodyProperties.html +1 -1
  29. data/rdoc/RubyXL/BooleanNode.html +1 -1
  30. data/rdoc/RubyXL/BooleanValue.html +1 -1
  31. data/rdoc/RubyXL/Border.html +1 -1
  32. data/rdoc/RubyXL/BorderEdge.html +1 -1
  33. data/rdoc/RubyXL/Borders.html +1 -1
  34. data/rdoc/RubyXL/Break.html +1 -1
  35. data/rdoc/RubyXL/BreakList.html +1 -1
  36. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  37. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  38. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  39. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  40. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  41. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  42. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  43. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  44. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  45. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  46. data/rdoc/RubyXL/CT_Blip.html +1 -1
  47. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  48. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  49. data/rdoc/RubyXL/CT_Camera.html +1 -1
  50. data/rdoc/RubyXL/CT_Color.html +1 -1
  51. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  52. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  53. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  54. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  55. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  56. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  57. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  58. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  59. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  60. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  61. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  62. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  63. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  64. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  65. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  66. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  67. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  68. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  69. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  70. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  71. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  72. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  73. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  74. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  75. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  76. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  77. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  78. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  79. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  80. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  81. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  82. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  83. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  84. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  85. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  86. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  87. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  88. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  89. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  90. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  91. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  92. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  93. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  94. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  95. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  96. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  97. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  98. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  99. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  100. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  101. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  102. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  103. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  104. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  105. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  106. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  107. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  108. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  109. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  110. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  111. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  112. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  113. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  114. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  115. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  116. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  117. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  118. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  119. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  120. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  121. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  122. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  123. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  124. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  125. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  126. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  127. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  128. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  129. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  130. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  131. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  132. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  133. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  134. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  135. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  136. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  137. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  138. data/rdoc/RubyXL/CalculationChain.html +2 -2
  139. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  140. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  141. data/rdoc/RubyXL/Cell.html +1 -1
  142. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  143. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  144. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  145. data/rdoc/RubyXL/CellStyle.html +1 -1
  146. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  147. data/rdoc/RubyXL/CellStyles.html +1 -1
  148. data/rdoc/RubyXL/CellValue.html +2 -2
  149. data/rdoc/RubyXL/CellWatch.html +1 -1
  150. data/rdoc/RubyXL/CellWatches.html +1 -1
  151. data/rdoc/RubyXL/CellXFs.html +1 -1
  152. data/rdoc/RubyXL/ChartColorsFile.html +1 -1
  153. data/rdoc/RubyXL/ChartFile.html +1 -1
  154. data/rdoc/RubyXL/ChartRelationshipsFile.html +1 -1
  155. data/rdoc/RubyXL/ChartStyleFile.html +1 -1
  156. data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
  157. data/rdoc/RubyXL/Chartsheet.html +1 -1
  158. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  159. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  160. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  161. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  162. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  163. data/rdoc/RubyXL/Color.html +3 -3
  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/ContentTypeDefault.html +1 -1
  177. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  178. data/rdoc/RubyXL/ContentTypes.html +12 -12
  179. data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
  180. data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
  181. data/rdoc/RubyXL/CustomColor.html +1 -1
  182. data/rdoc/RubyXL/CustomColorList.html +1 -1
  183. data/rdoc/RubyXL/CustomFilter.html +1 -1
  184. data/rdoc/RubyXL/CustomFilters.html +1 -1
  185. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  186. data/rdoc/RubyXL/CustomProperties.html +1 -1
  187. data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
  188. data/rdoc/RubyXL/CustomProperty.html +1 -1
  189. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  190. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  191. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  192. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  193. data/rdoc/RubyXL/CustomXMLFile.html +1 -1
  194. data/rdoc/RubyXL/DXF.html +1 -1
  195. data/rdoc/RubyXL/DXFs.html +1 -1
  196. data/rdoc/RubyXL/DataBar.html +1 -1
  197. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  198. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  199. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  200. data/rdoc/RubyXL/DataType.html +1 -1
  201. data/rdoc/RubyXL/DataValidation.html +1 -1
  202. data/rdoc/RubyXL/DataValidations.html +1 -1
  203. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  204. data/rdoc/RubyXL/DefinedName.html +1 -1
  205. data/rdoc/RubyXL/DefinedNames.html +1 -1
  206. data/rdoc/RubyXL/DocumentPropertiesFile.html +6 -6
  207. data/rdoc/RubyXL/DrawingFile.html +1 -1
  208. data/rdoc/RubyXL/DrawingRelationshipsFile.html +1 -1
  209. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  210. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  211. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  212. data/rdoc/RubyXL/Extension.html +1 -1
  213. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  214. data/rdoc/RubyXL/Extents.html +1 -1
  215. data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
  216. data/rdoc/RubyXL/ExternalReference.html +1 -1
  217. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  218. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  219. data/rdoc/RubyXL/FieldItem.html +1 -1
  220. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  221. data/rdoc/RubyXL/FileSharing.html +1 -1
  222. data/rdoc/RubyXL/FileVersion.html +1 -1
  223. data/rdoc/RubyXL/Fill.html +1 -1
  224. data/rdoc/RubyXL/Fills.html +1 -1
  225. data/rdoc/RubyXL/FilterContainer.html +1 -1
  226. data/rdoc/RubyXL/FloatNode.html +1 -1
  227. data/rdoc/RubyXL/FloatValue.html +1 -1
  228. data/rdoc/RubyXL/Font.html +3 -3
  229. data/rdoc/RubyXL/FontScheme.html +1 -1
  230. data/rdoc/RubyXL/Fonts.html +1 -1
  231. data/rdoc/RubyXL/Formula.html +1 -1
  232. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  233. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  234. data/rdoc/RubyXL/GenericStorageObject.html +3 -3
  235. data/rdoc/RubyXL/GradientFill.html +1 -1
  236. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  237. data/rdoc/RubyXL/Hyperlink.html +1 -1
  238. data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
  239. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  240. data/rdoc/RubyXL/IconFilter.html +1 -1
  241. data/rdoc/RubyXL/IconSet.html +1 -1
  242. data/rdoc/RubyXL/IgnoredError.html +1 -1
  243. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  244. data/rdoc/RubyXL/IndexedColors.html +1 -1
  245. data/rdoc/RubyXL/InputCells.html +1 -1
  246. data/rdoc/RubyXL/IntegerNode.html +1 -1
  247. data/rdoc/RubyXL/IntegerValue.html +1 -1
  248. data/rdoc/RubyXL/LegacyCell.html +67 -31
  249. data/rdoc/RubyXL/LegacyWorkbook.html +9 -9
  250. data/rdoc/RubyXL/LegacyWorksheet.html +29 -29
  251. data/rdoc/RubyXL/MRUColors.html +1 -1
  252. data/rdoc/RubyXL/MacrosFile.html +1 -1
  253. data/rdoc/RubyXL/MergedCell.html +1 -1
  254. data/rdoc/RubyXL/MergedCells.html +1 -1
  255. data/rdoc/RubyXL/NumFmt.html +1 -1
  256. data/rdoc/RubyXL/NumberFormat.html +2 -2
  257. data/rdoc/RubyXL/NumberFormats.html +1 -1
  258. data/rdoc/RubyXL/OLEObject.html +1 -1
  259. data/rdoc/RubyXL/OLEObjects.html +1 -1
  260. data/rdoc/RubyXL/OLESize.html +1 -1
  261. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  262. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  263. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +21 -19
  264. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  265. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +7 -7
  266. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  267. data/rdoc/RubyXL/Offset.html +1 -1
  268. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  269. data/rdoc/RubyXL/PageMargins.html +1 -1
  270. data/rdoc/RubyXL/PageSetup.html +1 -1
  271. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  272. data/rdoc/RubyXL/Pane.html +1 -1
  273. data/rdoc/RubyXL/Parser.html +1 -1
  274. data/rdoc/RubyXL/PatternFill.html +1 -1
  275. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  276. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  277. data/rdoc/RubyXL/PivotArea.html +1 -1
  278. data/rdoc/RubyXL/PivotCache.html +1 -1
  279. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
  280. data/rdoc/RubyXL/PivotCaches.html +1 -1
  281. data/rdoc/RubyXL/PivotReference.html +1 -1
  282. data/rdoc/RubyXL/PivotReferences.html +1 -1
  283. data/rdoc/RubyXL/PivotTableFile.html +1 -1
  284. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  285. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  286. data/rdoc/RubyXL/PrintOptions.html +1 -1
  287. data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
  288. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  289. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  290. data/rdoc/RubyXL/Protection.html +1 -1
  291. data/rdoc/RubyXL/RID.html +1 -1
  292. data/rdoc/RubyXL/RawOOXML.html +1 -1
  293. data/rdoc/RubyXL/Reference.html +5 -5
  294. data/rdoc/RubyXL/Relationship.html +1 -1
  295. data/rdoc/RubyXL/RelationshipSupport.html +1 -1
  296. data/rdoc/RubyXL/RichText.html +1 -1
  297. data/rdoc/RubyXL/RichTextRun.html +1 -1
  298. data/rdoc/RubyXL/RootRelationships.html +1 -1
  299. data/rdoc/RubyXL/Row.html +1 -1
  300. data/rdoc/RubyXL/RunProperties.html +1 -1
  301. data/rdoc/RubyXL/Scenario.html +1 -1
  302. data/rdoc/RubyXL/Scenarios.html +1 -1
  303. data/rdoc/RubyXL/Selection.html +1 -1
  304. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  305. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  306. data/rdoc/RubyXL/SharedStringsTable.html +2 -2
  307. data/rdoc/RubyXL/Sheet.html +1 -1
  308. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  309. data/rdoc/RubyXL/SheetData.html +1 -1
  310. data/rdoc/RubyXL/SheetRelationshipsFile.html +1 -1
  311. data/rdoc/RubyXL/Sheets.html +1 -1
  312. data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
  313. data/rdoc/RubyXL/SlicerFile.html +1 -1
  314. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  315. data/rdoc/RubyXL/SmartTagType.html +1 -1
  316. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  317. data/rdoc/RubyXL/SmartTags.html +1 -1
  318. data/rdoc/RubyXL/SortCondition.html +1 -1
  319. data/rdoc/RubyXL/SortState.html +1 -1
  320. data/rdoc/RubyXL/Sqref.html +2 -2
  321. data/rdoc/RubyXL/Stop.html +2 -2
  322. data/rdoc/RubyXL/StringNode.html +1 -1
  323. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  324. data/rdoc/RubyXL/StringValue.html +1 -1
  325. data/rdoc/RubyXL/Stylesheet.html +1 -1
  326. data/rdoc/RubyXL/TableFile.html +1 -1
  327. data/rdoc/RubyXL/TableParts.html +1 -1
  328. data/rdoc/RubyXL/TableStyle.html +1 -1
  329. data/rdoc/RubyXL/TableStyles.html +1 -1
  330. data/rdoc/RubyXL/Text.html +2 -2
  331. data/rdoc/RubyXL/Theme.html +1 -1
  332. data/rdoc/RubyXL/ThemeElements.html +1 -1
  333. data/rdoc/RubyXL/ThumbnailFile.html +1 -1
  334. data/rdoc/RubyXL/Top10.html +1 -1
  335. data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
  336. data/rdoc/RubyXL/Variant.html +1 -1
  337. data/rdoc/RubyXL/Vector.html +1 -1
  338. data/rdoc/RubyXL/VectorValue.html +1 -1
  339. data/rdoc/RubyXL/VisualProperties.html +1 -1
  340. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  341. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  342. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  343. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  344. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  345. data/rdoc/RubyXL/Workbook.html +1 -1
  346. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  347. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  348. data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
  349. data/rdoc/RubyXL/WorkbookRoot.html +2 -2
  350. data/rdoc/RubyXL/WorkbookView.html +1 -1
  351. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  352. data/rdoc/RubyXL/Worksheet.html +1 -1
  353. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  354. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  355. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  356. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  357. data/rdoc/RubyXL/WorksheetView.html +1 -1
  358. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  359. data/rdoc/RubyXL/XF.html +1 -1
  360. data/rdoc/created.rid +37 -37
  361. data/rdoc/index.html +2 -2
  362. data/rdoc/js/search_index.js +1 -1
  363. data/rdoc/table_of_contents.html +68 -63
  364. data/rubyXL.gemspec +6 -5
  365. data/spec/lib/worksheet_spec.rb +31 -3
  366. metadata +92 -80
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7a54bc20d6cdffb9452628d880575ec195885077
4
+ data.tar.gz: 0c2421c0e01f4c35c4e9aa93ff9c11268e8da399
5
+ SHA512:
6
+ metadata.gz: 579c2a42754270f6c796647e1d46bd282a9806ca21056ae194929dab205aaf6571505289038e67e4d3befed6492d8514f170fb5cff941e1a2b9dbe5a4d38b58f
7
+ data.tar.gz: 28261b6ba4913eec6b9bba20c8a21875d35489581791845ce70869f3e9346395f9badadec97e037e29c97880d912febf9d90d7ce88b78412a8b9f0b9cdd04219
data/README.rdoc CHANGED
@@ -1,4 +1,5 @@
1
1
  = rubyXL
2
+ {<img src="https://codeclimate.com/github/weshatheleopard/rubyXL.png">}[https://codeclimate.com/github/weshatheleopard/rubyXL]
2
3
 
3
4
  == To Install:
4
5
  gem install rubyXL
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1
1
+ 3.0.2
data/lib/rubyXL/cell.rb CHANGED
@@ -114,27 +114,27 @@ module RubyXL
114
114
  self.style_index = workbook.modify_text_wrap(self.style_index, wrap)
115
115
  end
116
116
 
117
- # changes top border of cell
117
+ def change_border(direction, weight)
118
+ validate_worksheet
119
+ self.style_index = workbook.modify_border(self.style_index, direction, weight)
120
+ end
121
+
118
122
  def change_border_top(weight = 'thin')
119
123
  change_border(:top, weight)
120
124
  end
121
125
 
122
- # changes left border of cell
123
126
  def change_border_left(weight = 'thin')
124
127
  change_border(:left, weight)
125
128
  end
126
129
 
127
- # changes right border of cell
128
130
  def change_border_right(weight = 'thin')
129
131
  change_border(:right, weight)
130
132
  end
131
133
 
132
- # changes bottom border of cell
133
134
  def change_border_bottom(weight = 'thin')
134
135
  change_border(:bottom, weight)
135
136
  end
136
137
 
137
- # changes diagonal border of cell
138
138
  def change_border_diagonal(weight = 'thin')
139
139
  change_border(:diagonal, weight)
140
140
  end
@@ -258,11 +258,6 @@ module RubyXL
258
258
 
259
259
  private
260
260
 
261
- def change_border(direction, weight)
262
- validate_worksheet
263
- self.style_index = workbook.modify_border(self.style_index, direction, weight)
264
- end
265
-
266
261
  def get_border(direction)
267
262
  validate_worksheet
268
263
  get_cell_border.get_edge_style(direction)
@@ -5,10 +5,10 @@ module RubyXL
5
5
  # http://www.schemacentral.com/sc/ooxml/e-ssml_color-4.html
6
6
  class Color < OOXMLObject
7
7
  define_attribute(:auto, :bool)
8
- define_attribute(:indexed, :int)
8
+ define_attribute(:indexed, :uint)
9
9
  define_attribute(:rgb, :string)
10
- define_attribute(:theme, :int)
11
- define_attribute(:tint, :float)
10
+ define_attribute(:theme, :uint)
11
+ define_attribute(:tint, :double, :default => 0.0)
12
12
  define_element_name 'color'
13
13
 
14
14
  #validates hex color code, no '#' allowed
@@ -4,10 +4,10 @@ module RubyXL
4
4
 
5
5
  # http://www.schemacentral.com/sc/ooxml/e-ssml_col-1.html
6
6
  class ColumnRange < OOXMLObject
7
- define_attribute(:min, :int, :required => true)
8
- define_attribute(:max, :int, :required => true)
9
- define_attribute(:width, :float)
10
- define_attribute(:style, :int, :default => 0, :accessor => :style_index)
7
+ define_attribute(:min, :uint, :required => true)
8
+ define_attribute(:max, :uint, :required => true)
9
+ define_attribute(:width, :double)
10
+ define_attribute(:style, :uint, :default => 0, :accessor => :style_index)
11
11
  define_attribute(:hidden, :bool, :default => false)
12
12
  define_attribute(:bestFit, :bool, :default => false)
13
13
  define_attribute(:customWidth, :bool, :default => false)
@@ -16,7 +16,7 @@ module RubyXL
16
16
  end
17
17
 
18
18
  class FloatValue < OOXMLObject
19
- define_attribute(:val, :float, :required => true)
19
+ define_attribute(:val, :double, :required => true)
20
20
  end
21
21
 
22
22
  class BooleanNode < OOXMLObject
@@ -32,7 +32,7 @@ module RubyXL
32
32
  end
33
33
 
34
34
  class FloatNode < OOXMLObject
35
- define_attribute(:_, :float, :accessor => :value)
35
+ define_attribute(:_, :double, :accessor => :value)
36
36
  end
37
37
 
38
38
  class StringNodeW3C < OOXMLObject
@@ -3,9 +3,9 @@ require 'rubyXL/objects/simple_types'
3
3
 
4
4
  module RubyXL
5
5
 
6
- # http://www.schemacentral.com/sc/ooxml/e-ssml_gradientFill-1.html
6
+ # http://www.datypic.com/sc/ooxml/e-ssml_stop-1.html
7
7
  class Stop < OOXMLObject
8
- define_attribute(:position, :float)
8
+ define_attribute(:position, :double, :required => true)
9
9
  define_child_node(RubyXL::Color)
10
10
  define_element_name 'stop'
11
11
  end
@@ -21,11 +21,11 @@ module RubyXL
21
21
  # http://www.schemacentral.com/sc/ooxml/e-ssml_gradientFill-1.html
22
22
  class GradientFill < OOXMLObject
23
23
  define_attribute(:type, RubyXL::ST_GradientType, :default => 'linear')
24
- define_attribute(:degree, :float, :default => 0)
25
- define_attribute(:left, :float, :default => 0)
26
- define_attribute(:right, :float, :default => 0)
27
- define_attribute(:top, :float, :default => 0)
28
- define_attribute(:bottom, :float, :default => 0)
24
+ define_attribute(:degree, :double, :default => 0)
25
+ define_attribute(:left, :double, :default => 0)
26
+ define_attribute(:right, :double, :default => 0)
27
+ define_attribute(:top, :double, :default => 0)
28
+ define_attribute(:bottom, :double, :default => 0)
29
29
  define_child_node(RubyXL::Stop, :collection => true)
30
30
  define_element_name 'gradientFill'
31
31
  end
@@ -29,8 +29,8 @@ module RubyXL
29
29
  class Top10 < OOXMLObject
30
30
  define_attribute(:top, :bool, :default => true)
31
31
  define_attribute(:percent, :bool, :default => false)
32
- define_attribute(:val, :float, :required => true)
33
- define_attribute(:filterVal, :float)
32
+ define_attribute(:val, :double, :required => true)
33
+ define_attribute(:filterVal, :double)
34
34
  define_element_name 'top10'
35
35
  end
36
36
 
@@ -51,8 +51,8 @@ module RubyXL
51
51
  # http://www.schemacentral.com/sc/ooxml/e-ssml_dynamicFilter-1.html
52
52
  class DynamicFilter < OOXMLObject
53
53
  define_attribute(:type, RubyXL::ST_DynamicFilterType, :required => true)
54
- define_attribute(:val, :float)
55
- define_attribute(:maxVal, :float)
54
+ define_attribute(:val, :double)
55
+ define_attribute(:maxVal, :double)
56
56
  define_element_name 'dynamicFilter'
57
57
  end
58
58
 
@@ -24,7 +24,8 @@ module RubyXL
24
24
  # * Special attibute name <tt>'_'</tt> (underscore) denotes the value of the element rather than attribute.
25
25
  # * +attribute_type+ - Specifies the conversion type for the attribute when parsing. Available options are:
26
26
  # * +:int+ - <tt>Integer</tt>
27
- # * +:float+ - <tt>Float</tt>
27
+ # * +:uint+ - Unsigned <tt>Integer</tt>
28
+ # * +:double+ - <tt>Float</tt></u>
28
29
  # * +:string+ - <tt>String</tt> (no conversion)
29
30
  # * +:sqref+ - RubyXL::Sqref
30
31
  # * +:ref+ - RubyXL::Reference
@@ -89,7 +90,7 @@ module RubyXL
89
90
  end
90
91
 
91
92
  def define_count_attribute
92
- define_attribute(:count, :int, :required => true)
93
+ define_attribute(:count, :uint, :required => true)
93
94
  end
94
95
  private :define_count_attribute
95
96
 
@@ -190,13 +191,17 @@ module RubyXL
190
191
  def process_attribute(obj, raw_value, params)
191
192
  val = raw_value &&
192
193
  case params[:attr_type]
193
- when :int then Integer(raw_value)
194
- when :float then Float(raw_value)
194
+ when :double then Float(raw_value) # http://www.datypic.com/sc/xsd/t-xsd_double.html
195
195
  when :string then raw_value
196
196
  when Array then raw_value # Case of Simple Types
197
197
  when :sqref then RubyXL::Sqref.new(raw_value)
198
198
  when :ref then RubyXL::Reference.new(raw_value)
199
199
  when :bool then ['1', 'true'].include?(raw_value)
200
+ when :int then Integer(raw_value)
201
+ when :uint then
202
+ v = Integer(raw_value)
203
+ raise ArgumentError.new("invalid value for unsigned Integer(): \"#{raw_value}\"") if v < 0
204
+ v
200
205
  end
201
206
  obj.send("#{params[:accessor]}=", val)
202
207
  end
@@ -275,8 +280,8 @@ module RubyXL
275
280
 
276
281
  val = val &&
277
282
  case v[:attr_type]
278
- when :bool then val ? '1' : '0'
279
- when :float then val.to_s.gsub(/\.0*\Z/, '') # Trim trailing zeroes
283
+ when :bool then val ? '1' : '0'
284
+ when :double then val.to_s.gsub(/\.0*\Z/, '') # Trim trailing zeroes
280
285
  else val
281
286
  end
282
287
 
@@ -385,7 +390,7 @@ module RubyXL
385
390
  class << self
386
391
  def define_count_attribute
387
392
  # Count will be inherited from Array. so no need to define it explicitly.
388
- define_attribute(:count, :int, :required => true, :computed => true)
393
+ define_attribute(:count, :uint, :required => true, :computed => true)
389
394
  end
390
395
  protected :define_count_attribute
391
396
  end
@@ -23,12 +23,12 @@ module RubyXL
23
23
 
24
24
  # http://www.schemacentral.com/sc/ooxml/e-ssml_pageMargins-1.html
25
25
  class PageMargins < OOXMLObject
26
- define_attribute(:left, :float, :required => true)
27
- define_attribute(:right, :float, :required => true)
28
- define_attribute(:top, :float, :required => true)
29
- define_attribute(:bottom, :float, :required => true)
30
- define_attribute(:header, :float, :required => true)
31
- define_attribute(:footer, :float, :required => true)
26
+ define_attribute(:left, :double, :required => true)
27
+ define_attribute(:right, :double, :required => true)
28
+ define_attribute(:top, :double, :required => true)
29
+ define_attribute(:bottom, :double, :required => true)
30
+ define_attribute(:header, :double, :required => true)
31
+ define_attribute(:footer, :double, :required => true)
32
32
  define_element_name 'pageMargins'
33
33
  end
34
34
 
@@ -98,7 +98,7 @@ module RubyXL
98
98
  define_attribute(:spans, :string)
99
99
  define_attribute(:s, :int, :default => 0, :accessor => :style_index)
100
100
  define_attribute(:customFormat, :bool, :default => false)
101
- define_attribute(:ht, :float)
101
+ define_attribute(:ht, :double)
102
102
  define_attribute(:hidden, :bool, :default => false)
103
103
  define_attribute(:customHeight, :bool, :default => false)
104
104
  define_attribute(:outlineLevel, :int, :default => 0)
@@ -125,21 +125,21 @@ module RubyXL
125
125
 
126
126
  def insert_cell_shift_right(c, col_index)
127
127
  cells.insert(col_index, c)
128
- col_index.upto(cells.size) { |col|
129
- cell = cells[col]
130
- next if cell.nil?
131
- cell.column = col
132
- }
128
+ update_cell_coords(col_index)
133
129
  end
134
130
 
135
131
  def delete_cell_shift_left(col_index)
136
132
  cells.delete_at(col_index)
137
- col_index.upto(cells.size) { |col|
138
- cell = cells[col]
133
+ update_cell_coords(col_index)
134
+ end
135
+
136
+ def update_cell_coords(start_from_index)
137
+ cells.drop(start_from_index).each_with_index { |cell, i|
139
138
  next if cell.nil?
140
- cell.column = col
139
+ cell.column = start_from_index + i
141
140
  }
142
141
  end
142
+ private :update_cell_coords
143
143
 
144
144
  def xf
145
145
  @worksheet.workbook.cell_xfs[self.style_index || 0]
@@ -29,6 +29,7 @@ module RubyXL
29
29
 
30
30
  # http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
31
31
  class CT_ScRgbColor < OOXMLObject
32
+ # -- Choice [0..*] (a:EG_ColorTransform)
32
33
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
33
34
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
34
35
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
@@ -65,6 +66,7 @@ module RubyXL
65
66
 
66
67
  # http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
67
68
  class CT_SRgbColor < OOXMLObject
69
+ # -- Choice [0..*] (a:EG_ColorTransform)
68
70
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
69
71
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
70
72
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
@@ -188,7 +188,7 @@ module RubyXL
188
188
  define_attribute(:refMode, RubyXL::ST_RefMode, :default => 'A1')
189
189
  define_attribute(:iterate, :bool, :default => false)
190
190
  define_attribute(:iterateCount, :int, :default => 100)
191
- define_attribute(:iterateDelta, :float, :default => 0.001)
191
+ define_attribute(:iterateDelta, :double, :default => 0.001)
192
192
  define_attribute(:fullPrecision, :bool, :default => true)
193
193
  define_attribute(:calcCompleted, :bool, :default => true)
194
194
  define_attribute(:calcOnSave, :bool, :default => true)
@@ -53,15 +53,15 @@ module RubyXL
53
53
  end
54
54
 
55
55
  class WorksheetFormatProperties < OOXMLObject
56
- define_attribute(:baseColWidth, :int, :default => 8)
57
- define_attribute(:defaultColWidth, :float)
58
- define_attribute(:defaultRowHeight, :float, :required => true)
59
- define_attribute(:customHeight, :bool, :default => false)
60
- define_attribute(:zeroHeight, :bool, :default => false)
61
- define_attribute(:thickTop, :bool, :default => false)
62
- define_attribute(:thickBottom, :bool, :default => false)
63
- define_attribute(:outlineLevelRow, :int, :default => 0)
64
- define_attribute(:outlineLevelCol, :int, :default => 0)
56
+ define_attribute(:baseColWidth, :int, :default => 8)
57
+ define_attribute(:defaultColWidth, :double)
58
+ define_attribute(:defaultRowHeight, :double, :required => true)
59
+ define_attribute(:customHeight, :bool, :default => false)
60
+ define_attribute(:zeroHeight, :bool, :default => false)
61
+ define_attribute(:thickTop, :bool, :default => false)
62
+ define_attribute(:thickBottom, :bool, :default => false)
63
+ define_attribute(:outlineLevelRow, :int, :default => 0)
64
+ define_attribute(:outlineLevelCol, :int, :default => 0)
65
65
  define_element_name 'sheetFormatPr'
66
66
  end
67
67
 
@@ -355,8 +355,8 @@ module RubyXL
355
355
 
356
356
  # http://www.schemacentral.com/sc/ooxml/e-ssml_pane-1.html
357
357
  class Pane < OOXMLObject
358
- define_attribute(:xSplit, :int)
359
- define_attribute(:ySplit, :int)
358
+ define_attribute(:xSplit, :double)
359
+ define_attribute(:ySplit, :double)
360
360
  define_attribute(:topLeftCell, :string)
361
361
  define_attribute(:activePane, RubyXL::ST_Pane, :default => 'topLeft', )
362
362
  define_attribute(:state, RubyXL::ST_PaneState, :default=> 'split')
@@ -900,15 +900,7 @@ module LegacyWorksheet
900
900
  sheet_data.rows[row].style_index = @workbook.modify_border(get_row_style(row), direction, weight)
901
901
 
902
902
  sheet_data[row].cells.each { |c|
903
- next if c.nil?
904
- case direction
905
- when :top then c.change_border_top(weight)
906
- when :left then c.change_border_left(weight)
907
- when :right then c.change_border_right(weight)
908
- when :bottom then c.change_border_bottom(weight)
909
- when :diagonal then c.change_border_diagonal(weight)
910
- else raise 'invalid direction'
911
- end
903
+ c.change_border(direction, weight) unless c.nil?
912
904
  }
913
905
  end
914
906
 
@@ -920,15 +912,7 @@ module LegacyWorksheet
920
912
 
921
913
  sheet_data.rows.each { |row|
922
914
  c = row.cells[column_index]
923
- next if c.nil?
924
- case direction
925
- when :top then c.change_border_top(weight)
926
- when :left then c.change_border_left(weight)
927
- when :right then c.change_border_right(weight)
928
- when :bottom then c.change_border_bottom(weight)
929
- when :diagonal then c.change_border_diagonal(weight)
930
- else raise 'invalid direction'
931
- end
915
+ c.change_border(direction, weight) unless c.nil?
932
916
  }
933
917
  end
934
918
 
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 3.0.1</title>
7
+ <title>README - rubyXL 3.0.2</title>
8
8
 
9
9
  <link href="./fonts.css" rel="stylesheet">
10
10
  <link href="./rdoc.css" rel="stylesheet">
@@ -119,13 +119,16 @@
119
119
 
120
120
  <h1 id="label-rubyXL">rubyXL<span><a href="#label-rubyXL">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
121
121
 
122
+ <p><a href="https://codeclimate.com/github/weshatheleopard/rubyXL"><img
123
+ src="https://codeclimate.com/github/weshatheleopard/rubyXL.png"></a></p>
124
+
122
125
  <h2 id="label-To+Install%3A">To Install:<span><a href="#label-To+Install%3A">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
123
126
 
124
127
  <pre>gem install rubyXL</pre>
125
128
 
126
129
  <h2 id="label-To+Use%3A">To Use:<span><a href="#label-To+Use%3A">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
127
130
 
128
- <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'rubyXL'</span> <span class="ruby-comment"># Assuming rubygems is already required</span>
131
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;rubyXL&#39;</span> <span class="ruby-comment"># Assuming rubygems is already required</span>
129
132
  </pre>
130
133
 
131
134
  <h3 id="label-Parsing+an+existing+workbook">Parsing an existing workbook<span><a href="#label-Parsing+an+existing+workbook">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
@@ -142,7 +145,7 @@
142
145
 
143
146
  <pre>workbook.worksheets[0] # Returns first worksheet
144
147
  workbook[0] # Returns first worksheet
145
- workbook['Sheet1'] # Finds and returns worksheet titled &quot;Sheet1&quot;</pre>
148
+ workbook[&#39;Sheet1&#39;] # Finds and returns worksheet titled &quot;Sheet1&quot;</pre>
146
149
 
147
150
  <h4 id="label-Accessing+just+the+values">Accessing just the values<span><a href="#label-Accessing+just+the+values">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
148
151
 
@@ -226,16 +229,16 @@ worksheet.get_column_border_right(0)</pre>
226
229
 
227
230
  <h4 id="label-Adding+Worksheets">Adding Worksheets<span><a href="#label-Adding+Worksheets">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
228
231
 
229
- <pre>worksheet = workbook.add_worksheet('Sheet2')</pre>
232
+ <pre>worksheet = workbook.add_worksheet(&#39;Sheet2&#39;)</pre>
230
233
 
231
234
  <h4 id="label-Renaming+Worksheets">Renaming Worksheets<span><a href="#label-Renaming+Worksheets">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
232
235
 
233
- <pre>worksheet.sheet_name = 'Cool New Name'</pre>
236
+ <pre>worksheet.sheet_name = &#39;Cool New Name&#39;</pre>
234
237
 
235
238
  <h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
236
239
 
237
- <pre>worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string &quot;A1&quot;
238
- worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
240
+ <pre>worksheet.add_cell(0, 0, &#39;A1&#39;) # Sets cell A1 to string &quot;A1&quot;
241
+ worksheet.add_cell(0, 1, &#39;&#39;, &#39;A1&#39;) # Sets formula in the cell B1 to &#39;=A1&#39;</pre>
239
242
 
240
243
  <h4 id="label-Changing+Cells">Changing Cells<span><a href="#label-Changing+Cells">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
241
244
 
@@ -245,21 +248,21 @@ worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
245
248
 
246
249
  <pre>worksheet.sheet_data[0][0].change_font_bold(true) # Makes A1 bold
247
250
  worksheet.change_row_italics(0,true) # Makes first row italicized
248
- worksheet.change_column_font_name(0, 'Courier') # Makes first column have font Courier</pre>
251
+ worksheet.change_column_font_name(0, &#39;Courier&#39;) # Makes first column have font Courier</pre>
249
252
 
250
253
  <h4 id="label-Changing+Fills+++++">Changing Fills <span><a href="#label-Changing+Fills+++++">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
251
254
 
252
- <pre>worksheet.sheet_data[0][0].change_fill('0ba53d') # Sets A1 to have fill #0ba53d
253
- worksheet.change_row_fill(0, '0ba53d') # Sets first row to have fill #0ba53d
254
- worksheet.change_column_fill(0, '0ba53d') # Sets first column to have fill #0ba53d</pre>
255
+ <pre>worksheet.sheet_data[0][0].change_fill(&#39;0ba53d&#39;) # Sets A1 to have fill #0ba53d
256
+ worksheet.change_row_fill(0, &#39;0ba53d&#39;) # Sets first row to have fill #0ba53d
257
+ worksheet.change_column_fill(0, &#39;0ba53d&#39;) # Sets first column to have fill #0ba53d</pre>
255
258
 
256
259
  <h4 id="label-Changing+Borders">Changing Borders<span><a href="#label-Changing+Borders">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
257
260
 
258
261
  <pre># Possible weights: hairline, thin, medium, thick
259
262
  # Possible &quot;directions&quot;: top, bottom, left, right, diagonal
260
- worksheet.sheet_data[0][0].change_border_top('thin') # Sets A1 to have a top, thin border
261
- worksheet.change_row_border_left(0, 'hairline') # Sets first row to have a left, hairline border
262
- worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have diagonal, medium border</pre>
263
+ worksheet.sheet_data[0][0].change_border_top(&#39;thin&#39;) # Sets A1 to have a top, thin border
264
+ worksheet.change_row_border_left(0, &#39;hairline&#39;) # Sets first row to have a left, hairline border
265
+ worksheet.change_column_border_diagonal(0, &#39;medium&#39;) # Sets first column to have diagonal, medium border</pre>
263
266
 
264
267
  <h4 id="label-Changing+Alignment">Changing Alignment<span><a href="#label-Changing+Alignment">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
265
268
 
@@ -267,17 +270,17 @@ worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have
267
270
 
268
271
  <p>center, distributed, justify, left, right</p>
269
272
 
270
- <pre>worksheet.sheet_data[0][0].change_horizontal_alignment('center') # Sets A1 to be centered
271
- worksheet.change_row_horizontal_alignment(0, 'justify') # Sets first row to be justified
272
- worksheet.change_column_horizontal_alignment(0, 'right') # Sets first column to be right-aligned</pre>
273
+ <pre>worksheet.sheet_data[0][0].change_horizontal_alignment(&#39;center&#39;) # Sets A1 to be centered
274
+ worksheet.change_row_horizontal_alignment(0, &#39;justify&#39;) # Sets first row to be justified
275
+ worksheet.change_column_horizontal_alignment(0, &#39;right&#39;) # Sets first column to be right-aligned</pre>
273
276
 
274
277
  <h5 id="label-Vertical">Vertical<span><a href="#label-Vertical">&para;</a> <a href="#documentation">&uarr;</a></span></h5>
275
278
 
276
279
  <p>bottom, center, distributed, top</p>
277
280
 
278
- <pre>worksheet.sheet_data[0][0].change_vertical_alignment('bottom') # Sets A1 to be bottom aligned
279
- worksheet.change_row_vertical_alignment(0, 'distributed') # Sets first row to be distributed vertically
280
- worksheet.change_column_vertical_alignment(0, 'top') # Sets first column to be top aligned</pre>
281
+ <pre>worksheet.sheet_data[0][0].change_vertical_alignment(&#39;bottom&#39;) # Sets A1 to be bottom aligned
282
+ worksheet.change_row_vertical_alignment(0, &#39;distributed&#39;) # Sets first row to be distributed vertically
283
+ worksheet.change_column_vertical_alignment(0, &#39;top&#39;) # Sets first column to be top aligned</pre>
281
284
 
282
285
  <h4 id="label-Changing+Row+Height">Changing Row Height<span><a href="#label-Changing+Row+Height">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
283
286
 
@@ -364,8 +367,8 @@ worksheet.delete_cell(0, 0) # Deletes A1, does not shift cells</pre>
364
367
 
365
368
  <h3 id="label-Miscellaneous">Miscellaneous<span><a href="#label-Miscellaneous">&para;</a> <a href="#documentation">&uarr;</a></span></h3>
366
369
 
367
- <pre>Reference.ind2ref(0,0) == 'A1' # Converts row and column index to Excel-style cell reference
368
- Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row and column index</pre>
370
+ <pre>Reference.ind2ref(0,0) == &#39;A1&#39; # Converts row and column index to Excel-style cell reference
371
+ Reference.ref2ind(&#39;A1&#39;) == [0, 0] # Converts Excel-style cell reference to row and column index</pre>
369
372
 
370
373
  <h2 id="label-For+more+information">For more information<span><a href="#label-For+more+information">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
371
374
 
@@ -373,11 +376,11 @@ Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row a
373
376
 
374
377
  <h2 id="label-Contributing+to+rubyXL">Contributing to rubyXL<span><a href="#label-Contributing+to+rubyXL">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
375
378
  <ul><li>
376
- <p>Check out the latest master to make sure the feature hasnt been
377
- implemented or the bug hasnt been fixed yet</p>
379
+ <p>Check out the latest master to make sure the feature hasn&#39;t been
380
+ implemented or the bug hasn&#39;t been fixed yet</p>
378
381
  </li><li>
379
- <p>Check out the issue tracker to make sure someone already hasnt requested
380
- it and/or contributed it</p>
382
+ <p>Check out the issue tracker to make sure someone already hasn&#39;t
383
+ requested it and/or contributed it</p>
381
384
  </li><li>
382
385
  <p>Fork the project</p>
383
386
  </li><li>
@@ -385,8 +388,8 @@ it and/or contributed it</p>
385
388
  </li><li>
386
389
  <p>Commit and push until you are happy with your contribution</p>
387
390
  </li><li>
388
- <p>Make sure to add tests for it. This is important so I dont break it in a
389
- future version unintentionally.</p>
391
+ <p>Make sure to add tests for it. This is important so I don&#39;t break it in
392
+ a future version unintentionally.</p>
390
393
  </li><li>
391
394
  <p>Please try not to mess with the Rakefile, version, or history. If you want
392
395
  to have your own version, or is otherwise necessary, that is fine, but