rubyXL 3.3.22 → 3.4.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (465) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +60 -0
  3. data/.codeclimate.yml +3 -0
  4. data/Gemfile +9 -8
  5. data/Gemfile.lock +124 -0
  6. data/LICENSE.txt +1 -1
  7. data/README.rdoc +54 -18
  8. data/Rakefile +29 -29
  9. data/VERSION +1 -1
  10. data/lib/rubyXL/cell.rb +3 -30
  11. data/lib/rubyXL/convenience_methods/cell.rb +276 -0
  12. data/lib/rubyXL/convenience_methods/color.rb +156 -0
  13. data/lib/rubyXL/convenience_methods/font.rb +63 -0
  14. data/lib/rubyXL/convenience_methods/workbook.rb +141 -0
  15. data/lib/rubyXL/convenience_methods/worksheet.rb +714 -0
  16. data/lib/rubyXL/convenience_methods.rb +5 -1045
  17. data/lib/rubyXL/objects/border.rb +2 -5
  18. data/lib/rubyXL/objects/calculation_chain.rb +4 -4
  19. data/lib/rubyXL/objects/cell_style.rb +9 -11
  20. data/lib/rubyXL/objects/chartsheet.rb +15 -19
  21. data/lib/rubyXL/objects/color.rb +7 -7
  22. data/lib/rubyXL/objects/column_range.rb +10 -13
  23. data/lib/rubyXL/objects/comments.rb +5 -8
  24. data/lib/rubyXL/objects/connection.rb +175 -0
  25. data/lib/rubyXL/objects/container_nodes.rb +3 -7
  26. data/lib/rubyXL/objects/content_types.rb +5 -8
  27. data/lib/rubyXL/objects/data_validation.rb +4 -4
  28. data/lib/rubyXL/objects/document_properties.rb +12 -16
  29. data/lib/rubyXL/objects/extensions.rb +19 -4
  30. data/lib/rubyXL/objects/external_links.rb +30 -8
  31. data/lib/rubyXL/objects/fill.rb +6 -9
  32. data/lib/rubyXL/objects/filters.rb +17 -19
  33. data/lib/rubyXL/objects/font.rb +4 -64
  34. data/lib/rubyXL/objects/formula.rb +4 -6
  35. data/lib/rubyXL/objects/ooxml_object.rb +25 -18
  36. data/lib/rubyXL/objects/query_table.rb +104 -0
  37. data/lib/rubyXL/objects/reference.rb +6 -8
  38. data/lib/rubyXL/objects/relationships.rb +13 -13
  39. data/lib/rubyXL/objects/root.rb +0 -2
  40. data/lib/rubyXL/objects/shared_strings.rb +4 -7
  41. data/lib/rubyXL/objects/sheet_common.rb +5 -7
  42. data/lib/rubyXL/objects/sheet_data.rb +50 -16
  43. data/lib/rubyXL/objects/simple_types.rb +21 -1
  44. data/lib/rubyXL/objects/storage.rb +67 -43
  45. data/lib/rubyXL/objects/stylesheet.rb +22 -29
  46. data/lib/rubyXL/objects/text.rb +12 -14
  47. data/lib/rubyXL/objects/theme.rb +142 -126
  48. data/lib/rubyXL/objects/workbook.rb +172 -64
  49. data/lib/rubyXL/objects/worksheet.rb +143 -128
  50. data/lib/rubyXL/parser.rb +1 -3
  51. data/lib/rubyXL/worksheet.rb +83 -78
  52. data/lib/rubyXL.rb +1 -1
  53. data/rdoc/README_rdoc.html +122 -114
  54. data/rdoc/RubyXL/AExtension.html +21 -60
  55. data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
  56. data/rdoc/RubyXL/ActiveX.html +154 -0
  57. data/rdoc/RubyXL/ActiveXBinary.html +106 -0
  58. data/rdoc/RubyXL/AdjustHandleList.html +13 -19
  59. data/rdoc/RubyXL/Alignment.html +13 -19
  60. data/rdoc/RubyXL/AlternateContent.html +12 -17
  61. data/rdoc/RubyXL/Authors.html +13 -19
  62. data/rdoc/RubyXL/AutoFilter.html +13 -19
  63. data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
  64. data/rdoc/RubyXL/BinaryImageFile.html +12 -25
  65. data/rdoc/RubyXL/BodyProperties.html +13 -19
  66. data/rdoc/RubyXL/BooleanNode.html +12 -17
  67. data/rdoc/RubyXL/BooleanValue.html +12 -17
  68. data/rdoc/RubyXL/Border.html +25 -84
  69. data/rdoc/RubyXL/BorderEdge.html +20 -52
  70. data/rdoc/RubyXL/Borders.html +19 -39
  71. data/rdoc/RubyXL/Break.html +13 -19
  72. data/rdoc/RubyXL/BreakList.html +13 -19
  73. data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
  74. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
  75. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
  76. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
  77. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
  78. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
  79. data/rdoc/RubyXL/CT_Backdrop.html +13 -19
  80. data/rdoc/RubyXL/CT_Bevel.html +13 -19
  81. data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
  82. data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
  83. data/rdoc/RubyXL/CT_Blip.html +13 -19
  84. data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
  85. data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
  86. data/rdoc/RubyXL/CT_Camera.html +13 -19
  87. data/rdoc/RubyXL/CT_Color.html +13 -19
  88. data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
  89. data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
  90. data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
  91. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
  92. data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
  93. data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
  94. data/rdoc/RubyXL/CT_DashStop.html +13 -19
  95. data/rdoc/RubyXL/CT_DashStopList.html +13 -19
  96. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
  97. data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
  98. data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
  99. data/rdoc/RubyXL/CT_EffectList.html +13 -19
  100. data/rdoc/RubyXL/CT_EffectReference.html +13 -19
  101. data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
  102. data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
  103. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
  104. data/rdoc/RubyXL/CT_FillEffect.html +13 -19
  105. data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
  106. data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
  107. data/rdoc/RubyXL/CT_FlatText.html +13 -19
  108. data/rdoc/RubyXL/CT_FontCollection.html +13 -19
  109. data/rdoc/RubyXL/CT_FontReference.html +13 -19
  110. data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
  111. data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
  112. data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
  113. data/rdoc/RubyXL/CT_GradientStop.html +13 -19
  114. data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
  115. data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
  116. data/rdoc/RubyXL/CT_HslColor.html +13 -19
  117. data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
  118. data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
  119. data/rdoc/RubyXL/CT_LightRig.html +13 -19
  120. data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
  121. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
  122. data/rdoc/RubyXL/CT_LineProperties.html +13 -19
  123. data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
  124. data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
  125. data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
  126. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
  127. data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
  128. data/rdoc/RubyXL/CT_Path2D.html +13 -19
  129. data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
  130. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
  131. data/rdoc/RubyXL/CT_Path2DList.html +13 -19
  132. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
  133. data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
  134. data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
  135. data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
  136. data/rdoc/RubyXL/CT_Point3D.html +13 -19
  137. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
  138. data/rdoc/RubyXL/CT_PresetColor.html +13 -19
  139. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
  140. data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
  141. data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
  142. data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
  143. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
  144. data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
  145. data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
  146. data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
  147. data/rdoc/RubyXL/CT_Scene3D.html +13 -19
  148. data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
  149. data/rdoc/RubyXL/CT_Shape3D.html +13 -19
  150. data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
  151. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
  152. data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
  153. data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
  154. data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
  155. data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
  156. data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
  157. data/rdoc/RubyXL/CT_SystemColor.html +13 -19
  158. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
  159. data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
  160. data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
  161. data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
  162. data/rdoc/RubyXL/CT_TextFont.html +13 -19
  163. data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
  164. data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
  165. data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
  166. data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
  167. data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
  168. data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
  169. data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
  170. data/rdoc/RubyXL/CT_TintEffect.html +13 -19
  171. data/rdoc/RubyXL/CT_Transform2D.html +13 -19
  172. data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
  173. data/rdoc/RubyXL/CT_Vector3D.html +13 -19
  174. data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
  175. data/rdoc/RubyXL/CalculationChain.html +17 -45
  176. data/rdoc/RubyXL/CalculationChainCell.html +13 -19
  177. data/rdoc/RubyXL/CalculationProperties.html +13 -19
  178. data/rdoc/RubyXL/Cell.html +145 -205
  179. data/rdoc/RubyXL/CellConvenienceMethods.html +255 -460
  180. data/rdoc/RubyXL/CellExt.html +13 -19
  181. data/rdoc/RubyXL/CellSmartTag.html +13 -19
  182. data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
  183. data/rdoc/RubyXL/CellSmartTags.html +13 -19
  184. data/rdoc/RubyXL/CellStyle.html +13 -19
  185. data/rdoc/RubyXL/CellStyleXFs.html +19 -39
  186. data/rdoc/RubyXL/CellStyles.html +19 -39
  187. data/rdoc/RubyXL/CellValue.html +18 -38
  188. data/rdoc/RubyXL/CellWatch.html +13 -19
  189. data/rdoc/RubyXL/CellWatches.html +13 -19
  190. data/rdoc/RubyXL/CellXFs.html +20 -42
  191. data/rdoc/RubyXL/ChartColorsFile.html +12 -25
  192. data/rdoc/RubyXL/ChartFile.html +19 -49
  193. data/rdoc/RubyXL/ChartStyleFile.html +12 -25
  194. data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
  195. data/rdoc/RubyXL/Chartsheet.html +20 -68
  196. data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
  197. data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
  198. data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
  199. data/rdoc/RubyXL/ChartsheetView.html +13 -19
  200. data/rdoc/RubyXL/ChartsheetViews.html +13 -19
  201. data/rdoc/RubyXL/Color.html +29 -40
  202. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
  203. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
  204. data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
  205. data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
  206. data/rdoc/RubyXL/ColorFilter.html +13 -19
  207. data/rdoc/RubyXL/ColorScale.html +13 -19
  208. data/rdoc/RubyXL/ColorSet.html +13 -19
  209. data/rdoc/RubyXL/Colors.html +13 -19
  210. data/rdoc/RubyXL/ColumnRange.html +23 -74
  211. data/rdoc/RubyXL/ColumnRanges.html +24 -83
  212. data/rdoc/RubyXL/Comment.html +13 -19
  213. data/rdoc/RubyXL/CommentList.html +13 -19
  214. data/rdoc/RubyXL/CommentsFile.html +18 -51
  215. data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
  216. data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
  217. data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
  218. data/rdoc/RubyXL/Connection.html +99 -0
  219. data/rdoc/RubyXL/ConnectionTable.html +99 -0
  220. data/rdoc/RubyXL/ConnectionTables.html +99 -0
  221. data/rdoc/RubyXL/ConnectionTextField.html +99 -0
  222. data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
  223. data/rdoc/RubyXL/Connections.html +147 -0
  224. data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
  225. data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
  226. data/rdoc/RubyXL/ContentTypes.html +25 -65
  227. data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
  228. data/rdoc/RubyXL/CorePropertiesFile.html +35 -171
  229. data/rdoc/RubyXL/CustomColor.html +13 -19
  230. data/rdoc/RubyXL/CustomColorList.html +13 -19
  231. data/rdoc/RubyXL/CustomFilter.html +13 -19
  232. data/rdoc/RubyXL/CustomFilters.html +13 -19
  233. data/rdoc/RubyXL/CustomGeometry.html +13 -19
  234. data/rdoc/RubyXL/CustomProperties.html +13 -19
  235. data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
  236. data/rdoc/RubyXL/CustomProperty.html +13 -19
  237. data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
  238. data/rdoc/RubyXL/CustomSheetView.html +13 -19
  239. data/rdoc/RubyXL/CustomSheetViews.html +13 -19
  240. data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
  241. data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
  242. data/rdoc/RubyXL/CustomXMLFile.html +12 -22
  243. data/rdoc/RubyXL/DXF.html +13 -19
  244. data/rdoc/RubyXL/DXFs.html +13 -19
  245. data/rdoc/RubyXL/DataBar.html +13 -19
  246. data/rdoc/RubyXL/DataConsolidate.html +13 -19
  247. data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
  248. data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
  249. data/rdoc/RubyXL/DataType.html +11 -39
  250. data/rdoc/RubyXL/DataValidation.html +13 -19
  251. data/rdoc/RubyXL/DataValidations.html +13 -19
  252. data/rdoc/RubyXL/DateGroupItem.html +13 -19
  253. data/rdoc/RubyXL/DefinedName.html +13 -19
  254. data/rdoc/RubyXL/DefinedNameExt.html +13 -19
  255. data/rdoc/RubyXL/DefinedNames.html +13 -19
  256. data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
  257. data/rdoc/RubyXL/DocumentPropertiesFile.html +22 -68
  258. data/rdoc/RubyXL/DrawingFile.html +19 -49
  259. data/rdoc/RubyXL/DynamicFilter.html +13 -19
  260. data/rdoc/RubyXL/EmbeddedControl.html +13 -19
  261. data/rdoc/RubyXL/EmbeddedControls.html +13 -19
  262. data/rdoc/RubyXL/Extension.html +13 -19
  263. data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
  264. data/rdoc/RubyXL/Extents.html +13 -19
  265. data/rdoc/RubyXL/ExternalBook.html +13 -19
  266. data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
  267. data/rdoc/RubyXL/ExternalReference.html +13 -19
  268. data/rdoc/RubyXL/ExternalReferences.html +13 -19
  269. data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
  270. data/rdoc/RubyXL/FieldItem.html +13 -19
  271. data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
  272. data/rdoc/RubyXL/FileSharing.html +13 -19
  273. data/rdoc/RubyXL/FileVersion.html +13 -19
  274. data/rdoc/RubyXL/Fill.html +19 -39
  275. data/rdoc/RubyXL/Fills.html +19 -39
  276. data/rdoc/RubyXL/FilterContainer.html +13 -19
  277. data/rdoc/RubyXL/FloatNode.html +12 -17
  278. data/rdoc/RubyXL/FloatValue.html +12 -17
  279. data/rdoc/RubyXL/Font.html +20 -544
  280. data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
  281. data/rdoc/RubyXL/FontScheme.html +13 -19
  282. data/rdoc/RubyXL/Fonts.html +19 -39
  283. data/rdoc/RubyXL/Formula.html +13 -19
  284. data/rdoc/RubyXL/FunctionGroup.html +13 -19
  285. data/rdoc/RubyXL/FunctionGroups.html +13 -19
  286. data/rdoc/RubyXL/GenericStorageObject.html +22 -84
  287. data/rdoc/RubyXL/GradientFill.html +13 -19
  288. data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
  289. data/rdoc/RubyXL/Hyperlink.html +13 -19
  290. data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
  291. data/rdoc/RubyXL/Hyperlinks.html +13 -19
  292. data/rdoc/RubyXL/IconFilter.html +13 -19
  293. data/rdoc/RubyXL/IconSet.html +13 -19
  294. data/rdoc/RubyXL/IgnoredError.html +13 -19
  295. data/rdoc/RubyXL/IgnoredErrors.html +13 -19
  296. data/rdoc/RubyXL/IndexedColors.html +13 -19
  297. data/rdoc/RubyXL/InputCells.html +13 -19
  298. data/rdoc/RubyXL/IntegerNode.html +12 -17
  299. data/rdoc/RubyXL/IntegerValue.html +12 -17
  300. data/rdoc/RubyXL/LegacyCell.html +14 -66
  301. data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
  302. data/rdoc/RubyXL/MRUColors.html +13 -19
  303. data/rdoc/RubyXL/MacrosFile.html +12 -25
  304. data/rdoc/RubyXL/MergedCell.html +13 -19
  305. data/rdoc/RubyXL/MergedCells.html +13 -19
  306. data/rdoc/RubyXL/NumFmt.html +13 -19
  307. data/rdoc/RubyXL/NumberFormat.html +19 -39
  308. data/rdoc/RubyXL/NumberFormats.html +19 -45
  309. data/rdoc/RubyXL/OLEObject.html +13 -19
  310. data/rdoc/RubyXL/OLEObjectFile.html +12 -25
  311. data/rdoc/RubyXL/OLEObjects.html +13 -19
  312. data/rdoc/RubyXL/OLESize.html +13 -19
  313. data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
  314. data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
  315. data/rdoc/RubyXL/OOXMLObject.html +15 -25
  316. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +92 -183
  317. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +49 -185
  318. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +48 -200
  319. data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
  320. data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
  321. data/rdoc/RubyXL/Offset.html +13 -19
  322. data/rdoc/RubyXL/OlapProperties.html +99 -0
  323. data/rdoc/RubyXL/OleItem.html +99 -0
  324. data/rdoc/RubyXL/OleItems.html +99 -0
  325. data/rdoc/RubyXL/OleLink.html +99 -0
  326. data/rdoc/RubyXL/OutlineProperties.html +13 -19
  327. data/rdoc/RubyXL/PageMargins.html +13 -19
  328. data/rdoc/RubyXL/PageSetup.html +13 -19
  329. data/rdoc/RubyXL/PageSetupProperties.html +13 -19
  330. data/rdoc/RubyXL/Pane.html +13 -19
  331. data/rdoc/RubyXL/Parser.html +23 -56
  332. data/rdoc/RubyXL/PatternFill.html +13 -19
  333. data/rdoc/RubyXL/PhoneticProperties.html +13 -19
  334. data/rdoc/RubyXL/PhoneticRun.html +13 -19
  335. data/rdoc/RubyXL/PivotArea.html +13 -19
  336. data/rdoc/RubyXL/PivotCache.html +13 -19
  337. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
  338. data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
  339. data/rdoc/RubyXL/PivotCaches.html +13 -19
  340. data/rdoc/RubyXL/PivotReference.html +13 -19
  341. data/rdoc/RubyXL/PivotReferences.html +13 -19
  342. data/rdoc/RubyXL/PivotTableFile.html +14 -30
  343. data/rdoc/RubyXL/PivotTableSelection.html +13 -19
  344. data/rdoc/RubyXL/PresetGeometry.html +13 -19
  345. data/rdoc/RubyXL/PrintOptions.html +13 -19
  346. data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
  347. data/rdoc/RubyXL/ProtectedRange.html +13 -19
  348. data/rdoc/RubyXL/ProtectedRanges.html +13 -19
  349. data/rdoc/RubyXL/Protection.html +13 -19
  350. data/rdoc/RubyXL/QueryParameter.html +99 -0
  351. data/rdoc/RubyXL/QueryParameters.html +99 -0
  352. data/rdoc/RubyXL/QueryTable.html +155 -0
  353. data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
  354. data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
  355. data/rdoc/RubyXL/QueryTableField.html +99 -0
  356. data/rdoc/RubyXL/QueryTableFields.html +99 -0
  357. data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
  358. data/rdoc/RubyXL/RID.html +12 -17
  359. data/rdoc/RubyXL/RawOOXML.html +21 -60
  360. data/rdoc/RubyXL/Reference.html +63 -228
  361. data/rdoc/RubyXL/Relationship.html +12 -17
  362. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +14 -32
  363. data/rdoc/RubyXL/RelationshipSupport.html +26 -120
  364. data/rdoc/RubyXL/RevisionPointer.html +99 -0
  365. data/rdoc/RubyXL/RichText.html +20 -39
  366. data/rdoc/RubyXL/RichTextRun.html +18 -38
  367. data/rdoc/RubyXL/Row.html +53 -152
  368. data/rdoc/RubyXL/RowExt.html +13 -19
  369. data/rdoc/RubyXL/RunProperties.html +13 -19
  370. data/rdoc/RubyXL/Scenario.html +13 -19
  371. data/rdoc/RubyXL/Scenarios.html +13 -19
  372. data/rdoc/RubyXL/Selection.html +19 -39
  373. data/rdoc/RubyXL/ShapeGuide.html +13 -19
  374. data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
  375. data/rdoc/RubyXL/SharedStringsTable.html +38 -147
  376. data/rdoc/RubyXL/Sheet.html +13 -19
  377. data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
  378. data/rdoc/RubyXL/SheetData.html +20 -53
  379. data/rdoc/RubyXL/SheetDataExt.html +13 -19
  380. data/rdoc/RubyXL/SheetDataSet.html +13 -19
  381. data/rdoc/RubyXL/SheetMetadata.html +108 -0
  382. data/rdoc/RubyXL/SheetName.html +13 -19
  383. data/rdoc/RubyXL/SheetNames.html +13 -19
  384. data/rdoc/RubyXL/Sheets.html +13 -19
  385. data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
  386. data/rdoc/RubyXL/SlicerFile.html +12 -25
  387. data/rdoc/RubyXL/SmartTagProperties.html +13 -19
  388. data/rdoc/RubyXL/SmartTagType.html +13 -19
  389. data/rdoc/RubyXL/SmartTagTypes.html +13 -19
  390. data/rdoc/RubyXL/SmartTags.html +13 -19
  391. data/rdoc/RubyXL/SortCondition.html +13 -19
  392. data/rdoc/RubyXL/SortState.html +13 -19
  393. data/rdoc/RubyXL/Sqref.html +20 -53
  394. data/rdoc/RubyXL/Stop.html +13 -19
  395. data/rdoc/RubyXL/StringNode.html +12 -17
  396. data/rdoc/RubyXL/StringNodeW3C.html +21 -54
  397. data/rdoc/RubyXL/StringValue.html +12 -17
  398. data/rdoc/RubyXL/Stylesheet.html +35 -117
  399. data/rdoc/RubyXL/TableFile.html +12 -25
  400. data/rdoc/RubyXL/TableParts.html +12 -17
  401. data/rdoc/RubyXL/TableStyle.html +13 -19
  402. data/rdoc/RubyXL/TableStyles.html +13 -19
  403. data/rdoc/RubyXL/Text.html +23 -67
  404. data/rdoc/RubyXL/TextImportSettings.html +99 -0
  405. data/rdoc/RubyXL/Theme.html +57 -62
  406. data/rdoc/RubyXL/ThemeElements.html +13 -19
  407. data/rdoc/RubyXL/ThumbnailFile.html +12 -25
  408. data/rdoc/RubyXL/Top10.html +13 -19
  409. data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
  410. data/rdoc/RubyXL/Variant.html +13 -19
  411. data/rdoc/RubyXL/Vector.html +18 -38
  412. data/rdoc/RubyXL/VectorValue.html +12 -17
  413. data/rdoc/RubyXL/VisualProperties.html +13 -19
  414. data/rdoc/RubyXL/WebPublishObject.html +13 -19
  415. data/rdoc/RubyXL/WebPublishObjects.html +13 -19
  416. data/rdoc/RubyXL/WebPublishingItem.html +13 -19
  417. data/rdoc/RubyXL/WebPublishingItems.html +13 -19
  418. data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
  419. data/rdoc/RubyXL/WebQueryProperties.html +99 -0
  420. data/rdoc/RubyXL/Workbook.html +487 -227
  421. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +163 -871
  422. data/rdoc/RubyXL/WorkbookProperties.html +13 -19
  423. data/rdoc/RubyXL/WorkbookProtection.html +13 -19
  424. data/rdoc/RubyXL/WorkbookRoot.html +28 -114
  425. data/rdoc/RubyXL/WorkbookView.html +13 -19
  426. data/rdoc/RubyXL/WorkbookViews.html +13 -19
  427. data/rdoc/RubyXL/Worksheet.html +93 -121
  428. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +299 -1109
  429. data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
  430. data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
  431. data/rdoc/RubyXL/WorksheetProperties.html +13 -19
  432. data/rdoc/RubyXL/WorksheetProtection.html +13 -19
  433. data/rdoc/RubyXL/WorksheetView.html +13 -19
  434. data/rdoc/RubyXL/WorksheetViews.html +13 -19
  435. data/rdoc/RubyXL/XF.html +13 -19
  436. data/rdoc/RubyXL.html +41 -296
  437. data/rdoc/created.rid +45 -38
  438. data/rdoc/css/fonts.css +6 -6
  439. data/rdoc/css/rdoc.css +55 -6
  440. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  441. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  442. data/rdoc/index.html +44 -363
  443. data/rdoc/js/darkfish.js +23 -100
  444. data/rdoc/js/navigation.js +4 -41
  445. data/rdoc/js/navigation.js.gz +0 -0
  446. data/rdoc/js/search.js +32 -31
  447. data/rdoc/js/search_index.js +1 -1
  448. data/rdoc/js/search_index.js.gz +0 -0
  449. data/rdoc/js/searcher.js +7 -6
  450. data/rdoc/js/searcher.js.gz +0 -0
  451. data/rdoc/table_of_contents.html +347 -75
  452. data/rubyXL.gemspec +78 -43
  453. data/spec/lib/cell_spec.rb +115 -4
  454. data/spec/lib/color_spec.rb +2 -1
  455. data/spec/lib/parser_spec.rb +24 -27
  456. data/spec/lib/reference_spec.rb +9 -3
  457. data/spec/lib/rgb_color_spec.rb +27 -0
  458. data/spec/lib/stylesheet_spec.rb +8 -11
  459. data/spec/lib/text_spec.rb +8 -4
  460. data/spec/lib/workbook_spec.rb +26 -5
  461. data/spec/lib/worksheet_spec.rb +873 -479
  462. data/spec/spec_helper.rb +2 -0
  463. data/test/test_parse_write.rb +15 -15
  464. metadata +65 -10
  465. data/rdoc/js/jquery.js +0 -4
