rubyXL 2.5.7 → 3.0.0
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.rb +4 -1
- data/lib/rubyXL/objects/calculation_chain.rb +4 -6
- data/lib/rubyXL/objects/chartsheet.rb +16 -13
- data/lib/rubyXL/objects/color.rb +1 -1
- data/lib/rubyXL/objects/comments.rb +46 -0
- data/lib/rubyXL/objects/content_types.rb +17 -55
- data/lib/rubyXL/objects/document_properties.rb +13 -15
- data/lib/rubyXL/objects/filters.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +24 -11
- data/lib/rubyXL/objects/reference.rb +1 -1
- data/lib/rubyXL/objects/relationships.rb +147 -31
- data/lib/rubyXL/objects/root.rb +57 -0
- data/lib/rubyXL/objects/shared_strings.rb +4 -5
- data/lib/rubyXL/objects/sheet_data.rb +8 -2
- data/lib/rubyXL/objects/storage.rb +169 -0
- data/lib/rubyXL/objects/stylesheet.rb +4 -5
- data/lib/rubyXL/objects/text.rb +3 -3
- data/lib/rubyXL/objects/theme.rb +4 -6
- data/lib/rubyXL/objects/workbook.rb +50 -22
- data/lib/rubyXL/objects/worksheet.rb +36 -12
- data/lib/rubyXL/parser.rb +23 -97
- data/lib/rubyXL/workbook.rb +29 -41
- data/lib/rubyXL/worksheet.rb +3 -0
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -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/Authors.html +105 -0
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +105 -0
- 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 +26 -42
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +13 -13
- 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 +53 -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/ChartColorsFile.html +105 -0
- data/rdoc/RubyXL/ChartFile.html +105 -0
- data/rdoc/RubyXL/ChartRelationshipsFile.html +105 -0
- data/rdoc/RubyXL/ChartStyleFile.html +105 -0
- data/rdoc/RubyXL/ChartUserShapesFile.html +105 -0
- 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 +2 -2
- 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/Comment.html +108 -0
- data/rdoc/RubyXL/CommentList.html +105 -0
- data/rdoc/RubyXL/{CoreProperties.html → CommentsFile.html} +4 -4
- 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 +87 -63
- data/rdoc/RubyXL/ControlPropertiesFile.html +105 -0
- data/rdoc/RubyXL/CorePropertiesFile.html +105 -0
- 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/CustomPropertiesFile.html +105 -0
- 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/CustomXMLFile.html +105 -0
- 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 → DocumentPropertiesFile.html} +59 -83
- data/rdoc/RubyXL/DrawingFile.html +225 -0
- data/rdoc/RubyXL/DrawingRelationshipsFile.html +105 -0
- 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/ExternalLinksFile.html +105 -0
- 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/GenericStorageObject.html +352 -0
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +105 -0
- 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 +48 -343
- data/rdoc/RubyXL/LegacyWorksheet.html +83 -80
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +105 -0
- 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 +3 -3
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +283 -20
- 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 +35 -139
- 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/PivotCacheDefinitionFile.html +105 -0
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +105 -0
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +119 -0
- 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 +2 -2
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +98 -0
- 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 +61 -77
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/SheetRelationshipsFile.html +105 -0
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +105 -0
- data/rdoc/RubyXL/SlicerFile.html +105 -0
- 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/TableFile.html +105 -0
- 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/ThumbnailFile.html +105 -0
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +105 -0
- 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/WorkbookRoot.html +449 -0
- 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 +30 -28
- data/rdoc/index.html +12 -4
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +160 -98
- data/rubyXL.gemspec +38 -7
- data/test/test_parse_write.rb +4 -4
- metadata +37 -6
- data/lib/rubyXL/generic_storage.rb +0 -42
- data/rdoc/RubyXL/GenericStorage.html +0 -346
data/rdoc/RubyXL/MRUColors.html
CHANGED
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class RubyXL::MacrosFile - rubyXL 3.0.0</title>
|
8
|
+
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "../";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="../js/jquery.js"></script>
|
17
|
+
<script src="../js/navigation.js"></script>
|
18
|
+
<script src="../js/search_index.js"></script>
|
19
|
+
<script src="../js/search.js"></script>
|
20
|
+
<script src="../js/searcher.js"></script>
|
21
|
+
<script src="../js/darkfish.js"></script>
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="class">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="class-metadata">
|
59
|
+
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
61
|
+
<h3>Parent</h3>
|
62
|
+
|
63
|
+
|
64
|
+
<p class="link"><a href="GenericStorageObject.html">RubyXL::GenericStorageObject</a>
|
65
|
+
|
66
|
+
</div>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
</div>
|
72
|
+
</nav>
|
73
|
+
|
74
|
+
<main role="main" aria-labelledby="class-RubyXL::MacrosFile">
|
75
|
+
<h1 id="class-RubyXL::MacrosFile" class="class">
|
76
|
+
class RubyXL::MacrosFile
|
77
|
+
</h1>
|
78
|
+
|
79
|
+
<section class="description">
|
80
|
+
|
81
|
+
</section>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
</section>
|
97
|
+
</main>
|
98
|
+
|
99
|
+
|
100
|
+
<footer id="validator-badges" role="contentinfo">
|
101
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
102
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
103
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
104
|
+
</footer>
|
105
|
+
|
data/rdoc/RubyXL/MergedCell.html
CHANGED
data/rdoc/RubyXL/NumFmt.html
CHANGED
data/rdoc/RubyXL/OLEObject.html
CHANGED
data/rdoc/RubyXL/OLEObjects.html
CHANGED
data/rdoc/RubyXL/OLESize.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL
|
7
|
+
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.0.0</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -278,7 +278,7 @@ of <code>write_xml</code> call.</p>
|
|
278
278
|
<p>Define a singular child node parsed by the RubyXL::BorderEdge.parse() and
|
279
279
|
accessed by the default <code>obj.alignment</code> accessor</p>
|
280
280
|
|
281
|
-
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>, :<span class="ruby-identifier">
|
281
|
+
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>, :<span class="ruby-identifier">collection</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>, :<span class="ruby-identifier">accessor</span> =<span class="ruby-operator">></span> :<span class="ruby-identifier">hyperlinks</span>)
|
282
282
|
</pre>
|
283
283
|
|
284
284
|
<p>Define an array of nodes accessed by <code>obj.hyperlinks</code> accessor,
|
@@ -440,7 +440,7 @@ it in the context of descendant class, which is what we need.</p>
|
|
440
440
|
<div class="method-source-code" id="parse-source">
|
441
441
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 111</span>
|
442
442
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">known_namespaces</span> = <span class="ruby-keyword">nil</span>)
|
443
|
-
<span class="ruby-identifier">node</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">IO</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
|
443
|
+
<span class="ruby-identifier">node</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">IO</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">InputStream</span>)
|
444
444
|
|
445
445
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Document</span>) <span class="ruby-keyword">then</span>
|
446
446
|
<span class="ruby-ivar">@namespaces</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">namespaces</span>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL
|
7
|
+
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL 3.0.0</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL
|
7
|
+
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL 3.0.0</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -73,13 +73,23 @@
|
|
73
73
|
|
74
74
|
<ul class="link-list" role="directory">
|
75
75
|
|
76
|
-
<li ><a href="#method-
|
76
|
+
<li ><a href="#method-c-get_class_by_rel_type">::get_class_by_rel_type</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-c-load_relationship_file">::load_relationship_file</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-c-save_order">::save_order</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-add_relationship">#add_relationship</a>
|
77
83
|
|
78
84
|
<li ><a href="#method-i-find_by_rid">#find_by_rid</a>
|
79
85
|
|
80
86
|
<li ><a href="#method-i-find_by_target">#find_by_target</a>
|
81
87
|
|
82
|
-
<li ><a href="#method-i-
|
88
|
+
<li ><a href="#method-i-load_related_files">#load_related_files</a>
|
89
|
+
|
90
|
+
<li ><a href="#method-i-new_relationship">#new_relationship</a>
|
91
|
+
|
92
|
+
<li ><a href="#method-i-xlsx_path">#xlsx_path</a>
|
83
93
|
|
84
94
|
</ul>
|
85
95
|
</div>
|
@@ -107,8 +117,164 @@
|
|
107
117
|
|
108
118
|
|
109
119
|
|
120
|
+
<section class="attribute-method-details" class="method-section">
|
121
|
+
<header>
|
122
|
+
<h3>Attributes</h3>
|
123
|
+
</header>
|
124
|
+
|
125
|
+
|
126
|
+
<div id="attribute-i-owner" class="method-detail">
|
127
|
+
<div class="method-heading attribute-method-heading">
|
128
|
+
<span class="method-name">owner</span><span
|
129
|
+
class="attribute-access-type">[RW]</span>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
<div class="method-description">
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div id="attribute-i-related_files" class="method-detail">
|
140
|
+
<div class="method-heading attribute-method-heading">
|
141
|
+
<span class="method-name">related_files</span><span
|
142
|
+
class="attribute-access-type">[RW]</span>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<div class="method-description">
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
|
152
|
+
</section>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
157
|
+
<header>
|
158
|
+
<h3>Public Class Methods</h3>
|
159
|
+
</header>
|
160
|
+
|
161
|
+
|
162
|
+
<div id="method-c-get_class_by_rel_type" class="method-detail ">
|
163
|
+
|
164
|
+
<div class="method-heading">
|
165
|
+
<span class="method-name">get_class_by_rel_type</span><span
|
166
|
+
class="method-args">(rel_type)</span>
|
167
|
+
|
168
|
+
<span class="method-click-advice">click to toggle source</span>
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
<div class="method-description">
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-source-code" id="get_class_by_rel_type-source">
|
181
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 53</span>
|
182
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_class_by_rel_type</span>(<span class="ruby-identifier">rel_type</span>)
|
183
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-identifier">@@rel_hash</span>)
|
184
|
+
<span class="ruby-identifier">@@rel_hash</span> = {}
|
185
|
+
<span class="ruby-constant">RubyXL</span>.<span class="ruby-identifier">constants</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
186
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">RubyXL</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">c</span>)
|
187
|
+
|
188
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Class</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">const_defined?</span>(<span class="ruby-value">:REL_TYPE</span>) <span class="ruby-keyword">then</span>
|
189
|
+
<span class="ruby-identifier">@@rel_hash</span>[<span class="ruby-identifier">klass</span><span class="ruby-operator">::</span><span class="ruby-constant">REL_TYPE</span>] = <span class="ruby-identifier">klass</span>
|
190
|
+
<span class="ruby-keyword">end</span>
|
191
|
+
}
|
192
|
+
<span class="ruby-keyword">end</span>
|
193
|
+
|
194
|
+
<span class="ruby-identifier">@@rel_hash</span>[<span class="ruby-identifier">rel_type</span>]
|
195
|
+
<span class="ruby-keyword">end</span></pre>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
<div id="method-c-load_relationship_file" class="method-detail ">
|
207
|
+
|
208
|
+
<div class="method-heading">
|
209
|
+
<span class="method-name">load_relationship_file</span><span
|
210
|
+
class="method-args">(zipdir_path, base_file_path)</span>
|
211
|
+
|
212
|
+
<span class="method-click-advice">click to toggle source</span>
|
213
|
+
|
214
|
+
</div>
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method-description">
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<div class="method-source-code" id="load_relationship_file-source">
|
225
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 101</span>
|
226
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">load_relationship_file</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">base_file_path</span>)
|
227
|
+
<span class="ruby-identifier">rel_file_path</span> = <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">base_file_path</span>), <span class="ruby-string">'_rels'</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">base_file_path</span>) <span class="ruby-operator">+</span> <span class="ruby-string">'.rels'</span>)).<span class="ruby-identifier">cleanpath</span>
|
228
|
+
|
229
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"--> DEBUG: #{' ' * @@debug}Loading .rel file: #{rel_file_path}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
|
230
|
+
|
231
|
+
<span class="ruby-identifier">parse_file</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">rel_file_path</span>)
|
232
|
+
<span class="ruby-keyword">end</span></pre>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
</div>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
</div>
|
241
|
+
|
242
|
+
|
243
|
+
<div id="method-c-save_order" class="method-detail ">
|
244
|
+
|
245
|
+
<div class="method-heading">
|
246
|
+
<span class="method-name">save_order</span><span
|
247
|
+
class="method-args">()</span>
|
248
|
+
|
249
|
+
<span class="method-click-advice">click to toggle source</span>
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
|
254
|
+
<div class="method-description">
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<div class="method-source-code" id="save_order-source">
|
262
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 41</span>
|
263
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">save_order</span>
|
264
|
+
<span class="ruby-value">0</span>
|
265
|
+
<span class="ruby-keyword">end</span></pre>
|
266
|
+
</div>
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
</div>
|
110
274
|
|
111
275
|
|
276
|
+
</section>
|
277
|
+
|
112
278
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
113
279
|
<header>
|
114
280
|
<h3>Public Instance Methods</h3>
|
@@ -134,7 +300,7 @@
|
|
134
300
|
|
135
301
|
|
136
302
|
<div class="method-source-code" id="find_by_rid-source">
|
137
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
303
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 45</span>
|
138
304
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_by_rid</span>(<span class="ruby-identifier">r_id</span>)
|
139
305
|
<span class="ruby-identifier">relationships</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">r_id</span> }
|
140
306
|
<span class="ruby-keyword">end</span></pre>
|
@@ -167,7 +333,7 @@
|
|
167
333
|
|
168
334
|
|
169
335
|
<div class="method-source-code" id="find_by_target-source">
|
170
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
336
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 49</span>
|
171
337
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_by_target</span>(<span class="ruby-identifier">target</span>)
|
172
338
|
<span class="ruby-identifier">relationships</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">target</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">target</span> }
|
173
339
|
<span class="ruby-keyword">end</span></pre>
|
@@ -178,6 +344,102 @@
|
|
178
344
|
|
179
345
|
|
180
346
|
|
347
|
+
</div>
|
348
|
+
|
349
|
+
|
350
|
+
<div id="method-i-load_related_files" class="method-detail ">
|
351
|
+
|
352
|
+
<div class="method-heading">
|
353
|
+
<span class="method-name">load_related_files</span><span
|
354
|
+
class="method-args">(zipdir_path, base_file_name = '')</span>
|
355
|
+
|
356
|
+
<span class="method-click-advice">click to toggle source</span>
|
357
|
+
|
358
|
+
</div>
|
359
|
+
|
360
|
+
|
361
|
+
<div class="method-description">
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
<div class="method-source-code" id="load_related_files-source">
|
369
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 68</span>
|
370
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">load_related_files</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">base_file_name</span> = <span class="ruby-string">''</span>)
|
371
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">related_files</span> = {}
|
372
|
+
|
373
|
+
<span class="ruby-identifier">@@debug</span> <span class="ruby-operator">+=</span><span class="ruby-value">2</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
|
374
|
+
|
375
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">relationships</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">rel</span><span class="ruby-operator">|</span>
|
376
|
+
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">rel</span>.<span class="ruby-identifier">target_mode</span> <span class="ruby-operator">==</span> <span class="ruby-string">'External'</span>
|
377
|
+
|
378
|
+
<span class="ruby-identifier">file_path</span> = <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">rel</span>.<span class="ruby-identifier">target</span>)
|
379
|
+
|
380
|
+
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">file_path</span>.<span class="ruby-identifier">absolute?</span> <span class="ruby-keyword">then</span>
|
381
|
+
<span class="ruby-identifier">file_path</span> = (<span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">base_file_name</span>)) <span class="ruby-operator">+</span> <span class="ruby-identifier">file_path</span>).<span class="ruby-identifier">cleanpath</span>
|
382
|
+
<span class="ruby-keyword">end</span>
|
383
|
+
|
384
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">OOXMLRelationshipsFile</span>.<span class="ruby-identifier">get_class_by_rel_type</span>(<span class="ruby-identifier">rel</span>.<span class="ruby-identifier">type</span>)
|
385
|
+
|
386
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
387
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"*** WARNING: storage class not found for #{rel.target} (#{rel.type})"</span>
|
388
|
+
<span class="ruby-identifier">klass</span> = <span class="ruby-constant">GenericStorageObject</span>
|
389
|
+
<span class="ruby-keyword">end</span>
|
390
|
+
|
391
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"--> DEBUG:#{' ' * @@debug}Loading #{klass} (#{rel.id}): #{file_path}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
|
392
|
+
|
393
|
+
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">parse_file</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">file_path</span>)
|
394
|
+
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">load_relationships</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">file_path</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:load_relationships</span>)
|
395
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">related_files</span>[<span class="ruby-identifier">rel</span>.<span class="ruby-identifier">id</span>] = <span class="ruby-identifier">obj</span>
|
396
|
+
}
|
397
|
+
|
398
|
+
<span class="ruby-identifier">@@debug</span> <span class="ruby-operator">-=</span><span class="ruby-value">2</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">@@debug</span>
|
399
|
+
|
400
|
+
<span class="ruby-identifier">related_files</span>
|
401
|
+
<span class="ruby-keyword">end</span></pre>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</div>
|
410
|
+
|
411
|
+
|
412
|
+
<div id="method-i-xlsx_path" class="method-detail ">
|
413
|
+
|
414
|
+
<div class="method-heading">
|
415
|
+
<span class="method-name">xlsx_path</span><span
|
416
|
+
class="method-args">()</span>
|
417
|
+
|
418
|
+
<span class="method-click-advice">click to toggle source</span>
|
419
|
+
|
420
|
+
</div>
|
421
|
+
|
422
|
+
|
423
|
+
<div class="method-description">
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
<div class="method-source-code" id="xlsx_path-source">
|
431
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 109</span>
|
432
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">xlsx_path</span>
|
433
|
+
<span class="ruby-identifier">file_path</span> = <span class="ruby-identifier">owner</span>.<span class="ruby-identifier">xlsx_path</span>
|
434
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">file_path</span>), <span class="ruby-string">'_rels'</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">file_path</span>) <span class="ruby-operator">+</span> <span class="ruby-string">'.rels'</span>)
|
435
|
+
<span class="ruby-keyword">end</span></pre>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
181
443
|
</div>
|
182
444
|
|
183
445
|
|
@@ -189,11 +451,11 @@
|
|
189
451
|
</header>
|
190
452
|
|
191
453
|
|
192
|
-
<div id="method-i-
|
454
|
+
<div id="method-i-add_relationship" class="method-detail ">
|
193
455
|
|
194
456
|
<div class="method-heading">
|
195
|
-
<span class="method-name">
|
196
|
-
class="method-args">(
|
457
|
+
<span class="method-name">add_relationship</span><span
|
458
|
+
class="method-args">(obj)</span>
|
197
459
|
|
198
460
|
<span class="method-click-advice">click to toggle source</span>
|
199
461
|
|
@@ -207,12 +469,13 @@
|
|
207
469
|
|
208
470
|
|
209
471
|
|
210
|
-
<div class="method-source-code" id="
|
211
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
212
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
213
|
-
<span class="ruby-
|
214
|
-
|
215
|
-
|
472
|
+
<div class="method-source-code" id="add_relationship-source">
|
473
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 33</span>
|
474
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_relationship</span>(<span class="ruby-identifier">obj</span>)
|
475
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">nil?</span>
|
476
|
+
<span class="ruby-identifier">relationships</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Relationship</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> =<span class="ruby-operator">></span> <span class="ruby-node">"rId#{relationships.size + 1}"</span>,
|
477
|
+
<span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">class</span><span class="ruby-operator">::</span><span class="ruby-constant">REL_TYPE</span>,
|
478
|
+
<span class="ruby-value">:target</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">xlsx_path</span>)
|
216
479
|
<span class="ruby-keyword">end</span></pre>
|
217
480
|
</div>
|
218
481
|
|
@@ -224,10 +487,10 @@
|
|
224
487
|
</div>
|
225
488
|
|
226
489
|
|
227
|
-
<div id="method-i-
|
490
|
+
<div id="method-i-new_relationship" class="method-detail ">
|
228
491
|
|
229
492
|
<div class="method-heading">
|
230
|
-
<span class="method-name">
|
493
|
+
<span class="method-name">new_relationship</span><span
|
231
494
|
class="method-args">(target, type)</span>
|
232
495
|
|
233
496
|
<span class="method-click-advice">click to toggle source</span>
|
@@ -242,11 +505,11 @@
|
|
242
505
|
|
243
506
|
|
244
507
|
|
245
|
-
<div class="method-source-code" id="
|
246
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
247
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
508
|
+
<div class="method-source-code" id="new_relationship-source">
|
509
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 26</span>
|
510
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">new_relationship</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">type</span>)
|
248
511
|
<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Relationship</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> =<span class="ruby-operator">></span> <span class="ruby-node">"rId#{relationships.size + 1}"</span>,
|
249
|
-
<span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-
|
512
|
+
<span class="ruby-value">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</span>,
|
250
513
|
<span class="ruby-value">:target</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">target</span>)
|
251
514
|
<span class="ruby-keyword">end</span></pre>
|
252
515
|
</div>
|