rubyXL 3.3.21 → 3.3.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +7 -0
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/convenience_methods.rb +63 -0
  5. data/lib/rubyXL/objects/border.rb +29 -1
  6. data/lib/rubyXL/objects/comments.rb +2 -2
  7. data/lib/rubyXL/objects/font.rb +4 -4
  8. data/rdoc/README_rdoc.html +8 -1
  9. data/rdoc/RubyXL.html +1 -1
  10. data/rdoc/RubyXL/AExtension.html +1 -1
  11. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  12. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  13. data/rdoc/RubyXL/Alignment.html +1 -1
  14. data/rdoc/RubyXL/AlternateContent.html +1 -1
  15. data/rdoc/RubyXL/Authors.html +1 -1
  16. data/rdoc/RubyXL/AutoFilter.html +1 -1
  17. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  18. data/rdoc/RubyXL/BinaryImageFile.html +1 -1
  19. data/rdoc/RubyXL/BodyProperties.html +1 -1
  20. data/rdoc/RubyXL/BooleanNode.html +1 -1
  21. data/rdoc/RubyXL/BooleanValue.html +1 -1
  22. data/rdoc/RubyXL/Border.html +86 -4
  23. data/rdoc/RubyXL/BorderEdge.html +87 -1
  24. data/rdoc/RubyXL/Borders.html +2 -2
  25. data/rdoc/RubyXL/Break.html +1 -1
  26. data/rdoc/RubyXL/BreakList.html +1 -1
  27. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  28. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  29. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  30. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  31. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  32. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  33. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  34. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  35. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  36. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  37. data/rdoc/RubyXL/CT_Blip.html +1 -1
  38. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  39. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  40. data/rdoc/RubyXL/CT_Camera.html +1 -1
  41. data/rdoc/RubyXL/CT_Color.html +1 -1
  42. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  43. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  44. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  45. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  46. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  47. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  48. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  49. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  50. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  51. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  52. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  53. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  54. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  55. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  56. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  57. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  58. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  59. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  60. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  61. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  62. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  63. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  64. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  65. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  66. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  67. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  68. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  69. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  70. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  71. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  72. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  73. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  74. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  75. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  76. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  77. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  78. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  79. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  80. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  81. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  82. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  83. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  84. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  85. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  86. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  87. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  88. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  89. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  90. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  91. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  92. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  93. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  94. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  95. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  96. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  97. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  98. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  99. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  100. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  101. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  102. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  103. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  104. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  105. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  106. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  107. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  108. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  109. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  110. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  111. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  112. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  113. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  114. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  115. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  116. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  117. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  118. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  119. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  120. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  121. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  122. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  123. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  124. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  125. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  126. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  127. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  128. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  129. data/rdoc/RubyXL/CalculationChain.html +1 -1
  130. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  131. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  132. data/rdoc/RubyXL/Cell.html +1 -1
  133. data/rdoc/RubyXL/CellConvenienceMethods.html +101 -28
  134. data/rdoc/RubyXL/CellExt.html +1 -1
  135. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  136. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  137. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  138. data/rdoc/RubyXL/CellStyle.html +1 -1
  139. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  140. data/rdoc/RubyXL/CellStyles.html +1 -1
  141. data/rdoc/RubyXL/CellValue.html +1 -1
  142. data/rdoc/RubyXL/CellWatch.html +1 -1
  143. data/rdoc/RubyXL/CellWatches.html +1 -1
  144. data/rdoc/RubyXL/CellXFs.html +1 -1
  145. data/rdoc/RubyXL/ChartColorsFile.html +1 -1
  146. data/rdoc/RubyXL/ChartFile.html +1 -1
  147. data/rdoc/RubyXL/ChartStyleFile.html +1 -1
  148. data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
  149. data/rdoc/RubyXL/Chartsheet.html +1 -1
  150. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  151. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  152. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  153. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  154. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  155. data/rdoc/RubyXL/Color.html +1 -1
  156. data/rdoc/RubyXL/ColorFilter.html +1 -1
  157. data/rdoc/RubyXL/ColorScale.html +1 -1
  158. data/rdoc/RubyXL/ColorSet.html +1 -1
  159. data/rdoc/RubyXL/Colors.html +1 -1
  160. data/rdoc/RubyXL/ColumnRange.html +1 -1
  161. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  162. data/rdoc/RubyXL/Comment.html +1 -1
  163. data/rdoc/RubyXL/CommentList.html +1 -1
  164. data/rdoc/RubyXL/CommentsFile.html +1 -1
  165. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  166. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  167. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  168. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  169. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  170. data/rdoc/RubyXL/ContentTypes.html +1 -1
  171. data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
  172. data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
  173. data/rdoc/RubyXL/CustomColor.html +1 -1
  174. data/rdoc/RubyXL/CustomColorList.html +1 -1
  175. data/rdoc/RubyXL/CustomFilter.html +1 -1
  176. data/rdoc/RubyXL/CustomFilters.html +1 -1
  177. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  178. data/rdoc/RubyXL/CustomProperties.html +1 -1
  179. data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
  180. data/rdoc/RubyXL/CustomProperty.html +1 -1
  181. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  182. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  183. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  184. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  185. data/rdoc/RubyXL/CustomXMLFile.html +1 -1
  186. data/rdoc/RubyXL/DXF.html +1 -1
  187. data/rdoc/RubyXL/DXFs.html +1 -1
  188. data/rdoc/RubyXL/DataBar.html +1 -1
  189. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  190. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  191. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  192. data/rdoc/RubyXL/DataType.html +1 -1
  193. data/rdoc/RubyXL/DataValidation.html +1 -1
  194. data/rdoc/RubyXL/DataValidations.html +1 -1
  195. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  196. data/rdoc/RubyXL/DefinedName.html +1 -1
  197. data/rdoc/RubyXL/DefinedNameExt.html +1 -1
  198. data/rdoc/RubyXL/DefinedNames.html +1 -1
  199. data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
  200. data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
  201. data/rdoc/RubyXL/DrawingFile.html +1 -1
  202. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  203. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  204. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  205. data/rdoc/RubyXL/Extension.html +1 -1
  206. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  207. data/rdoc/RubyXL/Extents.html +1 -1
  208. data/rdoc/RubyXL/ExternalBook.html +1 -1
  209. data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
  210. data/rdoc/RubyXL/ExternalReference.html +1 -1
  211. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  212. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  213. data/rdoc/RubyXL/FieldItem.html +1 -1
  214. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  215. data/rdoc/RubyXL/FileSharing.html +1 -1
  216. data/rdoc/RubyXL/FileVersion.html +1 -1
  217. data/rdoc/RubyXL/Fill.html +1 -1
  218. data/rdoc/RubyXL/Fills.html +1 -1
  219. data/rdoc/RubyXL/FilterContainer.html +1 -1
  220. data/rdoc/RubyXL/FloatNode.html +1 -1
  221. data/rdoc/RubyXL/FloatValue.html +1 -1
  222. data/rdoc/RubyXL/Font.html +5 -5
  223. data/rdoc/RubyXL/FontScheme.html +1 -1
  224. data/rdoc/RubyXL/Fonts.html +1 -1
  225. data/rdoc/RubyXL/Formula.html +1 -1
  226. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  227. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  228. data/rdoc/RubyXL/GenericStorageObject.html +1 -1
  229. data/rdoc/RubyXL/GradientFill.html +1 -1
  230. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  231. data/rdoc/RubyXL/Hyperlink.html +1 -1
  232. data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
  233. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  234. data/rdoc/RubyXL/IconFilter.html +1 -1
  235. data/rdoc/RubyXL/IconSet.html +1 -1
  236. data/rdoc/RubyXL/IgnoredError.html +1 -1
  237. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  238. data/rdoc/RubyXL/IndexedColors.html +1 -1
  239. data/rdoc/RubyXL/InputCells.html +1 -1
  240. data/rdoc/RubyXL/IntegerNode.html +1 -1
  241. data/rdoc/RubyXL/IntegerValue.html +1 -1
  242. data/rdoc/RubyXL/LegacyCell.html +1 -1
  243. data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
  244. data/rdoc/RubyXL/MRUColors.html +1 -1
  245. data/rdoc/RubyXL/MacrosFile.html +1 -1
  246. data/rdoc/RubyXL/MergedCell.html +1 -1
  247. data/rdoc/RubyXL/MergedCells.html +1 -1
  248. data/rdoc/RubyXL/NumFmt.html +1 -1
  249. data/rdoc/RubyXL/NumberFormat.html +1 -1
  250. data/rdoc/RubyXL/NumberFormats.html +1 -1
  251. data/rdoc/RubyXL/OLEObject.html +1 -1
  252. data/rdoc/RubyXL/OLEObjectFile.html +1 -1
  253. data/rdoc/RubyXL/OLEObjects.html +1 -1
  254. data/rdoc/RubyXL/OLESize.html +1 -1
  255. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  256. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  257. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
  258. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  259. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  260. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  261. data/rdoc/RubyXL/Offset.html +1 -1
  262. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  263. data/rdoc/RubyXL/PageMargins.html +1 -1
  264. data/rdoc/RubyXL/PageSetup.html +1 -1
  265. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  266. data/rdoc/RubyXL/Pane.html +1 -1
  267. data/rdoc/RubyXL/Parser.html +1 -1
  268. data/rdoc/RubyXL/PatternFill.html +1 -1
  269. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  270. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  271. data/rdoc/RubyXL/PivotArea.html +1 -1
  272. data/rdoc/RubyXL/PivotCache.html +1 -1
  273. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
  274. data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
  275. data/rdoc/RubyXL/PivotCaches.html +1 -1
  276. data/rdoc/RubyXL/PivotReference.html +1 -1
  277. data/rdoc/RubyXL/PivotReferences.html +1 -1
  278. data/rdoc/RubyXL/PivotTableFile.html +1 -1
  279. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  280. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  281. data/rdoc/RubyXL/PrintOptions.html +1 -1
  282. data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
  283. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  284. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  285. data/rdoc/RubyXL/Protection.html +1 -1
  286. data/rdoc/RubyXL/RID.html +1 -1
  287. data/rdoc/RubyXL/RawOOXML.html +1 -1
  288. data/rdoc/RubyXL/Reference.html +1 -1
  289. data/rdoc/RubyXL/Relationship.html +1 -1
  290. data/rdoc/RubyXL/RelationshipSupport.html +1 -1
  291. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
  292. data/rdoc/RubyXL/RichText.html +1 -1
  293. data/rdoc/RubyXL/RichTextRun.html +1 -1
  294. data/rdoc/RubyXL/Row.html +1 -1
  295. data/rdoc/RubyXL/RowExt.html +1 -1
  296. data/rdoc/RubyXL/RunProperties.html +1 -1
  297. data/rdoc/RubyXL/Scenario.html +1 -1
  298. data/rdoc/RubyXL/Scenarios.html +1 -1
  299. data/rdoc/RubyXL/Selection.html +1 -1
  300. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  301. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  302. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  303. data/rdoc/RubyXL/Sheet.html +1 -1
  304. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  305. data/rdoc/RubyXL/SheetData.html +1 -1
  306. data/rdoc/RubyXL/SheetDataExt.html +1 -1
  307. data/rdoc/RubyXL/SheetDataSet.html +1 -1
  308. data/rdoc/RubyXL/SheetName.html +1 -1
  309. data/rdoc/RubyXL/SheetNames.html +1 -1
  310. data/rdoc/RubyXL/Sheets.html +1 -1
  311. data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
  312. data/rdoc/RubyXL/SlicerFile.html +1 -1
  313. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  314. data/rdoc/RubyXL/SmartTagType.html +1 -1
  315. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  316. data/rdoc/RubyXL/SmartTags.html +1 -1
  317. data/rdoc/RubyXL/SortCondition.html +1 -1
  318. data/rdoc/RubyXL/SortState.html +1 -1
  319. data/rdoc/RubyXL/Sqref.html +1 -1
  320. data/rdoc/RubyXL/Stop.html +1 -1
  321. data/rdoc/RubyXL/StringNode.html +1 -1
  322. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  323. data/rdoc/RubyXL/StringValue.html +1 -1
  324. data/rdoc/RubyXL/Stylesheet.html +1 -1
  325. data/rdoc/RubyXL/TableFile.html +1 -1
  326. data/rdoc/RubyXL/TableParts.html +1 -1
  327. data/rdoc/RubyXL/TableStyle.html +1 -1
  328. data/rdoc/RubyXL/TableStyles.html +1 -1
  329. data/rdoc/RubyXL/Text.html +1 -1
  330. data/rdoc/RubyXL/Theme.html +1 -1
  331. data/rdoc/RubyXL/ThemeElements.html +1 -1
  332. data/rdoc/RubyXL/ThumbnailFile.html +1 -1
  333. data/rdoc/RubyXL/Top10.html +1 -1
  334. data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
  335. data/rdoc/RubyXL/Variant.html +1 -1
  336. data/rdoc/RubyXL/Vector.html +1 -1
  337. data/rdoc/RubyXL/VectorValue.html +1 -1
  338. data/rdoc/RubyXL/VisualProperties.html +1 -1
  339. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  340. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  341. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  342. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  343. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  344. data/rdoc/RubyXL/Workbook.html +1 -1
  345. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +45 -1
  346. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  347. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  348. data/rdoc/RubyXL/WorkbookRoot.html +1 -1
  349. data/rdoc/RubyXL/WorkbookView.html +1 -1
  350. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  351. data/rdoc/RubyXL/Worksheet.html +1 -1
  352. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +229 -65
  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 +27 -27
  361. data/rdoc/index.html +2 -2
  362. data/rdoc/js/navigation.js.gz +0 -0
  363. data/rdoc/js/search_index.js +1 -1
  364. data/rdoc/js/search_index.js.gz +0 -0
  365. data/rdoc/js/searcher.js.gz +0 -0
  366. data/rdoc/table_of_contents.html +57 -2
  367. data/rubyXL.gemspec +37 -37
  368. data/spec/lib/cell_spec.rb +41 -0
  369. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f94fc6b7b6d611cb2eecd1874bd470d5bade0f3c