@@ -1,10 +1,10 @@
1
1
  # encoding: UTF-8 <-- magic comment, need this because of sime fancy fonts in the default scheme below. See http://stackoverflow.com/questions/6444826/ruby-utf-8-file-encoding
2
+
2
3
  require 'rubyXL/objects/ooxml_object'
3
4
  require 'rubyXL/objects/extensions'
4
5
 
5
6
  module RubyXL
6
-
7
- # http://www.schemacentral.com/sc/ooxml/e-a_ext-1.html
7
+ # http://www.datypic.com/sc/ooxml/e-a_ext-1.html
8
8
  class AExtension < OOXMLObject
9
9
  define_attribute(:uri, :string)
10
10
  define_element_name 'a:ext'
@@ -19,7 +19,6 @@ module RubyXL
19
19
  def write_xml(xml, node_name_override = nil)
20
20
  self.raw_xml
21
21
  end
22
-
23
22
  end
24
23
 
25
24
  class AExtensionStorageArea < OOXMLObject
@@ -27,7 +26,7 @@ module RubyXL
27
26
  define_element_name 'a:extLst'
28
27
  end
29
28
 
30
- # http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
29
+ # http://www.datypic.com/sc/ooxml/e-a_srgbClr-1.html
31
30
  class CT_ScRgbColor < OOXMLObject
