rubyXL 3.4.12 → 3.4.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -1
- data/Gemfile +8 -8
- data/Gemfile.lock +82 -50
- data/README.rdoc +26 -9
- data/Rakefile +26 -27
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +2 -4
- data/lib/rubyXL/convenience_methods/cell.rb +35 -31
- data/lib/rubyXL/convenience_methods/color.rb +6 -8
- data/lib/rubyXL/convenience_methods/workbook.rb +9 -4
- data/lib/rubyXL/convenience_methods/worksheet.rb +77 -1
- data/lib/rubyXL/objects/border.rb +0 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +1 -3
- data/lib/rubyXL/objects/chartsheet.rb +6 -10
- data/lib/rubyXL/objects/color.rb +1 -3
- data/lib/rubyXL/objects/column_range.rb +0 -3
- data/lib/rubyXL/objects/comments.rb +1 -4
- data/lib/rubyXL/objects/connection.rb +11 -11
- data/lib/rubyXL/objects/container_nodes.rb +1 -5
- data/lib/rubyXL/objects/content_types.rb +3 -6
- data/lib/rubyXL/objects/data_validation.rb +2 -2
- data/lib/rubyXL/objects/document_properties.rb +9 -13
- data/lib/rubyXL/objects/extensions.rb +0 -2
- data/lib/rubyXL/objects/external_links.rb +29 -7
- data/lib/rubyXL/objects/fill.rb +2 -5
- data/lib/rubyXL/objects/filters.rb +5 -7
- data/lib/rubyXL/objects/font.rb +2 -4
- data/lib/rubyXL/objects/formula.rb +3 -5
- data/lib/rubyXL/objects/ooxml_object.rb +18 -18
- data/lib/rubyXL/objects/query_table.rb +3 -3
- data/lib/rubyXL/objects/reference.rb +6 -8
- data/lib/rubyXL/objects/relationships.rb +6 -11
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +3 -6
- data/lib/rubyXL/objects/sheet_common.rb +1 -3
- data/lib/rubyXL/objects/sheet_data.rb +6 -8
- data/lib/rubyXL/objects/simple_types.rb +3 -1
- data/lib/rubyXL/objects/storage.rb +51 -50
- data/lib/rubyXL/objects/stylesheet.rb +8 -15
- data/lib/rubyXL/objects/text.rb +5 -7
- data/lib/rubyXL/objects/theme.rb +5 -8
- data/lib/rubyXL/objects/workbook.rb +35 -31
- data/lib/rubyXL/objects/worksheet.rb +33 -29
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +83 -84
- data/lib/rubyXL.rb +0 -1
- data/rdoc/README_rdoc.html +42 -28
- data/rdoc/RubyXL/AExtension.html +9 -49
- data/rdoc/RubyXL/AExtensionStorageArea.html +5 -12
- data/rdoc/RubyXL/ActiveX.html +12 -41
- data/rdoc/RubyXL/ActiveXBinary.html +5 -17
- data/rdoc/RubyXL/AdjustHandleList.html +5 -12
- data/rdoc/RubyXL/Alignment.html +5 -12
- data/rdoc/RubyXL/AlternateContent.html +5 -12
- data/rdoc/RubyXL/Authors.html +5 -12
- data/rdoc/RubyXL/AutoFilter.html +5 -12
- data/rdoc/RubyXL/AutoFilterColumn.html +5 -12
- data/rdoc/RubyXL/BinaryImageFile.html +5 -20
- data/rdoc/RubyXL/BodyProperties.html +5 -12
- data/rdoc/RubyXL/BooleanNode.html +5 -12
- data/rdoc/RubyXL/BooleanValue.html +5 -12
- data/rdoc/RubyXL/Border.html +12 -72
- data/rdoc/RubyXL/BorderEdge.html +10 -44
- data/rdoc/RubyXL/Borders.html +9 -30
- data/rdoc/RubyXL/Break.html +5 -12
- data/rdoc/RubyXL/BreakList.html +5 -12
- data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -12
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -12
- data/rdoc/RubyXL/CT_Backdrop.html +5 -12
- data/rdoc/RubyXL/CT_Bevel.html +5 -12
- data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -12
- data/rdoc/RubyXL/CT_BlendEffect.html +5 -12
- data/rdoc/RubyXL/CT_Blip.html +5 -12
- data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_BlurEffect.html +5 -12
- data/rdoc/RubyXL/CT_Camera.html +5 -12
- data/rdoc/RubyXL/CT_Color.html +5 -12
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -12
- data/rdoc/RubyXL/CT_ColorMapping.html +5 -12
- data/rdoc/RubyXL/CT_ColorScheme.html +5 -12
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -12
- data/rdoc/RubyXL/CT_ConnectionSite.html +5 -12
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -12
- data/rdoc/RubyXL/CT_DashStop.html +5 -12
- data/rdoc/RubyXL/CT_DashStopList.html +5 -12
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -12
- data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -12
- data/rdoc/RubyXL/CT_EffectContainer.html +5 -12
- data/rdoc/RubyXL/CT_EffectList.html +5 -12
- data/rdoc/RubyXL/CT_EffectReference.html +5 -12
- data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -12
- data/rdoc/RubyXL/CT_EffectStyleList.html +5 -12
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -12
- data/rdoc/RubyXL/CT_FillEffect.html +5 -12
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -12
- data/rdoc/RubyXL/CT_FillStyleList.html +5 -12
- data/rdoc/RubyXL/CT_FlatText.html +5 -12
- data/rdoc/RubyXL/CT_FontCollection.html +5 -12
- data/rdoc/RubyXL/CT_FontReference.html +5 -12
- data/rdoc/RubyXL/CT_GeomGuideList.html +5 -12
- data/rdoc/RubyXL/CT_GlowEffect.html +5 -12
- data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_GradientStop.html +5 -12
- data/rdoc/RubyXL/CT_GradientStopList.html +5 -12
- data/rdoc/RubyXL/CT_HSLEffect.html +5 -12
- data/rdoc/RubyXL/CT_HslColor.html +5 -12
- data/rdoc/RubyXL/CT_Hyperlink.html +5 -12
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_LightRig.html +5 -12
- data/rdoc/RubyXL/CT_LineEndProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineStyleList.html +5 -12
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -12
- data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -12
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -12
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_Path2D.html +5 -12
- data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DList.html +5 -12
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DTo.html +5 -12
- data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -12
- data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_Point3D.html +5 -12
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -12
- data/rdoc/RubyXL/CT_PresetColor.html +5 -12
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -12
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_PresetTextShape.html +5 -12
- data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -12
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -12
- data/rdoc/RubyXL/CT_RelativeRect.html +5 -12
- data/rdoc/RubyXL/CT_SRgbColor.html +5 -12
- data/rdoc/RubyXL/CT_ScRgbColor.html +5 -12
- data/rdoc/RubyXL/CT_Scene3D.html +5 -12
- data/rdoc/RubyXL/CT_SchemeColor.html +5 -12
- data/rdoc/RubyXL/CT_Shape3D.html +5 -12
- data/rdoc/RubyXL/CT_ShapeStyle.html +5 -12
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -12
- data/rdoc/RubyXL/CT_SphereCoords.html +5 -12
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -12
- data/rdoc/RubyXL/CT_StyleMatrix.html +5 -12
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -12
- data/rdoc/RubyXL/CT_SupplementalFont.html +5 -12
- data/rdoc/RubyXL/CT_SystemColor.html +5 -12
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextCharBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -12
- data/rdoc/RubyXL/CT_TextFont.html +5 -12
- data/rdoc/RubyXL/CT_TextListStyle.html +5 -12
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -12
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -12
- data/rdoc/RubyXL/CT_TextSpacing.html +5 -12
- data/rdoc/RubyXL/CT_TextTabStop.html +5 -12
- data/rdoc/RubyXL/CT_TextTabStopList.html +5 -12
- data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -12
- data/rdoc/RubyXL/CT_TintEffect.html +5 -12
- data/rdoc/RubyXL/CT_Transform2D.html +5 -12
- data/rdoc/RubyXL/CT_TransformEffect.html +5 -12
- data/rdoc/RubyXL/CT_Vector3D.html +5 -12
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -12
- data/rdoc/RubyXL/CalculationChain.html +8 -37
- data/rdoc/RubyXL/CalculationChainCell.html +5 -12
- data/rdoc/RubyXL/CalculationProperties.html +5 -12
- data/rdoc/RubyXL/Cell.html +26 -228
- data/rdoc/RubyXL/CellConvenienceMethods.html +108 -503
- data/rdoc/RubyXL/CellExt.html +5 -12
- data/rdoc/RubyXL/CellSmartTag.html +5 -12
- data/rdoc/RubyXL/CellSmartTagProperty.html +5 -12
- data/rdoc/RubyXL/CellSmartTags.html +5 -12
- data/rdoc/RubyXL/CellStyle.html +5 -12
- data/rdoc/RubyXL/CellStyleXFs.html +9 -30
- data/rdoc/RubyXL/CellStyles.html +9 -30
- data/rdoc/RubyXL/CellValue.html +9 -30
- data/rdoc/RubyXL/CellWatch.html +5 -12
- data/rdoc/RubyXL/CellWatches.html +5 -12
- data/rdoc/RubyXL/CellXFs.html +10 -33
- data/rdoc/RubyXL/ChartColorsFile.html +5 -20
- data/rdoc/RubyXL/ChartFile.html +11 -43
- data/rdoc/RubyXL/ChartStyleFile.html +5 -20
- data/rdoc/RubyXL/ChartUserShapesFile.html +5 -20
- data/rdoc/RubyXL/Chartsheet.html +11 -60
- data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -12
- data/rdoc/RubyXL/ChartsheetProperties.html +5 -12
- data/rdoc/RubyXL/ChartsheetProtection.html +5 -12
- data/rdoc/RubyXL/ChartsheetView.html +5 -12
- data/rdoc/RubyXL/ChartsheetViews.html +5 -12
- data/rdoc/RubyXL/Color.html +10 -36
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +10 -58
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +18 -78
- data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -9
- data/rdoc/RubyXL/ColorConvenienceMethods.html +7 -27
- data/rdoc/RubyXL/ColorFilter.html +5 -12
- data/rdoc/RubyXL/ColorScale.html +5 -12
- data/rdoc/RubyXL/ColorSet.html +5 -12
- data/rdoc/RubyXL/Colors.html +5 -12
- data/rdoc/RubyXL/ColumnRange.html +11 -63
- data/rdoc/RubyXL/ColumnRanges.html +12 -72
- data/rdoc/RubyXL/Comment.html +5 -12
- data/rdoc/RubyXL/CommentList.html +5 -12
- data/rdoc/RubyXL/CommentsFile.html +9 -43
- data/rdoc/RubyXL/ConditionalFormatValue.html +5 -12
- data/rdoc/RubyXL/ConditionalFormatting.html +5 -12
- data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -12
- data/rdoc/RubyXL/Connection.html +5 -12
- data/rdoc/RubyXL/ConnectionTable.html +5 -12
- data/rdoc/RubyXL/ConnectionTables.html +5 -12
- data/rdoc/RubyXL/ConnectionTextField.html +5 -12
- data/rdoc/RubyXL/ConnectionTextFields.html +5 -12
- data/rdoc/RubyXL/Connections.html +8 -37
- data/rdoc/RubyXL/ContentTypeDefault.html +5 -12
- data/rdoc/RubyXL/ContentTypeOverride.html +5 -12
- data/rdoc/RubyXL/ContentTypes.html +12 -54
- data/rdoc/RubyXL/ControlPropertiesFile.html +7 -17
- data/rdoc/RubyXL/CorePropertiesFile.html +17 -155
- data/rdoc/RubyXL/CustomColor.html +5 -12
- data/rdoc/RubyXL/CustomColorList.html +5 -12
- data/rdoc/RubyXL/CustomFilter.html +5 -12
- data/rdoc/RubyXL/CustomFilters.html +5 -12
- data/rdoc/RubyXL/CustomGeometry.html +5 -12
- data/rdoc/RubyXL/CustomProperties.html +5 -12
- data/rdoc/RubyXL/CustomPropertiesFile.html +5 -20
- data/rdoc/RubyXL/CustomProperty.html +5 -12
- data/rdoc/RubyXL/CustomPropertyFile.html +5 -20
- data/rdoc/RubyXL/CustomSheetView.html +5 -12
- data/rdoc/RubyXL/CustomSheetViews.html +5 -12
- data/rdoc/RubyXL/CustomWorkbookView.html +5 -12
- data/rdoc/RubyXL/CustomWorkbookViews.html +5 -12
- data/rdoc/RubyXL/CustomXMLFile.html +5 -17
- data/rdoc/RubyXL/DXF.html +5 -12
- data/rdoc/RubyXL/DXFs.html +5 -12
- data/rdoc/RubyXL/DataBar.html +5 -12
- data/rdoc/RubyXL/DataConsolidate.html +5 -12
- data/rdoc/RubyXL/DataConsolidationReference.html +5 -12
- data/rdoc/RubyXL/DataConsolidationReferences.html +5 -12
- data/rdoc/RubyXL/DataType.html +3 -32
- data/rdoc/RubyXL/DataValidation.html +5 -12
- data/rdoc/RubyXL/DataValidations.html +5 -12
- data/rdoc/RubyXL/DateGroupItem.html +5 -12
- data/rdoc/RubyXL/DefinedName.html +5 -12
- data/rdoc/RubyXL/DefinedNameExt.html +5 -12
- data/rdoc/RubyXL/DefinedNames.html +5 -12
- data/rdoc/RubyXL/DefinedNamesExt.html +5 -12
- data/rdoc/RubyXL/DocumentPropertiesFile.html +10 -57
- data/rdoc/RubyXL/DrawingFile.html +11 -43
- data/rdoc/RubyXL/DynamicFilter.html +5 -12
- data/rdoc/RubyXL/EmbeddedControl.html +5 -12
- data/rdoc/RubyXL/EmbeddedControls.html +5 -12
- data/rdoc/RubyXL/Extension.html +5 -12
- data/rdoc/RubyXL/ExtensionStorageArea.html +5 -12
- data/rdoc/RubyXL/Extents.html +5 -12
- data/rdoc/RubyXL/ExternalBook.html +5 -12
- data/rdoc/RubyXL/ExternalLinksFile.html +11 -43
- data/rdoc/RubyXL/ExternalReference.html +5 -12
- data/rdoc/RubyXL/ExternalReferences.html +5 -12
- data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -12
- data/rdoc/RubyXL/FieldItem.html +5 -12
- data/rdoc/RubyXL/FileRecoveryProperties.html +5 -12
- data/rdoc/RubyXL/FileSharing.html +5 -12
- data/rdoc/RubyXL/FileVersion.html +5 -12
- data/rdoc/RubyXL/Fill.html +9 -30
- data/rdoc/RubyXL/Fills.html +9 -30
- data/rdoc/RubyXL/FilterContainer.html +5 -12
- data/rdoc/RubyXL/FloatNode.html +5 -12
- data/rdoc/RubyXL/FloatValue.html +5 -12
- data/rdoc/RubyXL/Font.html +11 -37
- data/rdoc/RubyXL/FontConvenienceMethods.html +7 -196
- data/rdoc/RubyXL/FontScheme.html +5 -12
- data/rdoc/RubyXL/Fonts.html +9 -30
- data/rdoc/RubyXL/Formula.html +5 -12
- data/rdoc/RubyXL/FunctionGroup.html +5 -12
- data/rdoc/RubyXL/FunctionGroups.html +5 -12
- data/rdoc/RubyXL/GenericStorageObject.html +12 -76
- data/rdoc/RubyXL/GradientFill.html +5 -12
- data/rdoc/RubyXL/HeaderFooterSettings.html +5 -12
- data/rdoc/RubyXL/Hyperlink.html +5 -12
- data/rdoc/RubyXL/HyperlinkRelFile.html +5 -17
- data/rdoc/RubyXL/Hyperlinks.html +5 -12
- data/rdoc/RubyXL/IconFilter.html +5 -12
- data/rdoc/RubyXL/IconSet.html +5 -12
- data/rdoc/RubyXL/IgnoredError.html +5 -12
- data/rdoc/RubyXL/IgnoredErrors.html +5 -12
- data/rdoc/RubyXL/IndexedColors.html +5 -12
- data/rdoc/RubyXL/InputCells.html +5 -12
- data/rdoc/RubyXL/IntegerNode.html +5 -12
- data/rdoc/RubyXL/IntegerValue.html +5 -12
- data/rdoc/RubyXL/LegacyCell.html +7 -27
- data/rdoc/RubyXL/LegacyWorksheet.html +11 -88
- data/rdoc/RubyXL/MRUColors.html +5 -12
- data/rdoc/RubyXL/MacrosFile.html +5 -20
- data/rdoc/RubyXL/MergedCell.html +5 -12
- data/rdoc/RubyXL/MergedCells.html +5 -12
- data/rdoc/RubyXL/NumFmt.html +5 -12
- data/rdoc/RubyXL/NumberFormat.html +10 -31
- data/rdoc/RubyXL/NumberFormats.html +9 -35
- data/rdoc/RubyXL/OLEObject.html +5 -12
- data/rdoc/RubyXL/OLEObjectFile.html +5 -20
- data/rdoc/RubyXL/OLEObjects.html +5 -12
- data/rdoc/RubyXL/OLESize.html +5 -12
- data/rdoc/RubyXL/OOXMLContainerObject.html +19 -114
- data/rdoc/RubyXL/OOXMLIgnored.html +11 -46
- data/rdoc/RubyXL/OOXMLObject.html +8 -18
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +42 -92
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +23 -144
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +24 -181
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +15 -102
- data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -12
- data/rdoc/RubyXL/Offset.html +5 -12
- data/rdoc/RubyXL/OlapProperties.html +5 -12
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +5 -12
- data/rdoc/RubyXL/PageMargins.html +5 -12
- data/rdoc/RubyXL/PageSetup.html +5 -12
- data/rdoc/RubyXL/PageSetupProperties.html +5 -12
- data/rdoc/RubyXL/Pane.html +5 -12
- data/rdoc/RubyXL/Parser.html +11 -45
- data/rdoc/RubyXL/PatternFill.html +5 -12
- data/rdoc/RubyXL/PhoneticProperties.html +5 -12
- data/rdoc/RubyXL/PhoneticRun.html +5 -12
- data/rdoc/RubyXL/PivotArea.html +5 -12
- data/rdoc/RubyXL/PivotCache.html +5 -12
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +7 -25
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -20
- data/rdoc/RubyXL/PivotCaches.html +5 -12
- data/rdoc/RubyXL/PivotReference.html +5 -12
- data/rdoc/RubyXL/PivotReferences.html +5 -12
- data/rdoc/RubyXL/PivotTableFile.html +7 -25
- data/rdoc/RubyXL/PivotTableSelection.html +5 -12
- data/rdoc/RubyXL/PresetGeometry.html +5 -12
- data/rdoc/RubyXL/PrintOptions.html +5 -12
- data/rdoc/RubyXL/PrinterSettingsFile.html +5 -20
- data/rdoc/RubyXL/ProtectedRange.html +5 -12
- data/rdoc/RubyXL/ProtectedRanges.html +5 -12
- data/rdoc/RubyXL/Protection.html +5 -12
- data/rdoc/RubyXL/QueryParameter.html +5 -12
- data/rdoc/RubyXL/QueryParameters.html +5 -12
- data/rdoc/RubyXL/QueryTable.html +10 -42
- data/rdoc/RubyXL/QueryTableDeletedField.html +5 -12
- data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -12
- data/rdoc/RubyXL/QueryTableField.html +5 -12
- data/rdoc/RubyXL/QueryTableFields.html +5 -12
- data/rdoc/RubyXL/QueryTableRefresh.html +5 -12
- data/rdoc/RubyXL/RID.html +5 -12
- data/rdoc/RubyXL/RawOOXML.html +11 -51
- data/rdoc/RubyXL/Reference.html +42 -204
- data/rdoc/RubyXL/Relationship.html +5 -12
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +7 -27
- data/rdoc/RubyXL/RelationshipSupport.html +15 -112
- data/rdoc/RubyXL/RevisionPointer.html +5 -12
- data/rdoc/RubyXL/RichText.html +11 -31
- data/rdoc/RubyXL/RichTextRun.html +9 -30
- data/rdoc/RubyXL/Row.html +8 -143
- data/rdoc/RubyXL/RowExt.html +5 -12
- data/rdoc/RubyXL/RunProperties.html +5 -12
- data/rdoc/RubyXL/Scenario.html +5 -12
- data/rdoc/RubyXL/Scenarios.html +5 -12
- data/rdoc/RubyXL/Selection.html +9 -30
- data/rdoc/RubyXL/ShapeGuide.html +5 -12
- data/rdoc/RubyXL/ShapeTextRectangle.html +5 -12
- data/rdoc/RubyXL/SharedStringsTable.html +16 -126
- data/rdoc/RubyXL/Sheet.html +5 -12
- data/rdoc/RubyXL/SheetCalculationProperties.html +5 -12
- data/rdoc/RubyXL/SheetData.html +8 -42
- data/rdoc/RubyXL/SheetDataExt.html +5 -12
- data/rdoc/RubyXL/SheetDataSet.html +5 -12
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +5 -12
- data/rdoc/RubyXL/SheetNames.html +5 -12
- data/rdoc/RubyXL/Sheets.html +5 -12
- data/rdoc/RubyXL/SlicerCacheFile.html +5 -20
- data/rdoc/RubyXL/SlicerFile.html +5 -20
- data/rdoc/RubyXL/SmartTagProperties.html +5 -12
- data/rdoc/RubyXL/SmartTagType.html +5 -12
- data/rdoc/RubyXL/SmartTagTypes.html +5 -12
- data/rdoc/RubyXL/SmartTags.html +5 -12
- data/rdoc/RubyXL/SortCondition.html +5 -12
- data/rdoc/RubyXL/SortState.html +5 -12
- data/rdoc/RubyXL/Sqref.html +11 -46
- data/rdoc/RubyXL/Stop.html +5 -12
- data/rdoc/RubyXL/StringNode.html +5 -12
- data/rdoc/RubyXL/StringNodeW3C.html +11 -46
- data/rdoc/RubyXL/StringValue.html +5 -12
- data/rdoc/RubyXL/Stylesheet.html +14 -97
- data/rdoc/RubyXL/TableFile.html +5 -20
- data/rdoc/RubyXL/TableParts.html +5 -12
- data/rdoc/RubyXL/TableStyle.html +5 -12
- data/rdoc/RubyXL/TableStyles.html +5 -12
- data/rdoc/RubyXL/Text.html +12 -54
- data/rdoc/RubyXL/TextImportSettings.html +5 -12
- data/rdoc/RubyXL/Theme.html +12 -68
- data/rdoc/RubyXL/ThemeElements.html +5 -12
- data/rdoc/RubyXL/ThumbnailFile.html +5 -20
- data/rdoc/RubyXL/Top10.html +5 -12
- data/rdoc/RubyXL/VMLDrawingFile.html +8 -26
- data/rdoc/RubyXL/Variant.html +5 -12
- data/rdoc/RubyXL/Vector.html +9 -30
- data/rdoc/RubyXL/VectorValue.html +5 -12
- data/rdoc/RubyXL/VisualProperties.html +5 -12
- data/rdoc/RubyXL/WebPublishObject.html +5 -12
- data/rdoc/RubyXL/WebPublishObjects.html +5 -12
- data/rdoc/RubyXL/WebPublishingItem.html +5 -12
- data/rdoc/RubyXL/WebPublishingItems.html +5 -12
- data/rdoc/RubyXL/WebPublishingProperties.html +5 -12
- data/rdoc/RubyXL/WebQueryProperties.html +5 -12
- data/rdoc/RubyXL/Workbook.html +45 -462
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +68 -239
- data/rdoc/RubyXL/WorkbookProperties.html +5 -12
- data/rdoc/RubyXL/WorkbookProtection.html +5 -12
- data/rdoc/RubyXL/WorkbookRoot.html +16 -104
- data/rdoc/RubyXL/WorkbookView.html +5 -12
- data/rdoc/RubyXL/WorkbookViews.html +5 -12
- data/rdoc/RubyXL/Worksheet.html +40 -135
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +170 -989
- data/rdoc/RubyXL/WorksheetDimensions.html +5 -12
- data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -12
- data/rdoc/RubyXL/WorksheetProperties.html +5 -12
- data/rdoc/RubyXL/WorksheetProtection.html +5 -12
- data/rdoc/RubyXL/WorksheetView.html +5 -12
- data/rdoc/RubyXL/WorksheetViews.html +5 -12
- data/rdoc/RubyXL/XF.html +5 -12
- data/rdoc/RubyXL.html +8 -319
- data/rdoc/created.rid +44 -44
- data/rdoc/css/rdoc.css +21 -1
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/index.html +9 -388
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +57 -5
- data/rubyXL.gemspec +24 -30
- data/spec/lib/cell_spec.rb +38 -6
- data/spec/lib/color_spec.rb +1 -1
- data/spec/lib/parser_spec.rb +24 -27
- data/spec/lib/reference_spec.rb +9 -3
- data/spec/lib/rgb_color_spec.rb +27 -0
- data/spec/lib/stylesheet_spec.rb +8 -11
- data/spec/lib/text_spec.rb +1 -5
- data/spec/lib/workbook_spec.rb +14 -4
- data/spec/lib/worksheet_spec.rb +790 -447
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +3 -3
- metadata +11 -8
- data/test/output/test.xlsx +0 -0
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL 3.4.
|
7
|
+
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL 3.4.25</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -21,7 +21,6 @@
|
|
21
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
24
|
<body id="top" role="document" class="class">
|
26
25
|
<nav role="navigation">
|
27
26
|
<div id="project-navigation">
|
@@ -58,42 +57,31 @@
|
|
58
57
|
|
59
58
|
<div id="class-metadata">
|
60
59
|
|
61
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
62
|
<h3>Parent</h3>
|
63
63
|
|
64
|
-
|
65
64
|
<p class="link"><a href="OOXMLTopLevelObject.html">RubyXL::OOXMLTopLevelObject</a>
|
66
|
-
|
67
65
|
</div>
|
68
66
|
|
69
67
|
|
70
68
|
|
71
|
-
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
72
71
|
<div id="method-list-section" class="nav-section">
|
73
72
|
<h3>Methods</h3>
|
74
73
|
|
75
74
|
<ul class="link-list" role="directory">
|
76
|
-
|
77
75
|
<li ><a href="#method-c-get_class_by_rel_type">::get_class_by_rel_type</a>
|
78
|
-
|
79
76
|
<li ><a href="#method-c-load_relationship_file">::load_relationship_file</a>
|
80
|
-
|
81
77
|
<li ><a href="#method-c-rel_file_path">::rel_file_path</a>
|
82
|
-
|
83
78
|
<li ><a href="#method-i-add_relationship">#add_relationship</a>
|
84
|
-
|
85
79
|
<li class="calls-super" ><a href="#method-i-before_write_xml">#before_write_xml</a>
|
86
|
-
|
87
80
|
<li ><a href="#method-i-find_by_rid">#find_by_rid</a>
|
88
|
-
|
89
81
|
<li ><a href="#method-i-find_by_target">#find_by_target</a>
|
90
|
-
|
91
82
|
<li ><a href="#method-i-load_related_files">#load_related_files</a>
|
92
|
-
|
93
83
|
<li ><a href="#method-i-new_relationship">#new_relationship</a>
|
94
|
-
|
95
84
|
<li ><a href="#method-i-xlsx_path">#xlsx_path</a>
|
96
|
-
|
97
85
|
</ul>
|
98
86
|
</div>
|
99
87
|
|
@@ -109,40 +97,26 @@
|
|
109
97
|
|
110
98
|
</section>
|
111
99
|
|
112
|
-
|
113
100
|
<section id="5Buntitled-5D" class="documentation-section">
|
114
|
-
|
115
101
|
|
116
|
-
|
117
102
|
|
118
|
-
|
119
103
|
<section class="constants-list">
|
120
104
|
<header>
|
121
105
|
<h3>Constants</h3>
|
122
106
|
</header>
|
123
107
|
<dl>
|
124
|
-
|
125
108
|
<dt id="CONTENT_TYPE">CONTENT_TYPE
|
126
|
-
|
127
109
|
<dd>
|
128
|
-
|
129
|
-
|
130
110
|
<dt id="SAVE_ORDER">SAVE_ORDER
|
131
|
-
|
132
111
|
<dd>
|
133
|
-
|
134
|
-
|
135
112
|
</dl>
|
136
113
|
</section>
|
137
|
-
|
138
114
|
|
139
|
-
|
140
115
|
<section class="attribute-method-details" class="method-section">
|
141
116
|
<header>
|
142
117
|
<h3>Attributes</h3>
|
143
118
|
</header>
|
144
119
|
|
145
|
-
|
146
120
|
<div id="attribute-i-owner" class="method-detail">
|
147
121
|
<div class="method-heading attribute-method-heading">
|
148
122
|
<span class="method-name">owner</span><span
|
@@ -151,11 +125,8 @@
|
|
151
125
|
|
152
126
|
<div class="method-description">
|
153
127
|
|
154
|
-
|
155
|
-
|
156
128
|
</div>
|
157
129
|
</div>
|
158
|
-
|
159
130
|
<div id="attribute-i-related_files" class="method-detail">
|
160
131
|
<div class="method-heading attribute-method-heading">
|
161
132
|
<span class="method-name">related_files</span><span
|
@@ -164,41 +135,28 @@
|
|
164
135
|
|
165
136
|
<div class="method-description">
|
166
137
|
|
167
|
-
|
168
|
-
|
169
138
|
</div>
|
170
139
|
</div>
|
171
|
-
|
172
140
|
</section>
|
173
|
-
|
174
141
|
|
175
|
-
|
142
|
+
|
176
143
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
177
144
|
<header>
|
178
145
|
<h3>Public Class Methods</h3>
|
179
146
|
</header>
|
180
147
|
|
181
|
-
|
182
148
|
<div id="method-c-get_class_by_rel_type" class="method-detail ">
|
183
|
-
|
184
149
|
<div class="method-heading">
|
185
150
|
<span class="method-name">get_class_by_rel_type</span><span
|
186
151
|
class="method-args">(rel_type)</span>
|
187
|
-
|
188
152
|
<span class="method-click-advice">click to toggle source</span>
|
189
|
-
|
190
153
|
</div>
|
191
|
-
|
192
154
|
|
193
155
|
<div class="method-description">
|
194
156
|
|
195
|
-
|
196
|
-
|
197
|
-
|
198
157
|
|
199
|
-
|
200
158
|
<div class="method-source-code" id="get_class_by_rel_type-source">
|
201
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
159
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 55</span>
|
202
160
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">get_class_by_rel_type</span>(<span class="ruby-identifier">rel_type</span>)
|
203
161
|
<span class="ruby-keyword">unless</span> <span class="ruby-keyword">defined?</span>(<span class="ruby-identifier">@@rel_hash</span>)
|
204
162
|
<span class="ruby-identifier">@@rel_hash</span> = {}
|
@@ -214,35 +172,23 @@
|
|
214
172
|
<span class="ruby-identifier">@@rel_hash</span>[<span class="ruby-identifier">rel_type</span>]
|
215
173
|
<span class="ruby-keyword">end</span></pre>
|
216
174
|
</div>
|
217
|
-
|
218
175
|
</div>
|
219
176
|
|
220
|
-
|
221
177
|
|
222
|
-
|
223
178
|
</div>
|
224
179
|
|
225
|
-
|
226
180
|
<div id="method-c-load_relationship_file" class="method-detail ">
|
227
|
-
|
228
181
|
<div class="method-heading">
|
229
182
|
<span class="method-name">load_relationship_file</span><span
|
230
183
|
class="method-args">(zipdir_path, base_file_path)</span>
|
231
|
-
|
232
184
|
<span class="method-click-advice">click to toggle source</span>
|
233
|
-
|
234
185
|
</div>
|
235
|
-
|
236
186
|
|
237
187
|
<div class="method-description">
|
238
188
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
189
|
|
243
|
-
|
244
190
|
<div class="method-source-code" id="load_relationship_file-source">
|
245
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
191
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 103</span>
|
246
192
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">load_relationship_file</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">base_file_path</span>)
|
247
193
|
<span class="ruby-identifier">rel_file_path</span> = <span class="ruby-identifier">rel_file_path</span>(<span class="ruby-identifier">base_file_path</span>)
|
248
194
|
|
@@ -251,82 +197,56 @@
|
|
251
197
|
<span class="ruby-identifier">parse_file</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">rel_file_path</span>)
|
252
198
|
<span class="ruby-keyword">end</span></pre>
|
253
199
|
</div>
|
254
|
-
|
255
200
|
</div>
|
256
201
|
|
257
|
-
|
258
202
|
|
259
|
-
|
260
203
|
</div>
|
261
204
|
|
262
|
-
|
263
205
|
<div id="method-c-rel_file_path" class="method-detail ">
|
264
|
-
|
265
206
|
<div class="method-heading">
|
266
207
|
<span class="method-name">rel_file_path</span><span
|
267
208
|
class="method-args">(base_file_path)</span>
|
268
|
-
|
269
209
|
<span class="method-click-advice">click to toggle source</span>
|
270
|
-
|
271
210
|
</div>
|
272
|
-
|
273
211
|
|
274
212
|
<div class="method-description">
|
275
213
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
214
|
|
280
|
-
|
281
215
|
<div class="method-source-code" id="rel_file_path-source">
|
282
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
216
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 129</span>
|
283
217
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">rel_file_path</span>(<span class="ruby-identifier">base_file_path</span>)
|
284
218
|
<span class="ruby-identifier">basename</span> = <span class="ruby-identifier">base_file_path</span>.<span class="ruby-identifier">root?</span> <span class="ruby-operator">?</span> <span class="ruby-string">''</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">base_file_path</span>.<span class="ruby-identifier">basename</span>
|
285
219
|
<span class="ruby-identifier">base_file_path</span>.<span class="ruby-identifier">dirname</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'_rels'</span>, <span class="ruby-node">"#{basename}.rels"</span>).<span class="ruby-identifier">cleanpath</span>
|
286
220
|
<span class="ruby-keyword">end</span></pre>
|
287
221
|
</div>
|
288
|
-
|
289
222
|
</div>
|
290
223
|
|
291
|
-
|
292
224
|
|
293
|
-
|
294
225
|
</div>
|
295
226
|
|
296
|
-
|
297
227
|
</section>
|
298
|
-
|
228
|
+
|
299
229
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
300
230
|
<header>
|
301
231
|
<h3>Public Instance Methods</h3>
|
302
232
|
</header>
|
303
233
|
|
304
|
-
|
305
234
|
<div id="method-i-before_write_xml" class="method-detail ">
|
306
|
-
|
307
235
|
<div class="method-heading">
|
308
236
|
<span class="method-name">before_write_xml</span><span
|
309
237
|
class="method-args">()</span>
|
310
|
-
|
311
238
|
<span class="method-click-advice">click to toggle source</span>
|
312
|
-
|
313
239
|
</div>
|
314
|
-
|
315
240
|
|
316
241
|
<div class="method-description">
|
317
242
|
|
318
|
-
|
319
|
-
|
320
|
-
|
321
243
|
<div class="method-calls-super">
|
322
244
|
Calls superclass method
|
323
245
|
<a href="OOXMLObjectInstanceMethods.html#method-i-before_write_xml"><code>RubyXL::OOXMLObjectInstanceMethods#before_write_xml</code></a>
|
324
246
|
</div>
|
325
|
-
|
326
247
|
|
327
|
-
|
328
248
|
<div class="method-source-code" id="before_write_xml-source">
|
329
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
249
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 115</span>
|
330
250
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
|
331
251
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">owner</span>
|
332
252
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookRoot</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Workbook</span> <span class="ruby-keyword">then</span>
|
@@ -341,103 +261,67 @@
|
|
341
261
|
<span class="ruby-keyword">super</span>
|
342
262
|
<span class="ruby-keyword">end</span></pre>
|
343
263
|
</div>
|
344
|
-
|
345
264
|
</div>
|
346
265
|
|
347
|
-
|
348
266
|
|
349
|
-
|
350
267
|
</div>
|
351
268
|
|
352
|
-
|
353
269
|
<div id="method-i-find_by_rid" class="method-detail ">
|
354
|
-
|
355
270
|
<div class="method-heading">
|
356
271
|
<span class="method-name">find_by_rid</span><span
|
357
272
|
class="method-args">(r_id)</span>
|
358
|
-
|
359
273
|
<span class="method-click-advice">click to toggle source</span>
|
360
|
-
|
361
274
|
</div>
|
362
|
-
|
363
275
|
|
364
276
|
<div class="method-description">
|
365
277
|
|
366
|
-
|
367
|
-
|
368
|
-
|
369
278
|
|
370
|
-
|
371
279
|
<div class="method-source-code" id="find_by_rid-source">
|
372
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
280
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 45</span>
|
373
281
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">find_by_rid</span>(<span class="ruby-identifier">r_id</span>)
|
374
282
|
<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> }
|
375
283
|
<span class="ruby-keyword">end</span></pre>
|
376
284
|
</div>
|
377
|
-
|
378
285
|
</div>
|
379
286
|
|
380
|
-
|
381
287
|
|
382
|
-
|
383
288
|
</div>
|
384
289
|
|
385
|
-
|
386
290
|
<div id="method-i-find_by_target" class="method-detail ">
|
387
|
-
|
388
291
|
<div class="method-heading">
|
389
292
|
<span class="method-name">find_by_target</span><span
|
390
293
|
class="method-args">(target)</span>
|
391
|
-
|
392
294
|
<span class="method-click-advice">click to toggle source</span>
|
393
|
-
|
394
295
|
</div>
|
395
|
-
|
396
296
|
|
397
297
|
<div class="method-description">
|
398
298
|
|
399
|
-
|
400
|
-
|
401
|
-
|
402
299
|
|
403
|
-
|
404
300
|
<div class="method-source-code" id="find_by_target-source">
|
405
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
301
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 49</span>
|
406
302
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">find_by_target</span>(<span class="ruby-identifier">target</span>)
|
407
303
|
<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>
|
408
304
|
(<span class="ruby-identifier">r</span>.<span class="ruby-identifier">target</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">target</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>.<span class="ruby-identifier">relative_path_from</span>(<span class="ruby-identifier">owner</span>.<span class="ruby-identifier">xlsx_path</span>.<span class="ruby-identifier">dirname</span>))
|
409
305
|
}
|
410
306
|
<span class="ruby-keyword">end</span></pre>
|
411
307
|
</div>
|
412
|
-
|
413
308
|
</div>
|
414
309
|
|
415
|
-
|
416
310
|
|
417
|
-
|
418
311
|
</div>
|
419
312
|
|
420
|
-
|
421
313
|
<div id="method-i-load_related_files" class="method-detail ">
|
422
|
-
|
423
314
|
<div class="method-heading">
|
424
315
|
<span class="method-name">load_related_files</span><span
|
425
316
|
class="method-args">(zipdir_path, base_file_name)</span>
|
426
|
-
|
427
317
|
<span class="method-click-advice">click to toggle source</span>
|
428
|
-
|
429
318
|
</div>
|
430
|
-
|
431
319
|
|
432
320
|
<div class="method-description">
|
433
321
|
|
434
|
-
|
435
|
-
|
436
|
-
|
437
322
|
|
438
|
-
|
439
323
|
<div class="method-source-code" id="load_related_files-source">
|
440
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
324
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 70</span>
|
441
325
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">load_related_files</span>(<span class="ruby-identifier">zipdir_path</span>, <span class="ruby-identifier">base_file_name</span>)
|
442
326
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">related_files</span> = {}
|
443
327
|
|
@@ -471,137 +355,96 @@
|
|
471
355
|
<span class="ruby-identifier">related_files</span>
|
472
356
|
<span class="ruby-keyword">end</span></pre>
|
473
357
|
</div>
|
474
|
-
|
475
358
|
</div>
|
476
359
|
|
477
|
-
|
478
360
|
|
479
|
-
|
480
361
|
</div>
|
481
362
|
|
482
|
-
|
483
363
|
<div id="method-i-xlsx_path" class="method-detail ">
|
484
|
-
|
485
364
|
<div class="method-heading">
|
486
365
|
<span class="method-name">xlsx_path</span><span
|
487
366
|
class="method-args">()</span>
|
488
|
-
|
489
367
|
<span class="method-click-advice">click to toggle source</span>
|
490
|
-
|
491
368
|
</div>
|
492
|
-
|
493
369
|
|
494
370
|
<div class="method-description">
|
495
371
|
|
496
|
-
|
497
|
-
|
498
|
-
|
499
372
|
|
500
|
-
|
501
373
|
<div class="method-source-code" id="xlsx_path-source">
|
502
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
374
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 111</span>
|
503
375
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">xlsx_path</span>
|
504
376
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">rel_file_path</span>(<span class="ruby-identifier">owner</span>.<span class="ruby-identifier">xlsx_path</span>)
|
505
377
|
<span class="ruby-keyword">end</span></pre>
|
506
378
|
</div>
|
507
|
-
|
508
379
|
</div>
|
509
380
|
|
510
|
-
|
511
381
|
|
512
|
-
|
513
382
|
</div>
|
514
383
|
|
515
|
-
|
516
384
|
</section>
|
517
|
-
|
385
|
+
|
518
386
|
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section">
|
519
387
|
<header>
|
520
388
|
<h3>Protected Instance Methods</h3>
|
521
389
|
</header>
|
522
390
|
|
523
|
-
|
524
391
|
<div id="method-i-add_relationship" class="method-detail ">
|
525
|
-
|
526
392
|
<div class="method-heading">
|
527
393
|
<span class="method-name">add_relationship</span><span
|
528
394
|
class="method-args">(obj)</span>
|
529
|
-
|
530
395
|
<span class="method-click-advice">click to toggle source</span>
|
531
|
-
|
532
396
|
</div>
|
533
|
-
|
534
397
|
|
535
398
|
<div class="method-description">
|
536
399
|
|
537
|
-
|
538
|
-
|
539
|
-
|
540
400
|
|
541
|
-
|
542
401
|
<div class="method-source-code" id="add_relationship-source">
|
543
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
402
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 36</span>
|
544
403
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_relationship</span>(<span class="ruby-identifier">obj</span>)
|
545
404
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-keyword">defined?</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>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:empty?</span>) <span class="ruby-operator">&&</span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">empty?</span>)
|
546
405
|
|
547
|
-
<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>
|
548
|
-
<span class="ruby-value">:type</span>
|
406
|
+
<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>,
|
407
|
+
<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>,
|
549
408
|
<span class="ruby-value">:target</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">xlsx_path</span>.<span class="ruby-identifier">relative_path_from</span>(<span class="ruby-identifier">owner</span>.<span class="ruby-identifier">xlsx_path</span>.<span class="ruby-identifier">dirname</span>))
|
550
409
|
<span class="ruby-keyword">end</span></pre>
|
551
410
|
</div>
|
552
|
-
|
553
411
|
</div>
|
554
412
|
|
555
|
-
|
556
413
|
|
557
|
-
|
558
414
|
</div>
|
559
415
|
|
560
|
-
|
561
416
|
<div id="method-i-new_relationship" class="method-detail ">
|
562
|
-
|
563
417
|
<div class="method-heading">
|
564
418
|
<span class="method-name">new_relationship</span><span
|
565
419
|
class="method-args">(target, type)</span>
|
566
|
-
|
567
420
|
<span class="method-click-advice">click to toggle source</span>
|
568
|
-
|
569
421
|
</div>
|
570
|
-
|
571
422
|
|
572
423
|
<div class="method-description">
|
573
424
|
|
574
|
-
|
575
|
-
|
576
|
-
|
577
425
|
|
578
|
-
|
579
426
|
<div class="method-source-code" id="new_relationship-source">
|
580
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line
|
427
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/relationships.rb, line 29</span>
|
581
428
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">new_relationship</span>(<span class="ruby-identifier">target</span>, <span class="ruby-identifier">type</span>)
|
582
|
-
<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>
|
583
|
-
<span class="ruby-value">:type</span>
|
429
|
+
<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>,
|
430
|
+
<span class="ruby-value">:type</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">type</span>,
|
584
431
|
<span class="ruby-value">:target</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">target</span>)
|
585
432
|
<span class="ruby-keyword">end</span></pre>
|
586
433
|
</div>
|
587
|
-
|
588
434
|
</div>
|
589
435
|
|
590
|
-
|
591
436
|
|
592
|
-
|
593
437
|
</div>
|
594
438
|
|
595
|
-
|
596
439
|
</section>
|
597
|
-
|
440
|
+
|
598
441
|
</section>
|
599
442
|
</main>
|
600
443
|
|
601
444
|
|
602
445
|
<footer id="validator-badges" role="contentinfo">
|
603
446
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
604
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
447
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
605
448
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
606
449
|
</footer>
|
607
450
|
|