4
- data.tar.gz: 98008cf42d8e16856682e9dfcd60c740c1205c2c
3
+ metadata.gz: a41274a3da030b05810f32e1f2b11a19c4e85b5d
4
+ data.tar.gz: 01d5e037e49c0b49943f88ca40bc864ef77a2b58
5
5
  SHA512:
6
- metadata.gz: 6daeb64ab265ad3f575b2da82fc110f2a5eff40b4f0e85b45135ecdbb220d9524242c1df14da1062b9463fe53cd7129efd342f5c1d5aec69f6cb4f14dd2283d3
7
- data.tar.gz: 50bc7566f9399a1d2b4c74128a56dc36fd4b9f7c941346e3bbb731d96a64bf4634e76b606c17ea81f4c13fa77bf163589dd1dabedfe1cb5610877ad1f07c24cc
6
+ metadata.gz: e713065db254db23b0662b301154c24b5f103bd815b8e15e2da6578820f1699309409abc3de321dc40d90bdecfd24e1f02005089efe52b4c0a198da7a90d8026
7
+ data.tar.gz: 2916934fa29835f8097846084f064288741513e2218f1a73dd1ed8e5b7113c35941042e704ed0af91bec498cce96459a31d95a8c60a1774c6aa69594374058ea
@@ -52,6 +52,7 @@ Please note that row is a _sparse_ array of cells. Your code *must* expect that
52
52
  cell.horizontal_alignment