32
31
  # -- Choice [0..*] (a:EG_ColorTransform)
33
32
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
@@ -64,7 +63,7 @@ module RubyXL
64
63
  define_element_name 'a:scrgbClr'
65
64
  end
66
65
 
67
- # http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
66
+ # http://www.datypic.com/sc/ooxml/e-a_srgbClr-1.html
68
67
  class CT_SRgbColor < OOXMLObject
69
68
  # -- Choice [0..*] (a:EG_ColorTransform)
70
69
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
@@ -99,7 +98,7 @@ module RubyXL
99
98
  define_element_name 'a:srgbClr'
100
99
  end
101
100
 
102
- # http://www.schemacentral.com/sc/ooxml/e-a_hslClr-1.html
101
+ # http://www.datypic.com/sc/ooxml/e-a_hslClr-1.html
103
102
  class CT_HslColor < OOXMLObject
104
103
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
105
104
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
@@ -135,7 +134,7 @@ module RubyXL
135
134
  define_element_name 'a:hslClr'
136
135
  end
137
136
 
138
- # http://www.schemacentral.com/sc/ooxml/e-a_sysClr-1.html
137
+ # http://www.datypic.com/sc/ooxml/e-a_sysClr-1.html
139
138
  class CT_SystemColor < OOXMLObject
140
139
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
141
140
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
@@ -170,7 +169,7 @@ module RubyXL
170
169
  define_element_name 'a:sysClr'
171
170
  end
172
171
 
173
- # http://www.schemacentral.com/sc/ooxml/e-a_schemeClr-1.html
172
+ # http://www.datypic.com/sc/ooxml/e-a_schemeClr-1.html
174
173
  class CT_SchemeColor < OOXMLObject
175
174
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
176
175
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
@@ -204,7 +203,7 @@ module RubyXL
204
203
  define_element_name 'a:schemeClr'
205
204
  end
206
205
 
207
- # http://www.schemacentral.com/sc/ooxml/e-a_prstClr-1.html
206
+ # http://www.datypic.com/sc/ooxml/e-a_prstClr-1.html
208
207
  class CT_PresetColor < OOXMLObject
209
208
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
210
209
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
@@ -238,7 +237,7 @@ module RubyXL
238
237
  define_element_name 'a:prstClr'
239
238
  end
240
239
 
241
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Color.html
240
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Color.html
242
241
  class CT_Color < OOXMLObject
243
242
  define_child_node(RubyXL::CT_ScRgbColor)
244
243
  define_child_node(RubyXL::CT_SRgbColor)
@@ -248,7 +247,7 @@ module RubyXL
248
247
  define_child_node(RubyXL::CT_PresetColor)
249
248
  end
250
249
 
251
- # http://www.schemacentral.com/sc/ooxml/e-a_clrScheme-1.html
250
+ # http://www.datypic.com/sc/ooxml/e-a_clrScheme-1.html
252
251
  class CT_ColorScheme < OOXMLObject
253
252
  define_child_node(RubyXL::CT_Color, :node_name => 'a:dk1')
254
253
  define_child_node(RubyXL::CT_Color, :node_name => 'a:lt1')
@@ -266,13 +265,13 @@ module RubyXL
266
265
  define_element_name 'a:clrScheme'
267
266
  end
268
267
 
269
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_SupplementalFont.html
268
+ # http://www.datypic.com/sc/ooxml/t-a_CT_SupplementalFont.html
270
269
  class CT_SupplementalFont < OOXMLObject
271
270
  define_attribute(:script, :string, :required => true)
272
271
  define_attribute(:typeface, :string, :required => true)
273
272
  end
274
273
 
275
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_TextFont.html
274
+ # http://www.datypic.com/sc/ooxml/t-a_CT_TextFont.html
276
275
  class CT_TextFont < OOXMLObject
277
276
  define_attribute(:typeface, :string)
278
277
  define_attribute(:panose, :string)
@@ -280,7 +279,7 @@ module RubyXL
280
279
  define_attribute(:charset, :int, :default => 1)
281
280
  end
282
281
 
