rubyXL 3.3.21 → 3.4.17

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