53
53
  cell.vertical_alignment
54
54
  cell.get_border(:top)
55
+ cell.get_border_color(:top)
55
56
 
56
57
  ==== Wrappers for accessing Row properties
57
58
  Please note: these methods are being phased out in favor of the OOXML object model.
@@ -65,6 +66,7 @@ Please note: these methods are being phased out in favor of the OOXML object mod
65
66
  worksheet.get_row_alignment(0, true)
66
67
  worksheet.get_row_alignment(0, false)
67
68
  worksheet.get_row_border(0, :right)
69
+ worksheet.get_row_border_color(0, :right)
68
70
 
69
71
  ==== Accessing column properties
70
72
  Please note: these methods are being phased out in favor of the OOXML object model.
@@ -78,6 +80,7 @@ Please note: these methods are being phased out in favor of the OOXML object mod
78
80
  worksheet.get_column_alignment(0, :horizontal)
79
81
  worksheet.get_column_alignment(0, :vertical)
80
82
  worksheet.get_column_border(0, :right)
83
+ worksheet.get_column_border_color(0, :right)
81
84
 
82
85
  ==== Table reading
83
86
  In order to discourage unnecessary reshuffling of data in memory, methods +extract_data+ and +get_table+ are being deprecated. You should access and iterate through rows and cells directly:
@@ -121,6 +124,10 @@ In order to discourage unnecessary reshuffling of data in memory, methods +extra
121
124
  worksheet.change_row_border(0, :left, 'hairline') # Sets first row to have a left, hairline border
122
125
  worksheet.change_column_border(0, :diagonal, 'medium') # Sets first column to have diagonal, medium border
123
126
 
127
+ # Set the border style first so there's something to color.
128
+ worksheet.change_row_border_color(0, :top, '0ba53d') # Sets first row to have a green top border
129
+ worksheet.change_column_border_color(0, :top, '0ba53d') # Sets first column to have a green top border
130
+
124
131
  ==== Changing Alignment
125
132
  ===== Horizontal
126
133
  center, distributed, justify, left, right
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.21
1
+ 3.3.22
@@ -178,6 +178,18 @@ module RubyXL
178
178
  register_new_xf(xf)
179
179
  end
180
180
 
181
+ def modify_border_color(style_index, direction, color)
182
+ xf = cell_xfs[style_index || 0].dup
183
+ new_border = borders[xf.border_id || 0].dup
184
+ new_border.set_edge_color(direction, color)
185
+
186
+ xf.border_id = borders.find_index { |x| x == new_border } # Reuse existing border, if it exists
187
+ xf.border_id ||= borders.size # If this border has never existed before, add it to collection.
188
+ borders[xf.border_id] = new_border
189
+ xf.apply_border = true
190
+
191
+ register_new_xf(xf)
192
+ end
181
193
  end
