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