283
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_FontCollection.html
282
+ # http://www.datypic.com/sc/ooxml/t-a_CT_FontCollection.html
284
283
  class CT_FontCollection < OOXMLObject
285
284
  define_child_node(RubyXL::CT_TextFont, :node_name => 'a:latin')
286
285
  define_child_node(RubyXL::CT_TextFont, :node_name => 'a:ea')
@@ -289,7 +288,7 @@ module RubyXL
289
288
  define_child_node(RubyXL::AExtensionStorageArea)
290
289
  end
291
290
 
292
- # http://www.schemacentral.com/sc/ooxml/e-a_fontScheme-1.html
291
+ # http://www.datypic.com/sc/ooxml/e-a_fontScheme-1.html
293
292
  class FontScheme < OOXMLObject
294
293
  # -- Sequence [1..1]
295
294
  define_child_node(RubyXL::CT_FontCollection, :node_name => 'a:majorFont')
@@ -300,7 +299,7 @@ module RubyXL
300
299
  define_element_name 'a:fontScheme'
301
300
  end
302
301
 
303
- # http://www.schemacentral.com/sc/ooxml/e-a_gs-1.html
302
+ # http://www.datypic.com/sc/ooxml/e-a_gs-1.html
304
303
  class CT_GradientStop < OOXMLObject
305
304
  # -- Choice [1..1] (EG_ColorChoice)
306
305
  define_child_node(RubyXL::CT_ScRgbColor)
@@ -314,20 +313,20 @@ module RubyXL
314
313
  define_element_name 'a:gs'
315
314
  end
316
315
 
317
- # http://www.schemacentral.com/sc/ooxml/e-a_gsLst-1.html
316
+ # http://www.datypic.com/sc/ooxml/e-a_gsLst-1.html
318
317
  class CT_GradientStopList < OOXMLContainerObject
319
318
  define_child_node(RubyXL::CT_GradientStop, :collection => [2..-1])
320
319
  define_element_name 'a:gsLst'
321
320
  end
322
321
 
323
- # http://www.schemacentral.com/sc/ooxml/e-a_lin-1.html
322
+ # http://www.datypic.com/sc/ooxml/e-a_lin-1.html
324
323
  class CT_LinearShadeProperties < OOXMLObject
325
324
  define_attribute(:ang, :int)
326
325
  define_attribute(:scaled, :bool)
327
326
  define_element_name 'a:lin'
328
327
  end
329
328
 
330
- # http://www.schemacentral.com/sc/ooxml/e-a_tileRect-1.html
329
+ # http://www.datypic.com/sc/ooxml/e-a_tileRect-1.html
331
330
  class CT_RelativeRect < OOXMLObject
332
331
  define_attribute(:l, :int, :default => 0)
333
332
  define_attribute(:t, :int, :default => 0)
@@ -336,14 +335,14 @@ module RubyXL
336
335
  define_element_name 'a:tileRect'
337
336
  end
338
337
 
339
- # http://www.schemacentral.com/sc/ooxml/e-a_path-1.html
338
+ # http://www.datypic.com/sc/ooxml/e-a_path-1.html
340
339
  class CT_PathShadeProperties < OOXMLObject
341
340
  define_child_node(CT_RelativeRect, :node_name => 'a:fillToRect')
342
341
  define_attribute(:path, RubyXL::ST_PathShadeType)
343
342
  define_element_name 'a:path'
344
343
  end
345
344
 
346
- # http://www.schemacentral.com/sc/ooxml/e-a_gradFill-1.html
345
+ # http://www.datypic.com/sc/ooxml/e-a_gradFill-1.html
347
346
  class CT_GradientFillProperties < OOXMLObject
348
347
  define_child_node(RubyXL::CT_GradientStopList)
349
348
  define_child_node(RubyXL::CT_LinearShadeProperties)
@@ -354,7 +353,7 @@ module RubyXL
354
353
  define_element_name 'a:gradFill'
355
354
  end
356
355
 
357
- # http://www.schemacentral.com/sc/ooxml/e-a_pattFill-1.html
356
+ # http://www.datypic.com/sc/ooxml/e-a_pattFill-1.html
358
357
  class CT_PatternFillProperties < OOXMLObject
359
358
  define_child_node(RubyXL::CT_Color, :node_name => 'a:fgClr')
360
359
  define_child_node(RubyXL::CT_Color, :node_name => 'a:bgClr')
@@ -362,7 +361,7 @@ module RubyXL
362
361
  define_element_name 'a:pattFill'
363
362
  end
364
363
 
365
- # http://www.schemacentral.com/sc/ooxml/e-a_tile-1.html
364
+ # http://www.datypic.com/sc/ooxml/e-a_tile-1.html
366
365
  class CT_TileInfoProperties < OOXMLObject
367
366
  define_attribute(:tx, :int)
368
367
  define_attribute(:ty, :int)
@@ -373,20 +372,20 @@ module RubyXL
373
372
  define_element_name 'a:tile'
374
373
  end
375
374
 
376
- # http://www.schemacentral.com/sc/ooxml/e-a_stretch-1.html
375
+ # http://www.datypic.com/sc/ooxml/e-a_stretch-1.html
377
376
  class CT_StretchInfoProperties < OOXMLObject
378
377
  define_child_node(RubyXL::CT_RelativeRect, :node_name => 'a:fillRect')
379
378
  define_element_name 'a:stretch'
380
379
  end
381
380
 
382
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_TintEffect.html
381
+ # http://www.datypic.com/sc/ooxml/t-a_CT_TintEffect.html
383
382
  class CT_TintEffect < OOXMLObject
384
383
  define_attribute(:hue, :int, :default => 0)
385
384
  define_attribute(:amt, :int, :default => 0)
386
385
  define_element_name 'a:tint'
387
386
  end
388
387
 
389
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_HSLEffect.html
388
+ # http://www.datypic.com/sc/ooxml/t-a_CT_HSLEffect.html
390
389
  class CT_HSLEffect < OOXMLObject
391
390
  define_attribute(:hue, :int, :default => 0)
392
391
  define_attribute(:sat, :int, :default => 0)
@@ -394,52 +393,52 @@ module RubyXL
394
393
  define_element_name 'a:hsl'
395
394
  end
396
395
 
397
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_LuminanceEffect.html
396
+ # http://www.datypic.com/sc/ooxml/t-a_CT_LuminanceEffect.html
398
397
  class CT_LuminanceEffect < OOXMLObject
399
398
  define_attribute(:bright, :int, :default => 0)
400
399
  define_attribute(:contrast, :int, :default => 0)
401
400
  define_element_name 'a:lum'
402
401
  end
403
402
 
404
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaBiLevelEffect.html
403
+ # http://www.datypic.com/sc/ooxml/t-a_CT_AlphaBiLevelEffect.html
405
404
  class CT_AlphaBiLevelEffect < OOXMLObject
406
405
  define_attribute(:thresh, :int, :required => true)
407
406
  define_element_name 'a:alphaBiLevel'
408
407
  end
409
408
 
410
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaModulateFixedEffect.html
409
+ # http://www.datypic.com/sc/ooxml/t-a_CT_AlphaModulateFixedEffect.html
411
410
  class CT_AlphaModulateFixedEffect < OOXMLObject
412
411
  define_attribute(:amt, :int, :default => 100000)
413
412
  define_element_name 'a:alphaModFix'
414
413
  end
415
414
 
416
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaReplaceEffect.html
415
+ # http://www.datypic.com/sc/ooxml/t-a_CT_AlphaReplaceEffect.html
417
416
  class CT_AlphaReplaceEffect < OOXMLObject
418
417
  define_attribute(:a, :int, :required => true)
419
418
  define_element_name 'a:alphaRepl'
420
419
  end
421
420
 
422
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_BiLevelEffect.html
421
+ # http://www.datypic.com/sc/ooxml/t-a_CT_BiLevelEffect.html
423
422
  class CT_BiLevelEffect < OOXMLObject
424
423
  define_attribute(:thresh, :int, :required => true, :default => 100000)
425
424
  define_element_name 'a:biLevel'
426
425
  end
427
426
 
428
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_BlurEffect.html
427
+ # http://www.datypic.com/sc/ooxml/t-a_CT_BlurEffect.html
429
428
  class CT_BlurEffect < OOXMLObject
430
429
  define_attribute(:rad, :int, :default => 0)
431
430
  define_attribute(:grow, :bool, :default => true)
432
431
  define_element_name 'a:blur'
433
432
  end
434
433
 
435
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_DuotoneEffect.html
434
+ # http://www.datypic.com/sc/ooxml/t-a_CT_DuotoneEffect.html
436
435
  class CT_DuotoneEffect < OOXMLObject
437
436
  define_attribute(:rad, :int, :default => 0)
438
437
  define_attribute(:grow, :bool, :default => true)
439
438
  define_element_name 'a:blur'
440
439
  end
441
440
 
442
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_ColorChangeEffect.html
441
+ # http://www.datypic.com/sc/ooxml/t-a_CT_ColorChangeEffect.html
443
442
  class CT_ColorChangeEffect < OOXMLObject
444
443
  define_child_node(RubyXL::CT_Color, :node_name => 'a:clrFrom')
445
444
  define_child_node(RubyXL::CT_Color, :node_name => 'a:clrTo')
@@ -452,32 +451,32 @@ module RubyXL
452
451
  # so it can reference itself in the actual definition.
453
452
  end
454
453
 
455
- # http://www.schemacentral.com/sc/ooxml/e-a_alphaMod-2.html
454
+ # http://www.datypic.com/sc/ooxml/e-a_alphaMod-2.html
456
455
  class CT_AlphaModulateEffect < OOXMLObject
457
456
  define_child_node(RubyXL::CT_EffectContainer, :node_name => :cont)
458
457
  define_element_name 'a:alphaMod'
459
458
  end
460
459
 
461
- # http://www.schemacentral.com/sc/ooxml/e-a_blend-1.html
460
+ # http://www.datypic.com/sc/ooxml/e-a_blend-1.html
462
461
  class CT_BlendEffect < OOXMLObject
463
462
  define_child_node(RubyXL::CT_EffectContainer, :node_name => :cont)
464
463
  define_attribute(:blend, RubyXL::ST_BlendMode, :required => true)
465
464
  define_element_name 'a:blend'
466
465
  end
467
466
 
