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