rubyXL 2.5.6 → 2.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubyXL/objects/calculation_chain.rb +1 -1
- data/lib/rubyXL/objects/chartsheet.rb +2 -2
- data/lib/rubyXL/objects/content_types.rb +5 -4
- data/lib/rubyXL/objects/document_properties.rb +7 -7
- data/lib/rubyXL/objects/extensions.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +15 -8
- data/lib/rubyXL/objects/relationships.rb +5 -5
- data/lib/rubyXL/objects/shared_strings.rb +1 -1
- data/lib/rubyXL/objects/stylesheet.rb +5 -5
- data/lib/rubyXL/objects/theme.rb +2 -2
- data/lib/rubyXL/objects/workbook.rb +4 -4
- data/lib/rubyXL/objects/worksheet.rb +5 -5
- data/lib/rubyXL/parser.rb +16 -10
- data/lib/rubyXL/workbook.rb +3 -3
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +3 -3
- 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/BodyProperties.html +1 -1
- 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 +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- 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 +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- 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 +1 -1
- 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 +5 -4
- 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/DataType.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/rdoc/RubyXL/LegacyWorkbook.html +4 -4
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- 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 +1 -1
- 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 -7
- 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 +17 -11
- 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 +3 -3
- data/rdoc/RubyXL/Reference.html +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +19 -19
- 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 +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 794a18bdbb32248109cbf8db6c6980baa9554b94
|
4
|
+
data.tar.gz: 4d719ab25167db598f866854da7828b61e849b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e78a5c5c76d25bbc1a0a8fa59ca07fe949a0b4584e22bf253894399d691f0fbc50518a9ec06740050fd9d01859c7474ac9594387dac7c18c7f1de022cfb7a644
|
7
|
+
data.tar.gz: 3096460f2cdd9f40f6385eaedcf59bcd6902ed24f46c1de7a16d8fac104228296b7cec75869639f0252b4dde959b63ceacb5bb0da7125abe04511346d80f27b9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.7
|
@@ -19,7 +19,7 @@ module RubyXL
|
|
19
19
|
define_child_node(RubyXL::ExtensionStorageArea)
|
20
20
|
|
21
21
|
define_element_name 'calcChain'
|
22
|
-
set_namespaces('
|
22
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '')
|
23
23
|
|
24
24
|
def self.xlsx_path
|
25
25
|
File.join('xl', 'calcChain.xml')
|
@@ -71,8 +71,8 @@ module RubyXL
|
|
71
71
|
define_child_node(RubyXL::WebPublishingItems)
|
72
72
|
define_child_node(RubyXL::ExtensionStorageArea)
|
73
73
|
define_element_name 'chartsheet'
|
74
|
-
set_namespaces('
|
75
|
-
'
|
74
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '',
|
75
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r')
|
76
76
|
|
77
77
|
attr_accessor :state
|
78
78
|
|
@@ -20,7 +20,7 @@ module RubyXL
|
|
20
20
|
define_child_node(RubyXL::ContentTypeDefault, :collection => true, :accessor => :defaults)
|
21
21
|
define_child_node(RubyXL::ContentTypeOverride, :collection => true, :accessor => :overrides)
|
22
22
|
|
23
|
-
set_namespaces(
|
23
|
+
set_namespaces('http://schemas.openxmlformats.org/package/2006/content-types' => '')
|
24
24
|
define_element_name 'Types'
|
25
25
|
|
26
26
|
def self.xlsx_path
|
@@ -28,7 +28,7 @@ module RubyXL
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def generate_override(obj)
|
31
|
-
RubyXL::ContentTypeOverride.new(:part_name => "/#{obj.xlsx_path}", :content_type => obj.class.content_type)
|
31
|
+
obj && RubyXL::ContentTypeOverride.new(:part_name => "/#{obj.xlsx_path}", :content_type => obj.class.content_type)
|
32
32
|
end
|
33
33
|
|
34
34
|
def before_write_xml
|
@@ -54,8 +54,8 @@ module RubyXL
|
|
54
54
|
overrides << generate_override(workbook.stylesheet)
|
55
55
|
overrides << generate_override(workbook.document_properties)
|
56
56
|
overrides << generate_override(workbook.core_properties)
|
57
|
-
overrides << generate_override(workbook.shared_strings_container)
|
58
|
-
overrides << generate_override(workbook.calculation_chain)
|
57
|
+
overrides << generate_override(workbook.shared_strings_container) if workbook.shared_strings_container && !workbook.shared_strings_container.empty?
|
58
|
+
overrides << generate_override(workbook.calculation_chain)
|
59
59
|
overrides << generate_override(workbook.theme)
|
60
60
|
|
61
61
|
workbook.charts.each_pair { |k, v|
|
@@ -96,6 +96,7 @@ module RubyXL
|
|
96
96
|
:content_type => 'application/vnd.ms-office.vbaProject')
|
97
97
|
end
|
98
98
|
|
99
|
+
overrides.compact!
|
99
100
|
true
|
100
101
|
end
|
101
102
|
|
@@ -34,8 +34,8 @@ module RubyXL
|
|
34
34
|
define_child_node(RubyXL::StringNode, :node_name => :Application)
|
35
35
|
define_child_node(RubyXL::StringNode, :node_name => :AppVersion)
|
36
36
|
define_child_node(RubyXL::IntegerNode, :node_name => :DocSecurity)
|
37
|
-
set_namespaces('
|
38
|
-
'
|
37
|
+
set_namespaces('http://schemas.openxmlformats.org/officeDocument/2006/extended-properties' => '',
|
38
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes' => 'vt')
|
39
39
|
define_element_name 'Properties'
|
40
40
|
|
41
41
|
def add_parts_count(name, count)
|
@@ -98,11 +98,11 @@ module RubyXL
|
|
98
98
|
define_child_node(RubyXL::StringNode, :node_name => 'cp:revision')
|
99
99
|
define_child_node(RubyXL::StringNode, :node_name => 'cp:version')
|
100
100
|
|
101
|
-
set_namespaces('
|
102
|
-
'
|
103
|
-
'
|
104
|
-
'
|
105
|
-
'
|
101
|
+
set_namespaces('http://schemas.openxmlformats.org/package/2006/metadata/core-properties' => 'cp',
|
102
|
+
'http://purl.org/dc/elements/1.1/' => 'dc',
|
103
|
+
'http://purl.org/dc/terms/' => 'dcterms',
|
104
|
+
'http://purl.org/dc/dcmitype/' => 'dcmitype',
|
105
|
+
'http://www.w3.org/2001/XMLSchema-instance' => 'xsi')
|
106
106
|
define_element_name 'cp:coreProperties'
|
107
107
|
|
108
108
|
def self.xlsx_path
|
@@ -108,7 +108,7 @@ module RubyXL
|
|
108
108
|
self.send(:attr_accessor, :count)
|
109
109
|
end
|
110
110
|
|
111
|
-
def parse(node)
|
111
|
+
def parse(node, known_namespaces = nil)
|
112
112
|
node = Nokogiri::XML.parse(node) if node.is_a?(IO) || node.is_a?(String)
|
113
113
|
|
114
114
|
if node.is_a?(Nokogiri::XML::Document) then
|
@@ -140,16 +140,21 @@ module RubyXL
|
|
140
140
|
known_child_nodes = obtain_class_variable(:@@ooxml_child_nodes)
|
141
141
|
|
142
142
|
unless known_child_nodes.empty?
|
143
|
+
known_namespaces ||= obtain_class_variable(:@@ooxml_namespaces)
|
144
|
+
|
143
145
|
node.element_children.each { |child_node|
|
144
146
|
|
145
|
-
|
146
|
-
|
147
|
-
|
147
|
+
ns = child_node.namespace
|
148
|
+
prefix = known_namespaces[ns.href] || ns.prefix
|
149
|
+
|
150
|
+
child_node_name = case prefix
|
151
|
+
when '', nil then child_node.name
|
152
|
+
else "#{prefix}:#{child_node.name}"
|
148
153
|
end
|
149
154
|
|
150
155
|
child_node_params = known_child_nodes[child_node_name]
|
151
156
|
raise "Unknown child node [#{child_node_name}] for element [#{node.name}]" if child_node_params.nil?
|
152
|
-
parsed_object = child_node_params[:class].parse(child_node)
|
157
|
+
parsed_object = child_node_params[:class].parse(child_node, known_namespaces)
|
153
158
|
if child_node_params[:is_array] then
|
154
159
|
index = parsed_object.index_in_collection
|
155
160
|
|
@@ -254,7 +259,9 @@ module RubyXL
|
|
254
259
|
|
255
260
|
return '' unless before_write_xml
|
256
261
|
|
257
|
-
|
262
|
+
# Populate namespaces, if any
|
263
|
+
attrs = {}
|
264
|
+
obtain_class_variable(:@@ooxml_namespaces).each_pair { |k, v| attrs[v.empty? ? 'xmlns' : "xmlns:#{v}"] = k }
|
258
265
|
|
259
266
|
obtain_class_variable(:@@ooxml_attributes).each_pair { |k, v|
|
260
267
|
val = self.send(v[:accessor])
|
@@ -400,8 +407,8 @@ module RubyXL
|
|
400
407
|
# === Parameters
|
401
408
|
# * +namespace_hash+ - Hash of namespaces in the form of <tt>"prefix" => "url"</tt>
|
402
409
|
# ==== Examples
|
403
|
-
# set_namespaces('
|
404
|
-
# '
|
410
|
+
# set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '',
|
411
|
+
# 'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r')
|
405
412
|
def self.set_namespaces(namespace_hash)
|
406
413
|
self.class_variable_set(:@@ooxml_namespaces, namespace_hash)
|
407
414
|
end
|
@@ -16,7 +16,7 @@ module RubyXL
|
|
16
16
|
class OOXMLRelationshipsFile < OOXMLTopLevelObject
|
17
17
|
define_child_node(RubyXL::Relationship, :collection => true, :accessor => :relationships)
|
18
18
|
define_element_name 'Relationships'
|
19
|
-
set_namespaces('
|
19
|
+
set_namespaces('http://schemas.openxmlformats.org/package/2006/relationships' => '')
|
20
20
|
|
21
21
|
def document_relationship(target, type)
|
22
22
|
RubyXL::Relationship.new(:id => "rId#{relationships.size + 1}",
|
@@ -57,8 +57,8 @@ module RubyXL
|
|
57
57
|
relationships << document_relationship("externalLinks/#{k}", 'externalLink')
|
58
58
|
}
|
59
59
|
|
60
|
-
relationships << document_relationship('theme/theme1.xml', 'theme')
|
61
|
-
relationships << document_relationship('styles.xml', 'styles')
|
60
|
+
relationships << document_relationship('theme/theme1.xml', 'theme') if @workbook.theme
|
61
|
+
relationships << document_relationship('styles.xml', 'styles') if @workbook.stylesheet
|
62
62
|
|
63
63
|
if @workbook.shared_strings_container && !@workbook.shared_strings_container.strings.empty? then
|
64
64
|
relationships << document_relationship('sharedStrings.xml', 'sharedStrings')
|
@@ -86,8 +86,8 @@ module RubyXL
|
|
86
86
|
|
87
87
|
relationships << document_relationship('xl/workbook.xml', 'officeDocument')
|
88
88
|
relationships << metadata_relationship('docProps/thumbnail.jpeg', 'thumbnail') unless @workbook.thumbnail.empty?
|
89
|
-
relationships << metadata_relationship('docProps/core.xml', 'core-properties')
|
90
|
-
relationships << document_relationship('docProps/app.xml', 'extended-properties')
|
89
|
+
relationships << metadata_relationship('docProps/core.xml', 'core-properties') if @workbook.core_properties
|
90
|
+
relationships << document_relationship('docProps/app.xml', 'extended-properties') if @workbook.document_properties
|
91
91
|
|
92
92
|
true
|
93
93
|
end
|
@@ -12,7 +12,7 @@ module RubyXL
|
|
12
12
|
define_child_node(RubyXL::RichText, :collection => :with_count, :node_name => 'si', :accessor => :strings)
|
13
13
|
define_child_node(RubyXL::ExtensionStorageArea)
|
14
14
|
define_element_name 'sst'
|
15
|
-
set_namespaces('
|
15
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '')
|
16
16
|
|
17
17
|
def initialize(*params)
|
18
18
|
super
|
@@ -172,11 +172,11 @@ module RubyXL
|
|
172
172
|
define_child_node(RubyXL::Colors)
|
173
173
|
define_child_node(RubyXL::ExtensionStorageArea)
|
174
174
|
define_element_name 'styleSheet'
|
175
|
-
set_namespaces('
|
176
|
-
'
|
177
|
-
'
|
178
|
-
'
|
179
|
-
'
|
175
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '',
|
176
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r',
|
177
|
+
'http://schemas.openxmlformats.org/markup-compatibility/2006' => 'mc',
|
178
|
+
'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac' => 'x14ac',
|
179
|
+
'urn:schemas-microsoft-com:mac:vml' => 'mv')
|
180
180
|
|
181
181
|
def initialize(*args)
|
182
182
|
super
|
data/lib/rubyXL/objects/theme.rb
CHANGED
@@ -10,7 +10,7 @@ module RubyXL
|
|
10
10
|
define_element_name 'a:ext'
|
11
11
|
attr_accessor :raw_xml
|
12
12
|
|
13
|
-
def self.parse(node)
|
13
|
+
def self.parse(node, ignore)
|
14
14
|
obj = new
|
15
15
|
obj.raw_xml = node.to_xml
|
16
16
|
obj
|
@@ -1386,7 +1386,7 @@ module RubyXL
|
|
1386
1386
|
|
1387
1387
|
define_element_name 'a:theme'
|
1388
1388
|
|
1389
|
-
set_namespaces('
|
1389
|
+
set_namespaces('http://schemas.openxmlformats.org/drawingml/2006/main' => 'a')
|
1390
1390
|
|
1391
1391
|
def self.xlsx_path
|
1392
1392
|
File.join('xl', 'theme', 'theme1.xml')
|
@@ -309,10 +309,10 @@ module RubyXL
|
|
309
309
|
define_child_node(RubyXL::ExtensionStorageArea)
|
310
310
|
|
311
311
|
define_element_name 'workbook'
|
312
|
-
set_namespaces('
|
313
|
-
'
|
314
|
-
'
|
315
|
-
'
|
312
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '',
|
313
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r',
|
314
|
+
'http://schemas.openxmlformats.org/markup-compatibility/2006' => 'mc',
|
315
|
+
'http://schemas.microsoft.com/office/spreadsheetml/2010/11/main' => 'x15')
|
316
316
|
|
317
317
|
def before_write_xml
|
318
318
|
self.sheets = RubyXL::Sheets.new
|
@@ -646,11 +646,11 @@ module RubyXL
|
|
646
646
|
define_child_node(RubyXL::ExtensionStorageArea)
|
647
647
|
define_child_node(RubyXL::AlternateContent)
|
648
648
|
define_element_name 'worksheet'
|
649
|
-
set_namespaces('
|
650
|
-
'
|
651
|
-
'
|
652
|
-
'
|
653
|
-
'
|
649
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => '',
|
650
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r',
|
651
|
+
'http://schemas.openxmlformats.org/markup-compatibility/2006' => 'mc',
|
652
|
+
'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac' => 'x14ac',
|
653
|
+
'urn:schemas-microsoft-com:mac:vml' => 'mv')
|
654
654
|
|
655
655
|
attr_accessor :workbook, :state, :sheet_name, :sheet_id
|
656
656
|
|
data/lib/rubyXL/parser.rb
CHANGED
@@ -71,23 +71,29 @@ module RubyXL
|
|
71
71
|
wb.calculation_chain = RubyXL::CalculationChain.parse_file(dir_path)
|
72
72
|
end
|
73
73
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
wb.fonts[id].count += 1 #unless id.nil?
|
74
|
+
if wb.stylesheet then
|
75
|
+
#fills out count information for each font, fill, and border
|
76
|
+
wb.cell_xfs.each { |style|
|
78
77
|
|
79
|
-
|
80
|
-
|
78
|
+
id = style.font_id
|
79
|
+
wb.fonts[id].count += 1 #unless id.nil?
|
81
80
|
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
id = style.fill_id
|
82
|
+
wb.fills[id].count += 1 #unless id.nil?
|
83
|
+
|
84
|
+
id = style.border_id
|
85
|
+
wb.borders[id].count += 1 #unless id.nil?
|
86
|
+
}
|
87
|
+
end
|
85
88
|
|
86
89
|
wb.sheets.each_with_index { |sheet, i|
|
87
90
|
sheet_rel = wb.relationship_container.find_by_rid(sheet.r_id)
|
88
91
|
|
92
|
+
sheet_path = sheet_rel.target
|
93
|
+
sheet_path = File.join('xl', sheet_path) if sheet_path[0] != '/'
|
94
|
+
|
89
95
|
# Making sure that the file will be automatically closed immediately after it has been read
|
90
|
-
File.open(File.join(dir_path,
|
96
|
+
File.open(File.join(dir_path, sheet_path)) { |sheet_file|
|
91
97
|
case File::basename(sheet_rel.type)
|
92
98
|
when 'worksheet' then
|
93
99
|
sheet_obj = RubyXL::Worksheet.parse(sheet_file)
|
data/lib/rubyXL/workbook.rb
CHANGED
@@ -110,13 +110,13 @@ module RubyXL
|
|
110
110
|
theme && theme.add_to_zip(zipfile)
|
111
111
|
calculation_chain && calculation_chain.add_to_zip(zipfile)
|
112
112
|
shared_strings_container && shared_strings_container.add_to_zip(zipfile)
|
113
|
-
document_properties.add_to_zip(zipfile)
|
114
|
-
core_properties.add_to_zip(zipfile)
|
113
|
+
document_properties.add_to_zip(zipfile) if document_properties
|
114
|
+
core_properties.add_to_zip(zipfile) if core_properties
|
115
115
|
content_types.workbook = self
|
116
116
|
content_types.add_to_zip(zipfile)
|
117
117
|
relationship_container.workbook = root_relationship_container.workbook = self
|
118
118
|
relationship_container.add_to_zip(zipfile)
|
119
|
-
stylesheet.add_to_zip(zipfile)
|
119
|
+
stylesheet.add_to_zip(zipfile) if stylesheet
|
120
120
|
root_relationship_container.add_to_zip(zipfile)
|
121
121
|
self.add_to_zip(zipfile)
|
122
122
|
|
data/rdoc/README_rdoc.html
CHANGED
data/rdoc/RubyXL.html
CHANGED
data/rdoc/RubyXL/AExtension.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class RubyXL::AExtension - rubyXL 2.5.
|
7
|
+
<title>class RubyXL::AExtension - rubyXL 2.5.7</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -139,7 +139,7 @@ href="http://www.schemacentral.com/sc/ooxml/e-a_ext-1.html">www.schemacentral.co
|
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
141
|
<span class="method-name">parse</span><span
|
142
|
-
class="method-args">(node)</span>
|
142
|
+
class="method-args">(node, ignore)</span>
|
143
143
|
|
144
144
|
<span class="method-click-advice">click to toggle source</span>
|
145
145
|
|
@@ -155,7 +155,7 @@ href="http://www.schemacentral.com/sc/ooxml/e-a_ext-1.html">www.schemacentral.co
|
|
155
155
|
|
156
156
|
<div class="method-source-code" id="parse-source">
|
157
157
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/theme.rb, line 12</span>
|
158
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>)
|
158
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">ignore</span>)
|
159
159
|
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">new</span>
|
160
160
|
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">raw_xml</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">to_xml</span>
|
161
161
|
<span class="ruby-identifier">obj</span>
|
data/rdoc/RubyXL/Alignment.html
CHANGED
data/rdoc/RubyXL/AutoFilter.html
CHANGED