468
- # http://www.schemacentral.com/sc/ooxml/e-a_effect-1.html
467
+ # http://www.datypic.com/sc/ooxml/e-a_effect-1.html
469
468
  class CT_EffectReference < OOXMLObject
470
469
  define_attribute(:ref, :string)
471
470
  define_element_name 'a:effect'
472
471
  end
473
472
 
474
- # http://www.schemacentral.com/sc/ooxml/e-a_alphaOutset-1.html
473
+ # http://www.datypic.com/sc/ooxml/e-a_alphaOutset-1.html
475
474
  class CT_AlphaOutsetEffect < OOXMLObject
476
475
  define_attribute(:rad, :int, :default => 0)
477
476
  define_element_name 'a:alphaOutset'
478
477
  end
479
478
 
480
- # http://www.schemacentral.com/sc/ooxml/e-a_blip-1.html
479
+ # http://www.datypic.com/sc/ooxml/e-a_blip-1.html
481
480
  class CT_Blip < OOXMLObject
482
481
  define_child_node(RubyXL::CT_AlphaBiLevelEffect)
483
482
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:alphaCeiling')
@@ -502,7 +501,7 @@ module RubyXL
502
501
  define_element_name 'a:blip'
503
502
  end
504
503
 
505
- # http://www.schemacentral.com/sc/ooxml/e-a_blipFill-1.html
504
+ # http://www.datypic.com/sc/ooxml/e-a_blipFill-1.html
506
505
  class CT_BlipFillProperties < OOXMLObject
507
506
  define_child_node(RubyXL::CT_Blip)
508
507
  define_child_node(RubyXL::CT_RelativeRect, :node_name => 'a:srcRect')
@@ -513,7 +512,7 @@ module RubyXL
513
512
  define_element_name 'a:blipFill'
514
513
  end
515
514
 
516
- # http://www.schemacentral.com/sc/ooxml/e-a_fill-1.html
515
+ # http://www.datypic.com/sc/ooxml/e-a_fill-1.html
517
516
  class CT_FillEffect < OOXMLObject
518
517
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
519
518
  define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
@@ -524,7 +523,7 @@ module RubyXL
524
523
  define_element_name 'a:fill'
525
524
  end
526
525
 
527
- # http://www.schemacentral.com/sc/ooxml/e-a_fillOverlay-1.html
526
+ # http://www.datypic.com/sc/ooxml/e-a_fillOverlay-1.html
528
527
  class CT_FillOverlayEffect < OOXMLObject
529
528
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
530
529
  define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
@@ -536,7 +535,7 @@ module RubyXL
536
535
  define_element_name 'a:fillOverlay'
537
536
  end
538
537
 
539
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_GlowEffect.html
538
+ # http://www.datypic.com/sc/ooxml/t-a_CT_GlowEffect.html
540
539
  class CT_GlowEffect < OOXMLObject
541
540
  define_child_node(RubyXL::CT_ScRgbColor)
542
541
  define_child_node(RubyXL::CT_SRgbColor)
@@ -548,7 +547,7 @@ module RubyXL
548
547
  define_element_name 'a:glow'
549
548
  end
550
549
 
551
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_InnerShadowEffect.html
550
+ # http://www.datypic.com/sc/ooxml/t-a_CT_InnerShadowEffect.html
552
551
  class CT_InnerShadowEffect < OOXMLObject
553
552
  define_child_node(RubyXL::CT_ScRgbColor)
554
553
  define_child_node(RubyXL::CT_SRgbColor)
@@ -562,7 +561,7 @@ module RubyXL
562
561
  define_element_name 'a:innerShdw'
563
562
  end
564
563
 
565
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_OuterShadowEffect.html
564
+ # http://www.datypic.com/sc/ooxml/t-a_CT_OuterShadowEffect.html
566
565
  class CT_OuterShadowEffect < OOXMLObject
567
566
  define_child_node(RubyXL::CT_ScRgbColor)
568
567
  define_child_node(RubyXL::CT_SRgbColor)
@@ -582,7 +581,7 @@ module RubyXL
582
581
  define_element_name 'a:outerShdw'
583
582
  end
584
583
 
585
- # http://www.schemacentral.com/sc/ooxml/e-a_prstShdw-1.html
584
+ # http://www.datypic.com/sc/ooxml/e-a_prstShdw-1.html
586
585
  class CT_PresetShadowEffect < OOXMLObject
587
586
  define_child_node(RubyXL::CT_ScRgbColor)
588
587
  define_child_node(RubyXL::CT_SRgbColor)
@@ -596,7 +595,7 @@ module RubyXL
596
595
  define_element_name 'a:prstShdw'
597
596
  end
598
597
 
599
- # http://www.schemacentral.com/sc/ooxml/e-a_reflection-1.html
598
+ # http://www.datypic.com/sc/ooxml/e-a_reflection-1.html
600
599
  class CT_ReflectionEffect < OOXMLObject
601
600
  define_attribute(:blurRad, :int, :default => 0)
602
601
  define_attribute(:stA, :int, :default => 100000)
@@ -615,20 +614,20 @@ module RubyXL
615
614
  define_element_name 'a:reflection'
616
615
  end
617
616
 
618
- # http://www.schemacentral.com/sc/ooxml/e-a_relOff-1.html
617
+ # http://www.datypic.com/sc/ooxml/e-a_relOff-1.html
619
618
  class CT_RelativeOffsetEffect < OOXMLObject
620
619
  define_attribute(:tx, :int)
621
620
  define_attribute(:ty, :int)
622
621
  define_element_name 'a:relOff'
623
622
  end
624
623
 
625
- # http://www.schemacentral.com/sc/ooxml/e-a_softEdge-1.html
624
+ # http://www.datypic.com/sc/ooxml/e-a_softEdge-1.html
626
625
  class CT_SoftEdgesEffect < OOXMLObject
627
626
  define_attribute(:rad, :int, :required => true)
628
627
  define_element_name 'a:softEdge'
629
628
  end
630
629
 
631
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_TransformEffect.html
630
+ # http://www.datypic.com/sc/ooxml/t-a_CT_TransformEffect.html
632
631
  class CT_TransformEffect < OOXMLObject
633
632
  define_attribute(:sx, :int, :default => 100000)
634
633
  define_attribute(:sy, :int, :default => 100000)
@@ -639,7 +638,7 @@ module RubyXL
639
638
  define_element_name 'a:xfrm'
640
639
  end
641
640
 
642
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_EffectContainer.html
641
+ # http://www.datypic.com/sc/ooxml/t-a_CT_EffectContainer.html
643
642
  class CT_EffectContainer < OOXMLObject
644
643
  define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:cont')
645
644
  define_child_node(RubyXL::CT_EffectReference)
@@ -675,7 +674,7 @@ module RubyXL
675
674
  define_attribute(:name, :string)
676
675
  end
677
676
 
678
- # http://www.schemacentral.com/sc/ooxml/e-a_fillStyleLst-1.html
677
+ # http://www.datypic.com/sc/ooxml/e-a_fillStyleLst-1.html
679
678
  class CT_FillStyleList < OOXMLObject
680
679
  # -- Choice [3..*] (EG_FillProperties)
681
680
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
@@ -688,39 +687,39 @@ module RubyXL
688
687
  define_element_name 'a:fillStyleLst'
689
688
  end
690
689
 
691
- # http://www.schemacentral.com/sc/ooxml/e-a_miter-1.html
690
+ # http://www.datypic.com/sc/ooxml/e-a_miter-1.html
692
691
  class CT_LineJoinMiterProperties < OOXMLObject
693
692
  define_attribute(:lim, :int)
694
693
  define_element_name 'a:miter'
695
694
  end
696
695
 
697
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_LineEndProperties.html
696
+ # http://www.datypic.com/sc/ooxml/t-a_CT_LineEndProperties.html
698
697
  class CT_LineEndProperties < OOXMLObject
699
698
  define_attribute(:type, RubyXL::ST_LineEndType)
700
699
  define_attribute(:w, RubyXL::ST_LineEndWidth)
701
700
  define_attribute(:len, RubyXL::ST_LineEndLength)
702
701
  end
703
702
 
704
- # http://www.schemacentral.com/sc/ooxml/e-a_prstDash-1.html
703
+ # http://www.datypic.com/sc/ooxml/e-a_prstDash-1.html
705
704
  class CT_PresetLineDashProperties < OOXMLObject
706
705
  define_attribute(:val, RubyXL::ST_PresetLineDashVal)
707
706
  define_element_name 'a:prstDash'
708
707
  end
709
708
 
710
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_DashStop.html
709
+ # http://www.datypic.com/sc/ooxml/t-a_CT_DashStop.html
711
710
  class CT_DashStop < OOXMLObject
712
711
  define_attribute(:d, :int, :required => true)
713
712
  define_attribute(:sp, :int, :required => true)
714
713
  define_element_name 'a:ds'
715
714
  end
716
715
 
717
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_DashStopList.html
716
+ # http://www.datypic.com/sc/ooxml/t-a_CT_DashStopList.html
718
717
  class CT_DashStopList < OOXMLContainerObject
719
718
  define_child_node(RubyXL::CT_DashStop, :collection => [0..-1])
720
719
  define_element_name 'a:custDash'
721
720
  end
722
721
 
723
- # http://www.schemacentral.com/sc/ooxml/e-a_ln-1.html
722
+ # http://www.datypic.com/sc/ooxml/e-a_ln-1.html
724
723
  class CT_LineProperties < OOXMLObject
725
724
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
726
725
  define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
@@ -741,13 +740,13 @@ module RubyXL
741
740
  define_element_name 'a:ln'
742
741
  end
743
742
 
744
- # http://www.schemacentral.com/sc/ooxml/e-a_lnStyleLst-1.html
743
+ # http://www.datypic.com/sc/ooxml/e-a_lnStyleLst-1.html
745
744
  class CT_LineStyleList < OOXMLContainerObject
746
745
  define_child_node(RubyXL::CT_LineProperties, :collection => [3..-1])
747
746
  define_element_name 'a:lnStyleLst'
748
747
  end
749
748
 
750
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_SphereCoords.html
749
+ # http://www.datypic.com/sc/ooxml/t-a_CT_SphereCoords.html
751
750
  class CT_SphereCoords < OOXMLObject
752
751
  define_attribute(:lat, :int, :required => true)
753
752
  define_attribute(:lon, :int, :required => true)