182
194
 
183
195
 
@@ -392,6 +404,13 @@ module RubyXL
392
404
  border && border.get_edge_style(border_direction)
393
405
  end
394
406
 
407
+ def get_row_border_color(row, border_direction)
408
+ validate_workbook
409
+
410
+ border = @workbook.borders[get_row_xf(row).border_id]
411
+ border && border.get_edge_color(border_direction)
412
+ end
413
+
395
414
  def row_font(row)
396
415
  (row = sheet_data.rows[row]) && row.get_font
397
416
  end
@@ -514,6 +533,14 @@ module RubyXL
514
533
  border && border.get_edge_style(border_direction)
515
534
  end
516
535
 
536
+ def get_column_border_color(col, border_direction)
537
+ validate_workbook
538
+
539
+ xf = @workbook.cell_xfs[get_cols_style_index(col)]
540
+ border = @workbook.borders[xf.border_id]
541
+ border && border.get_edge_color(border_direction)
542
+ end
543
+
517
544
  def column_font(col)
518
545
  validate_workbook
519
546
 
@@ -550,6 +577,18 @@ module RubyXL
550
577
  }
551
578
  end
552
579
 
580
+ def change_row_border_color(row, direction, color = '000000')
581
+ validate_workbook
582
+ ensure_cell_exists(row)
583
+ Color.validate_color(color)
584
+
585
+ sheet_data.rows[row].style_index = @workbook.modify_border_color(get_row_style(row), direction, color)
586
+
587
+ sheet_data[row].cells.each { |c|
588
+ c.change_border_color(direction, color) unless c.nil?
589
+ }
590
+ end
591
+
553
592
  def change_row_fill(row_index = 0, rgb = 'ffffff')
