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.
- checksums.yaml +5 -5
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +96 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +47 -16
- data/Rakefile +3 -2
- data/VERSION +1 -1
- data/lib/rubyXL.rb +1 -0
- data/lib/rubyXL/cell.rb +1 -26
- data/lib/rubyXL/convenience_methods.rb +5 -982
- data/lib/rubyXL/convenience_methods/cell.rb +272 -0
- data/lib/rubyXL/convenience_methods/color.rb +160 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +136 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +710 -0
- data/lib/rubyXL/objects/border.rb +31 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +8 -8
- data/lib/rubyXL/objects/chartsheet.rb +10 -10
- data/lib/rubyXL/objects/color.rb +6 -4
- data/lib/rubyXL/objects/column_range.rb +10 -10
- data/lib/rubyXL/objects/comments.rb +6 -6
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +2 -2
- data/lib/rubyXL/objects/content_types.rb +2 -2
- data/lib/rubyXL/objects/data_validation.rb +4 -2
- data/lib/rubyXL/objects/document_properties.rb +3 -3
- data/lib/rubyXL/objects/extensions.rb +20 -3
- data/lib/rubyXL/objects/external_links.rb +26 -2
- data/lib/rubyXL/objects/fill.rb +4 -4
- data/lib/rubyXL/objects/filters.rb +12 -12
- data/lib/rubyXL/objects/font.rb +2 -60
- data/lib/rubyXL/objects/formula.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +15 -3
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/relationships.rb +8 -3
- data/lib/rubyXL/objects/shared_strings.rb +1 -1
- data/lib/rubyXL/objects/sheet_common.rb +4 -4
- data/lib/rubyXL/objects/sheet_data.rb +48 -11
- data/lib/rubyXL/objects/simple_types.rb +18 -0
- data/lib/rubyXL/objects/storage.rb +25 -1
- data/lib/rubyXL/objects/stylesheet.rb +14 -14
- data/lib/rubyXL/objects/text.rb +8 -8
- data/lib/rubyXL/objects/theme.rb +138 -119
- data/lib/rubyXL/objects/workbook.rb +153 -43
- data/lib/rubyXL/objects/worksheet.rb +118 -107
- data/lib/rubyXL/worksheet.rb +19 -13
- data/rdoc/README_rdoc.html +109 -103
- data/rdoc/RubyXL.html +39 -296
- data/rdoc/RubyXL/AExtension.html +21 -60
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
- data/rdoc/RubyXL/ActiveX.html +154 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +13 -19
- data/rdoc/RubyXL/Alignment.html +13 -19
- data/rdoc/RubyXL/AlternateContent.html +12 -17
- data/rdoc/RubyXL/Authors.html +13 -19
- data/rdoc/RubyXL/AutoFilter.html +13 -19
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
- data/rdoc/RubyXL/BinaryImageFile.html +12 -25
- data/rdoc/RubyXL/BodyProperties.html +13 -19
- data/rdoc/RubyXL/BooleanNode.html +12 -17
- data/rdoc/RubyXL/BooleanValue.html +12 -17
- data/rdoc/RubyXL/Border.html +76 -53
- data/rdoc/RubyXL/BorderEdge.html +71 -17
- data/rdoc/RubyXL/Borders.html +19 -39
- data/rdoc/RubyXL/Break.html +13 -19
- data/rdoc/RubyXL/BreakList.html +13 -19
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
- data/rdoc/RubyXL/CT_Backdrop.html +13 -19
- data/rdoc/RubyXL/CT_Bevel.html +13 -19
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
- data/rdoc/RubyXL/CT_Blip.html +13 -19
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
- data/rdoc/RubyXL/CT_Camera.html +13 -19
- data/rdoc/RubyXL/CT_Color.html +13 -19
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
- data/rdoc/RubyXL/CT_DashStop.html +13 -19
- data/rdoc/RubyXL/CT_DashStopList.html +13 -19
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
- data/rdoc/RubyXL/CT_EffectList.html +13 -19
- data/rdoc/RubyXL/CT_EffectReference.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
- data/rdoc/RubyXL/CT_FillEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
- data/rdoc/RubyXL/CT_FlatText.html +13 -19
- data/rdoc/RubyXL/CT_FontCollection.html +13 -19
- data/rdoc/RubyXL/CT_FontReference.html +13 -19
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_GradientStop.html +13 -19
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
- data/rdoc/RubyXL/CT_HslColor.html +13 -19
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_LightRig.html +13 -19
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_Path2D.html +13 -19
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DList.html +13 -19
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_Point3D.html +13 -19
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CT_PresetColor.html +13 -19
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_Scene3D.html +13 -19
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
- data/rdoc/RubyXL/CT_Shape3D.html +13 -19
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
- data/rdoc/RubyXL/CT_SystemColor.html +13 -19
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextFont.html +13 -19
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_TintEffect.html +13 -19
- data/rdoc/RubyXL/CT_Transform2D.html +13 -19
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
- data/rdoc/RubyXL/CT_Vector3D.html +13 -19
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CalculationChain.html +17 -45
- data/rdoc/RubyXL/CalculationChainCell.html +13 -19
- data/rdoc/RubyXL/CalculationProperties.html +13 -19
- data/rdoc/RubyXL/Cell.html +144 -204
- data/rdoc/RubyXL/CellConvenienceMethods.html +240 -426
- data/rdoc/RubyXL/CellExt.html +13 -19
- data/rdoc/RubyXL/CellSmartTag.html +13 -19
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
- data/rdoc/RubyXL/CellSmartTags.html +13 -19
- data/rdoc/RubyXL/CellStyle.html +13 -19
- data/rdoc/RubyXL/CellStyleXFs.html +18 -38
- data/rdoc/RubyXL/CellStyles.html +18 -38
- data/rdoc/RubyXL/CellValue.html +18 -38
- data/rdoc/RubyXL/CellWatch.html +13 -19
- data/rdoc/RubyXL/CellWatches.html +13 -19
- data/rdoc/RubyXL/CellXFs.html +19 -39
- data/rdoc/RubyXL/ChartColorsFile.html +12 -25
- data/rdoc/RubyXL/ChartFile.html +19 -49
- data/rdoc/RubyXL/ChartStyleFile.html +12 -25
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
- data/rdoc/RubyXL/Chartsheet.html +19 -67
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
- data/rdoc/RubyXL/ChartsheetView.html +13 -19
- data/rdoc/RubyXL/ChartsheetViews.html +13 -19
- data/rdoc/RubyXL/Color.html +28 -39
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -19
- data/rdoc/RubyXL/ColorScale.html +13 -19
- data/rdoc/RubyXL/ColorSet.html +13 -19
- data/rdoc/RubyXL/Colors.html +13 -19
- data/rdoc/RubyXL/ColumnRange.html +20 -71
- data/rdoc/RubyXL/ColumnRanges.html +20 -79
- data/rdoc/RubyXL/Comment.html +13 -19
- data/rdoc/RubyXL/CommentList.html +13 -19
- data/rdoc/RubyXL/CommentsFile.html +17 -50
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +147 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
- data/rdoc/RubyXL/ContentTypes.html +23 -63
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
- data/rdoc/RubyXL/CorePropertiesFile.html +26 -162
- data/rdoc/RubyXL/CustomColor.html +13 -19
- data/rdoc/RubyXL/CustomColorList.html +13 -19
- data/rdoc/RubyXL/CustomFilter.html +13 -19
- data/rdoc/RubyXL/CustomFilters.html +13 -19
- data/rdoc/RubyXL/CustomGeometry.html +13 -19
- data/rdoc/RubyXL/CustomProperties.html +13 -19
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
- data/rdoc/RubyXL/CustomProperty.html +13 -19
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -19
- data/rdoc/RubyXL/CustomSheetViews.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
- data/rdoc/RubyXL/CustomXMLFile.html +12 -22
- data/rdoc/RubyXL/DXF.html +13 -19
- data/rdoc/RubyXL/DXFs.html +13 -19
- data/rdoc/RubyXL/DataBar.html +13 -19
- data/rdoc/RubyXL/DataConsolidate.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
- data/rdoc/RubyXL/DataType.html +11 -39
- data/rdoc/RubyXL/DataValidation.html +13 -19
- data/rdoc/RubyXL/DataValidations.html +13 -19
- data/rdoc/RubyXL/DateGroupItem.html +13 -19
- data/rdoc/RubyXL/DefinedName.html +13 -19
- data/rdoc/RubyXL/DefinedNameExt.html +13 -19
- data/rdoc/RubyXL/DefinedNames.html +13 -19
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
- data/rdoc/RubyXL/DocumentPropertiesFile.html +20 -66
- data/rdoc/RubyXL/DrawingFile.html +19 -49
- data/rdoc/RubyXL/DynamicFilter.html +13 -19
- data/rdoc/RubyXL/EmbeddedControl.html +13 -19
- data/rdoc/RubyXL/EmbeddedControls.html +13 -19
- data/rdoc/RubyXL/Extension.html +13 -19
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
- data/rdoc/RubyXL/Extents.html +13 -19
- data/rdoc/RubyXL/ExternalBook.html +13 -19
- data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
- data/rdoc/RubyXL/ExternalReference.html +13 -19
- data/rdoc/RubyXL/ExternalReferences.html +13 -19
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
- data/rdoc/RubyXL/FieldItem.html +13 -19
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
- data/rdoc/RubyXL/FileSharing.html +13 -19
- data/rdoc/RubyXL/FileVersion.html +13 -19
- data/rdoc/RubyXL/Fill.html +18 -38
- data/rdoc/RubyXL/Fills.html +18 -38
- data/rdoc/RubyXL/FilterContainer.html +13 -19
- data/rdoc/RubyXL/FloatNode.html +12 -17
- data/rdoc/RubyXL/FloatValue.html +12 -17
- data/rdoc/RubyXL/Font.html +20 -544
- data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
- data/rdoc/RubyXL/FontScheme.html +13 -19
- data/rdoc/RubyXL/Fonts.html +19 -39
- data/rdoc/RubyXL/Formula.html +13 -19
- data/rdoc/RubyXL/FunctionGroup.html +13 -19
- data/rdoc/RubyXL/FunctionGroups.html +13 -19
- data/rdoc/RubyXL/GenericStorageObject.html +19 -81
- data/rdoc/RubyXL/GradientFill.html +13 -19
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
- data/rdoc/RubyXL/Hyperlink.html +13 -19
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
- data/rdoc/RubyXL/Hyperlinks.html +13 -19
- data/rdoc/RubyXL/IconFilter.html +13 -19
- data/rdoc/RubyXL/IconSet.html +13 -19
- data/rdoc/RubyXL/IgnoredError.html +13 -19
- data/rdoc/RubyXL/IgnoredErrors.html +13 -19
- data/rdoc/RubyXL/IndexedColors.html +13 -19
- data/rdoc/RubyXL/InputCells.html +13 -19
- data/rdoc/RubyXL/IntegerNode.html +12 -17
- data/rdoc/RubyXL/IntegerValue.html +12 -17
- data/rdoc/RubyXL/LegacyCell.html +14 -66
- data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
- data/rdoc/RubyXL/MRUColors.html +13 -19
- data/rdoc/RubyXL/MacrosFile.html +12 -25
- data/rdoc/RubyXL/MergedCell.html +13 -19
- data/rdoc/RubyXL/MergedCells.html +13 -19
- data/rdoc/RubyXL/NumFmt.html +13 -19
- data/rdoc/RubyXL/NumberFormat.html +18 -38
- data/rdoc/RubyXL/NumberFormats.html +18 -44
- data/rdoc/RubyXL/OLEObject.html +13 -19
- data/rdoc/RubyXL/OLEObjectFile.html +12 -25
- data/rdoc/RubyXL/OLEObjects.html +13 -19
- data/rdoc/RubyXL/OLESize.html +13 -19
- data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
- data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
- data/rdoc/RubyXL/OOXMLObject.html +15 -25
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +88 -179
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +47 -183
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +42 -194
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -19
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +13 -19
- data/rdoc/RubyXL/PageMargins.html +13 -19
- data/rdoc/RubyXL/PageSetup.html +13 -19
- data/rdoc/RubyXL/PageSetupProperties.html +13 -19
- data/rdoc/RubyXL/Pane.html +13 -19
- data/rdoc/RubyXL/Parser.html +20 -53
- data/rdoc/RubyXL/PatternFill.html +13 -19
- data/rdoc/RubyXL/PhoneticProperties.html +13 -19
- data/rdoc/RubyXL/PhoneticRun.html +13 -19
- data/rdoc/RubyXL/PivotArea.html +13 -19
- data/rdoc/RubyXL/PivotCache.html +13 -19
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
- data/rdoc/RubyXL/PivotCaches.html +13 -19
- data/rdoc/RubyXL/PivotReference.html +13 -19
- data/rdoc/RubyXL/PivotReferences.html +13 -19
- data/rdoc/RubyXL/PivotTableFile.html +14 -30
- data/rdoc/RubyXL/PivotTableSelection.html +13 -19
- data/rdoc/RubyXL/PresetGeometry.html +13 -19
- data/rdoc/RubyXL/PrintOptions.html +13 -19
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
- data/rdoc/RubyXL/ProtectedRange.html +13 -19
- data/rdoc/RubyXL/ProtectedRanges.html +13 -19
- data/rdoc/RubyXL/Protection.html +13 -19
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +155 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -17
- data/rdoc/RubyXL/RawOOXML.html +19 -58
- data/rdoc/RubyXL/Reference.html +31 -215
- data/rdoc/RubyXL/Relationship.html +12 -17
- data/rdoc/RubyXL/RelationshipSupport.html +32 -126
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +15 -33
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +18 -38
- data/rdoc/RubyXL/RichTextRun.html +17 -37
- data/rdoc/RubyXL/Row.html +53 -152
- data/rdoc/RubyXL/RowExt.html +13 -19
- data/rdoc/RubyXL/RunProperties.html +13 -19
- data/rdoc/RubyXL/Scenario.html +13 -19
- data/rdoc/RubyXL/Scenarios.html +13 -19
- data/rdoc/RubyXL/Selection.html +20 -40
- data/rdoc/RubyXL/ShapeGuide.html +13 -19
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
- data/rdoc/RubyXL/SharedStringsTable.html +31 -140
- data/rdoc/RubyXL/Sheet.html +13 -19
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
- data/rdoc/RubyXL/SheetData.html +20 -53
- data/rdoc/RubyXL/SheetDataExt.html +13 -19
- data/rdoc/RubyXL/SheetDataSet.html +13 -19
- data/rdoc/RubyXL/SheetName.html +13 -19
- data/rdoc/RubyXL/SheetNames.html +13 -19
- data/rdoc/RubyXL/Sheets.html +13 -19
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
- data/rdoc/RubyXL/SlicerFile.html +12 -25
- data/rdoc/RubyXL/SmartTagProperties.html +13 -19
- data/rdoc/RubyXL/SmartTagType.html +13 -19
- data/rdoc/RubyXL/SmartTagTypes.html +13 -19
- data/rdoc/RubyXL/SmartTags.html +13 -19
- data/rdoc/RubyXL/SortCondition.html +13 -19
- data/rdoc/RubyXL/SortState.html +13 -19
- data/rdoc/RubyXL/Sqref.html +18 -51
- data/rdoc/RubyXL/Stop.html +13 -19
- data/rdoc/RubyXL/StringNode.html +12 -17
- data/rdoc/RubyXL/StringNodeW3C.html +19 -52
- data/rdoc/RubyXL/StringValue.html +12 -17
- data/rdoc/RubyXL/Stylesheet.html +30 -112
- data/rdoc/RubyXL/TableFile.html +12 -25
- data/rdoc/RubyXL/TableParts.html +12 -17
- data/rdoc/RubyXL/TableStyle.html +13 -19
- data/rdoc/RubyXL/TableStyles.html +13 -19
- data/rdoc/RubyXL/Text.html +19 -63
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +58 -63
- data/rdoc/RubyXL/ThemeElements.html +13 -19
- data/rdoc/RubyXL/ThumbnailFile.html +12 -25
- data/rdoc/RubyXL/Top10.html +13 -19
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
- data/rdoc/RubyXL/Variant.html +13 -19
- data/rdoc/RubyXL/Vector.html +17 -37
- data/rdoc/RubyXL/VectorValue.html +12 -17
- data/rdoc/RubyXL/VisualProperties.html +13 -19
- data/rdoc/RubyXL/WebPublishObject.html +13 -19
- data/rdoc/RubyXL/WebPublishObjects.html +13 -19
- data/rdoc/RubyXL/WebPublishingItem.html +13 -19
- data/rdoc/RubyXL/WebPublishingItems.html +13 -19
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +483 -226
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +149 -857
- data/rdoc/RubyXL/WorkbookProperties.html +13 -19
- data/rdoc/RubyXL/WorkbookProtection.html +13 -19
- data/rdoc/RubyXL/WorkbookRoot.html +23 -109
- data/rdoc/RubyXL/WorkbookView.html +13 -19
- data/rdoc/RubyXL/WorkbookViews.html +13 -19
- data/rdoc/RubyXL/Worksheet.html +70 -122
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +398 -1049
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
- data/rdoc/RubyXL/WorksheetProperties.html +13 -19
- data/rdoc/RubyXL/WorksheetProtection.html +13 -19
- data/rdoc/RubyXL/WorksheetView.html +13 -19
- data/rdoc/RubyXL/WorksheetViews.html +13 -19
- data/rdoc/RubyXL/XF.html +13 -19
- data/rdoc/created.rid +45 -38
- data/rdoc/css/fonts.css +6 -6
- data/rdoc/css/rdoc.css +35 -6
- data/rdoc/index.html +43 -363
- data/rdoc/js/darkfish.js +23 -100
- data/rdoc/js/navigation.js +4 -41
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +7 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +368 -75
- data/rubyXL.gemspec +60 -26
- data/spec/lib/cell_spec.rb +147 -2
- data/spec/lib/color_spec.rb +1 -0
- data/spec/lib/parser_spec.rb +1 -1
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/text_spec.rb +8 -0
- data/spec/lib/workbook_spec.rb +12 -1
- data/spec/lib/worksheet_spec.rb +353 -37
- data/test/test_parse_write.rb +15 -15
- metadata +63 -9
- data/rdoc/js/jquery.js +0 -4
data/lib/rubyXL/objects/text.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'rubyXL/objects/color'
|
|
|
5
5
|
|
|
6
6
|
module RubyXL
|
|
7
7
|
|
|
8
|
-
# http://www.
|
|
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\
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
data/lib/rubyXL/objects/theme.rb
CHANGED
|
@@ -4,7 +4,7 @@ require 'rubyXL/objects/extensions'
|
|
|
4
4
|
|
|
5
5
|
module RubyXL
|
|
6
6
|
|
|
7
|
-
# http://www.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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">
|