@@ -755,7 +754,7 @@ module RubyXL
755
754
  define_element_name 'a:rot'
756
755
  end
757
756
 
758
- # http://www.schemacentral.com/sc/ooxml/e-a_camera-1.html
757
+ # http://www.datypic.com/sc/ooxml/e-a_camera-1.html
759
758
  class CT_Camera < OOXMLObject
760
759
  define_child_node(RubyXL::CT_SphereCoords)
761
760
  define_attribute(:prst, RubyXL::ST_PresetCameraType, :required => true)
@@ -764,7 +763,7 @@ module RubyXL
764
763
  define_element_name 'a:camera'
765
764
  end
766
765
 
767
- # http://www.schemacentral.com/sc/ooxml/e-a_lightRig-1.html
766
+ # http://www.datypic.com/sc/ooxml/e-a_lightRig-1.html
768
767
  class CT_LightRig < OOXMLObject
769
768
  define_child_node(RubyXL::CT_SphereCoords)
770
769
  define_attribute(:rig, RubyXL::ST_LightRigType, :required => true)
@@ -772,7 +771,7 @@ module RubyXL
772
771
  define_element_name 'a:lightRig'
773
772
  end
774
773
 
775
- # http://www.schemacentral.com/sc/ooxml/e-a_anchor-1.html
774
+ # http://www.datypic.com/sc/ooxml/e-a_anchor-1.html
776
775
  class CT_Point3D < OOXMLObject
777
776
  define_attribute(:x, :int, :required => true)
778
777
  define_attribute(:y, :int, :required => true)
@@ -780,14 +779,14 @@ module RubyXL
780
779
  define_element_name 'a:anchor'
781
780
  end
782
781
 
783
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Vector3D.html
782
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Vector3D.html
784
783
  class CT_Vector3D < OOXMLObject
785
784
  define_attribute(:dx, :int, :required => true)
786
785
  define_attribute(:dy, :int, :required => true)
787
786
  define_attribute(:dz, :int, :required => true)
788
787
  end
789
788
 
790
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Backdrop.html
789
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Backdrop.html
791
790
  class CT_Backdrop < OOXMLObject
792
791
  define_child_node(RubyXL::CT_Point3D)
793
792
  define_child_node(RubyXL::CT_Vector3D, :node_name => 'a:norm')
@@ -796,7 +795,7 @@ module RubyXL
796
795
  define_element_name 'a:backdrop'
797
796
  end
798
797
 
799
- # http://www.schemacentral.com/sc/ooxml/e-a_scene3d-1.html
798
+ # http://www.datypic.com/sc/ooxml/e-a_scene3d-1.html
800
799
  class CT_Scene3D < OOXMLObject
801
800
  define_child_node(RubyXL::CT_Camera, :required => true)
802
801
  define_child_node(RubyXL::CT_LightRig, :required => true)
@@ -805,7 +804,7 @@ module RubyXL
805
804
  define_element_name 'a:scene3d'
806
805
  end
807
806
 
808
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Bevel.html
807
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Bevel.html
809
808
  class CT_Bevel < OOXMLObject
810
809
  define_attribute(:w, :int, :default => 76200)
811
810
  define_attribute(:h, :int, :default => 76200)
@@ -813,7 +812,7 @@ module RubyXL
813
812
  define_element_name 'a:CT_Bevel'
814
813
  end
815
814
 
816
- # http://www.schemacentral.com/sc/ooxml/e-a_sp3d-1.html
815
+ # http://www.datypic.com/sc/ooxml/e-a_sp3d-1.html
817
816
  class CT_Shape3D < OOXMLObject
818
817
  define_child_node(RubyXL::CT_Bevel, :node_name => 'a:bevelT')
819
818
  define_child_node(RubyXL::CT_Bevel, :node_name => 'a:bevelB')
@@ -827,7 +826,7 @@ module RubyXL
827
826
  define_element_name 'a:sp3d'
828
827
  end
829
828
 
830
- # http://www.schemacentral.com/sc/ooxml/e-a_effectLst-1.html
829
+ # http://www.datypic.com/sc/ooxml/e-a_effectLst-1.html
831
830
  class CT_EffectList < OOXMLObject
832
831
  define_child_node(RubyXL::CT_BlurEffect)
833
832
  define_child_node(RubyXL::CT_FillOverlayEffect)
@@ -840,7 +839,7 @@ module RubyXL
840
839
  define_element_name 'a:effectLst'
841
840
  end
842
841
 
843
- # http://www.schemacentral.com/sc/ooxml/e-a_effectStyle-1.html
842
+ # http://www.datypic.com/sc/ooxml/e-a_effectStyle-1.html
844
843
  class CT_EffectStyleItem < OOXMLObject
845
844
  define_child_node(RubyXL::CT_EffectList)
846
845
  define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:effectDag')
@@ -849,13 +848,13 @@ module RubyXL
849
848
  define_element_name 'a:effectStyle'
850
849
  end
851
850
 
852
- # http://www.schemacentral.com/sc/ooxml/e-a_effectStyleLst-1.html
851
+ # http://www.datypic.com/sc/ooxml/e-a_effectStyleLst-1.html
853
852
  class CT_EffectStyleList < OOXMLContainerObject
854
853
  define_child_node(RubyXL::CT_EffectStyleItem, :collection => [3..-1])
855
854
  define_element_name 'a:effectStyleLst'
856
855
  end
857
856
 
858
- # http://www.schemacentral.com/sc/ooxml/e-a_fmtScheme-1.html
857
+ # http://www.datypic.com/sc/ooxml/e-a_fmtScheme-1.html
859
858
  class CT_StyleMatrix < OOXMLObject
860
859
  define_child_node(RubyXL::CT_FillStyleList, :required => true)
861
860
  define_child_node(RubyXL::CT_LineStyleList, :required => true)
@@ -865,7 +864,7 @@ module RubyXL
865
864
  define_element_name 'a:fmtScheme'
866
865
  end
867
866
 
868
- # http://www.schemacentral.com/sc/ooxml/e-a_themeElements-1.html
867
+ # http://www.datypic.com/sc/ooxml/e-a_themeElements-1.html
869
868
  class ThemeElements < OOXMLObject
870
869
  define_child_node(RubyXL::CT_ColorScheme)
871
870
  define_child_node(RubyXL::FontScheme)
@@ -874,21 +873,21 @@ module RubyXL
874
873
  define_element_name 'a:themeElements'
875
874
  end
876
875
 
877
- # http://www.schemacentral.com/sc/ooxml/e-a_off-1.html
876
+ # http://www.datypic.com/sc/ooxml/e-a_off-1.html
878
877
  class Offset < OOXMLObject
879
878
  define_attribute(:x, :int, :required => true)
880
879
  define_attribute(:y, :int, :required => true)
881
880
  define_element_name 'a:off'
882
881
  end
883
882
 
884
- # http://www.schemacentral.com/sc/ooxml/e-a_ext-2.html
883
+ # http://www.datypic.com/sc/ooxml/e-a_ext-2.html
885
884
  class Extents < OOXMLObject
886
885
  define_attribute(:cx, :int, :required => true)
887
886
  define_attribute(:cy, :int, :required => true)
888
887
  define_element_name 'a:ext'
889
888
  end
890
889
 
891
- # http://www.schemacentral.com/sc/ooxml/e-a_xfrm-4.html
890
+ # http://www.datypic.com/sc/ooxml/e-a_xfrm-4.html
892
891
  class CT_Transform2D < OOXMLObject
893
892
  define_attribute(:rot, :int, :default => 0)
894
893
  define_attribute(:flipH, :bool, :default => false)
@@ -898,19 +897,19 @@ module RubyXL
898
897
  define_element_name 'a:xfrm'
899
898
  end
900
899
 
901
- # http://www.schemacentral.com/sc/ooxml/e-a_gd-1.html
900
+ # http://www.datypic.com/sc/ooxml/e-a_gd-1.html
902
901
  class ShapeGuide < OOXMLObject
903
902
  define_attribute(:name, :string, :required => true)
904
903
  define_attribute(:fmla, :string, :required => true)
905
904
  define_element_name 'a:gd'
906
905
  end
907
906
 
908
- # http://www.schemacentral.com/sc/ooxml/e-a_avLst-1.html
907
+ # http://www.datypic.com/sc/ooxml/e-a_avLst-1.html
909
908
  class CT_GeomGuideList < OOXMLContainerObject
910
909
  define_child_node(RubyXL::ShapeGuide, :collection => [0..-1])
911
910
  end
912
911
 
913
- # http://www.schemacentral.com/sc/ooxml/e-a_rect-1.html
912
+ # http://www.datypic.com/sc/ooxml/e-a_rect-1.html
914
913
  class ShapeTextRectangle < OOXMLObject
915
914
  define_attribute(:l, :int, :required => true)
916
915
  define_attribute(:t, :int, :required => true)
@@ -919,14 +918,14 @@ module RubyXL
919
918
  define_element_name 'a:rect'
920
919
  end
921
920
 
922
- # http://www.schemacentral.com/sc/ooxml/e-a_pos-2.html
921
+ # http://www.datypic.com/sc/ooxml/e-a_pos-2.html
923
922
  class CT_AdjPoint2D < OOXMLObject
924
923
  define_attribute(:x, :int, :required => true)
925
924
  define_attribute(:y, :int, :required => true)
926
925
  define_element_name 'a:pos'
927
926
  end
928
927
 
929
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
928
+ # http://www.datypic.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
930
929
  class CT_XYAdjustHandle < OOXMLObject
931
930
  define_child_node(RubyXL::CT_AdjPoint2D)
932
931
  define_attribute(:gdRefX, :string)
@@ -938,7 +937,7 @@ module RubyXL
938
937
  define_element_name 'a:ahXY'
939
938
  end
940
939
 
941
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
940
+ # http://www.datypic.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
942
941
  class CT_PolarAdjustHandle < OOXMLObject
943
942
  define_child_node(RubyXL::CT_AdjPoint2D)
944
943
  define_attribute(:gdRefR, :string)
@@ -950,32 +949,32 @@ module RubyXL
950
949
  define_element_name 'a:ahPolar'
951
950
  end
952
951
 
953
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_AdjustHandleList.html
952
+ # http://www.datypic.com/sc/ooxml/t-a_CT_AdjustHandleList.html
954
953
  class AdjustHandleList < OOXMLObject