554
593
  validate_workbook
555
594
  ensure_cell_exists(row_index)
@@ -717,6 +756,19 @@ module RubyXL
717
756
  }
718
757
  end
719
758
 
759
+ def change_column_border_color(column_index, direction, color)
760
+ validate_workbook
761
+ ensure_cell_exists(0, column_index)
762
+ Color.validate_color(color)
763
+
764
+ cols.get_range(column_index).style_index = @workbook.modify_border_color(get_col_style(column_index), direction, color)
765
+
766
+ sheet_data.rows.each { |row|
767
+ c = row.cells[column_index]
768
+ c.change_border_color(direction, color) unless c.nil?
769
+ }
770
+ end
771
+
720
772
  def change_row_alignment(row, &block)
721
773
  validate_workbook
722
774
  validate_nonnegative(row)
@@ -780,6 +832,11 @@ module RubyXL
780
832
  get_cell_border.get_edge_style(direction)
781
833
  end
782
834
 
835
+ def get_border_color(direction)
836
+ validate_worksheet
837
+ get_cell_border.get_edge_color(direction)
838
+ end
839
+
783
840
  def change_horizontal_alignment(alignment = 'center')
784
841
  validate_worksheet
785
842
  self.style_index = workbook.modify_alignment(self.style_index) { |a| a.horizontal = alignment }
@@ -800,6 +857,12 @@ module RubyXL
800
857
  self.style_index = workbook.modify_border(self.style_index, direction, weight)
801
858
  end
802
859
 
860
+ def change_border_color(direction, color)
861
+ validate_worksheet
862
+ Color.validate_color(color)
863
+ self.style_index = workbook.modify_border_color(self.style_index, direction, color)
864
+ end
865
+
803
866
  def is_italicized()
804
867
  validate_worksheet
805
868
  get_cell_font.is_italic
@@ -6,6 +6,14 @@ module RubyXL
6
6
  class BorderEdge < OOXMLObject
7
7
  define_attribute(:style, RubyXL::ST_BorderStyle, :default => 'none')
8
8
  define_child_node(RubyXL::Color)
9
+
10
+ def set_rgb_color(font_color)
11
+ self.color = RubyXL::Color.new(:rgb => font_color.to_s)
12
+ end
13
+
14
+ def get_rgb_color
15
+ color && color.rgb
16
+ end
9
17
  end
10
18
 
11
19
  # http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html
@@ -28,7 +36,27 @@ module RubyXL
28
36
  end
29
37
 
30
38
  def set_edge_style(direction, style)
31
- self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
39
+ edge = self.send(direction)
40
+ if edge
41
+ edge.style = style
42
+ else
43
+ self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
44
+ end
45
+ end
46
+
47
+ def get_edge_color(direction)
48
+ edge = self.send(direction)
49
+ edge && edge.get_rgb_color
50
+ end
51
+
52
+ def set_edge_color(direction, color)
53
+ edge = self.send(direction)
54
+ if edge
55
+ edge.set_rgb_color(color)
56
+ else
57
+ self.send("#{direction}=", RubyXL::BorderEdge.new)
58
+ self.send(direction).set_rgb_color(color)
59
+ end
32
60
  end
33
61
  end
34
62
 
@@ -15,13 +15,13 @@ module RubyXL
15
15
 
16
16
  # http://www.schemacentral.com/sc/ooxml/e-ssml_authors-1.html
17
17
  class CommentList < OOXMLContainerObject
18
- define_child_node(RubyXL::Comment, :collection => true)
18
+ define_child_node(RubyXL::Comment, :collection => [0..-1])
19
19
  define_element_name 'commentList'
20
20
  end
21
21
 
22
22
  # http://www.schemacentral.com/sc/ooxml/e-ssml_authors-1.html
23
23
  class Authors < OOXMLContainerObject
24
- define_child_node(RubyXL::StringNode, :node_name => :author, :collection => true)
24
+ define_child_node(RubyXL::StringNode, :node_name => :author, :collection => [0..-1])
25
25
  define_element_name 'authors'
26
26
  end
