rubyXL 3.4.3 → 3.4.4
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 +4 -4
- data/.circleci/config.yml +59 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +92 -0
- data/README.rdoc +6 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/rubyXL.rb +1 -0
- data/lib/rubyXL/objects/chartsheet.rb +2 -2
- data/lib/rubyXL/objects/color.rb +2 -1
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/relationships.rb +7 -2
- data/lib/rubyXL/objects/simple_types.rb +13 -0
- data/lib/rubyXL/objects/workbook.rb +2 -0
- data/lib/rubyXL/objects/worksheet.rb +3 -0
- data/rdoc/README_rdoc.html +55 -95
- data/rdoc/RubyXL.html +52 -23
- data/rdoc/RubyXL/AExtension.html +8 -11
- data/rdoc/RubyXL/AExtensionStorageArea.html +3 -5
- data/rdoc/RubyXL/ActiveX.html +4 -6
- data/rdoc/RubyXL/ActiveXBinary.html +3 -5
- data/rdoc/RubyXL/AdjustHandleList.html +4 -7
- data/rdoc/RubyXL/Alignment.html +4 -7
- data/rdoc/RubyXL/AlternateContent.html +3 -5
- data/rdoc/RubyXL/Authors.html +4 -7
- data/rdoc/RubyXL/AutoFilter.html +4 -7
- data/rdoc/RubyXL/AutoFilterColumn.html +4 -7
- data/rdoc/RubyXL/BinaryImageFile.html +3 -5
- data/rdoc/RubyXL/BodyProperties.html +4 -7
- data/rdoc/RubyXL/BooleanNode.html +3 -5
- data/rdoc/RubyXL/BooleanValue.html +3 -5
- data/rdoc/RubyXL/Border.html +9 -12
- data/rdoc/RubyXL/BorderEdge.html +6 -8
- data/rdoc/RubyXL/Borders.html +6 -9
- data/rdoc/RubyXL/Break.html +4 -7
- data/rdoc/RubyXL/BreakList.html +4 -7
- data/rdoc/RubyXL/CT_AdjPoint2D.html +4 -7
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +4 -7
- data/rdoc/RubyXL/CT_Backdrop.html +4 -7
- data/rdoc/RubyXL/CT_Bevel.html +4 -7
- data/rdoc/RubyXL/CT_BiLevelEffect.html +4 -7
- data/rdoc/RubyXL/CT_BlendEffect.html +4 -7
- data/rdoc/RubyXL/CT_Blip.html +4 -7
- data/rdoc/RubyXL/CT_BlipFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_BlurEffect.html +4 -7
- data/rdoc/RubyXL/CT_Camera.html +4 -7
- data/rdoc/RubyXL/CT_Color.html +4 -7
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +4 -7
- data/rdoc/RubyXL/CT_ColorMapping.html +4 -7
- data/rdoc/RubyXL/CT_ColorScheme.html +4 -7
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +4 -7
- data/rdoc/RubyXL/CT_ConnectionSite.html +4 -7
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +4 -7
- data/rdoc/RubyXL/CT_DashStop.html +4 -7
- data/rdoc/RubyXL/CT_DashStopList.html +4 -7
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +4 -7
- data/rdoc/RubyXL/CT_DuotoneEffect.html +4 -7
- data/rdoc/RubyXL/CT_EffectContainer.html +4 -7
- data/rdoc/RubyXL/CT_EffectList.html +4 -7
- data/rdoc/RubyXL/CT_EffectReference.html +4 -7
- data/rdoc/RubyXL/CT_EffectStyleItem.html +4 -7
- data/rdoc/RubyXL/CT_EffectStyleList.html +4 -7
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +4 -7
- data/rdoc/RubyXL/CT_FillEffect.html +4 -7
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +4 -7
- data/rdoc/RubyXL/CT_FillStyleList.html +4 -7
- data/rdoc/RubyXL/CT_FlatText.html +4 -7
- data/rdoc/RubyXL/CT_FontCollection.html +4 -7
- data/rdoc/RubyXL/CT_FontReference.html +4 -7
- data/rdoc/RubyXL/CT_GeomGuideList.html +4 -7
- data/rdoc/RubyXL/CT_GlowEffect.html +4 -7
- data/rdoc/RubyXL/CT_GradientFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_GradientStop.html +4 -7
- data/rdoc/RubyXL/CT_GradientStopList.html +4 -7
- data/rdoc/RubyXL/CT_HSLEffect.html +4 -7
- data/rdoc/RubyXL/CT_HslColor.html +4 -7
- data/rdoc/RubyXL/CT_Hyperlink.html +4 -7
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_LightRig.html +4 -7
- data/rdoc/RubyXL/CT_LineEndProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineStyleList.html +4 -7
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +4 -7
- data/rdoc/RubyXL/CT_LuminanceEffect.html +4 -7
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +4 -7
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_Path2D.html +4 -7
- data/rdoc/RubyXL/CT_Path2DArcTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DList.html +4 -7
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DTo.html +4 -7
- data/rdoc/RubyXL/CT_PathShadeProperties.html +4 -7
- data/rdoc/RubyXL/CT_PatternFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_Point3D.html +4 -7
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +4 -7
- data/rdoc/RubyXL/CT_PresetColor.html +4 -7
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +4 -7
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_PresetTextShape.html +4 -7
- data/rdoc/RubyXL/CT_ReflectionEffect.html +4 -7
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +4 -7
- data/rdoc/RubyXL/CT_RelativeRect.html +4 -7
- data/rdoc/RubyXL/CT_SRgbColor.html +4 -7
- data/rdoc/RubyXL/CT_ScRgbColor.html +4 -7
- data/rdoc/RubyXL/CT_Scene3D.html +4 -7
- data/rdoc/RubyXL/CT_SchemeColor.html +4 -7
- data/rdoc/RubyXL/CT_Shape3D.html +4 -7
- data/rdoc/RubyXL/CT_ShapeStyle.html +4 -7
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +4 -7
- data/rdoc/RubyXL/CT_SphereCoords.html +4 -7
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +4 -7
- data/rdoc/RubyXL/CT_StyleMatrix.html +4 -7
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +4 -7
- data/rdoc/RubyXL/CT_SupplementalFont.html +4 -7
- data/rdoc/RubyXL/CT_SystemColor.html +4 -7
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextBlipBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextCharBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +4 -7
- data/rdoc/RubyXL/CT_TextFont.html +4 -7
- data/rdoc/RubyXL/CT_TextListStyle.html +4 -7
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +4 -7
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +4 -7
- data/rdoc/RubyXL/CT_TextSpacing.html +4 -7
- data/rdoc/RubyXL/CT_TextTabStop.html +4 -7
- data/rdoc/RubyXL/CT_TextTabStopList.html +4 -7
- data/rdoc/RubyXL/CT_TileInfoProperties.html +4 -7
- data/rdoc/RubyXL/CT_TintEffect.html +4 -7
- data/rdoc/RubyXL/CT_Transform2D.html +4 -7
- data/rdoc/RubyXL/CT_TransformEffect.html +4 -7
- data/rdoc/RubyXL/CT_Vector3D.html +4 -7
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +4 -7
- data/rdoc/RubyXL/CalculationChain.html +5 -8
- data/rdoc/RubyXL/CalculationChainCell.html +4 -7
- data/rdoc/RubyXL/CalculationProperties.html +4 -7
- data/rdoc/RubyXL/Cell.html +19 -24
- data/rdoc/RubyXL/CellConvenienceMethods.html +43 -46
- data/rdoc/RubyXL/CellExt.html +4 -7
- data/rdoc/RubyXL/CellSmartTag.html +4 -7
- data/rdoc/RubyXL/CellSmartTagProperty.html +4 -7
- data/rdoc/RubyXL/CellSmartTags.html +4 -7
- data/rdoc/RubyXL/CellStyle.html +4 -7
- data/rdoc/RubyXL/CellStyleXFs.html +6 -9
- data/rdoc/RubyXL/CellStyles.html +6 -9
- data/rdoc/RubyXL/CellValue.html +5 -8
- data/rdoc/RubyXL/CellWatch.html +4 -7
- data/rdoc/RubyXL/CellWatches.html +4 -7
- data/rdoc/RubyXL/CellXFs.html +7 -10
- data/rdoc/RubyXL/ChartColorsFile.html +3 -5
- data/rdoc/RubyXL/ChartFile.html +4 -6
- data/rdoc/RubyXL/ChartStyleFile.html +3 -5
- data/rdoc/RubyXL/ChartUserShapesFile.html +3 -5
- data/rdoc/RubyXL/Chartsheet.html +5 -8
- data/rdoc/RubyXL/ChartsheetPageSetup.html +4 -7
- data/rdoc/RubyXL/ChartsheetProperties.html +4 -7
- data/rdoc/RubyXL/ChartsheetProtection.html +4 -7
- data/rdoc/RubyXL/ChartsheetView.html +4 -7
- data/rdoc/RubyXL/ChartsheetViews.html +4 -7
- data/rdoc/RubyXL/Color.html +6 -9
- data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -5
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +5 -7
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +7 -10
- data/rdoc/RubyXL/ColorConvenienceMethods.html +4 -6
- data/rdoc/RubyXL/ColorFilter.html +4 -7
- data/rdoc/RubyXL/ColorScale.html +4 -7
- data/rdoc/RubyXL/ColorSet.html +4 -7
- data/rdoc/RubyXL/Colors.html +4 -7
- data/rdoc/RubyXL/ColumnRange.html +8 -11
- data/rdoc/RubyXL/ColumnRanges.html +8 -11
- data/rdoc/RubyXL/Comment.html +4 -7
- data/rdoc/RubyXL/CommentList.html +4 -7
- data/rdoc/RubyXL/CommentsFile.html +5 -8
- data/rdoc/RubyXL/ConditionalFormatValue.html +4 -7
- data/rdoc/RubyXL/ConditionalFormatting.html +4 -7
- data/rdoc/RubyXL/ConditionalFormattingRule.html +4 -7
- data/rdoc/RubyXL/Connection.html +103 -0
- data/rdoc/RubyXL/ConnectionTable.html +103 -0
- data/rdoc/RubyXL/ConnectionTables.html +103 -0
- data/rdoc/RubyXL/ConnectionTextField.html +103 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +103 -0
- data/rdoc/RubyXL/Connections.html +173 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +3 -5
- data/rdoc/RubyXL/ContentTypeOverride.html +3 -5
- data/rdoc/RubyXL/ContentTypes.html +9 -11
- data/rdoc/RubyXL/ControlPropertiesFile.html +3 -5
- data/rdoc/RubyXL/CorePropertiesFile.html +14 -16
- data/rdoc/RubyXL/CustomColor.html +4 -7
- data/rdoc/RubyXL/CustomColorList.html +4 -7
- data/rdoc/RubyXL/CustomFilter.html +4 -7
- data/rdoc/RubyXL/CustomFilters.html +4 -7
- data/rdoc/RubyXL/CustomGeometry.html +4 -7
- data/rdoc/RubyXL/CustomProperties.html +4 -7
- data/rdoc/RubyXL/CustomPropertiesFile.html +3 -5
- data/rdoc/RubyXL/CustomProperty.html +4 -7
- data/rdoc/RubyXL/CustomPropertyFile.html +3 -5
- data/rdoc/RubyXL/CustomSheetView.html +4 -7
- data/rdoc/RubyXL/CustomSheetViews.html +4 -7
- data/rdoc/RubyXL/CustomWorkbookView.html +4 -7
- data/rdoc/RubyXL/CustomWorkbookViews.html +4 -7
- data/rdoc/RubyXL/CustomXMLFile.html +3 -5
- data/rdoc/RubyXL/DXF.html +4 -7
- data/rdoc/RubyXL/DXFs.html +4 -7
- data/rdoc/RubyXL/DataBar.html +4 -7
- data/rdoc/RubyXL/DataConsolidate.html +4 -7
- data/rdoc/RubyXL/DataConsolidationReference.html +4 -7
- data/rdoc/RubyXL/DataConsolidationReferences.html +4 -7
- data/rdoc/RubyXL/DataType.html +4 -7
- data/rdoc/RubyXL/DataValidation.html +4 -7
- data/rdoc/RubyXL/DataValidations.html +4 -7
- data/rdoc/RubyXL/DateGroupItem.html +4 -7
- data/rdoc/RubyXL/DefinedName.html +4 -7
- data/rdoc/RubyXL/DefinedNameExt.html +4 -7
- data/rdoc/RubyXL/DefinedNames.html +4 -7
- data/rdoc/RubyXL/DefinedNamesExt.html +4 -7
- data/rdoc/RubyXL/DocumentPropertiesFile.html +8 -11
- data/rdoc/RubyXL/DrawingFile.html +4 -6
- data/rdoc/RubyXL/DynamicFilter.html +4 -7
- data/rdoc/RubyXL/EmbeddedControl.html +4 -7
- data/rdoc/RubyXL/EmbeddedControls.html +4 -7
- data/rdoc/RubyXL/Extension.html +4 -7
- data/rdoc/RubyXL/ExtensionStorageArea.html +4 -7
- data/rdoc/RubyXL/Extents.html +4 -7
- data/rdoc/RubyXL/ExternalBook.html +4 -7
- data/rdoc/RubyXL/ExternalLinksFile.html +4 -6
- data/rdoc/RubyXL/ExternalReference.html +4 -7
- data/rdoc/RubyXL/ExternalReferences.html +4 -7
- data/rdoc/RubyXL/ExtraColorSchemeList.html +4 -7
- data/rdoc/RubyXL/FieldItem.html +4 -7
- data/rdoc/RubyXL/FileRecoveryProperties.html +4 -7
- data/rdoc/RubyXL/FileSharing.html +4 -7
- data/rdoc/RubyXL/FileVersion.html +4 -7
- data/rdoc/RubyXL/Fill.html +6 -9
- data/rdoc/RubyXL/Fills.html +6 -9
- data/rdoc/RubyXL/FilterContainer.html +4 -7
- data/rdoc/RubyXL/FloatNode.html +3 -5
- data/rdoc/RubyXL/FloatValue.html +3 -5
- data/rdoc/RubyXL/Font.html +8 -12
- data/rdoc/RubyXL/FontConvenienceMethods.html +25 -28
- data/rdoc/RubyXL/FontScheme.html +4 -7
- data/rdoc/RubyXL/Fonts.html +6 -9
- data/rdoc/RubyXL/Formula.html +4 -7
- data/rdoc/RubyXL/FunctionGroup.html +4 -7
- data/rdoc/RubyXL/FunctionGroups.html +4 -7
- data/rdoc/RubyXL/GenericStorageObject.html +6 -8
- data/rdoc/RubyXL/GradientFill.html +4 -7
- data/rdoc/RubyXL/HeaderFooterSettings.html +4 -7
- data/rdoc/RubyXL/Hyperlink.html +4 -7
- data/rdoc/RubyXL/HyperlinkRelFile.html +3 -5
- data/rdoc/RubyXL/Hyperlinks.html +4 -7
- data/rdoc/RubyXL/IconFilter.html +4 -7
- data/rdoc/RubyXL/IconSet.html +4 -7
- data/rdoc/RubyXL/IgnoredError.html +4 -7
- data/rdoc/RubyXL/IgnoredErrors.html +4 -7
- data/rdoc/RubyXL/IndexedColors.html +4 -7
- data/rdoc/RubyXL/InputCells.html +4 -7
- data/rdoc/RubyXL/IntegerNode.html +3 -5
- data/rdoc/RubyXL/IntegerValue.html +3 -5
- data/rdoc/RubyXL/LegacyCell.html +4 -6
- data/rdoc/RubyXL/LegacyWorksheet.html +10 -12
- data/rdoc/RubyXL/MRUColors.html +4 -7
- data/rdoc/RubyXL/MacrosFile.html +3 -5
- data/rdoc/RubyXL/MergedCell.html +4 -7
- data/rdoc/RubyXL/MergedCells.html +4 -7
- data/rdoc/RubyXL/NumFmt.html +4 -7
- data/rdoc/RubyXL/NumberFormat.html +6 -9
- data/rdoc/RubyXL/NumberFormats.html +6 -10
- data/rdoc/RubyXL/OLEObject.html +4 -7
- data/rdoc/RubyXL/OLEObjectFile.html +3 -5
- data/rdoc/RubyXL/OLEObjects.html +4 -7
- data/rdoc/RubyXL/OLESize.html +4 -7
- data/rdoc/RubyXL/OOXMLContainerObject.html +13 -18
- data/rdoc/RubyXL/OOXMLIgnored.html +5 -7
- data/rdoc/RubyXL/OOXMLObject.html +4 -8
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +49 -96
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +20 -44
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +28 -27
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -32
- data/rdoc/RubyXL/OdbcOleDbProperties.html +103 -0
- data/rdoc/RubyXL/Offset.html +4 -7
- data/rdoc/RubyXL/OlapProperties.html +103 -0
- data/rdoc/RubyXL/OutlineProperties.html +4 -7
- data/rdoc/RubyXL/PageMargins.html +4 -7
- data/rdoc/RubyXL/PageSetup.html +4 -7
- data/rdoc/RubyXL/PageSetupProperties.html +4 -7
- data/rdoc/RubyXL/Pane.html +4 -7
- data/rdoc/RubyXL/Parser.html +8 -11
- data/rdoc/RubyXL/PatternFill.html +4 -7
- data/rdoc/RubyXL/PhoneticProperties.html +4 -7
- data/rdoc/RubyXL/PhoneticRun.html +4 -7
- data/rdoc/RubyXL/PivotArea.html +4 -7
- data/rdoc/RubyXL/PivotCache.html +4 -7
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +3 -5
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +3 -5
- data/rdoc/RubyXL/PivotCaches.html +4 -7
- data/rdoc/RubyXL/PivotReference.html +4 -7
- data/rdoc/RubyXL/PivotReferences.html +4 -7
- data/rdoc/RubyXL/PivotTableFile.html +3 -5
- data/rdoc/RubyXL/PivotTableSelection.html +4 -7
- data/rdoc/RubyXL/PresetGeometry.html +4 -7
- data/rdoc/RubyXL/PrintOptions.html +4 -7
- data/rdoc/RubyXL/PrinterSettingsFile.html +3 -5
- data/rdoc/RubyXL/ProtectedRange.html +4 -7
- data/rdoc/RubyXL/ProtectedRanges.html +4 -7
- data/rdoc/RubyXL/Protection.html +4 -7
- data/rdoc/RubyXL/QueryParameter.html +103 -0
- data/rdoc/RubyXL/QueryParameters.html +103 -0
- data/rdoc/RubyXL/QueryTable.html +184 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +103 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +103 -0
- data/rdoc/RubyXL/QueryTableField.html +103 -0
- data/rdoc/RubyXL/QueryTableFields.html +103 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +103 -0
- data/rdoc/RubyXL/RID.html +3 -5
- data/rdoc/RubyXL/RawOOXML.html +6 -9
- data/rdoc/RubyXL/Reference.html +18 -25
- data/rdoc/RubyXL/Relationship.html +3 -5
- data/rdoc/RubyXL/RelationshipSupport.html +19 -20
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +5 -7
- data/rdoc/RubyXL/RevisionPointer.html +4 -10
- data/rdoc/RubyXL/RichText.html +5 -8
- data/rdoc/RubyXL/RichTextRun.html +5 -8
- data/rdoc/RubyXL/Row.html +13 -16
- data/rdoc/RubyXL/RowExt.html +4 -7
- data/rdoc/RubyXL/RunProperties.html +4 -7
- data/rdoc/RubyXL/Scenario.html +4 -7
- data/rdoc/RubyXL/Scenarios.html +4 -7
- data/rdoc/RubyXL/Selection.html +6 -9
- data/rdoc/RubyXL/ShapeGuide.html +4 -7
- data/rdoc/RubyXL/ShapeTextRectangle.html +4 -7
- data/rdoc/RubyXL/SharedStringsTable.html +18 -21
- data/rdoc/RubyXL/Sheet.html +4 -7
- data/rdoc/RubyXL/SheetCalculationProperties.html +4 -7
- data/rdoc/RubyXL/SheetData.html +6 -9
- data/rdoc/RubyXL/SheetDataExt.html +4 -7
- data/rdoc/RubyXL/SheetDataSet.html +4 -7
- data/rdoc/RubyXL/SheetName.html +4 -7
- data/rdoc/RubyXL/SheetNames.html +4 -7
- data/rdoc/RubyXL/Sheets.html +4 -7
- data/rdoc/RubyXL/SlicerCacheFile.html +3 -5
- data/rdoc/RubyXL/SlicerFile.html +3 -5
- data/rdoc/RubyXL/SmartTagProperties.html +4 -7
- data/rdoc/RubyXL/SmartTagType.html +4 -7
- data/rdoc/RubyXL/SmartTagTypes.html +4 -7
- data/rdoc/RubyXL/SmartTags.html +4 -7
- data/rdoc/RubyXL/SortCondition.html +4 -7
- data/rdoc/RubyXL/SortState.html +4 -7
- data/rdoc/RubyXL/Sqref.html +5 -7
- data/rdoc/RubyXL/Stop.html +4 -7
- data/rdoc/RubyXL/StringNode.html +3 -5
- data/rdoc/RubyXL/StringNodeW3C.html +6 -8
- data/rdoc/RubyXL/StringValue.html +3 -5
- data/rdoc/RubyXL/Stylesheet.html +17 -20
- data/rdoc/RubyXL/TableFile.html +3 -5
- data/rdoc/RubyXL/TableParts.html +3 -5
- data/rdoc/RubyXL/TableStyle.html +4 -7
- data/rdoc/RubyXL/TableStyles.html +4 -7
- data/rdoc/RubyXL/Text.html +7 -13
- data/rdoc/RubyXL/TextImportSettings.html +103 -0
- data/rdoc/RubyXL/Theme.html +10 -13
- data/rdoc/RubyXL/ThemeElements.html +4 -7
- data/rdoc/RubyXL/ThumbnailFile.html +3 -5
- data/rdoc/RubyXL/Top10.html +4 -7
- data/rdoc/RubyXL/VMLDrawingFile.html +4 -7
- data/rdoc/RubyXL/Variant.html +4 -7
- data/rdoc/RubyXL/Vector.html +5 -8
- data/rdoc/RubyXL/VectorValue.html +3 -5
- data/rdoc/RubyXL/VisualProperties.html +4 -7
- data/rdoc/RubyXL/WebPublishObject.html +4 -7
- data/rdoc/RubyXL/WebPublishObjects.html +4 -7
- data/rdoc/RubyXL/WebPublishingItem.html +4 -7
- data/rdoc/RubyXL/WebPublishingItems.html +4 -7
- data/rdoc/RubyXL/WebPublishingProperties.html +4 -7
- data/rdoc/RubyXL/WebQueryProperties.html +103 -0
- data/rdoc/RubyXL/Workbook.html +67 -72
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +24 -28
- data/rdoc/RubyXL/WorkbookProperties.html +4 -7
- data/rdoc/RubyXL/WorkbookProtection.html +4 -7
- data/rdoc/RubyXL/WorkbookRoot.html +8 -10
- data/rdoc/RubyXL/WorkbookView.html +4 -7
- data/rdoc/RubyXL/WorkbookViews.html +4 -7
- data/rdoc/RubyXL/Worksheet.html +16 -19
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +98 -113
- data/rdoc/RubyXL/WorksheetDimensions.html +4 -7
- data/rdoc/RubyXL/WorksheetFormatProperties.html +3 -5
- data/rdoc/RubyXL/WorksheetProperties.html +4 -7
- data/rdoc/RubyXL/WorksheetProtection.html +4 -7
- data/rdoc/RubyXL/WorksheetView.html +4 -7
- data/rdoc/RubyXL/WorksheetViews.html +4 -7
- data/rdoc/RubyXL/XF.html +4 -7
- data/rdoc/created.rid +13 -11
- data/rdoc/index.html +40 -4
- data/rdoc/js/navigation.js +3 -4
- 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 +69 -4
- data/rubyXL.gemspec +29 -4
- data/test/test_parse_write.rb +15 -15
- metadata +39 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::OOXMLObject - rubyXL 3.4.
|
|
7
|
+
<title>class RubyXL::OOXMLObject - rubyXL 3.4.4</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -87,15 +87,11 @@
|
|
|
87
87
|
|
|
88
88
|
<section class="description">
|
|
89
89
|
|
|
90
|
-
<p>Parent class for defining OOXML based objects (not unlike Rails'
|
|
91
|
-
<code>ActiveRecord</code>!) Most importantly, provides functionality of
|
|
92
|
-
parsing such objects from XML, and marshalling them to XML.</p>
|
|
90
|
+
<p>Parent class for defining OOXML based objects (not unlike Rails' <code>ActiveRecord</code>!) Most importantly, provides functionality of parsing such objects from XML, and marshalling them to XML.</p>
|
|
93
91
|
|
|
94
92
|
</section>
|
|
95
93
|
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
|
|
99
95
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
100
96
|
|
|
101
97
|
|
|
@@ -111,8 +107,8 @@ parsing such objects from XML, and marshalling them to XML.</p>
|
|
|
111
107
|
|
|
112
108
|
|
|
113
109
|
<footer id="validator-badges" role="contentinfo">
|
|
114
|
-
<p><a href="
|
|
115
|
-
<p>Generated by <a href="https://
|
|
110
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
111
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
|
|
116
112
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
117
113
|
</footer>
|
|
118
114
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.
|
|
7
|
+
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.4</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -90,8 +90,6 @@
|
|
|
90
90
|
</section>
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
93
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
96
94
|
|
|
97
95
|
|
|
@@ -125,16 +123,12 @@
|
|
|
125
123
|
|
|
126
124
|
<h3 id="method-i-define_attribute-label-Parameters">Parameters<span><a href="#method-i-define_attribute-label-Parameters">¶</a> <a href="#top">↑</a></span></h3>
|
|
127
125
|
<ul><li>
|
|
128
|
-
<p><code>attribute_name</code> - Name of the element attribute as seen in the
|
|
129
|
-
source XML. Can be either <code>"String"</code> or
|
|
130
|
-
<code>:Symbol</code></p>
|
|
126
|
+
<p><code>attribute_name</code> - Name of the element attribute as seen in the source XML. Can be either <code>"String"</code> or <code>:Symbol</code></p>
|
|
131
127
|
<ul><li>
|
|
132
|
-
<p>Special attibute name <code>'_'</code> (underscore) denotes the
|
|
133
|
-
value of the element rather than attribute.</p>
|
|
128
|
+
<p>Special attibute name <code>'_'</code> (underscore) denotes the value of the element rather than attribute.</p>
|
|
134
129
|
</li></ul>
|
|
135
130
|
</li><li>
|
|
136
|
-
<p><code>attribute_type</code> - Specifies the conversion type for the
|
|
137
|
-
attribute when parsing. Available options are:</p>
|
|
131
|
+
<p><code>attribute_type</code> - Specifies the conversion type for the attribute when parsing. Available options are:</p>
|
|
138
132
|
<ul><li>
|
|
139
133
|
<p><code>:int</code> - <code>Integer</code></p>
|
|
140
134
|
</li><li>
|
|
@@ -144,71 +138,57 @@ attribute when parsing. Available options are:</p>
|
|
|
144
138
|
</li><li>
|
|
145
139
|
<p><code>:string</code> - <code>String</code> (no conversion)</p>
|
|
146
140
|
</li><li>
|
|
147
|
-
<p><code>:sqref</code> - <a href="Sqref.html">RubyXL::Sqref</a></p>
|
|
141
|
+
<p><code>:sqref</code> - <a href="Sqref.html"><code>RubyXL::Sqref</code></a></p>
|
|
148
142
|
</li><li>
|
|
149
|
-
<p><code>:ref</code> - <a href="Reference.html">RubyXL::Reference</a></p>
|
|
143
|
+
<p><code>:ref</code> - <a href="Reference.html"><code>RubyXL::Reference</code></a></p>
|
|
150
144
|
</li><li>
|
|
151
|
-
<p><code>:bool</code> - <code>Boolean</code> (“1” and “true” convert to
|
|
152
|
-
<code>true</code>, others to <code>false</code>)</p>
|
|
145
|
+
<p><code>:bool</code> - <code>Boolean</code> (“1” and “true” convert to <code>true</code>, others to <code>false</code>)</p>
|
|
153
146
|
</li><li>
|
|
154
|
-
<p>one of <code>simple_types</code> - <code>String</code>, plus the list of
|
|
155
|
-
acceptable values is saved for future validation (not used yet).</p>
|
|
147
|
+
<p>one of <code>simple_types</code> - <code>String</code>, plus the list of acceptable values is saved for future validation (not used yet).</p>
|
|
156
148
|
</li></ul>
|
|
157
149
|
</li><li>
|
|
158
150
|
<p><code>extra_parameters</code> - Hash of optional parameters as follows:</p>
|
|
159
151
|
<ul><li>
|
|
160
|
-
<p><code>:accessor</code> - Name of the accessor for this attribute to be
|
|
161
|
-
defined on the object. If not provided, defaults to classidied
|
|
162
|
-
<code>attribute_name</code>.</p>
|
|
152
|
+
<p><code>:accessor</code> - Name of the accessor for this attribute to be defined on the object. If not provided, defaults to classidied <code>attribute_name</code>.</p>
|
|
163
153
|
</li><li>
|
|
164
|
-
<p><code>:default</code> - Value this attribute defaults to if not explicitly
|
|
165
|
-
provided.</p>
|
|
154
|
+
<p><code>:default</code> - Value this attribute defaults to if not explicitly provided.</p>
|
|
166
155
|
</li><li>
|
|
167
|
-
<p><code>:required</code> - Whether this attribute is required when writing
|
|
168
|
-
XML. If the value of the attrinute is not explicitly provided,
|
|
169
|
-
<code>:default</code> is written instead.</p>
|
|
156
|
+
<p><code>:required</code> - Whether this attribute is required when writing XML. If the value of the attrinute is not explicitly provided, <code>:default</code> is written instead.</p>
|
|
170
157
|
</li><li>
|
|
171
|
-
<p><code>:computed</code> - Do not store this attribute on <code>parse</code>,
|
|
172
|
-
but do call the object-provided read accessor on <code>write_xml</code>.</p>
|
|
158
|
+
<p><code>:computed</code> - Do not store this attribute on <code>parse</code>, but do call the object-provided read accessor on <code>write_xml</code>.</p>
|
|
173
159
|
</li></ul>
|
|
174
160
|
</li></ul>
|
|
175
161
|
|
|
176
162
|
<h4 id="method-i-define_attribute-label-Examples">Examples<span><a href="#method-i-define_attribute-label-Examples">¶</a> <a href="#top">↑</a></span></h4>
|
|
177
163
|
|
|
178
|
-
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(
|
|
164
|
+
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:outline</span>, <span class="ruby-value">:bool</span>, <span class="ruby-value">:default</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>)
|
|
179
165
|
</pre>
|
|
180
166
|
|
|
181
|
-
<p>A <code>Boolean</code> attribute 'outline' with default value
|
|
182
|
-
<code>true</code> will be accessible by calling <code>obj.outline</code></p>
|
|
167
|
+
<p>A <code>Boolean</code> attribute 'outline' with default value <code>true</code> will be accessible by calling <code>obj.outline</code></p>
|
|
183
168
|
|
|
184
|
-
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(
|
|
169
|
+
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:uniqueCount</span>, <span class="ruby-value">:int</span>)
|
|
185
170
|
</pre>
|
|
186
171
|
|
|
187
|
-
<p>An <code>Integer</code> attribute 'uniqueCount' accessible as
|
|
188
|
-
<code>obj.unique_count</code></p>
|
|
172
|
+
<p>An <code>Integer</code> attribute 'uniqueCount' accessible as <code>obj.unique_count</code></p>
|
|
189
173
|
|
|
190
|
-
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(
|
|
174
|
+
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:_</span>, <span class="ruby-value">:string</span>, <span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-value">:expression</span>)
|
|
191
175
|
</pre>
|
|
192
176
|
|
|
193
|
-
<p>The value of the element will be accessible as a <code>String</code> by
|
|
194
|
-
calling <code>obj.expression</code></p>
|
|
177
|
+
<p>The value of the element will be accessible as a <code>String</code> by calling <code>obj.expression</code></p>
|
|
195
178
|
|
|
196
|
-
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(
|
|
179
|
+
<pre class="ruby"><span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:errorStyle</span>, <span class="ruby-node">%w{ stop warning information }</span>, <span class="ruby-value">:default</span> <span class="ruby-operator">=></span> <span class="ruby-string">'stop'</span>,)
|
|
197
180
|
</pre>
|
|
198
181
|
|
|
199
|
-
<p>A <code>String</code> attribute named 'errorStyle' will be
|
|
200
|
-
accessible as <code>obj.error_style</code>, valid values are
|
|
201
|
-
<code>"stop"</code>, <code>"warning"</code>,
|
|
202
|
-
<code>"information"</code></p>
|
|
182
|
+
<p>A <code>String</code> attribute named 'errorStyle' will be accessible as <code>obj.error_style</code>, valid values are <code>"stop"</code>, <code>"warning"</code>, <code>"information"</code></p>
|
|
203
183
|
|
|
204
184
|
|
|
205
185
|
|
|
206
186
|
|
|
207
187
|
<div class="method-source-code" id="define_attribute-source">
|
|
208
188
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 48</span>
|
|
209
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">define_attribute</span>(<span class="ruby-identifier">attr_name</span>, <span class="ruby-identifier">attr_type</span>, <span class="ruby-identifier">extra_params</span> = {})
|
|
189
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_attribute</span>(<span class="ruby-identifier">attr_name</span>, <span class="ruby-identifier">attr_type</span>, <span class="ruby-identifier">extra_params</span> = {})
|
|
210
190
|
<span class="ruby-identifier">attrs</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_attributes</span>)
|
|
211
|
-
<span class="ruby-identifier">attr_hash</span> = <span class="ruby-identifier">extra_params</span>.<span class="ruby-identifier">merge</span>({ <span class="ruby-value">:attr_type</span>
|
|
191
|
+
<span class="ruby-identifier">attr_hash</span> = <span class="ruby-identifier">extra_params</span>.<span class="ruby-identifier">merge</span>({ <span class="ruby-value">:attr_type</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">attr_type</span> })
|
|
212
192
|
<span class="ruby-identifier">attr_hash</span>[<span class="ruby-value">:accessor</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">accessorize</span>(<span class="ruby-identifier">attr_name</span>)
|
|
213
193
|
<span class="ruby-identifier">attrs</span>[<span class="ruby-identifier">attr_name</span>.<span class="ruby-identifier">to_s</span>] = <span class="ruby-identifier">attr_hash</span>
|
|
214
194
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:attr_accessor</span>, <span class="ruby-identifier">attr_hash</span>[<span class="ruby-value">:accessor</span>]) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">attr_hash</span>[<span class="ruby-value">:computed</span>]
|
|
@@ -240,33 +220,21 @@ accessible as <code>obj.error_style</code>, valid values are
|
|
|
240
220
|
|
|
241
221
|
<h3 id="method-i-define_child_node-label-Parameters">Parameters<span><a href="#method-i-define_child_node-label-Parameters">¶</a> <a href="#top">↑</a></span></h3>
|
|
242
222
|
<ul><li>
|
|
243
|
-
<p><code>klass</code> - Class (descendant of <a
|
|
244
|
-
href="OOXMLObject.html">RubyXL::OOXMLObject</a>) of the child nodes. Child
|
|
245
|
-
node objects will be produced by calling <code>parse</code> method of that
|
|
246
|
-
class.</p>
|
|
223
|
+
<p><code>klass</code> - Class (descendant of <a href="OOXMLObject.html"><code>RubyXL::OOXMLObject</code></a>) of the child nodes. Child node objects will be produced by calling <code>parse</code> method of that class.</p>
|
|
247
224
|
</li><li>
|
|
248
225
|
<p><code>extra_parameters</code> - Hash of optional parameters as follows:</p>
|
|
249
226
|
<ul><li>
|
|
250
|
-
<p><code>:accessor</code> - Name of the accessor for this attribute to be
|
|
251
|
-
defined on the object. If not provided, defaults to classidied
|
|
252
|
-
<code>attribute_name</code>.</p>
|
|
227
|
+
<p><code>:accessor</code> - Name of the accessor for this attribute to be defined on the object. If not provided, defaults to classidied <code>attribute_name</code>.</p>
|
|
253
228
|
</li><li>
|
|
254
|
-
<p><code>:node_name</code> - Node name for the child node, in case it does not
|
|
255
|
-
match the one defined by the <code>klass</code>.</p>
|
|
229
|
+
<p><code>:node_name</code> - Node name for the child node, in case it does not match the one defined by the <code>klass</code>.</p>
|
|
256
230
|
</li><li>
|
|
257
|
-
<p><code>:collection</code> - Whether the child node should be treated as a
|
|
258
|
-
single node or a collection of nodes:</p>
|
|
231
|
+
<p><code>:collection</code> - Whether the child node should be treated as a single node or a collection of nodes:</p>
|
|
259
232
|
<ul><li>
|
|
260
|
-
<p><code>false</code> (default) - child node is directly accessible through
|
|
261
|
-
the respective accessor;</p>
|
|
233
|
+
<p><code>false</code> (default) - child node is directly accessible through the respective accessor;</p>
|
|
262
234
|
</li><li>
|
|
263
|
-
<p><code>true</code> - a collection of child nodes is accessed as
|
|
264
|
-
<code>Array</code> through the respective accessor;</p>
|
|
235
|
+
<p><code>true</code> - a collection of child nodes is accessed as <code>Array</code> through the respective accessor;</p>
|
|
265
236
|
</li><li>
|
|
266
|
-
<p><code>:with_count</code> - same as <code>true</code>, but in addition, the
|
|
267
|
-
attribute <code>count</code> is defined on the current object, that will be
|
|
268
|
-
automatically set to the number of elements in the collection at the start
|
|
269
|
-
of <code>write_xml</code> call.</p>
|
|
237
|
+
<p><code>:with_count</code> - same as <code>true</code>, but in addition, the attribute <code>count</code> is defined on the current object, that will be automatically set to the number of elements in the collection at the start of <code>write_xml</code> call.</p>
|
|
270
238
|
</li></ul>
|
|
271
239
|
</li></ul>
|
|
272
240
|
</li></ul>
|
|
@@ -276,43 +244,38 @@ of <code>write_xml</code> call.</p>
|
|
|
276
244
|
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>)
|
|
277
245
|
</pre>
|
|
278
246
|
|
|
279
|
-
<p>Define a singular child node parsed by the RubyXL::BorderEdge.parse() and
|
|
280
|
-
accessed by the default <code>obj.alignment</code> accessor</p>
|
|
247
|
+
<p>Define a singular child node parsed by the RubyXL::BorderEdge.parse() and accessed by the default <code>obj.alignment</code> accessor</p>
|
|
281
248
|
|
|
282
|
-
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>,
|
|
249
|
+
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>, <span class="ruby-value">:collection</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-value">:hyperlinks</span>)
|
|
283
250
|
</pre>
|
|
284
251
|
|
|
285
|
-
<p>Define an array of nodes accessed by <code>obj.hyperlinks</code> accessor,
|
|
286
|
-
each of which will be parsed by the RubyXL::Hyperlink.parse()</p>
|
|
252
|
+
<p>Define an array of nodes accessed by <code>obj.hyperlinks</code> accessor, each of which will be parsed by the RubyXL::Hyperlink.parse()</p>
|
|
287
253
|
|
|
288
|
-
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>,
|
|
289
|
-
<span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>,
|
|
254
|
+
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>, <span class="ruby-value">:node_name</span> <span class="ruby-operator">=></span> <span class="ruby-value">:left</span>)
|
|
255
|
+
<span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>, <span class="ruby-value">:node_name</span> <span class="ruby-operator">=></span> <span class="ruby-value">:right</span>)
|
|
290
256
|
</pre>
|
|
291
257
|
|
|
292
|
-
<p>Use class <a href="BorderEdge.html">RubyXL::BorderEdge</a> when parsing
|
|
293
|
-
both the elements <code><left ...></code> and <code><right
|
|
294
|
-
...></code> elements.</p>
|
|
258
|
+
<p>Use class <a href="BorderEdge.html"><code>RubyXL::BorderEdge</code></a> when parsing both the elements <code><left ...></code> and <code><right ...></code> elements.</p>
|
|
295
259
|
|
|
296
|
-
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span>,
|
|
260
|
+
<pre class="ruby"><span class="ruby-identifier">define_child_node</span>(<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span>, <span class="ruby-value">:collection</span> <span class="ruby-operator">=></span> <span class="ruby-value">:with_count</span>, <span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-value">:fonts</span>)
|
|
297
261
|
</pre>
|
|
298
262
|
|
|
299
|
-
<p>Upon writing of the object this was defined on, its <code>count</code>
|
|
300
|
-
attribute will be set to the count of nodes in <code>fonts</code> array</p>
|
|
263
|
+
<p>Upon writing of the object this was defined on, its <code>count</code> attribute will be set to the count of nodes in <code>fonts</code> array</p>
|
|
301
264
|
|
|
302
265
|
|
|
303
266
|
|
|
304
267
|
|
|
305
268
|
<div class="method-source-code" id="define_child_node-source">
|
|
306
269
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 76</span>
|
|
307
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">define_child_node</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">extra_params</span> = {})
|
|
270
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_child_node</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">extra_params</span> = {})
|
|
308
271
|
<span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
|
|
309
272
|
<span class="ruby-identifier">child_node_name</span> = (<span class="ruby-identifier">extra_params</span>[<span class="ruby-value">:node_name</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">class_variable_get</span>(<span class="ruby-value">:@@ooxml_tag_name</span>)).<span class="ruby-identifier">to_s</span>
|
|
310
273
|
<span class="ruby-identifier">accessor</span> = (<span class="ruby-identifier">extra_params</span>[<span class="ruby-value">:accessor</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">accessorize</span>(<span class="ruby-identifier">child_node_name</span>)).<span class="ruby-identifier">to_sym</span>
|
|
311
274
|
|
|
312
275
|
<span class="ruby-identifier">child_nodes</span>[<span class="ruby-identifier">child_node_name</span>] = {
|
|
313
|
-
<span class="ruby-value">:class</span>
|
|
314
|
-
<span class="ruby-value">:is_array</span>
|
|
315
|
-
<span class="ruby-value">:accessor</span>
|
|
276
|
+
<span class="ruby-value">:class</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">klass</span>,
|
|
277
|
+
<span class="ruby-value">:is_array</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">extra_params</span>[<span class="ruby-value">:collection</span>],
|
|
278
|
+
<span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">accessor</span>
|
|
316
279
|
}
|
|
317
280
|
|
|
318
281
|
<span class="ruby-identifier">define_count_attribute</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">extra_params</span>[<span class="ruby-value">:collection</span>] <span class="ruby-operator">==</span> <span class="ruby-value">:with_count</span>
|
|
@@ -342,11 +305,7 @@ attribute will be set to the count of nodes in <code>fonts</code> array</p>
|
|
|
342
305
|
|
|
343
306
|
<div class="method-description">
|
|
344
307
|
|
|
345
|
-
<p>Defines the name of the element that represents the current OOXML object.
|
|
346
|
-
Should only be used once per object. In case of different objects
|
|
347
|
-
represented by the same class in different parts of OOXML tree,
|
|
348
|
-
<code>:node_name</code> extra parameter can be used to override the default
|
|
349
|
-
element name.</p>
|
|
308
|
+
<p>Defines the name of the element that represents the current OOXML object. Should only be used once per object. In case of different objects represented by the same class in different parts of OOXML tree, <code>:node_name</code> extra parameter can be used to override the default element name.</p>
|
|
350
309
|
|
|
351
310
|
<h3 id="method-i-define_element_name-label-Parameters">Parameters<span><a href="#method-i-define_element_name-label-Parameters">¶</a> <a href="#top">↑</a></span></h3>
|
|
352
311
|
<ul><li>
|
|
@@ -363,7 +322,7 @@ element name.</p>
|
|
|
363
322
|
|
|
364
323
|
<div class="method-source-code" id="define_element_name-source">
|
|
365
324
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 104</span>
|
|
366
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
|
|
325
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
|
|
367
326
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_set</span>(<span class="ruby-value">:@@ooxml_tag_name</span>, <span class="ruby-identifier">element_name</span>)
|
|
368
327
|
<span class="ruby-keyword">end</span></pre>
|
|
369
328
|
</div>
|
|
@@ -389,22 +348,16 @@ element name.</p>
|
|
|
389
348
|
|
|
390
349
|
<div class="method-description">
|
|
391
350
|
|
|
392
|
-
<p>Get the value of a [sub]class variable if it exists, or create the
|
|
393
|
-
respective variable with the passed-in <code>default</code> (or +{}+, if
|
|
394
|
-
not specified)</p>
|
|
351
|
+
<p>Get the value of a [sub]class variable if it exists, or create the respective variable with the passed-in <code>default</code> (or +{}+, if not specified)</p>
|
|
395
352
|
|
|
396
|
-
<p>Throughout this class, we are setting class variables through explicit
|
|
397
|
-
method calls rather than by directly addressing the name of the variable
|
|
398
|
-
because of context issues: addressing variable by name creates it in the
|
|
399
|
-
context of defining class, while calling the setter/getter method addresses
|
|
400
|
-
it in the context of descendant class, which is what we need.</p>
|
|
353
|
+
<p>Throughout this class, we are setting class variables through explicit method calls rather than by directly addressing the name of the variable because of context issues: addressing variable by name creates it in the context of defining class, while calling the setter/getter method addresses it in the context of descendant class, which is what we need.</p>
|
|
401
354
|
|
|
402
355
|
|
|
403
356
|
|
|
404
357
|
|
|
405
358
|
<div class="method-source-code" id="obtain_class_variable-source">
|
|
406
359
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 15</span>
|
|
407
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">default</span> = {})
|
|
360
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">obtain_class_variable</span>(<span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">default</span> = {})
|
|
408
361
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_get</span>(<span class="ruby-identifier">var_name</span>)
|
|
409
362
|
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">NameError</span>
|
|
410
363
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_set</span>(<span class="ruby-identifier">var_name</span>, <span class="ruby-identifier">default</span>)
|
|
@@ -439,7 +392,7 @@ it in the context of descendant class, which is what we need.</p>
|
|
|
439
392
|
|
|
440
393
|
<div class="method-source-code" id="parse-source">
|
|
441
394
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 108</span>
|
|
442
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">known_namespaces</span> = <span class="ruby-keyword">nil</span>)
|
|
395
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">known_namespaces</span> = <span class="ruby-keyword">nil</span>)
|
|
443
396
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">node</span>
|
|
444
397
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>, <span class="ruby-constant">IO</span>, <span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">InputStream</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">node</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">node</span>)
|
|
445
398
|
<span class="ruby-keyword">end</span>
|
|
@@ -525,8 +478,8 @@ it in the context of descendant class, which is what we need.</p>
|
|
|
525
478
|
|
|
526
479
|
|
|
527
480
|
<footer id="validator-badges" role="contentinfo">
|
|
528
|
-
<p><a href="
|
|
529
|
-
<p>Generated by <a href="https://
|
|
481
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
482
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
|
|
530
483
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
531
484
|
</footer>
|
|
532
485
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL 3.4.
|
|
7
|
+
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL 3.4.4</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -107,8 +107,6 @@
|
|
|
107
107
|
</section>
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
|
|
111
|
-
|
|
112
110
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
113
111
|
|
|
114
112
|
|
|
@@ -166,7 +164,7 @@
|
|
|
166
164
|
|
|
167
165
|
<div class="method-source-code" id="included-source">
|
|
168
166
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 211</span>
|
|
169
|
-
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">klass</span>)
|
|
167
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">included</span>(<span class="ruby-identifier">klass</span>)
|
|
170
168
|
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">OOXMLObjectClassMethods</span>
|
|
171
169
|
<span class="ruby-keyword">end</span></pre>
|
|
172
170
|
</div>
|
|
@@ -199,7 +197,7 @@
|
|
|
199
197
|
|
|
200
198
|
<div class="method-source-code" id="new-source">
|
|
201
199
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 220</span>
|
|
202
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">params</span> = {})
|
|
200
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">params</span> = {})
|
|
203
201
|
<span class="ruby-ivar">@local_namespaces</span> = <span class="ruby-keyword">nil</span>
|
|
204
202
|
|
|
205
203
|
<span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_attributes</span>).<span class="ruby-identifier">each_value</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
|
@@ -246,7 +244,7 @@
|
|
|
246
244
|
|
|
247
245
|
<div class="method-source-code" id="3D-3D-source">
|
|
248
246
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 249</span>
|
|
249
|
-
<span class="ruby-keyword">def</span> <span class="ruby-
|
|
247
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">==</span>(<span class="ruby-identifier">other</span>)
|
|
250
248
|
<span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>) <span class="ruby-operator">&&</span>
|
|
251
249
|
<span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_attributes</span>).<span class="ruby-identifier">all?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">v</span>[<span class="ruby-value">:accessor</span>]) <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">v</span>[<span class="ruby-value">:accessor</span>]) } <span class="ruby-operator">&&</span>
|
|
252
250
|
<span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>).<span class="ruby-identifier">all?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">v</span>[<span class="ruby-value">:accessor</span>]) <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">v</span>[<span class="ruby-value">:accessor</span>]) }
|
|
@@ -274,17 +272,14 @@
|
|
|
274
272
|
|
|
275
273
|
<div class="method-description">
|
|
276
274
|
|
|
277
|
-
<p>Subclass provided filter to perform last-minute operations (cleanup, count,
|
|
278
|
-
etc.) immediately prior to write, along with option to terminate the actual
|
|
279
|
-
write if <code>false</code> is returned (for example, to avoid writing the
|
|
280
|
-
collection's root node if the collection is empty).</p>
|
|
275
|
+
<p>Subclass provided filter to perform last-minute operations (cleanup, count, etc.) immediately prior to write, along with option to terminate the actual write if <code>false</code> is returned (for example, to avoid writing the collection's root node if the collection is empty).</p>
|
|
281
276
|
|
|
282
277
|
|
|
283
278
|
|
|
284
279
|
|
|
285
280
|
<div class="method-source-code" id="before_write_xml-source">
|
|
286
281
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 344</span>
|
|
287
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">before_write_xml</span>
|
|
282
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
|
|
288
283
|
<span class="ruby-comment">#TODO# This will go away once containers are fully implemented.</span>
|
|
289
284
|
<span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
|
|
290
285
|
<span class="ruby-identifier">child_nodes</span>.<span class="ruby-identifier">each_pair</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">child_node_name</span>, <span class="ruby-identifier">child_node_params</span><span class="ruby-operator">|</span>
|
|
@@ -315,17 +310,14 @@ collection's root node if the collection is empty).</p>
|
|
|
315
310
|
|
|
316
311
|
<div class="method-description">
|
|
317
312
|
|
|
318
|
-
<p>Prototype method. For sparse collections (<code>Rows</code>,
|
|
319
|
-
<code>Cells</code>, etc.) must return index at which this object is
|
|
320
|
-
expected to reside in the collection. If <code>nil</code> is returned, then
|
|
321
|
-
object is simply added to the end of the collection.</p>
|
|
313
|
+
<p>Prototype method. For sparse collections (<code>Rows</code>, <code>Cells</code>, etc.) must return index at which this object is expected to reside in the collection. If <code>nil</code> is returned, then object is simply added to the end of the collection.</p>
|
|
322
314
|
|
|
323
315
|
|
|
324
316
|
|
|
325
317
|
|
|
326
318
|
<div class="method-source-code" id="index_in_collection-source">
|
|
327
319
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 332</span>
|
|
328
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">index_in_collection</span>
|
|
320
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">index_in_collection</span>
|
|
329
321
|
<span class="ruby-keyword">nil</span>
|
|
330
322
|
<span class="ruby-keyword">end</span></pre>
|
|
331
323
|
</div>
|
|
@@ -351,22 +343,13 @@ object is simply added to the end of the collection.</p>
|
|
|
351
343
|
|
|
352
344
|
<div class="method-description">
|
|
353
345
|
|
|
354
|
-
<p>Recursively write the OOXML object and all its children out as
|
|
355
|
-
Nokogiri::XML. Immediately before the actual generation,
|
|
356
|
-
+before_write_xml()+ is called to perform last-minute cleanup and
|
|
357
|
-
validation operations; if it returns <code>false</code>, an empty string is
|
|
358
|
-
returned (rather than <code>nil</code>, so Nokogiri::XML's
|
|
359
|
-
<code>&lt;&lt;</code> operator can be used without additional
|
|
360
|
-
<code>nil</code> checking)</p>
|
|
346
|
+
<p>Recursively write the OOXML object and all its children out as Nokogiri::XML. Immediately before the actual generation, +before_write_xml()+ is called to perform last-minute cleanup and validation operations; if it returns <code>false</code>, an empty string is returned (rather than <code>nil</code>, so Nokogiri::XML's <code>&lt;&lt;</code> operator can be used without additional <code>nil</code> checking)</p>
|
|
361
347
|
|
|
362
348
|
<h3 id="method-i-write_xml-label-Parameters">Parameters<span><a href="#method-i-write_xml-label-Parameters">¶</a> <a href="#top">↑</a></span></h3>
|
|
363
349
|
<ul><li>
|
|
364
|
-
<p><code>xml</code> - Base Nokogiri::XML object used for building. If omitted,
|
|
365
|
-
a blank document will be generated.</p>
|
|
350
|
+
<p><code>xml</code> - Base Nokogiri::XML object used for building. If omitted, a blank document will be generated.</p>
|
|
366
351
|
</li><li>
|
|
367
|
-
<p><code>node_name_override</code> - if present, is used instead of the
|
|
368
|
-
default element name for this object provided by
|
|
369
|
-
<code>define_element_name</code></p>
|
|
352
|
+
<p><code>node_name_override</code> - if present, is used instead of the default element name for this object provided by <code>define_element_name</code></p>
|
|
370
353
|
</li></ul>
|
|
371
354
|
|
|
372
355
|
<h4 id="method-i-write_xml-label-Examples">Examples<span><a href="#method-i-write_xml-label-Examples">¶</a> <a href="#top">↑</a></span></h4>
|
|
@@ -374,38 +357,31 @@ default element name for this object provided by
|
|
|
374
357
|
<pre class="ruby"><span class="ruby-identifier">obj</span>.<span class="ruby-identifier">write_xml</span>()
|
|
375
358
|
</pre>
|
|
376
359
|
|
|
377
|
-
<p>Creates a new empty <code>Nokogiri::XML</code>, populates it with the OOXML
|
|
378
|
-
structure as described in the respective definition, and returns the
|
|
379
|
-
resulting <code>Nokogiri::XML</code> object.</p>
|
|
360
|
+
<p>Creates a new empty <code>Nokogiri::XML</code>, populates it with the OOXML structure as described in the respective definition, and returns the resulting <code>Nokogiri::XML</code> object.</p>
|
|
380
361
|
|
|
381
362
|
<pre class="ruby"><span class="ruby-identifier">obj</span>.<span class="ruby-identifier">write_xml</span>(<span class="ruby-identifier">seed_xml</span>)
|
|
382
363
|
</pre>
|
|
383
364
|
|
|
384
|
-
<p>Using the passed-in <code>Nokogiri</code> <code>xml</code> object, creates
|
|
385
|
-
a new element corresponding to <code>obj</code> according to its
|
|
386
|
-
definition, along with all its properties and children, and returns the
|
|
387
|
-
newly created element.</p>
|
|
365
|
+
<p>Using the passed-in <code>Nokogiri</code> <code>xml</code> object, creates a new element corresponding to <code>obj</code> according to its definition, along with all its properties and children, and returns the newly created element.</p>
|
|
388
366
|
|
|
389
367
|
<pre class="ruby"><span class="ruby-identifier">obj</span>.<span class="ruby-identifier">write_xml</span>(<span class="ruby-identifier">seed_xml</span>, <span class="ruby-string">'overriden_element_name'</span>)
|
|
390
368
|
</pre>
|
|
391
369
|
|
|
392
|
-
<p>Same as above, but uses the passed-in <code>node_name_override</code> as
|
|
393
|
-
the new element name, instead of its default name set by
|
|
394
|
-
<code>define_element_name</code>.</p>
|
|
370
|
+
<p>Same as above, but uses the passed-in <code>node_name_override</code> as the new element name, instead of its default name set by <code>define_element_name</code>.</p>
|
|
395
371
|
|
|
396
372
|
|
|
397
373
|
|
|
398
374
|
|
|
399
375
|
<div class="method-source-code" id="write_xml-source">
|
|
400
376
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 269</span>
|
|
401
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">write_xml</span>(<span class="ruby-identifier">xml</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">node_name_override</span> = <span class="ruby-keyword">nil</span>)
|
|
377
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">write_xml</span>(<span class="ruby-identifier">xml</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">node_name_override</span> = <span class="ruby-keyword">nil</span>)
|
|
402
378
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
|
403
379
|
<span class="ruby-identifier">seed_xml</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-string">'<?xml version = "1.0" standalone ="yes"?>'</span>)
|
|
404
380
|
<span class="ruby-identifier">seed_xml</span>.<span class="ruby-identifier">encoding</span> = <span class="ruby-string">'UTF-8'</span>
|
|
405
381
|
<span class="ruby-identifier">result</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">write_xml</span>(<span class="ruby-identifier">seed_xml</span>)
|
|
406
382
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">==</span> <span class="ruby-string">''</span>
|
|
407
383
|
<span class="ruby-identifier">seed_xml</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">result</span>
|
|
408
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">seed_xml</span>.<span class="ruby-identifier">to_xml</span>({ <span class="ruby-value">:indent</span>
|
|
384
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">seed_xml</span>.<span class="ruby-identifier">to_xml</span>({ <span class="ruby-value">:indent</span> <span class="ruby-operator">=></span> <span class="ruby-value">0</span>, <span class="ruby-value">:save_with</span> <span class="ruby-operator">=></span> <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Node</span><span class="ruby-operator">::</span><span class="ruby-constant">SaveOptions</span><span class="ruby-operator">::</span><span class="ruby-constant">AS_XML</span> })
|
|
409
385
|
<span class="ruby-keyword">end</span>
|
|
410
386
|
|
|
411
387
|
<span class="ruby-keyword">return</span> <span class="ruby-string">''</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">before_write_xml</span>
|
|
@@ -495,7 +471,7 @@ the new element name, instead of its default name set by
|
|
|
495
471
|
|
|
496
472
|
<div class="method-source-code" id="get_node_object-source">
|
|
497
473
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 336</span>
|
|
498
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_node_object</span>(<span class="ruby-identifier">child_node_params</span>)
|
|
474
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_node_object</span>(<span class="ruby-identifier">child_node_params</span>)
|
|
499
475
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">child_node_params</span>[<span class="ruby-value">:accessor</span>])
|
|
500
476
|
<span class="ruby-keyword">end</span></pre>
|
|
501
477
|
</div>
|
|
@@ -528,7 +504,7 @@ the new element name, instead of its default name set by
|
|
|
528
504
|
|
|
529
505
|
<div class="method-source-code" id="init_child_nodes-source">
|
|
530
506
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 230</span>
|
|
531
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">init_child_nodes</span>(<span class="ruby-identifier">params</span>)
|
|
507
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">init_child_nodes</span>(<span class="ruby-identifier">params</span>)
|
|
532
508
|
<span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>).<span class="ruby-identifier">each_value</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
|
533
509
|
|
|
534
510
|
<span class="ruby-identifier">initial_value</span> =
|
|
@@ -557,8 +533,8 @@ the new element name, instead of its default name set by
|
|
|
557
533
|
|
|
558
534
|
|
|
559
535
|
<footer id="validator-badges" role="contentinfo">
|
|
560
|
-
<p><a href="
|
|
561
|
-
<p>Generated by <a href="https://
|
|
536
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
537
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1.
|
|
562
538
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
563
539
|
</footer>
|
|
564
540
|
|