rubyXL 2.4.4 → 2.5.0
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 +7 -0
- data/Gemfile.lock +7 -6
- data/VERSION +1 -1
- data/lib/rubyXL/objects/simple_types.rb +91 -1
- data/lib/rubyXL/objects/theme.rb +894 -90
- data/lib/rubyXL/workbook.rb +1 -1
- data/rdoc/README_rdoc.html +27 -27
- data/rdoc/RubyXL.html +176 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/{ObjectDefaults.html → BodyProperties.html} +4 -4
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +105 -0
- data/rdoc/RubyXL/{ColorScheme.html → CT_Backdrop.html} +4 -4
- data/rdoc/RubyXL/{HSLColor.html → CT_Bevel.html} +4 -4
- data/rdoc/RubyXL/CT_BiLevelEffect.html +105 -0
- data/rdoc/RubyXL/CT_BlendEffect.html +105 -0
- data/rdoc/RubyXL/{PresetColor.html → CT_Blip.html} +4 -4
- data/rdoc/RubyXL/CT_BlipFillProperties.html +105 -0
- data/rdoc/RubyXL/{TwoDTransform.html → CT_BlurEffect.html} +4 -4
- data/rdoc/RubyXL/{SchemeColor.html → CT_Camera.html} +4 -4
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +105 -0
- data/rdoc/RubyXL/CT_ColorMapping.html +105 -0
- data/rdoc/RubyXL/CT_ColorScheme.html +105 -0
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +105 -0
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +105 -0
- data/rdoc/RubyXL/CT_DashStopList.html +105 -0
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +105 -0
- data/rdoc/RubyXL/CT_DuotoneEffect.html +105 -0
- data/rdoc/RubyXL/CT_EffectContainer.html +105 -0
- data/rdoc/RubyXL/CT_EffectList.html +105 -0
- data/rdoc/RubyXL/CT_EffectReference.html +105 -0
- data/rdoc/RubyXL/CT_EffectStyleItem.html +105 -0
- data/rdoc/RubyXL/CT_EffectStyleList.html +105 -0
- data/rdoc/RubyXL/{RGBColorModelPercentage.html → CT_EmbeddedWAVAudioFile.html} +4 -4
- data/rdoc/RubyXL/CT_FillEffect.html +105 -0
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +105 -0
- data/rdoc/RubyXL/CT_FillStyleList.html +105 -0
- data/rdoc/RubyXL/CT_FlatText.html +105 -0
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/{ExtraColorScheme.html → CT_FontReference.html} +4 -4
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +105 -0
- data/rdoc/RubyXL/CT_GradientFillProperties.html +105 -0
- data/rdoc/RubyXL/CT_GradientStop.html +105 -0
- data/rdoc/RubyXL/CT_GradientStopList.html +105 -0
- data/rdoc/RubyXL/{FormatScheme.html → CT_HSLEffect.html} +4 -4
- data/rdoc/RubyXL/CT_HslColor.html +105 -0
- data/rdoc/RubyXL/CT_Hyperlink.html +105 -0
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +105 -0
- data/rdoc/RubyXL/CT_LightRig.html +105 -0
- data/rdoc/RubyXL/CT_LineEndProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineStyleList.html +105 -0
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +105 -0
- data/rdoc/RubyXL/CT_LuminanceEffect.html +105 -0
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +105 -0
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +105 -0
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +105 -0
- data/rdoc/RubyXL/CT_PatternFillProperties.html +105 -0
- data/rdoc/RubyXL/CT_Point3D.html +105 -0
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +105 -0
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +105 -0
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +105 -0
- data/rdoc/RubyXL/CT_PresetTextShape.html +105 -0
- data/rdoc/RubyXL/CT_ReflectionEffect.html +105 -0
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +105 -0
- data/rdoc/RubyXL/CT_RelativeRect.html +105 -0
- data/rdoc/RubyXL/CT_SRgbColor.html +105 -0
- data/rdoc/RubyXL/CT_ScRgbColor.html +105 -0
- data/rdoc/RubyXL/CT_Scene3D.html +105 -0
- data/rdoc/RubyXL/CT_SchemeColor.html +105 -0
- data/rdoc/RubyXL/CT_Shape3D.html +105 -0
- data/rdoc/RubyXL/CT_ShapeStyle.html +105 -0
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +105 -0
- data/rdoc/RubyXL/CT_SphereCoords.html +105 -0
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +105 -0
- data/rdoc/RubyXL/CT_StyleMatrix.html +105 -0
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +105 -0
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +105 -0
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextBlipBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextCharBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +105 -0
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +105 -0
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +105 -0
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +105 -0
- data/rdoc/RubyXL/CT_TextSpacing.html +105 -0
- data/rdoc/RubyXL/CT_TextTabStop.html +105 -0
- data/rdoc/RubyXL/CT_TextTabStopList.html +105 -0
- data/rdoc/RubyXL/CT_TileInfoProperties.html +105 -0
- data/rdoc/RubyXL/CT_TintEffect.html +105 -0
- data/rdoc/RubyXL/CT_Transform2D.html +105 -0
- data/rdoc/RubyXL/CT_TransformEffect.html +105 -0
- data/rdoc/RubyXL/CT_Vector3D.html +105 -0
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +3 -3
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +3 -3
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +17 -17
- data/rdoc/RubyXL/CoreProperties.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DocumentProperties.html +7 -7
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +1 -1
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorage.html +8 -6
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +23 -23
- data/rdoc/RubyXL/LegacyWorkbook.html +23 -23
- data/rdoc/RubyXL/LegacyWorksheet.html +29 -29
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +2 -2
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +12 -12
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +9 -8
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +5 -5
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/RootRelationships.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +3 -3
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +2 -2
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +2 -2
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +35 -35
- data/rdoc/index.html +2 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +2 -2
- data/rubyXL.gemspec +93 -17
- metadata +179 -92
- data/rdoc/RubyXL/RGBColorModelHex.html +0 -105
- data/rdoc/RubyXL/ShapeDefault.html +0 -105
- data/rdoc/RubyXL/SystemColor.html +0 -105
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 9efea615400ecc23313fb88101f5489a7e3e05d7
|
|
4
|
+
data.tar.gz: 74524b51f217792e71745b17e1e0c035fe176b09
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: c6aabee7765a54890c1cdea5ced6a19a6a7ff942d12527cf6479856a62e8a5eeb5244a7624fac1cd57c686733d55d96c58e6e30e2e15733a65071c65dbf77600
|
|
7
|
+
data.tar.gz: 871a8d15aa8f1bb0d7309956fee7073978cfa5d61055cf14e8df661fb0439072b6f418ba751a022647d232c53196843639b79dbe3016f5721d1d89248b7b9d1d
|
data/Gemfile.lock
CHANGED
|
@@ -7,10 +7,11 @@ GEM
|
|
|
7
7
|
multi_json (~> 1.3)
|
|
8
8
|
thread_safe (~> 0.1)
|
|
9
9
|
tzinfo (~> 0.3.37)
|
|
10
|
-
addressable (2.3.
|
|
10
|
+
addressable (2.3.6)
|
|
11
11
|
atomic (1.1.16)
|
|
12
12
|
builder (3.2.2)
|
|
13
|
-
descendants_tracker (0.0.
|
|
13
|
+
descendants_tracker (0.0.4)
|
|
14
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
|
14
15
|
diff-lcs (1.2.5)
|
|
15
16
|
docile (1.1.3)
|
|
16
17
|
faraday (0.9.0)
|
|
@@ -39,9 +40,9 @@ GEM
|
|
|
39
40
|
json (1.8.1)
|
|
40
41
|
jwt (0.1.11)
|
|
41
42
|
multi_json (>= 1.5)
|
|
42
|
-
mini_portile (0.5.
|
|
43
|
+
mini_portile (0.5.3)
|
|
43
44
|
minitest (4.7.5)
|
|
44
|
-
multi_json (1.9.
|
|
45
|
+
multi_json (1.9.2)
|
|
45
46
|
multi_xml (0.5.5)
|
|
46
47
|
multipart-post (2.0.0)
|
|
47
48
|
nokogiri (1.6.1)
|
|
@@ -53,7 +54,7 @@ GEM
|
|
|
53
54
|
multi_xml (~> 0.5)
|
|
54
55
|
rack (~> 1.2)
|
|
55
56
|
rack (1.5.2)
|
|
56
|
-
rake (10.
|
|
57
|
+
rake (10.2.2)
|
|
57
58
|
rdoc (4.1.1)
|
|
58
59
|
json (~> 1.4)
|
|
59
60
|
rspec (2.14.1)
|
|
@@ -76,7 +77,7 @@ GEM
|
|
|
76
77
|
multi_json
|
|
77
78
|
simplecov-html (~> 0.8.0)
|
|
78
79
|
simplecov-html (0.8.0)
|
|
79
|
-
thread_safe (0.
|
|
80
|
+
thread_safe (0.3.1)
|
|
80
81
|
atomic (>= 1.1.7, < 2)
|
|
81
82
|
tzinfo (0.3.39)
|
|
82
83
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.5.0
|
|
@@ -135,5 +135,95 @@ module RubyXL
|
|
|
135
135
|
silver skyBlue slateBlue slateGray snow springGreen steelBlue tan teal thistle
|
|
136
136
|
tomato turquoise violet wheat white whiteSmoke yellow yellowGreen }
|
|
137
137
|
|
|
138
|
-
ST_PathFillMode
|
|
138
|
+
ST_PathFillMode = %w{ none norm lighten lightenLess darken darkenLess }
|
|
139
|
+
ST_TextVertOverflowType = %w{ overflow ellipsis clip }
|
|
140
|
+
ST_TextHorzOverflowType = %w{ overflow clip }
|
|
141
|
+
ST_TextVerticalType = %w{ horz vert vert270 wordArtVert eaVert mongolianVert wordArtVertRtl }
|
|
142
|
+
ST_TextWrappingType = %w{ none square }
|
|
143
|
+
ST_TextAnchoringType = %w{ t ctr b just dist }
|
|
144
|
+
ST_TextShapeType = %w{ textNoShape textPlain textStop textTriangle textTriangleInverted textChevron
|
|
145
|
+
textChevronInverted textRingInside textRingOutside textArchUp textArchDown
|
|
146
|
+
textCircle textButton textArchUpPour textArchDownPour textCirclePour textButtonPour
|
|
147
|
+
textCurveUp textCurveDown textCanUp textCanDown textWave1 textWave2 textDoubleWave1
|
|
148
|
+
textWave4 textInflate textDeflate textInflateBottom textDeflateBottom textInflateTop
|
|
149
|
+
textDeflateTop textDeflateInflate textDeflateInflateDeflate textFadeRight
|
|
150
|
+
textFadeLeft textFadeUp textFadeDown textSlantUp textSlantDown
|
|
151
|
+
textCascadeUp textCascadeDown }
|
|
152
|
+
|
|
153
|
+
ST_PresetMaterialType = %w{ legacyMatte legacyPlastic legacyMetal legacyWireframe matte plastic metal
|
|
154
|
+
warmMatte translucentPowder powder dkEdge softEdge clear flat softmetal }
|
|
155
|
+
|
|
156
|
+
ST_BevelPresetType = %w{ relaxedInset circle slope cross angle softRound convex
|
|
157
|
+
coolSlant divot riblet hardEdge artDeco }
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
ST_LineEndType = %w{ none triangle stealth diamond oval arrow }
|
|
161
|
+
ST_LineEndWidth = %w{ sm med lg }
|
|
162
|
+
ST_LineEndLength = %w{ sm med lg }
|
|
163
|
+
|
|
164
|
+
ST_PresetLineDashVal = %w{ solid dot dash lgDash dashDot lgDashDot lgDashDotDot
|
|
165
|
+
sysDash sysDot sysDashDot sysDashDotDot }
|
|
166
|
+
|
|
167
|
+
ST_TileFlipMode = %w{ none x y xy }
|
|
168
|
+
ST_PathShadeType = %w{ shape circle rect }
|
|
169
|
+
|
|
170
|
+
ST_PresetPatternVal = %w{ pct5 pct10 pct20 pct25 pct30 pct40 pct50 pct60 pct70 pct75 pct80 pct90
|
|
171
|
+
horz vert ltHorz ltVert dkHorz dkVert narHorz narVert dashHorz dashVert
|
|
172
|
+
cross dnDiag upDiag ltDnDiag ltUpDiag dkDnDiag dkUpDiag
|
|
173
|
+
wdDnDiag wdUpDiag dashDnDiag dashUpDiag diagCross smCheck lgCheck
|
|
174
|
+
smGrid lgGrid dotGrid smConfetti lgConfetti horzBrick diagBrick
|
|
175
|
+
solidDmnd openDmnd dotDmnd plaid sphere weave divot shingle wave trellis zigZag }
|
|
176
|
+
ST_RectAlignment = %w{ tl t tr l ctr r bl b br }
|
|
177
|
+
ST_BlipCompression = %w{ email screen print hqprint none }
|
|
178
|
+
ST_ColorSchemeIndex = %w{ dk1 lt1 dk2 lt2 accent1 accent2 accent3 accent4 accent5 accent6 hlink folHlink }
|
|
179
|
+
ST_FontCollectionIndex = %w{ major minor none }
|
|
180
|
+
ST_BlendMode = %w{ over mult screen darken lighten }
|
|
181
|
+
ST_PresetCameraType = %w{ legacyObliqueTopLeft legacyObliqueTop legacyObliqueTopRight legacyObliqueLeft
|
|
182
|
+
legacyObliqueFront legacyObliqueRight legacyObliqueBottomLeft legacyObliqueBottom
|
|
183
|
+
legacyObliqueBottomRight legacyPerspectiveTopLeft legacyPerspectiveTop
|
|
184
|
+
legacyPerspectiveTopRight legacyPerspectiveLeft legacyPerspectiveFront
|
|
185
|
+
legacyPerspectiveRight legacyPerspectiveBottomLeft legacyPerspectiveBottom
|
|
186
|
+
legacyPerspectiveBottomRight orthographicFront isometricTopUp isometricTopDown
|
|
187
|
+
isometricBottomUp isometricBottomDown isometricLeftUp isometricLeftDown
|
|
188
|
+
isometricRightUp isometricRightDown isometricOffAxis1Left isometricOffAxis1Right
|
|
189
|
+
isometricOffAxis1Top isometricOffAxis2Left isometricOffAxis2Right isometricOffAxis2Top
|
|
190
|
+
isometricOffAxis3Left isometricOffAxis3Right isometricOffAxis3Bottom
|
|
191
|
+
isometricOffAxis4Left isometricOffAxis4Right isometricOffAxis4Bottom
|
|
192
|
+
obliqueTopLeft obliqueTop obliqueTopRight obliqueLeft obliqueRight obliqueBottomLeft
|
|
193
|
+
obliqueBottom obliqueBottomRight perspectiveFront perspectiveLeft perspectiveRight
|
|
194
|
+
perspectiveAbove perspectiveBelow perspectiveAboveLeftFacing perspectiveAboveRightFacing
|
|
195
|
+
perspectiveContrastingLeftFacing perspectiveContrastingRightFacing
|
|
196
|
+
perspectiveHeroicLeftFacing perspectiveHeroicRightFacing
|
|
197
|
+
perspectiveHeroicExtremeLeftFacing perspectiveHeroicExtremeRightFacing
|
|
198
|
+
perspectiveRelaxed perspectiveRelaxedModerately }
|
|
199
|
+
ST_LightRigType = %w{ legacyFlat1 legacyFlat2 legacyFlat3 legacyFlat4 legacyNormal1 legacyNormal2
|
|
200
|
+
legacyNormal3 legacyNormal4 legacyHarsh1 legacyHarsh2 legacyHarsh3 legacyHarsh4
|
|
201
|
+
threePt balanced soft harsh flood contrasting morning sunrise sunset chilly
|
|
202
|
+
freezing flat twoPt glow brightRoom }
|
|
203
|
+
ST_LightRigDirection = %w{ tl t tr l ctr r bl b br }
|
|
204
|
+
ST_EffectContainerType = %w{ sib tree }
|
|
205
|
+
ST_PresetShadowVal = %w{ shdw1 shdw2 shdw3 shdw4 shdw5 shdw6 shdw7 shdw8 shdw9 shdw10
|
|
206
|
+
shdw11 shdw12 shdw13 shdw14 shdw15 shdw16 shdw17 shdw18 shdw19 shdw20 }
|
|
207
|
+
ST_TextTabAlignType = %w{ l ctr r dec }
|
|
208
|
+
ST_TextAutonumberScheme = %w{ alphaLcParenBoth alphaUcParenBoth alphaLcParenR alphaUcParenR
|
|
209
|
+
alphaLcPeriod alphaUcPeriod arabicParenBoth arabicParenR arabicPeriod arabicPlain
|
|
210
|
+
romanLcParenBoth romanUcParenBoth romanLcParenR romanUcParenR
|
|
211
|
+
romanLcPeriod romanUcPeriod circleNumDbPlain circleNumWdBlackPlain
|
|
212
|
+
circleNumWdWhitePlain arabicDbPeriod arabicDbPlain ea1ChsPeriod ea1ChsPlain
|
|
213
|
+
ea1ChtPeriod ea1ChtPlain ea1JpnChsDbPeriod ea1JpnKorPlain ea1JpnKorPeriod
|
|
214
|
+
arabic1Minus arabic2Minus hebrew2Minus thaiAlphaPeriod thaiAlphaParenR
|
|
215
|
+
thaiAlphaParenBoth thaiNumPeriod thaiNumParenR thaiNumParenBoth hindiAlphaPeriod
|
|
216
|
+
hindiNumPeriod hindiNumParenR hindiAlpha1Period }
|
|
217
|
+
|
|
218
|
+
ST_TextAlignType = %w{ l ctr r just justLow dist thaiDist }
|
|
219
|
+
ST_TextFontAlignType = %w{ auto t ctr base b }
|
|
220
|
+
ST_LineCap = %w{ rnd sq flat }
|
|
221
|
+
ST_CompoundLine = %w{ sng dbl thickThin thinThick tri }
|
|
222
|
+
ST_PenAlignment = %w{ ctr in }
|
|
223
|
+
|
|
224
|
+
ST_TextUnderlineType = %w{ none words sng dbl heavy dotted dottedHeavy dash dashHeavy dashLong dashLongHeavy
|
|
225
|
+
dotDash dotDashHeavy dotDotDash dotDotDashHeavy wavy wavyHeavy wavyDbl }
|
|
226
|
+
ST_TextStrikeType = %w{ noStrike sngStrike dblStrike }
|
|
227
|
+
ST_TextCapsType = %w{ none small all }
|
|
228
|
+
|
|
139
229
|
end
|
data/lib/rubyXL/objects/theme.rb
CHANGED
|
@@ -28,7 +28,7 @@ module RubyXL
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
|
|
31
|
-
class
|
|
31
|
+
class CT_ScRgbColor < OOXMLObject
|
|
32
32
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
33
33
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
34
34
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -64,7 +64,7 @@ module RubyXL
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
|
|
67
|
-
class
|
|
67
|
+
class CT_SRgbColor < OOXMLObject
|
|
68
68
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
69
69
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
70
70
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -98,7 +98,7 @@ module RubyXL
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# http://www.schemacentral.com/sc/ooxml/e-a_hslClr-1.html
|
|
101
|
-
class
|
|
101
|
+
class CT_HslColor < OOXMLObject
|
|
102
102
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
103
103
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
104
104
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -134,7 +134,7 @@ module RubyXL
|
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# http://www.schemacentral.com/sc/ooxml/e-a_sysClr-1.html
|
|
137
|
-
class
|
|
137
|
+
class CT_SystemColor < OOXMLObject
|
|
138
138
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
139
139
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
140
140
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -169,7 +169,7 @@ module RubyXL
|
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
# http://www.schemacentral.com/sc/ooxml/e-a_schemeClr-1.html
|
|
172
|
-
class
|
|
172
|
+
class CT_SchemeColor < OOXMLObject
|
|
173
173
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
174
174
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
175
175
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -203,7 +203,7 @@ module RubyXL
|
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# http://www.schemacentral.com/sc/ooxml/e-a_prstClr-1.html
|
|
206
|
-
class
|
|
206
|
+
class CT_PresetColor < OOXMLObject
|
|
207
207
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
|
208
208
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
|
209
209
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
|
@@ -238,16 +238,16 @@ module RubyXL
|
|
|
238
238
|
|
|
239
239
|
# http://www.schemacentral.com/sc/ooxml/t-a_CT_Color.html
|
|
240
240
|
class CT_Color < OOXMLObject
|
|
241
|
-
define_child_node(RubyXL::
|
|
242
|
-
define_child_node(RubyXL::
|
|
243
|
-
define_child_node(RubyXL::
|
|
244
|
-
define_child_node(RubyXL::
|
|
245
|
-
define_child_node(RubyXL::
|
|
246
|
-
define_child_node(RubyXL::
|
|
241
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
242
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
243
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
244
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
245
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
246
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# http://www.schemacentral.com/sc/ooxml/e-a_clrScheme-1.html
|
|
250
|
-
class
|
|
250
|
+
class CT_ColorScheme < OOXMLObject
|
|
251
251
|
define_child_node(RubyXL::CT_Color, :node_name => 'a:dk1')
|
|
252
252
|
define_child_node(RubyXL::CT_Color, :node_name => 'a:lt1')
|
|
253
253
|
define_child_node(RubyXL::CT_Color, :node_name => 'a:dk2')
|
|
@@ -283,34 +283,598 @@ module RubyXL
|
|
|
283
283
|
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:latin')
|
|
284
284
|
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:ea')
|
|
285
285
|
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:cs')
|
|
286
|
-
define_child_node(RubyXL::CT_SupplementalFont, :node_name => 'a:font', :collection =>
|
|
286
|
+
define_child_node(RubyXL::CT_SupplementalFont, :node_name => 'a:font', :collection => [0..-1])
|
|
287
287
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
288
288
|
end
|
|
289
289
|
|
|
290
290
|
# http://www.schemacentral.com/sc/ooxml/e-a_fontScheme-1.html
|
|
291
291
|
class FontScheme < OOXMLObject
|
|
292
|
+
# -- Sequence [1..1]
|
|
292
293
|
define_child_node(RubyXL::CT_FontCollection, :node_name => 'a:majorFont')
|
|
293
294
|
define_child_node(RubyXL::CT_FontCollection, :node_name => 'a:minorFont')
|
|
294
295
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
296
|
+
# --
|
|
295
297
|
define_attribute(:name, :string, :required => true)
|
|
296
298
|
define_element_name 'a:fontScheme'
|
|
297
299
|
end
|
|
298
300
|
|
|
301
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_gs-1.html
|
|
302
|
+
class CT_GradientStop < OOXMLObject
|
|
303
|
+
# -- Choice [1..1] (EG_ColorChoice)
|
|
304
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
305
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
306
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
307
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
308
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
309
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
310
|
+
# --
|
|
311
|
+
define_attribute(:pos, :int, :required => true)
|
|
312
|
+
define_element_name 'a:gs'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_gsLst-1.html
|
|
316
|
+
class CT_GradientStopList < OOXMLContainerObject
|
|
317
|
+
define_child_node(RubyXL::CT_GradientStop, :collection => [2..-1])
|
|
318
|
+
define_element_name 'a:gsLst'
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_lin-1.html
|
|
322
|
+
class CT_LinearShadeProperties < OOXMLObject
|
|
323
|
+
define_attribute(:ang, :int)
|
|
324
|
+
define_attribute(:scaled, :bool)
|
|
325
|
+
define_element_name 'a:lin'
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_tileRect-1.html
|
|
329
|
+
class CT_RelativeRect < OOXMLObject
|
|
330
|
+
define_attribute(:l, :int, :default => 0)
|
|
331
|
+
define_attribute(:t, :int, :default => 0)
|
|
332
|
+
define_attribute(:r, :int, :default => 0)
|
|
333
|
+
define_attribute(:b, :int, :default => 0)
|
|
334
|
+
define_element_name 'a:tileRect'
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_path-1.html
|
|
338
|
+
class CT_PathShadeProperties < OOXMLObject
|
|
339
|
+
define_child_node(CT_RelativeRect, :node_name => 'a:fillToRect')
|
|
340
|
+
define_attribute(:path, RubyXL::ST_PathShadeType)
|
|
341
|
+
define_element_name 'a:path'
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_gradFill-1.html
|
|
345
|
+
class CT_GradientFillProperties < OOXMLObject
|
|
346
|
+
define_child_node(RubyXL::CT_GradientStopList)
|
|
347
|
+
define_child_node(RubyXL::CT_LinearShadeProperties)
|
|
348
|
+
define_child_node(RubyXL::CT_PathShadeProperties)
|
|
349
|
+
define_child_node(RubyXL::CT_RelativeRect)
|
|
350
|
+
define_attribute(:flip, RubyXL::ST_TileFlipMode)
|
|
351
|
+
define_attribute(:rotWithShape, :bool)
|
|
352
|
+
define_element_name 'a:gradFill'
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_pattFill-1.html
|
|
356
|
+
class CT_PatternFillProperties < OOXMLObject
|
|
357
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:fgClr')
|
|
358
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:bgClr')
|
|
359
|
+
define_attribute(:prst, RubyXL::ST_PresetPatternVal)
|
|
360
|
+
define_element_name 'a:pattFill'
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_tile-1.html
|
|
364
|
+
class CT_TileInfoProperties < OOXMLObject
|
|
365
|
+
define_attribute(:tx, :int)
|
|
366
|
+
define_attribute(:ty, :int)
|
|
367
|
+
define_attribute(:sx, :int)
|
|
368
|
+
define_attribute(:sy, :int)
|
|
369
|
+
define_attribute(:flip, RubyXL::ST_TileFlipMode)
|
|
370
|
+
define_attribute(:align, RubyXL::ST_RectAlignment)
|
|
371
|
+
define_element_name 'a:tile'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_stretch-1.html
|
|
375
|
+
class CT_StretchInfoProperties < OOXMLObject
|
|
376
|
+
define_child_node(RubyXL::CT_RelativeRect, :node_name => 'a:fillRect')
|
|
377
|
+
define_element_name 'a:stretch'
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_TintEffect.html
|
|
381
|
+
class CT_TintEffect < OOXMLObject
|
|
382
|
+
define_attribute(:hue, :int, :default => 0)
|
|
383
|
+
define_attribute(:amt, :int, :default => 0)
|
|
384
|
+
define_element_name 'a:tint'
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_HSLEffect.html
|
|
388
|
+
class CT_HSLEffect < OOXMLObject
|
|
389
|
+
define_attribute(:hue, :int, :default => 0)
|
|
390
|
+
define_attribute(:sat, :int, :default => 0)
|
|
391
|
+
define_attribute(:lum, :int, :default => 0)
|
|
392
|
+
define_element_name 'a:hsl'
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_LuminanceEffect.html
|
|
396
|
+
class CT_LuminanceEffect < OOXMLObject
|
|
397
|
+
define_attribute(:bright, :int, :default => 0)
|
|
398
|
+
define_attribute(:contrast, :int, :default => 0)
|
|
399
|
+
define_element_name 'a:lum'
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaBiLevelEffect.html
|
|
403
|
+
class CT_AlphaBiLevelEffect < OOXMLObject
|
|
404
|
+
define_attribute(:thresh, :int, :required => true)
|
|
405
|
+
define_element_name 'a:alphaBiLevel'
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaModulateFixedEffect.html
|
|
409
|
+
class CT_AlphaModulateFixedEffect < OOXMLObject
|
|
410
|
+
define_attribute(:amt, :int, :default => 100000)
|
|
411
|
+
define_element_name 'a:alphaModFix'
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_AlphaReplaceEffect.html
|
|
415
|
+
class CT_AlphaReplaceEffect < OOXMLObject
|
|
416
|
+
define_attribute(:a, :int, :required => true)
|
|
417
|
+
define_element_name 'a:alphaRepl'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_BiLevelEffect.html
|
|
421
|
+
class CT_BiLevelEffect < OOXMLObject
|
|
422
|
+
define_attribute(:thresh, :int, :required => true, :default => 100000)
|
|
423
|
+
define_element_name 'a:biLevel'
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_BlurEffect.html
|
|
427
|
+
class CT_BlurEffect < OOXMLObject
|
|
428
|
+
define_attribute(:rad, :int, :default => 0)
|
|
429
|
+
define_attribute(:grow, :bool, :default => true)
|
|
430
|
+
define_element_name 'a:blur'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_DuotoneEffect.html
|
|
434
|
+
class CT_DuotoneEffect < OOXMLObject
|
|
435
|
+
define_attribute(:rad, :int, :default => 0)
|
|
436
|
+
define_attribute(:grow, :bool, :default => true)
|
|
437
|
+
define_element_name 'a:blur'
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_ColorChangeEffect.html
|
|
441
|
+
class CT_ColorChangeEffect < OOXMLObject
|
|
442
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:clrFrom')
|
|
443
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:clrTo')
|
|
444
|
+
define_attribute(:useA, :bool, :default => true)
|
|
445
|
+
define_element_name 'a:clrChange'
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
class CT_EffectContainer < OOXMLObject
|
|
449
|
+
# Defining class here without actually filling the OOXML definitions
|
|
450
|
+
# so it can reference itself in the actual definition.
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_alphaMod-2.html
|
|
454
|
+
class CT_AlphaModulateEffect < OOXMLObject
|
|
455
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => :cont)
|
|
456
|
+
define_element_name 'a:alphaMod'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_blend-1.html
|
|
460
|
+
class CT_BlendEffect < OOXMLObject
|
|
461
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => :cont)
|
|
462
|
+
define_attribute(:blend, RubyXL::ST_BlendMode, :required => true)
|
|
463
|
+
define_element_name 'a:blend'
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_effect-1.html
|
|
467
|
+
class CT_EffectReference < OOXMLObject
|
|
468
|
+
define_attribute(:ref, :string)
|
|
469
|
+
define_element_name 'a:effect'
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_alphaOutset-1.html
|
|
473
|
+
class CT_AlphaOutsetEffect < OOXMLObject
|
|
474
|
+
define_attribute(:rad, :int, :default => 0)
|
|
475
|
+
define_element_name 'a:alphaOutset'
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_blip-1.html
|
|
479
|
+
class CT_Blip < OOXMLObject
|
|
480
|
+
define_child_node(RubyXL::CT_AlphaBiLevelEffect)
|
|
481
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:alphaCeiling')
|
|
482
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:alphaFloor')
|
|
483
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:alphaInv')
|
|
484
|
+
define_child_node(RubyXL::CT_AlphaModulateEffect)
|
|
485
|
+
define_child_node(RubyXL::CT_AlphaModulateFixedEffect)
|
|
486
|
+
define_child_node(RubyXL::CT_AlphaReplaceEffect)
|
|
487
|
+
define_child_node(RubyXL::CT_BiLevelEffect)
|
|
488
|
+
define_child_node(RubyXL::CT_BlurEffect)
|
|
489
|
+
define_child_node(RubyXL::CT_ColorChangeEffect)
|
|
490
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:clrRepl')
|
|
491
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:duotone')
|
|
492
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:fillOverlay')
|
|
493
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grayscl')
|
|
494
|
+
define_child_node(RubyXL::CT_HSLEffect)
|
|
495
|
+
define_child_node(RubyXL::CT_LuminanceEffect)
|
|
496
|
+
define_child_node(RubyXL::CT_TintEffect)
|
|
497
|
+
define_attribute(:'r:embed', :string)
|
|
498
|
+
define_attribute(:'r:link', :string)
|
|
499
|
+
define_attribute(:cstate, RubyXL::ST_BlipCompression)
|
|
500
|
+
define_element_name 'a:blip'
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_blipFill-1.html
|
|
504
|
+
class CT_BlipFillProperties < OOXMLObject
|
|
505
|
+
define_child_node(RubyXL::CT_Blip)
|
|
506
|
+
define_child_node(RubyXL::CT_RelativeRect, :node_name => 'a:srcRect')
|
|
507
|
+
define_child_node(RubyXL::CT_TileInfoProperties)
|
|
508
|
+
define_child_node(RubyXL::CT_StretchInfoProperties)
|
|
509
|
+
define_attribute(:dpi, :int)
|
|
510
|
+
define_attribute(:rotWithShape, :bool)
|
|
511
|
+
define_element_name 'a:blipFill'
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_fill-1.html
|
|
515
|
+
class CT_FillEffect < OOXMLObject
|
|
516
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
517
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
|
|
518
|
+
define_child_node(RubyXL::CT_GradientFillProperties)
|
|
519
|
+
define_child_node(RubyXL::CT_BlipFillProperties)
|
|
520
|
+
define_child_node(RubyXL::CT_PatternFillProperties)
|
|
521
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
|
|
522
|
+
define_element_name 'a:fill'
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_fillOverlay-1.html
|
|
526
|
+
class CT_FillOverlayEffect < OOXMLObject
|
|
527
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
528
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
|
|
529
|
+
define_child_node(RubyXL::CT_GradientFillProperties)
|
|
530
|
+
define_child_node(RubyXL::CT_BlipFillProperties)
|
|
531
|
+
define_child_node(RubyXL::CT_PatternFillProperties)
|
|
532
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
|
|
533
|
+
define_attribute(:blend, RubyXL::ST_BlendMode)
|
|
534
|
+
define_element_name 'a:fillOverlay'
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_GlowEffect.html
|
|
538
|
+
class CT_GlowEffect < OOXMLObject
|
|
539
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
540
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
541
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
542
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
543
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
544
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
545
|
+
define_attribute(:rad, :int, :default => 0)
|
|
546
|
+
define_element_name 'a:glow'
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_InnerShadowEffect.html
|
|
550
|
+
class CT_InnerShadowEffect < OOXMLObject
|
|
551
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
552
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
553
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
554
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
555
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
556
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
557
|
+
define_attribute(:blurRad, :int, :default => 0)
|
|
558
|
+
define_attribute(:dist, :int, :default => 0)
|
|
559
|
+
define_attribute(:dir, :int, :default => 0)
|
|
560
|
+
define_element_name 'a:innerShdw'
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_OuterShadowEffect.html
|
|
564
|
+
class CT_OuterShadowEffect < OOXMLObject
|
|
565
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
566
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
567
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
568
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
569
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
570
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
571
|
+
define_attribute(:blurRad, :int, :default => 0)
|
|
572
|
+
define_attribute(:dist, :int, :default => 0)
|
|
573
|
+
define_attribute(:dir, :int, :default => 0)
|
|
574
|
+
define_attribute(:sx, :int, :default => 100000)
|
|
575
|
+
define_attribute(:sy, :int, :default => 100000)
|
|
576
|
+
define_attribute(:kx, :int, :default => 0)
|
|
577
|
+
define_attribute(:ky, :int, :default => 0)
|
|
578
|
+
define_attribute(:algn, RubyXL::ST_RectAlignment, :default => 'b')
|
|
579
|
+
define_attribute(:rotWithShape, :bool, :default => true)
|
|
580
|
+
define_element_name 'a:outerShdw'
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_prstShdw-1.html
|
|
584
|
+
class CT_PresetShadowEffect < OOXMLObject
|
|
585
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
586
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
587
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
588
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
589
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
590
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
591
|
+
define_attribute(:prst, RubyXL::ST_PresetShadowVal, :required => true)
|
|
592
|
+
define_attribute(:dist, :int, :default => 0)
|
|
593
|
+
define_attribute(:dir, :int, :default => 0)
|
|
594
|
+
define_element_name 'a:prstShdw'
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_reflection-1.html
|
|
598
|
+
class CT_ReflectionEffect < OOXMLObject
|
|
599
|
+
define_attribute(:blurRad, :int, :default => 0)
|
|
600
|
+
define_attribute(:stA, :int, :default => 100000)
|
|
601
|
+
define_attribute(:stPos, :int, :default => 0)
|
|
602
|
+
define_attribute(:endA, :int, :default => 0)
|
|
603
|
+
define_attribute(:endPos, :int, :default => 100000)
|
|
604
|
+
define_attribute(:dist, :int, :default => 0)
|
|
605
|
+
define_attribute(:dir, :int, :default => 0)
|
|
606
|
+
define_attribute(:fadeDir, :int, :default => 5400000)
|
|
607
|
+
define_attribute(:sx, :int, :default => 100000)
|
|
608
|
+
define_attribute(:sy, :int, :default => 100000)
|
|
609
|
+
define_attribute(:kx, :int, :default => 0)
|
|
610
|
+
define_attribute(:ky, :int, :default => 0)
|
|
611
|
+
define_attribute(:algn, RubyXL::ST_RectAlignment, :default => 'b')
|
|
612
|
+
define_attribute(:rotWithShape, :bool, :default => true)
|
|
613
|
+
define_element_name 'a:reflection'
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_relOff-1.html
|
|
617
|
+
class CT_RelativeOffsetEffect < OOXMLObject
|
|
618
|
+
define_attribute(:tx, :int)
|
|
619
|
+
define_attribute(:ty, :int)
|
|
620
|
+
define_element_name 'a:relOff'
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_softEdge-1.html
|
|
624
|
+
class CT_SoftEdgesEffect < OOXMLObject
|
|
625
|
+
define_attribute(:rad, :int, :required => true)
|
|
626
|
+
define_element_name 'a:softEdge'
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_TransformEffect.html
|
|
630
|
+
class CT_TransformEffect < OOXMLObject
|
|
631
|
+
define_attribute(:sx, :int, :default => 100000)
|
|
632
|
+
define_attribute(:sy, :int, :default => 100000)
|
|
633
|
+
define_attribute(:kx, :int, :default => 0)
|
|
634
|
+
define_attribute(:ky, :int, :default => 0)
|
|
635
|
+
define_attribute(:tx, :int, :default => 0)
|
|
636
|
+
define_attribute(:ty, :int, :default => 0)
|
|
637
|
+
define_element_name 'a:xfrm'
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_EffectContainer.html
|
|
641
|
+
class CT_EffectContainer < OOXMLObject
|
|
642
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:cont')
|
|
643
|
+
define_child_node(RubyXL::CT_EffectReference)
|
|
644
|
+
define_child_node(RubyXL::CT_AlphaBiLevelEffect)
|
|
645
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:alphaCeiling')
|
|
646
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:alphaFloor')
|
|
647
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:alphaInv')
|
|
648
|
+
define_child_node(RubyXL::CT_AlphaModulateEffect)
|
|
649
|
+
define_child_node(RubyXL::CT_AlphaModulateFixedEffect)
|
|
650
|
+
define_child_node(RubyXL::CT_AlphaOutsetEffect)
|
|
651
|
+
define_child_node(RubyXL::CT_AlphaReplaceEffect)
|
|
652
|
+
define_child_node(RubyXL::CT_BiLevelEffect)
|
|
653
|
+
define_child_node(RubyXL::CT_BlendEffect)
|
|
654
|
+
define_child_node(RubyXL::CT_BlurEffect)
|
|
655
|
+
define_child_node(RubyXL::CT_ColorChangeEffect)
|
|
656
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:clrRepl')
|
|
657
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:duotone')
|
|
658
|
+
define_child_node(RubyXL::CT_FillEffect)
|
|
659
|
+
define_child_node(RubyXL::CT_FillOverlayEffect)
|
|
660
|
+
define_child_node(RubyXL::CT_GlowEffect)
|
|
661
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grayscl')
|
|
662
|
+
define_child_node(RubyXL::CT_HSLEffect)
|
|
663
|
+
define_child_node(RubyXL::CT_InnerShadowEffect)
|
|
664
|
+
define_child_node(RubyXL::CT_LuminanceEffect)
|
|
665
|
+
define_child_node(RubyXL::CT_OuterShadowEffect)
|
|
666
|
+
define_child_node(RubyXL::CT_PresetShadowEffect)
|
|
667
|
+
define_child_node(RubyXL::CT_ReflectionEffect)
|
|
668
|
+
define_child_node(RubyXL::CT_RelativeOffsetEffect)
|
|
669
|
+
define_child_node(RubyXL::CT_SoftEdgesEffect)
|
|
670
|
+
define_child_node(RubyXL::CT_TintEffect)
|
|
671
|
+
define_child_node(RubyXL::CT_TransformEffect)
|
|
672
|
+
define_attribute(:type, RubyXL::ST_EffectContainerType, :default => 'sib')
|
|
673
|
+
define_attribute(:name, :string)
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_fillStyleLst-1.html
|
|
677
|
+
class CT_FillStyleList < OOXMLObject
|
|
678
|
+
# -- Choice [3..*] (EG_FillProperties)
|
|
679
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
680
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill', :collection => true)
|
|
681
|
+
define_child_node(RubyXL::CT_GradientFillProperties, :collection => true)
|
|
682
|
+
define_child_node(RubyXL::CT_BlipFillProperties, :collection => true)
|
|
683
|
+
define_child_node(RubyXL::CT_PatternFillProperties, :collection => true)
|
|
684
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
|
|
685
|
+
# --
|
|
686
|
+
define_element_name 'a:fillStyleLst'
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_miter-1.html
|
|
690
|
+
class CT_LineJoinMiterProperties < OOXMLObject
|
|
691
|
+
define_attribute(:lim, :int)
|
|
692
|
+
define_element_name 'a:miter'
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_LineEndProperties.html
|
|
696
|
+
class CT_LineEndProperties < OOXMLObject
|
|
697
|
+
define_attribute(:type, RubyXL::ST_LineEndType)
|
|
698
|
+
define_attribute(:w, RubyXL::ST_LineEndWidth)
|
|
699
|
+
define_attribute(:len, RubyXL::ST_LineEndLength)
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_prstDash-1.html
|
|
703
|
+
class CT_PresetLineDashProperties < OOXMLObject
|
|
704
|
+
define_attribute(:val, RubyXL::ST_PresetLineDashVal)
|
|
705
|
+
define_element_name 'a:prstDash'
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_DashStop.html
|
|
709
|
+
class CT_DashStop < OOXMLObject
|
|
710
|
+
define_attribute(:d, :int, :required => true)
|
|
711
|
+
define_attribute(:sp, :int, :required => true)
|
|
712
|
+
define_element_name 'a:ds'
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_DashStopList.html
|
|
716
|
+
class CT_DashStopList < OOXMLContainerObject
|
|
717
|
+
define_child_node(RubyXL::CT_DashStop, :collection => [0..-1])
|
|
718
|
+
define_element_name 'a:custDash'
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_ln-1.html
|
|
722
|
+
class CT_LineProperties < OOXMLObject
|
|
723
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
724
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
|
|
725
|
+
define_child_node(RubyXL::CT_GradientFillProperties)
|
|
726
|
+
define_child_node(RubyXL::CT_PatternFillProperties)
|
|
727
|
+
define_child_node(RubyXL::CT_PresetLineDashProperties)
|
|
728
|
+
define_child_node(RubyXL::CT_DashStopList)
|
|
729
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:round')
|
|
730
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:bevel')
|
|
731
|
+
define_child_node(RubyXL::CT_LineJoinMiterProperties)
|
|
732
|
+
define_child_node(RubyXL::CT_LineEndProperties, :node_name => 'a:headEnd')
|
|
733
|
+
define_child_node(RubyXL::CT_LineEndProperties, :node_name => 'a:tailEnd')
|
|
734
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
735
|
+
define_attribute(:w, :int)
|
|
736
|
+
define_attribute(:cap, RubyXL::ST_LineCap)
|
|
737
|
+
define_attribute(:cmpd, RubyXL::ST_CompoundLine)
|
|
738
|
+
define_attribute(:algn, RubyXL::ST_PenAlignment)
|
|
739
|
+
define_element_name 'a:ln'
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_lnStyleLst-1.html
|
|
743
|
+
class CT_LineStyleList < OOXMLContainerObject
|
|
744
|
+
define_child_node(RubyXL::CT_LineProperties, :collection => [3..-1])
|
|
745
|
+
define_element_name 'a:lnStyleLst'
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_SphereCoords.html
|
|
749
|
+
class CT_SphereCoords < OOXMLObject
|
|
750
|
+
define_attribute(:lat, :int, :required => true)
|
|
751
|
+
define_attribute(:lon, :int, :required => true)
|
|
752
|
+
define_attribute(:rev, :int, :required => true)
|
|
753
|
+
define_element_name 'a:rot'
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_camera-1.html
|
|
757
|
+
class CT_Camera < OOXMLObject
|
|
758
|
+
define_child_node(RubyXL::CT_SphereCoords)
|
|
759
|
+
define_attribute(:prst, RubyXL::ST_PresetCameraType, :required => true)
|
|
760
|
+
define_attribute(:fov, :int)
|
|
761
|
+
define_attribute(:zoom, :int, :default => 100000)
|
|
762
|
+
define_element_name 'a:camera'
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_lightRig-1.html
|
|
766
|
+
class CT_LightRig < OOXMLObject
|
|
767
|
+
define_child_node(RubyXL::CT_SphereCoords)
|
|
768
|
+
define_attribute(:rig, RubyXL::ST_LightRigType, :required => true)
|
|
769
|
+
define_attribute(:dir, RubyXL::ST_LightRigDirection, :required => true)
|
|
770
|
+
define_element_name 'a:lightRig'
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_anchor-1.html
|
|
774
|
+
class CT_Point3D < OOXMLObject
|
|
775
|
+
define_attribute(:x, :int, :required => true)
|
|
776
|
+
define_attribute(:y, :int, :required => true)
|
|
777
|
+
define_attribute(:z, :int, :required => true)
|
|
778
|
+
define_element_name 'a:anchor'
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_Vector3D.html
|
|
782
|
+
class CT_Vector3D < OOXMLObject
|
|
783
|
+
define_attribute(:dx, :int, :required => true)
|
|
784
|
+
define_attribute(:dy, :int, :required => true)
|
|
785
|
+
define_attribute(:dz, :int, :required => true)
|
|
786
|
+
end
|
|
787
|
+
|
|
788
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_Backdrop.html
|
|
789
|
+
class CT_Backdrop < OOXMLObject
|
|
790
|
+
define_child_node(RubyXL::CT_Point3D)
|
|
791
|
+
define_child_node(RubyXL::CT_Vector3D, :node_name => 'a:norm')
|
|
792
|
+
define_child_node(RubyXL::CT_Vector3D, :node_name => 'a:up')
|
|
793
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
794
|
+
define_element_name 'a:backdrop'
|
|
795
|
+
end
|
|
796
|
+
|
|
797
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_scene3d-1.html
|
|
798
|
+
class CT_Scene3D < OOXMLObject
|
|
799
|
+
define_child_node(RubyXL::CT_Camera, :required => true)
|
|
800
|
+
define_child_node(RubyXL::CT_LightRig, :required => true)
|
|
801
|
+
define_child_node(RubyXL::CT_Backdrop)
|
|
802
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
803
|
+
define_element_name 'a:scene3d'
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_Bevel.html
|
|
807
|
+
class CT_Bevel < OOXMLObject
|
|
808
|
+
define_attribute(:w, :int, :default => 76200)
|
|
809
|
+
define_attribute(:h, :int, :default => 76200)
|
|
810
|
+
define_attribute(:prst, RubyXL::ST_BevelPresetType)
|
|
811
|
+
define_element_name 'a:CT_Bevel'
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_sp3d-1.html
|
|
815
|
+
class CT_Shape3D < OOXMLObject
|
|
816
|
+
define_child_node(RubyXL::CT_Bevel, :node_name => 'a:bevelT')
|
|
817
|
+
define_child_node(RubyXL::CT_Bevel, :node_name => 'a:bevelB')
|
|
818
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:extrusionClr')
|
|
819
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:contourClr')
|
|
820
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
821
|
+
define_attribute(:z, :int, :default => 0)
|
|
822
|
+
define_attribute(:extrusionH, :int, :default => 0)
|
|
823
|
+
define_attribute(:contourW, :int, :default => 0)
|
|
824
|
+
define_attribute(:prstMaterial, RubyXL::ST_PresetMaterialType, :default => 'warmMatte')
|
|
825
|
+
define_element_name 'a:sp3d'
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_blur-1.html
|
|
829
|
+
class CT_BlurEffect < OOXMLObject
|
|
830
|
+
define_attribute(:rad, :int, :default => 0)
|
|
831
|
+
define_attribute(:grow, :bool, :default => true)
|
|
832
|
+
define_element_name 'a:blur'
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_effectLst-1.html
|
|
836
|
+
class CT_EffectList < OOXMLObject
|
|
837
|
+
define_child_node(RubyXL::CT_BlurEffect)
|
|
838
|
+
define_child_node(RubyXL::CT_FillOverlayEffect)
|
|
839
|
+
define_child_node(RubyXL::CT_GlowEffect)
|
|
840
|
+
define_child_node(RubyXL::CT_InnerShadowEffect)
|
|
841
|
+
define_child_node(RubyXL::CT_OuterShadowEffect)
|
|
842
|
+
define_child_node(RubyXL::CT_PresetShadowEffect)
|
|
843
|
+
define_child_node(RubyXL::CT_ReflectionEffect)
|
|
844
|
+
define_child_node(RubyXL::CT_SoftEdgesEffect)
|
|
845
|
+
define_element_name 'a:effectLst'
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_effectStyle-1.html
|
|
849
|
+
class CT_EffectStyleItem < OOXMLObject
|
|
850
|
+
define_child_node(RubyXL::CT_EffectList)
|
|
851
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:effectDag')
|
|
852
|
+
define_child_node(RubyXL::CT_Scene3D)
|
|
853
|
+
define_child_node(RubyXL::CT_Shape3D)
|
|
854
|
+
define_element_name 'a:effectStyle'
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_effectStyleLst-1.html
|
|
858
|
+
class CT_EffectStyleList < OOXMLContainerObject
|
|
859
|
+
define_child_node(RubyXL::CT_EffectStyleItem, :collection => [3..-1])
|
|
860
|
+
define_element_name 'a:effectStyleLst'
|
|
861
|
+
end
|
|
862
|
+
|
|
299
863
|
# http://www.schemacentral.com/sc/ooxml/e-a_fmtScheme-1.html
|
|
300
|
-
class
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
864
|
+
class CT_StyleMatrix < OOXMLObject
|
|
865
|
+
define_child_node(RubyXL::CT_FillStyleList, :required => true)
|
|
866
|
+
define_child_node(RubyXL::CT_LineStyleList, :required => true)
|
|
867
|
+
define_child_node(RubyXL::CT_EffectStyleList, :required => true)
|
|
868
|
+
define_child_node(RubyXL::CT_FillStyleList, :required => true, :node_name => 'a:bgFillStyleLst')
|
|
305
869
|
define_attribute(:name, :string)
|
|
306
870
|
define_element_name 'a:fmtScheme'
|
|
307
871
|
end
|
|
308
872
|
|
|
309
873
|
# http://www.schemacentral.com/sc/ooxml/e-a_themeElements-1.html
|
|
310
874
|
class ThemeElements < OOXMLObject
|
|
311
|
-
define_child_node(RubyXL::
|
|
875
|
+
define_child_node(RubyXL::CT_ColorScheme)
|
|
312
876
|
define_child_node(RubyXL::FontScheme)
|
|
313
|
-
define_child_node(RubyXL::
|
|
877
|
+
define_child_node(RubyXL::CT_StyleMatrix)
|
|
314
878
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
315
879
|
define_element_name 'a:themeElements'
|
|
316
880
|
end
|
|
@@ -330,7 +894,7 @@ module RubyXL
|
|
|
330
894
|
end
|
|
331
895
|
|
|
332
896
|
# http://www.schemacentral.com/sc/ooxml/e-a_xfrm-4.html
|
|
333
|
-
class
|
|
897
|
+
class CT_Transform2D < OOXMLObject
|
|
334
898
|
define_attribute(:rot, :int, :default => 0)
|
|
335
899
|
define_attribute(:flipH, :bool, :default => false)
|
|
336
900
|
define_attribute(:flipV, :bool, :default => false)
|
|
@@ -348,7 +912,7 @@ module RubyXL
|
|
|
348
912
|
|
|
349
913
|
# http://www.schemacentral.com/sc/ooxml/e-a_avLst-1.html
|
|
350
914
|
class CT_GeomGuideList < OOXMLContainerObject
|
|
351
|
-
define_child_node(RubyXL::ShapeGuide, :collection =>
|
|
915
|
+
define_child_node(RubyXL::ShapeGuide, :collection => [0..-1])
|
|
352
916
|
end
|
|
353
917
|
|
|
354
918
|
# http://www.schemacentral.com/sc/ooxml/e-a_rect-1.html
|
|
@@ -370,9 +934,9 @@ module RubyXL
|
|
|
370
934
|
# http://www.schemacentral.com/sc/ooxml/t-a_CT_PolarAdjustHandle.html
|
|
371
935
|
class CT_XYAdjustHandle < OOXMLObject
|
|
372
936
|
define_child_node(RubyXL::CT_AdjPoint2D)
|
|
373
|
-
define_attribute(:gdRefX,
|
|
374
|
-
define_attribute(:minX,
|
|
375
|
-
define_attribute(:maxX,
|
|
937
|
+
define_attribute(:gdRefX, :string)
|
|
938
|
+
define_attribute(:minX, :int)
|
|
939
|
+
define_attribute(:maxX, :int)
|
|
376
940
|
define_attribute(:gdRefY, :string)
|
|
377
941
|
define_attribute(:minY, :int)
|
|
378
942
|
define_attribute(:maxY, :int)
|
|
@@ -407,7 +971,7 @@ module RubyXL
|
|
|
407
971
|
|
|
408
972
|
# http://www.schemacentral.com/sc/ooxml/e-a_cxnLst-1.html
|
|
409
973
|
class CT_ConnectionSiteList < OOXMLContainerObject
|
|
410
|
-
define_child_node(RubyXL::CT_ConnectionSite, :collection =>
|
|
974
|
+
define_child_node(RubyXL::CT_ConnectionSite, :collection => [0..-1])
|
|
411
975
|
define_element_name 'a:cxnLst'
|
|
412
976
|
end
|
|
413
977
|
|
|
@@ -427,13 +991,13 @@ module RubyXL
|
|
|
427
991
|
|
|
428
992
|
# http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
|
|
429
993
|
class CT_Path2DQuadBezierTo < OOXMLContainerObject
|
|
430
|
-
define_child_node(RubyXL::CT_AdjPoint2D, :collection =>
|
|
994
|
+
define_child_node(RubyXL::CT_AdjPoint2D, :collection => [2..2], :node_name => 'a:pt')
|
|
431
995
|
define_element_name 'a:quadBezTo'
|
|
432
996
|
end
|
|
433
997
|
|
|
434
998
|
# http://www.schemacentral.com/sc/ooxml/e-a_quadBezTo-1.html
|
|
435
999
|
class CT_Path2DCubicBezierTo < OOXMLContainerObject
|
|
436
|
-
define_child_node(RubyXL::CT_AdjPoint2D, :collection =>
|
|
1000
|
+
define_child_node(RubyXL::CT_AdjPoint2D, :collection => [2..2], :node_name => 'a:pt')
|
|
437
1001
|
define_element_name 'a:cubicBezTo'
|
|
438
1002
|
end
|
|
439
1003
|
|
|
@@ -455,7 +1019,7 @@ module RubyXL
|
|
|
455
1019
|
|
|
456
1020
|
# http://www.schemacentral.com/sc/ooxml/e-a_pathLst-1.html
|
|
457
1021
|
class CT_Path2DList < OOXMLContainerObject
|
|
458
|
-
define_child_node(RubyXL::CT_Path2D, :collection =>
|
|
1022
|
+
define_child_node(RubyXL::CT_Path2D, :collection => [0..-1])
|
|
459
1023
|
define_element_name 'a:pathLst'
|
|
460
1024
|
end
|
|
461
1025
|
|
|
@@ -479,75 +1043,335 @@ module RubyXL
|
|
|
479
1043
|
|
|
480
1044
|
# http://www.schemacentral.com/sc/ooxml/e-a_spPr-1.html
|
|
481
1045
|
class VisualProperties < OOXMLObject
|
|
482
|
-
define_child_node(RubyXL::
|
|
1046
|
+
define_child_node(RubyXL::CT_Transform2D)
|
|
1047
|
+
# -- Choice [0..1] (EG_Geometry)
|
|
483
1048
|
define_child_node(RubyXL::CustomGeometry)
|
|
484
1049
|
define_child_node(RubyXL::PresetGeometry)
|
|
485
|
-
#
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
#
|
|
493
|
-
|
|
494
|
-
#
|
|
495
|
-
|
|
496
|
-
|
|
1050
|
+
# -- Choice [0..1] (EG_FillProperties)
|
|
1051
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
1052
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
|
|
1053
|
+
define_child_node(RubyXL::CT_GradientFillProperties)
|
|
1054
|
+
define_child_node(RubyXL::CT_BlipFillProperties)
|
|
1055
|
+
define_child_node(RubyXL::CT_PatternFillProperties)
|
|
1056
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
|
|
1057
|
+
# --
|
|
1058
|
+
define_child_node(RubyXL::CT_LineProperties)
|
|
1059
|
+
# -- Choice [0..1] (EG_EffectProperties)
|
|
1060
|
+
define_child_node(RubyXL::CT_EffectList)
|
|
1061
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:effectDag')
|
|
1062
|
+
# --
|
|
1063
|
+
define_child_node(RubyXL::CT_Scene3D)
|
|
1064
|
+
define_child_node(RubyXL::CT_Shape3D)
|
|
1065
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
497
1066
|
define_attribute(:bwMode, RubyXL::ST_BlackWhiteMode)
|
|
1067
|
+
define_element_name 'a:spPr'
|
|
1068
|
+
end
|
|
1069
|
+
|
|
1070
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_prstTxWarp-2.html
|
|
1071
|
+
class CT_PresetTextShape < OOXMLObject
|
|
1072
|
+
define_child_node(RubyXL::CT_GeomGuideList, :node_name => 'a:avLst')
|
|
1073
|
+
define_attribute(:prst, RubyXL::ST_TextShapeType)
|
|
1074
|
+
define_element_name 'a:prstTxWarp'
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_normAutofit-1.html
|
|
1078
|
+
class CT_TextNormalAutofit < OOXMLObject
|
|
1079
|
+
define_attribute(:fontScale, :int, :default => 100000)
|
|
1080
|
+
define_attribute(:lnSpcReduction, :int, :default => 0)
|
|
1081
|
+
define_element_name 'a:normAutofit'
|
|
1082
|
+
end
|
|
498
1083
|
|
|
1084
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_flatTx-1.html
|
|
1085
|
+
class CT_FlatText < OOXMLObject
|
|
1086
|
+
define_attribute(:z, :int, :default => 0)
|
|
1087
|
+
define_element_name 'a:flatTx'
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_bodyPr-1.html
|
|
1091
|
+
class BodyProperties < OOXMLObject
|
|
1092
|
+
define_child_node(RubyXL::CT_PresetTextShape)
|
|
1093
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noAutofit')
|
|
1094
|
+
define_child_node(RubyXL::CT_TextNormalAutofit)
|
|
1095
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:spAutoFit')
|
|
1096
|
+
define_child_node(RubyXL::CT_Scene3D)
|
|
1097
|
+
define_child_node(RubyXL::CT_Shape3D)
|
|
1098
|
+
define_child_node(RubyXL::CT_FlatText)
|
|
499
1099
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
500
|
-
|
|
1100
|
+
define_attribute(:rot, :int)
|
|
1101
|
+
define_attribute(:spcFirstLastPara, :bool)
|
|
1102
|
+
define_attribute(:vertOverflow, RubyXL::ST_TextVertOverflowType)
|
|
1103
|
+
define_attribute(:horzOverflow, RubyXL::ST_TextHorzOverflowType)
|
|
1104
|
+
define_attribute(:vert, RubyXL::ST_TextVerticalType)
|
|
1105
|
+
define_attribute(:wrap, RubyXL::ST_TextWrappingType)
|
|
1106
|
+
define_attribute(:lIns, :int)
|
|
1107
|
+
define_attribute(:tIns, :int)
|
|
1108
|
+
define_attribute(:rIns, :int)
|
|
1109
|
+
define_attribute(:bIns, :int)
|
|
1110
|
+
define_attribute(:numCol, :int)
|
|
1111
|
+
define_attribute(:spcCol, :int)
|
|
1112
|
+
define_attribute(:rtlCol, :bool)
|
|
1113
|
+
define_attribute(:fromWordArt, :bool)
|
|
1114
|
+
define_attribute(:anchor, RubyXL::ST_TextAnchoringType)
|
|
1115
|
+
define_attribute(:anchorCtr, :bool)
|
|
1116
|
+
define_attribute(:forceAA, :bool)
|
|
1117
|
+
define_attribute(:upright, :bool, :default => false)
|
|
1118
|
+
define_attribute(:compatLnSpc, :bool)
|
|
1119
|
+
define_element_name 'a:bodyPr'
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_tab-1.html
|
|
1123
|
+
class CT_TextTabStop < OOXMLObject
|
|
1124
|
+
define_attribute(:pos, :int)
|
|
1125
|
+
define_attribute(:algn, RubyXL::ST_TextTabAlignType)
|
|
1126
|
+
define_element_name 'a:tabLst'
|
|
1127
|
+
end
|
|
1128
|
+
|
|
1129
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_tabLst-1.html
|
|
1130
|
+
class CT_TextTabStopList < OOXMLContainerObject
|
|
1131
|
+
define_child_node(RubyXL::CT_TextTabStop, :collection => [0..32])
|
|
1132
|
+
define_element_name 'a:tabLst'
|
|
1133
|
+
end
|
|
1134
|
+
|
|
1135
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_buAutoNum-1.html
|
|
1136
|
+
class CT_TextAutonumberBullet < OOXMLObject
|
|
1137
|
+
define_attribute(:type, RubyXL::ST_TextAutonumberScheme)
|
|
1138
|
+
define_attribute(:startAt, :int)
|
|
1139
|
+
define_element_name 'a:buAutoNum'
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_buChar-1.html
|
|
1143
|
+
class CT_TextCharBullet < OOXMLObject
|
|
1144
|
+
define_attribute(:char, :string, :required => true)
|
|
1145
|
+
define_element_name 'a:buChar'
|
|
1146
|
+
end
|
|
1147
|
+
|
|
1148
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_buBlip-1.html
|
|
1149
|
+
class CT_TextBlipBullet < OOXMLObject
|
|
1150
|
+
define_child_node(RubyXL::CT_Blip)
|
|
1151
|
+
define_element_name 'a:buBlip'
|
|
1152
|
+
end
|
|
1153
|
+
|
|
1154
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_TextSpacing.html
|
|
1155
|
+
class CT_TextSpacing < OOXMLObject
|
|
1156
|
+
define_child_node(RubyXL::IntegerValue, :node_name => 'a:spcPct')
|
|
1157
|
+
define_child_node(RubyXL::IntegerValue, :node_name => 'a:spcPts')
|
|
1158
|
+
end
|
|
1159
|
+
|
|
1160
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_snd-1.html
|
|
1161
|
+
class CT_EmbeddedWAVAudioFile < OOXMLObject
|
|
1162
|
+
define_attribute(:'r:embed', :string)
|
|
1163
|
+
define_attribute(:name, :string, :default => '')
|
|
1164
|
+
define_attribute(:builtIn, :bool, :default => false)
|
|
1165
|
+
define_element_name 'a:snd'
|
|
1166
|
+
end
|
|
1167
|
+
|
|
1168
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_Hyperlink.html
|
|
1169
|
+
class CT_Hyperlink < OOXMLObject
|
|
1170
|
+
define_child_node(RubyXL::CT_EmbeddedWAVAudioFile)
|
|
1171
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
1172
|
+
define_attribute(:'r:id', :string)
|
|
1173
|
+
define_attribute(:invalidUrl, :string, :default => '')
|
|
1174
|
+
define_attribute(:action, :string, :default => '')
|
|
1175
|
+
define_attribute(:tgtFrame, :string, :default => '')
|
|
1176
|
+
define_attribute(:tooltip, :string, :default => '')
|
|
1177
|
+
define_attribute(:history, :bool, :default => true)
|
|
1178
|
+
define_attribute(:highlightClick, :bool, :default => false)
|
|
1179
|
+
define_attribute(:endSnd, :bool, :default => false)
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_defRPr-1.html
|
|
1183
|
+
class CT_TextCharacterProperties < OOXMLObject
|
|
1184
|
+
define_child_node(RubyXL::CT_LineProperties)
|
|
1185
|
+
# -- EG_FillProperties
|
|
1186
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:noFill')
|
|
1187
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:solidFill')
|
|
1188
|
+
define_child_node(RubyXL::CT_GradientFillProperties)
|
|
1189
|
+
define_child_node(RubyXL::CT_BlipFillProperties)
|
|
1190
|
+
define_child_node(RubyXL::CT_PatternFillProperties)
|
|
1191
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:grpFill')
|
|
1192
|
+
# -- EG_EffectProperties
|
|
1193
|
+
define_child_node(RubyXL::CT_EffectList)
|
|
1194
|
+
define_child_node(RubyXL::CT_EffectContainer, :node_name => 'a:effectDag')
|
|
1195
|
+
# --
|
|
1196
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:highlight')
|
|
1197
|
+
# -- EG_TextUnderlineLine
|
|
1198
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:uLnTx')
|
|
1199
|
+
define_child_node(RubyXL::CT_LineProperties, :node_name => 'a:uLn')
|
|
1200
|
+
# -- EG_TextUnderlineFill
|
|
1201
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:uFillTx')
|
|
1202
|
+
define_child_node(RubyXL::CT_FillStyleList, :node_name => 'a:uFill')
|
|
1203
|
+
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:latin')
|
|
1204
|
+
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:ea')
|
|
1205
|
+
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:cs')
|
|
1206
|
+
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:sym')
|
|
1207
|
+
define_child_node(RubyXL::CT_Hyperlink, :node_name => 'a:hlinkClick')
|
|
1208
|
+
define_child_node(RubyXL::CT_Hyperlink, :node_name => 'a:hlinkMouseOver')
|
|
1209
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
1210
|
+
define_attribute(:kumimoji, :bool)
|
|
1211
|
+
define_attribute(:lang, :string)
|
|
1212
|
+
define_attribute(:altLang, :string)
|
|
1213
|
+
define_attribute(:sz, :int)
|
|
1214
|
+
define_attribute(:b, :bool)
|
|
1215
|
+
define_attribute(:i, :bool)
|
|
1216
|
+
define_attribute(:u, RubyXL::ST_TextUnderlineType)
|
|
1217
|
+
define_attribute(:strike, RubyXL::ST_TextStrikeType)
|
|
1218
|
+
define_attribute(:kern, :int)
|
|
1219
|
+
define_attribute(:cap, RubyXL::ST_TextCapsType)
|
|
1220
|
+
define_attribute(:spc, :int)
|
|
1221
|
+
define_attribute(:normalizeH, :bool)
|
|
1222
|
+
define_attribute(:baseline, :int)
|
|
1223
|
+
define_attribute(:noProof, :bool)
|
|
1224
|
+
define_attribute(:dirty, :bool, :default => true)
|
|
1225
|
+
define_attribute(:err, :bool, :default => false)
|
|
1226
|
+
define_attribute(:smtClean, :bool, :default => true)
|
|
1227
|
+
define_attribute(:smtId, :int, :default => 0)
|
|
1228
|
+
define_attribute(:bmk, :string)
|
|
1229
|
+
define_element_name 'a:defRPr'
|
|
1230
|
+
end
|
|
1231
|
+
|
|
1232
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_defPPr-1.html define_child_node(RubyXL::CT_TextSpacing, :node_name => 'a:lnSpc')
|
|
1233
|
+
class CT_TextParagraphProperties < OOXMLObject
|
|
1234
|
+
define_child_node(RubyXL::CT_TextSpacing, :node_name => 'a:spcBef')
|
|
1235
|
+
define_child_node(RubyXL::CT_TextSpacing, :node_name => 'a:spcAft')
|
|
1236
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:buClrTx')
|
|
1237
|
+
define_child_node(RubyXL::CT_Color, :node_name => 'a:buClr')
|
|
1238
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:buSzTx')
|
|
1239
|
+
define_child_node(RubyXL::IntegerValue, :node_name => 'a:buSzPct')
|
|
1240
|
+
define_child_node(RubyXL::IntegerValue, :node_name => 'a:buSzPts')
|
|
1241
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:buFontTx')
|
|
1242
|
+
define_child_node(RubyXL::CT_TextFont, :node_name => 'a:buFont')
|
|
1243
|
+
define_child_node(RubyXL::BooleanValue, :node_name => 'a:buNone')
|
|
1244
|
+
define_child_node(RubyXL::CT_TextAutonumberBullet)
|
|
1245
|
+
define_child_node(RubyXL::CT_TextCharBullet)
|
|
1246
|
+
define_child_node(RubyXL::CT_TextBlipBullet)
|
|
1247
|
+
define_child_node(RubyXL::CT_TextTabStop)
|
|
1248
|
+
define_child_node(RubyXL::CT_TextCharacterProperties)
|
|
1249
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
1250
|
+
define_attribute(:marL, :int)
|
|
1251
|
+
define_attribute(:marR, :int)
|
|
1252
|
+
define_attribute(:lvl, :int)
|
|
1253
|
+
define_attribute(:indent, :int)
|
|
1254
|
+
define_attribute(:algn, RubyXL::ST_TextAlignType)
|
|
1255
|
+
define_attribute(:defTabSz, :int)
|
|
1256
|
+
define_attribute(:rtl, :bool)
|
|
1257
|
+
define_attribute(:eaLnBrk, :bool)
|
|
1258
|
+
define_attribute(:fontAlgn, RubyXL::ST_TextFontAlignType)
|
|
1259
|
+
define_attribute(:latinLnBrk, :bool)
|
|
1260
|
+
define_attribute(:hangingPunct, :bool)
|
|
1261
|
+
define_element_name 'a:defPPr'
|
|
1262
|
+
end
|
|
1263
|
+
|
|
1264
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_lstStyle-1.html
|
|
1265
|
+
class CT_TextListStyle < OOXMLObject
|
|
1266
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:defPPr')
|
|
1267
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl1pPr')
|
|
1268
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl2pPr')
|
|
1269
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl3pPr')
|
|
1270
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl4pPr')
|
|
1271
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl5pPr')
|
|
1272
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl6pPr')
|
|
1273
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl7pPr')
|
|
1274
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl8pPr')
|
|
1275
|
+
define_child_node(RubyXL::CT_TextParagraphProperties, :node_name => 'a:lvl9pPr')
|
|
1276
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
1277
|
+
define_element_name 'a:lstStyle'
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_StyleMatrixReference.html
|
|
1281
|
+
class CT_StyleMatrixReference < OOXMLObject
|
|
1282
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
1283
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
1284
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
1285
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
1286
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
1287
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
1288
|
+
define_attribute(:idx, :int, :required => true)
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_FontReference.html
|
|
1292
|
+
class CT_FontReference < OOXMLObject
|
|
1293
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
1294
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
1295
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
1296
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
1297
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
1298
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
1299
|
+
define_attribute(:idx, RubyXL::ST_FontCollectionIndex, :required => true)
|
|
501
1300
|
end
|
|
502
1301
|
|
|
503
|
-
# http://www.schemacentral.com/sc/ooxml/
|
|
504
|
-
class
|
|
1302
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_ShapeStyle.html
|
|
1303
|
+
class CT_ShapeStyle < OOXMLObject
|
|
1304
|
+
define_child_node(RubyXL::CT_StyleMatrixReference, :node_name => 'a:lnRef')
|
|
1305
|
+
define_child_node(RubyXL::CT_StyleMatrixReference, :node_name => 'a:fillRef')
|
|
1306
|
+
define_child_node(RubyXL::CT_StyleMatrixReference, :node_name => 'a:effectRef')
|
|
1307
|
+
define_child_node(RubyXL::CT_FontReference, :node_name => 'a:fontRef')
|
|
1308
|
+
define_element_name 'a:style'
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
# http://www.schemacentral.com/sc/ooxml/t-a_CT_DefaultShapeDefinition.html
|
|
1312
|
+
class CT_DefaultShapeDefinition < OOXMLObject
|
|
505
1313
|
define_child_node(RubyXL::VisualProperties)
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
1314
|
+
define_child_node(RubyXL::BodyProperties)
|
|
1315
|
+
define_child_node(RubyXL::CT_TextListStyle)
|
|
1316
|
+
define_child_node(RubyXL::CT_ShapeStyle)
|
|
509
1317
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
510
|
-
define_element_name 'a:spDef'
|
|
511
1318
|
end
|
|
512
1319
|
|
|
513
1320
|
# http://www.schemacentral.com/sc/ooxml/e-a_objectDefaults-1.html
|
|
514
|
-
class
|
|
515
|
-
define_child_node(RubyXL::
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
# a:txDef [0..1] TextDefault
|
|
1321
|
+
class CT_ObjectStyleDefaults < OOXMLObject
|
|
1322
|
+
define_child_node(RubyXL::CT_DefaultShapeDefinition, :node_name => 'a:spDef')
|
|
1323
|
+
define_child_node(RubyXL::CT_DefaultShapeDefinition, :node_name => 'a:lnDef')
|
|
1324
|
+
define_child_node(RubyXL::CT_DefaultShapeDefinition, :node_name => 'a:txDef')
|
|
519
1325
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
520
1326
|
define_element_name 'a:objectDefaults'
|
|
521
1327
|
end
|
|
522
1328
|
|
|
1329
|
+
# http://www.schemacentral.com/sc/ooxml/e-a_clrMap-1.html
|
|
1330
|
+
class CT_ColorMapping < OOXMLObject
|
|
1331
|
+
define_child_node(RubyXL::AExtensionStorageArea)
|
|
1332
|
+
define_attribute(:bg1, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1333
|
+
define_attribute(:tx1, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1334
|
+
define_attribute(:bg2, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1335
|
+
define_attribute(:tx2, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1336
|
+
define_attribute(:accent1, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1337
|
+
define_attribute(:accent2, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1338
|
+
define_attribute(:accent3, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1339
|
+
define_attribute(:accent4, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1340
|
+
define_attribute(:accent5, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1341
|
+
define_attribute(:accent6, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1342
|
+
define_attribute(:hlink, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1343
|
+
define_attribute(:golHlink, RubyXL::ST_ColorSchemeIndex, :required => true)
|
|
1344
|
+
define_element_name 'a:clrMap'
|
|
1345
|
+
end
|
|
1346
|
+
|
|
523
1347
|
# http://www.schemacentral.com/sc/ooxml/e-a_extraClrScheme-1.html
|
|
524
|
-
class
|
|
525
|
-
|
|
526
|
-
|
|
1348
|
+
class CT_ColorSchemeAndMapping < OOXMLObject
|
|
1349
|
+
define_child_node(RubyXL::CT_ColorScheme)
|
|
1350
|
+
define_child_node(RubyXL::CT_ColorMapping)
|
|
527
1351
|
define_element_name 'a:extraClrScheme'
|
|
528
1352
|
end
|
|
529
1353
|
|
|
530
1354
|
# http://www.schemacentral.com/sc/ooxml/e-a_extraClrSchemeLst-1.html
|
|
531
1355
|
class ExtraColorSchemeList < OOXMLContainerObject
|
|
532
|
-
define_child_node(RubyXL::
|
|
1356
|
+
define_child_node(RubyXL::CT_ColorSchemeAndMapping, :collection => [0..-1])
|
|
533
1357
|
define_element_name 'a:extraClrSchemeLst'
|
|
534
1358
|
end
|
|
535
1359
|
|
|
536
1360
|
# http://www.schemacentral.com/sc/ooxml/e-a_custClr-1.html
|
|
537
1361
|
class CustomColor < OOXMLObject
|
|
538
|
-
define_child_node(RubyXL::
|
|
539
|
-
define_child_node(RubyXL::
|
|
540
|
-
define_child_node(RubyXL::
|
|
541
|
-
define_child_node(RubyXL::
|
|
542
|
-
define_child_node(RubyXL::
|
|
543
|
-
define_child_node(RubyXL::
|
|
1362
|
+
define_child_node(RubyXL::CT_ScRgbColor)
|
|
1363
|
+
define_child_node(RubyXL::CT_SRgbColor)
|
|
1364
|
+
define_child_node(RubyXL::CT_HslColor)
|
|
1365
|
+
define_child_node(RubyXL::CT_SystemColor)
|
|
1366
|
+
define_child_node(RubyXL::CT_SchemeColor)
|
|
1367
|
+
define_child_node(RubyXL::CT_PresetColor)
|
|
544
1368
|
define_attribute(:name, :string, :default => '')
|
|
545
1369
|
define_element_name 'a:custClr'
|
|
546
1370
|
end
|
|
547
1371
|
|
|
548
1372
|
# http://www.schemacentral.com/sc/ooxml/e-a_custClrLst-1.html
|
|
549
1373
|
class CustomColorList < OOXMLContainerObject
|
|
550
|
-
define_child_node(RubyXL::CustomColor, :collection =>
|
|
1374
|
+
define_child_node(RubyXL::CustomColor, :collection => [0..-1])
|
|
551
1375
|
define_element_name 'a:custClrLst'
|
|
552
1376
|
end
|
|
553
1377
|
|
|
@@ -555,7 +1379,7 @@ module RubyXL
|
|
|
555
1379
|
class Theme < OOXMLTopLevelObject
|
|
556
1380
|
define_attribute(:name, :string, :default => '')
|
|
557
1381
|
define_child_node(RubyXL::ThemeElements)
|
|
558
|
-
define_child_node(RubyXL::
|
|
1382
|
+
define_child_node(RubyXL::CT_ObjectStyleDefaults)
|
|
559
1383
|
define_child_node(RubyXL::ExtraColorSchemeList)
|
|
560
1384
|
define_child_node(RubyXL::CustomColorList)
|
|
561
1385
|
define_child_node(RubyXL::AExtensionStorageArea)
|
|
@@ -573,27 +1397,8 @@ module RubyXL
|
|
|
573
1397
|
end
|
|
574
1398
|
|
|
575
1399
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
attr_accessor :raw_xml
|
|
579
|
-
|
|
580
|
-
def self.parse_file(dirpath)
|
|
581
|
-
full_path = File.join(dirpath, xlsx_path)
|
|
582
|
-
return nil unless File.exist?(full_path)
|
|
583
|
-
|
|
584
|
-
# test = super
|
|
585
|
-
# puts test.inspect
|
|
586
|
-
|
|
587
|
-
obj = self.new
|
|
588
|
-
|
|
589
|
-
# Making sure that the file will be automatically closed immediately after it has been read
|
|
590
|
-
obj.raw_xml = File.open(full_path, 'r') { |f| f.read }
|
|
591
|
-
obj
|
|
592
|
-
end
|
|
593
|
-
|
|
594
|
-
def write_xml
|
|
595
|
-
raw_xml || # Use fallback theme.
|
|
596
|
-
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
1400
|
+
def self.defaults
|
|
1401
|
+
default_theme = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
597
1402
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
|
|
598
1403
|
<a:themeElements>
|
|
599
1404
|
<a:clrScheme name="Office">
|
|
@@ -909,9 +1714,8 @@ module RubyXL
|
|
|
909
1714
|
</a:objectDefaults>
|
|
910
1715
|
<a:extraClrSchemeLst/>
|
|
911
1716
|
</a:theme>'
|
|
912
|
-
|
|
1717
|
+
self.parse(default_theme)
|
|
913
1718
|
end
|
|
914
|
-
######
|
|
915
1719
|
|
|
916
1720
|
end
|
|
917
1721
|
|