27
27
 
@@ -27,7 +27,7 @@ module RubyXL
27
27
  define_element_name 'font'
28
28
 
29
29
  def is_italic
30
- i && (i.val || true)
30
+ i && i.val
31
31
  end
32
32
 
33
33
  def set_italic(val)
@@ -35,7 +35,7 @@ module RubyXL
35
35
  end
36
36
 
37
37
  def is_bold
38
- b && (b.val || true)
38
+ b && b.val
39
39
  end
40
40
 
41
41
  def set_bold(val)
@@ -43,7 +43,7 @@ module RubyXL
43
43
  end
44
44
 
45
45
  def is_underlined
46
- u && (u.val || true)
46
+ u && u.val
47
47
  end
48
48
 
49
49
  def set_underline(val)
@@ -51,7 +51,7 @@ module RubyXL
51
51
  end
52
52
 
53
53
  def is_strikethrough
54
- strike && (strike.val || true)
54
+ strike && strike.val
55
55
  end
56
56
 
57
57
  def set_strikethrough(val)
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 3.3.21</title>
7
+ <title>README - rubyXL 3.3.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "./";
@@ -193,6 +193,7 @@ preserving as much of the structure as possible.</p>
193
193
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">horizontal_alignment</span>
194
194
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">vertical_alignment</span>
195
195
  <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border</span>(:<span class="ruby-identifier">top</span>)
196
+ <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border_color</span>(:<span class="ruby-identifier">top</span>)
196
197
  </pre>
197
198
 
198
199
  <h4 id="label-Wrappers+for+accessing+Row+properties+">Wrappers for accessing Row properties <span><a href="#label-Wrappers+for+accessing+Row+properties+">&para;</a> <a href="#top">&uarr;</a></span></h4>
@@ -210,6 +211,7 @@ object model.</p>
210
211
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-keyword">true</span>)
211
212
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-keyword">false</span>)
212
213
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
214
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
213
215
  </pre>
214
216
 
215
217
  <h4 id="label-Accessing+column+properties">Accessing column properties<span><a href="#label-Accessing+column+properties">&para;</a> <a href="#top">&uarr;</a></span></h4>
@@ -227,6 +229,7 @@ object model.</p>
227
229
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">horizontal</span>)
228
230
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">vertical</span>)
229
231
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
232
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
230
233
  </pre>
231
234
 
232
235
  <h4 id="label-Table+reading">Table reading<span><a href="#label-Table+reading">&para;</a> <a href="#top">&uarr;</a></span></h4>