955
954
  define_child_node(RubyXL::CT_XYAdjustHandle)
956
955
  define_child_node(RubyXL::CT_PolarAdjustHandle)
957
956
  define_element_name 'a:ahLst'
958
957
  end
959
958
 
960
- # http://www.schemacentral.com/sc/ooxml/e-a_cxn-1.html
959
+ # http://www.datypic.com/sc/ooxml/e-a_cxn-1.html
961
960
  class CT_ConnectionSite < OOXMLObject
962
961
  define_child_node(RubyXL::CT_AdjPoint2D)
963
962
  define_attribute(:ang, :int)
964
963
  define_element_name 'a:cxn'
965
964
  end
966
965
 
967
- # http://www.schemacentral.com/sc/ooxml/e-a_cxnLst-1.html
966
+ # http://www.datypic.com/sc/ooxml/e-a_cxnLst-1.html
968
967
  class CT_ConnectionSiteList < OOXMLContainerObject
969
968
  define_child_node(RubyXL::CT_ConnectionSite, :collection => [0..-1])
970
969
  define_element_name 'a:cxnLst'
971
970
  end
972
971
 
973
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Path2DLineTo.html
972
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Path2DLineTo.html
974
973
  class CT_Path2DTo < OOXMLContainerObject
975
974
  define_child_node(RubyXL::CT_AdjPoint2D)
976
975
  end
977
976
 
978
- # http://www.schemacentral.com/sc/ooxml/e-a_arcTo-1.html
977
+ # http://www.datypic.com/sc/ooxml/e-a_arcTo-1.html
979
978
  class CT_Path2DArcTo < OOXMLObject
980
979
  define_attribute(:wR, :int, :required => true)
981
980
  define_attribute(:hR, :int, :required => true)
@@ -984,19 +983,19 @@ module RubyXL
984
983
  define_element_name 'a:arcTo'
985
984
  end
986
985
 
987
- # http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
986
+ # http://www.datypic.com/sc/ooxml/e-a_quadBezTo-1.html
988
987
  class CT_Path2DQuadBezierTo < OOXMLContainerObject
989
988
  define_child_node(RubyXL::CT_AdjPoint2D, :collection => [2..2], :node_name => 'a:pt')
990
989
  define_element_name 'a:quadBezTo'
991
990
  end
992
991
 
993
- # http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
992
+ # http://www.datypic.com/sc/ooxml/e-a_quadBezTo-1.html
994
993
  class CT_Path2DCubicBezierTo < OOXMLContainerObject
995
994
  define_child_node(RubyXL::CT_AdjPoint2D, :collection => [2..2], :node_name => 'a:pt')
996
995
  define_element_name 'a:cubicBezTo'
997
996
  end
998
997
 
999
- # http://www.schemacentral.com/sc/ooxml/e-a_path-2.html
998
+ # http://www.datypic.com/sc/ooxml/e-a_path-2.html
1000
999
  class CT_Path2D < OOXMLObject
1001
1000
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:close')
1002
1001
  define_child_node(RubyXL::CT_Path2DTo, :node_name => 'a:moveTo')
@@ -1012,13 +1011,13 @@ module RubyXL
1012
1011
  define_element_name 'a:path'
1013
1012
  end
1014
1013
 
1015
- # http://www.schemacentral.com/sc/ooxml/e-a_pathLst-1.html
1014
+ # http://www.datypic.com/sc/ooxml/e-a_pathLst-1.html
1016
1015
  class CT_Path2DList < OOXMLContainerObject
1017
1016
  define_child_node(RubyXL::CT_Path2D, :collection => [0..-1])
1018
1017
  define_element_name 'a:pathLst'
1019
1018
  end
1020
1019
 
1021
- # http://www.schemacentral.com/sc/ooxml/e-a_custGeom-1.html
1020
+ # http://www.datypic.com/sc/ooxml/e-a_custGeom-1.html
1022
1021
  class CustomGeometry < OOXMLObject
1023
1022
  define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
1024
1023
  define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:gdLst')
@@ -1029,14 +1028,14 @@ module RubyXL
1029
1028
  define_element_name 'a:custGeom'
1030
1029
  end
1031
1030
 
1032
- # http://www.schemacentral.com/sc/ooxml/e-a_prstGeom-1.html
1031
+ # http://www.datypic.com/sc/ooxml/e-a_prstGeom-1.html
1033
1032
  class PresetGeometry < OOXMLObject
1034
1033
  define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
1035
1034
  define_attribute(:prst, RubyXL::ST_ShapeType, :required => true)
1036
1035
  define_element_name 'a:prstGeom'
1037
1036
  end
1038
1037
 
1039
- # http://www.schemacentral.com/sc/ooxml/e-a_spPr-1.html
1038
+ # http://www.datypic.com/sc/ooxml/e-a_spPr-1.html
1040
1039
  class VisualProperties < OOXMLObject
1041
1040
  define_child_node(RubyXL::CT_Transform2D)
1042
1041
  # -- Choice [0..1] (EG_Geometry)
@@ -1062,27 +1061,27 @@ module RubyXL
1062
1061
  define_element_name 'a:spPr'
1063
1062
  end
1064
1063
 
1065
- # http://www.schemacentral.com/sc/ooxml/e-a_prstTxWarp-2.html
1064
+ # http://www.datypic.com/sc/ooxml/e-a_prstTxWarp-2.html
1066
1065
  class CT_PresetTextShape < OOXMLObject
1067
1066
  define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
1068
1067
  define_attribute(:prst, RubyXL::ST_TextShapeType)
1069
1068
  define_element_name 'a:prstTxWarp'
1070
1069
  end
1071
1070
 
1072
- # http://www.schemacentral.com/sc/ooxml/e-a_normAutofit-1.html
1071
+ # http://www.datypic.com/sc/ooxml/e-a_normAutofit-1.html
1073
1072
  class CT_TextNormalAutofit < OOXMLObject
1074
1073
  define_attribute(:fontScale, :int, :default => 100000)
1075
1074
  define_attribute(:lnSpcReduction, :int, :default => 0)
1076
1075
  define_element_name 'a:normAutofit'
1077
1076
  end
1078
1077
 
1079
- # http://www.schemacentral.com/sc/ooxml/e-a_flatTx-1.html
1078
+ # http://www.datypic.com/sc/ooxml/e-a_flatTx-1.html
1080
1079
  class CT_FlatText < OOXMLObject
1081
1080
  define_attribute(:z, :int, :default => 0)
1082
1081
  define_element_name 'a:flatTx'
1083
1082
  end
1084
1083
 
1085
- # http://www.schemacentral.com/sc/ooxml/e-a_bodyPr-1.html
1084
+ # http://www.datypic.com/sc/ooxml/e-a_bodyPr-1.html
1086
1085
  class BodyProperties < OOXMLObject
1087
1086
  define_child_node(RubyXL::CT_PresetTextShape)
1088
1087
  define_child_node(RubyXL::BooleanValue, :node_name => 'a:noAutofit')
@@ -1114,45 +1113,45 @@ module RubyXL
1114
1113
  define_element_name 'a:bodyPr'
1115
1114
  end
1116
1115
 
1117
- # http://www.schemacentral.com/sc/ooxml/e-a_tab-1.html
1116
+ # http://www.datypic.com/sc/ooxml/e-a_tab-1.html
1118
1117
  class CT_TextTabStop < OOXMLObject
1119
1118
  define_attribute(:pos, :int)
1120
1119
  define_attribute(:algn, RubyXL::ST_TextTabAlignType)
1121
1120
  define_element_name 'a:tabLst'
1122
1121
  end
1123
1122
 
1124
- # http://www.schemacentral.com/sc/ooxml/e-a_tabLst-1.html
1123
+ # http://www.datypic.com/sc/ooxml/e-a_tabLst-1.html
1125
1124
  class CT_TextTabStopList < OOXMLContainerObject
1126
1125
  define_child_node(RubyXL::CT_TextTabStop, :collection => [0..32])
1127
1126
  define_element_name 'a:tabLst'
1128
1127
  end
1129
1128
 
1130
- # http://www.schemacentral.com/sc/ooxml/e-a_buAutoNum-1.html
1129
+ # http://www.datypic.com/sc/ooxml/e-a_buAutoNum-1.html
1131
1130
  class CT_TextAutonumberBullet < OOXMLObject
1132
1131
  define_attribute(:type, RubyXL::ST_TextAutonumberScheme)
1133
1132
  define_attribute(:startAt, :int)
1134
1133
  define_element_name 'a:buAutoNum'
1135
1134
  end
1136
1135
 
1137
- # http://www.schemacentral.com/sc/ooxml/e-a_buChar-1.html
1136
+ # http://www.datypic.com/sc/ooxml/e-a_buChar-1.html
1138
1137
  class CT_TextCharBullet < OOXMLObject
1139
1138
  define_attribute(:char, :string, :required => true)
1140
1139
  define_element_name 'a:buChar'
1141
1140
  end
1142
1141
 
1143
- # http://www.schemacentral.com/sc/ooxml/e-a_buBlip-1.html
1142
+ # http://www.datypic.com/sc/ooxml/e-a_buBlip-1.html
1144
1143
  class CT_TextBlipBullet < OOXMLObject
1145
1144
  define_child_node(RubyXL::CT_Blip)
1146
1145
  define_element_name 'a:buBlip'
1147
1146
  end
1148
1147
 
1149
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_TextSpacing.html
1148
+ # http://www.datypic.com/sc/ooxml/t-a_CT_TextSpacing.html
1150
1149
  class CT_TextSpacing < OOXMLObject
1151
1150
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:spcPct')
1152
1151
  define_child_node(RubyXL::IntegerValue, :node_name => 'a:spcPts')
1153
1152
  end
1154
1153
 
1155
- # http://www.schemacentral.com/sc/ooxml/e-a_snd-1.html
1154
+ # http://www.datypic.com/sc/ooxml/e-a_snd-1.html
1156
1155
  class CT_EmbeddedWAVAudioFile < OOXMLObject
1157
1156
  define_attribute(:'r:embed', :string)
1158
1157
  define_attribute(:name, :string, :default => '')
@@ -1160,11 +1159,11 @@ module RubyXL
1160
1159
  define_element_name 'a:snd'
1161
1160
  end
1162
1161
 