@@ -287,6 +290,10 @@ You should access and iterate through rows and cells directly:</p>
287
290
  <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_border</span>(:<span class="ruby-identifier">top</span>, <span class="ruby-string">&#39;thin&#39;</span>) <span class="ruby-comment"># Sets A1 to have a top, thin border</span>
288
291
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">left</span>, <span class="ruby-string">&#39;hairline&#39;</span>) <span class="ruby-comment"># Sets first row to have a left, hairline border</span>
289
292
  <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">diagonal</span>, <span class="ruby-string">&#39;medium&#39;</span>) <span class="ruby-comment"># Sets first column to have diagonal, medium border</span>
293
+
294
+ <span class="ruby-comment"># Set the border style first so there&#39;s something to color.</span>
295
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">top</span>, <span class="ruby-string">&#39;0ba53d&#39;</span>) <span class="ruby-comment"># Sets first row to have a green top border</span>
296
+ <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">top</span>, <span class="ruby-string">&#39;0ba53d&#39;</span>) <span class="ruby-comment"># Sets first column to have a green top border</span>
290
297
  </pre>
291
298
 
292
299
  <h4 id="label-Changing+Alignment">Changing Alignment<span><a href="#label-Changing+Alignment">&para;</a> <a href="#top">&uarr;</a></span></h4>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL - rubyXL 3.3.21</title>
7
+ <title>module RubyXL - rubyXL 3.3.22</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::AExtension - rubyXL 3.3.21</title>
7
+ <title>class RubyXL::AExtension - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::AExtensionStorageArea - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::AdjustHandleList - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::Alignment - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::AlternateContent - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::Authors - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::AutoFilter - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::AutoFilterColumn - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::BinaryImageFile - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::BodyProperties - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::BooleanNode - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::BooleanValue - rubyXL 3.3.22</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.3.21</title>
7
+ <title>class RubyXL::Border - rubyXL 3.3.22</title>
8
8
 
9
9
  <script type="text/javascript">
10
10
  var rdoc_rel_prefix = "../";
@@ -70,8 +70,12 @@
70
70
 
71
71
  <ul class="link-list" role="directory">
72
72
 
73
+ <li ><a href="#method-i-get_edge_color">#get_edge_color</a>
74
+
73
75
  <li ><a href="#method-i-get_edge_style">#get_edge_style</a>
74
76
 
77
+ <li ><a href="#method-i-set_edge_color">#set_edge_color</a>
78
+
75
79
  <li ><a href="#method-i-set_edge_style">#set_edge_style</a>
76
80
 
77
81
  </ul>
@@ -111,6 +115,40 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
111
115
  </header>
112
116
 
113
117
 
118
+ <div id="method-i-get_edge_color" class="method-detail ">
119
+
120
+ <div class="method-heading">
121
+ <span class="method-name">get_edge_color</span><span
122
+ class="method-args">(direction)</span>
123
+
124
+ <span class="method-click-advice">click to toggle source</span>
125
+
126
+ </div>
127
+
128
+
129
+ <div class="method-description">
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <div class="method-source-code" id="get_edge_color-source">
137
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 47</span>
138
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
139
+ <span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
140
+ <span class="ruby-identifier">edge</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">get_rgb_color</span>
141
+ <span class="ruby-keyword">end</span></pre>
142
+ </div>
143
+
144
+ </div>
145
+
146
+
147
+
148
+
149
+ </div>
150
+
151
+
114
152
  <div id="method-i-get_edge_style" class="method-detail ">
115
153
 
116
154
  <div class="method-heading">
@@ -130,7 +168,7 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
130
168
 
131
169
 
132
170
  <div class="method-source-code" id="get_edge_style-source">
133
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 25</span>
171
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 33</span>
134
172
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
135
173
  <span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
136
174
  <span class="ruby-identifier">edge</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">style</span>
@@ -142,6 +180,45 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
142
180
 
143
181
 
144
182
 
183
+ </div>
184
+
185
+
186
+ <div id="method-i-set_edge_color" class="method-detail ">
187
+
188
+ <div class="method-heading">
189
+ <span class="method-name">set_edge_color</span><span
190
+ class="method-args">(direction, color)</span>
191
+
192
+ <span class="method-click-advice">click to toggle source</span>
193
+
194
+ </div>
195
+
196
+
197
+ <div class="method-description">
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <div class="method-source-code" id="set_edge_color-source">
205
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 52</span>
206
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">set_edge_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
207
+ <span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
208
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">edge</span>
209
+ <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">color</span>)
210
+ <span class="ruby-keyword">else</span>
211
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{direction}=&quot;</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>.<span class="ruby-identifier">new</span>)
212
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>).<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">color</span>)
213
+ <span class="ruby-keyword">end</span>
214
+ <span class="ruby-keyword">end</span></pre>
215
+ </div>
216
+
217
+ </div>
218
+
219
+
220
+
221
+
145
222
  </div>
146
223
 
147
224
 
@@ -164,9 +241,14 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
164
241
 
165
242
 
166
243
  <div class="method-source-code" id="set_edge_style-source">
167
- <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 30</span>
244
+ <pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 38</span>
168
245
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">set_edge_style</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">style</span>)
169
- <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{direction}=&quot;</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">style</span>))
246
+ <span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
247
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">edge</span>
248
+ <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">style</span> = <span class="ruby-identifier">style</span>
249
+ <span class="ruby-keyword">else</span>
250
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;#{direction}=&quot;</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">style</span>))
251
+ <span class="ruby-keyword">end</span>
170
252
  <span class="ruby-keyword">end</span></pre>
171
253
  </div>
172
254