1163
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_Hyperlink.html
1162
+ # http://www.datypic.com/sc/ooxml/t-a_CT_Hyperlink.html
1164
1163
  class CT_Hyperlink < OOXMLObject
1165
1164
  define_child_node(RubyXL::CT_EmbeddedWAVAudioFile)
1166
1165
  define_child_node(RubyXL::AExtensionStorageArea)
1167
- define_attribute(:'r:id', :string)
1166
+ define_relationship
1168
1167
  define_attribute(:invalidUrl, :string, :default => '')
1169
1168
  define_attribute(:action, :string, :default => '')
1170
1169
  define_attribute(:tgtFrame, :string, :default => '')
@@ -1174,7 +1173,7 @@ module RubyXL
1174
1173
  define_attribute(:endSnd, :bool, :default => false)
1175
1174
  end
1176
1175
 
1177
- # http://www.schemacentral.com/sc/ooxml/e-a_defRPr-1.html
1176
+ # http://www.datypic.com/sc/ooxml/e-a_defRPr-1.html
1178
1177
  class CT_TextCharacterProperties < OOXMLObject
1179
1178
  define_child_node(RubyXL::CT_LineProperties)
1180
1179
  # -- EG_FillProperties
@@ -1183,7 +1182,7 @@ module RubyXL
1183
1182
  define_child_node(RubyXL::CT_GradientFillProperties)
1184
1183
  define_child_node(RubyXL::CT_BlipFillProperties)
1185
1184
  define_child_node(RubyXL::CT_PatternFillProperties)
1186
- define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
1185
+ define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
1187
1186
  # -- EG_EffectProperties
1188
1187
  define_child_node(RubyXL::CT_EffectList)
1189
1188
  define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:effectDag')
@@ -1224,7 +1223,7 @@ module RubyXL
1224
1223
  define_element_name 'a:defRPr'
1225
1224
  end
1226
1225
 
1227
- # http://www.schemacentral.com/sc/ooxml/e-a_defPPr-1.html
1226
+ # http://www.datypic.com/sc/ooxml/e-a_defPPr-1.html
1228
1227
  class CT_TextParagraphProperties < OOXMLObject
1229
1228
  define_child_node(RubyXL::CT_TextSpacing, :node_name => 'a:lnSpc')
1230
1229
  define_child_node(RubyXL::CT_TextSpacing, :node_name => 'a:spcBef')
@@ -1257,7 +1256,7 @@ module RubyXL
1257
1256
  define_element_name 'a:defPPr'
1258
1257
  end
1259
1258
 
1260
- # http://www.schemacentral.com/sc/ooxml/e-a_lstStyle-1.html
1259
+ # http://www.datypic.com/sc/ooxml/e-a_lstStyle-1.html
1261
1260
  class CT_TextListStyle < OOXMLObject
1262
1261
  define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:defPPr')
1263
1262
  define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl1pPr')
@@ -1273,7 +1272,7 @@ module RubyXL
1273
1272
  define_element_name 'a:lstStyle'
1274
1273
  end
1275
1274
 
1276
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_StyleMatrixReference.html
1275
+ # http://www.datypic.com/sc/ooxml/t-a_CT_StyleMatrixReference.html
1277
1276
  class CT_StyleMatrixReference < OOXMLObject
1278
1277
  define_child_node(RubyXL::CT_ScRgbColor)
1279
1278
  define_child_node(RubyXL::CT_SRgbColor)
@@ -1284,7 +1283,7 @@ module RubyXL
1284
1283
  define_attribute(:idx, :int, :required => true)
1285
1284
  end
1286
1285
 
1287
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_FontReference.html
1286
+ # http://www.datypic.com/sc/ooxml/t-a_CT_FontReference.html
1288
1287
  class CT_FontReference < OOXMLObject
1289
1288
  define_child_node(RubyXL::CT_ScRgbColor)
1290
1289
  define_child_node(RubyXL::CT_SRgbColor)
@@ -1295,7 +1294,7 @@ module RubyXL
1295
1294
  define_attribute(:idx, RubyXL::ST_FontCollectionIndex, :required => true)
1296
1295
  end
1297
1296
 
1298
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_ShapeStyle.html
1297
+ # http://www.datypic.com/sc/ooxml/t-a_CT_ShapeStyle.html
1299
1298
  class CT_ShapeStyle < OOXMLObject
1300
1299
  define_child_node(RubyXL::CT_StyleMatrixReference, :node_name => 'a:lnRef')
1301
1300
  define_child_node(RubyXL::CT_StyleMatrixReference, :node_name => 'a:fillRef')
@@ -1304,7 +1303,7 @@ module RubyXL
1304
1303
  define_element_name 'a:style'
1305
1304
  end
1306
1305
 
1307
- # http://www.schemacentral.com/sc/ooxml/t-a_CT_DefaultShapeDefinition.html
1306
+ # http://www.datypic.com/sc/ooxml/t-a_CT_DefaultShapeDefinition.html
1308
1307
  class CT_DefaultShapeDefinition < OOXMLObject
1309
1308
  define_child_node(RubyXL::VisualProperties)
1310
1309
  define_child_node(RubyXL::BodyProperties)
@@ -1313,7 +1312,7 @@ module RubyXL
1313
1312
  define_child_node(RubyXL::AExtensionStorageArea)
1314
1313
  end
1315
1314
 
1316
- # http://www.schemacentral.com/sc/ooxml/e-a_objectDefaults-1.html
1315
+ # http://www.datypic.com/sc/ooxml/e-a_objectDefaults-1.html
1317
1316
  class CT_ObjectStyleDefaults < OOXMLObject
1318
1317
  define_child_node(RubyXL::CT_DefaultShapeDefinition, :node_name => 'a:spDef')
1319
1318
  define_child_node(RubyXL::CT_DefaultShapeDefinition, :node_name => 'a:lnDef')
@@ -1322,7 +1321,7 @@ module RubyXL
1322
1321
  define_element_name 'a:objectDefaults'
1323
1322
  end
1324
1323
 
1325
- # http://www.schemacentral.com/sc/ooxml/e-a_clrMap-1.html
1324
+ # http://www.datypic.com/sc/ooxml/e-a_clrMap-1.html
1326
1325
  class CT_ColorMapping < OOXMLObject
1327
1326
  define_child_node(RubyXL::AExtensionStorageArea)
1328
1327
  define_attribute(:bg1, RubyXL::ST_ColorSchemeIndex, :required => true)
@@ -1340,20 +1339,20 @@ module RubyXL
1340
1339
  define_element_name 'a:clrMap'
1341
1340
  end
1342
1341
 
1343
- # http://www.schemacentral.com/sc/ooxml/e-a_extraClrScheme-1.html
1342
+ # http://www.datypic.com/sc/ooxml/e-a_extraClrScheme-1.html
1344
1343
  class CT_ColorSchemeAndMapping < OOXMLObject
1345
1344
  define_child_node(RubyXL::CT_ColorScheme)
1346
1345
  define_child_node(RubyXL::CT_ColorMapping)
1347
1346
  define_element_name 'a:extraClrScheme'
1348
1347
  end
1349
1348
 
1350
- # http://www.schemacentral.com/sc/ooxml/e-a_extraClrSchemeLst-1.html
1349
+ # http://www.datypic.com/sc/ooxml/e-a_extraClrSchemeLst-1.html
1351
1350
  class ExtraColorSchemeList < OOXMLContainerObject
1352
1351
  define_child_node(RubyXL::CT_ColorSchemeAndMapping, :collection => [0..-1])
1353
1352
  define_element_name 'a:extraClrSchemeLst'
1354
1353
  end
1355
1354
 
1356
- # http://www.schemacentral.com/sc/ooxml/e-a_custClr-1.html
1355
+ # http://www.datypic.com/sc/ooxml/e-a_custClr-1.html
1357
1356
  class CustomColor < OOXMLObject
1358
1357
  define_child_node(RubyXL::CT_ScRgbColor)
1359
1358
  define_child_node(RubyXL::CT_SRgbColor)
@@ -1365,16 +1364,16 @@ module RubyXL
1365
1364
  define_element_name 'a:custClr'
1366
1365
  end
1367
1366
 
1368
- # http://www.schemacentral.com/sc/ooxml/e-a_custClrLst-1.html
1367
+ # http://www.datypic.com/sc/ooxml/e-a_custClrLst-1.html
1369
1368
  class CustomColorList < OOXMLContainerObject
1370
1369
  define_child_node(RubyXL::CustomColor, :collection => [0..-1])
1371
1370
  define_element_name 'a:custClrLst'
1372
1371
  end
1373
1372
 
1374
- # http://www.schemacentral.com/sc/ooxml/e-a_theme.html
1373
+ # http://www.datypic.com/sc/ooxml/e-a_theme.html
1375
1374
  class Theme < OOXMLTopLevelObject
1376
- CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.theme+xml'
1377
- REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme'
1375
+ CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.theme+xml'.freeze
1376
+ REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme'.freeze
1378
1377
 
1379
1378
  define_attribute(:name, :string, :default => '')
1380
1379
  define_child_node(RubyXL::ThemeElements)
@@ -1391,6 +1390,25 @@ module RubyXL
1391
1390
  ROOT.join('xl', 'theme', 'theme1.xml')
1392
1391
  end
1393
1392
 
1393
+ def get_theme_color(idx)
1394
+ color_scheme = a_theme_elements && a_theme_elements.a_clr_scheme
1395
+
1396
+ if color_scheme then
1397
+ case idx
1398
+ when 0 then color_scheme.a_lt1
1399
+ when 1 then color_scheme.a_dk1
1400
+ when 2 then color_scheme.a_lt2
1401
+ when 3 then color_scheme.a_dk2
1402
+ when 4 then color_scheme.a_accent1
1403
+ when 5 then color_scheme.a_accent2
1404
+ when 6 then color_scheme.a_accent3
1405
+ when 7 then color_scheme.a_accent4
1406
+ when 8 then color_scheme.a_accent5
1407
+ when 9 then color_scheme.a_accent6
1408
+ end
1409
+ end
1410
+ end
1411
+
1394
1412
  def self.default
1395
1413
  default_theme = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1396
1414
  <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
@@ -1710,7 +1728,5 @@ module RubyXL
1710
1728
  </a:theme>'
1711
1729
  self.parse(default_theme)
1712
1730
  end
1713
-
1714
1731
  end
1715
-
1716
1732
  end