rubyXL 3.4.33 → 3.4.35
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 +9 -9
- data/Gemfile +1 -1
- data/README.rdoc +4 -2
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods/cell.rb +5 -4
- data/lib/rubyXL/convenience_methods/workbook.rb +4 -0
- data/lib/rubyXL/objects/cell_style.rb +1 -0
- data/lib/rubyXL/objects/ooxml_object.rb +5 -3
- data/lib/rubyXL/objects/root.rb +1 -1
- data/rdoc/README_rdoc.html +363 -63
- data/rdoc/RubyXL/AExtension.html +157 -50
- data/rdoc/RubyXL/AExtensionStorageArea.html +69 -22
- data/rdoc/RubyXL/ActiveX.html +119 -38
- data/rdoc/RubyXL/ActiveXBinary.html +78 -23
- data/rdoc/RubyXL/AdjustHandleList.html +69 -22
- data/rdoc/RubyXL/Alignment.html +69 -22
- data/rdoc/RubyXL/AlternateContent.html +69 -22
- data/rdoc/RubyXL/AlternateUrls.html +69 -22
- data/rdoc/RubyXL/Authors.html +69 -22
- data/rdoc/RubyXL/AutoFilter.html +69 -22
- data/rdoc/RubyXL/AutoFilterColumn.html +69 -22
- data/rdoc/RubyXL/BinaryImageFile.html +85 -24
- data/rdoc/RubyXL/BodyProperties.html +69 -22
- data/rdoc/RubyXL/BooleanNode.html +69 -22
- data/rdoc/RubyXL/BooleanValue.html +69 -22
- data/rdoc/RubyXL/Border.html +196 -61
- data/rdoc/RubyXL/BorderEdge.html +136 -45
- data/rdoc/RubyXL/Borders.html +105 -36
- data/rdoc/RubyXL/Break.html +69 -22
- data/rdoc/RubyXL/BreakList.html +69 -22
- data/rdoc/RubyXL/CT_AdjPoint2D.html +69 -22
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +69 -22
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +69 -22
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +69 -22
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +69 -22
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +69 -22
- data/rdoc/RubyXL/CT_Backdrop.html +69 -22
- data/rdoc/RubyXL/CT_Bevel.html +69 -22
- data/rdoc/RubyXL/CT_BiLevelEffect.html +69 -22
- data/rdoc/RubyXL/CT_BlendEffect.html +69 -22
- data/rdoc/RubyXL/CT_Blip.html +69 -22
- data/rdoc/RubyXL/CT_BlipFillProperties.html +69 -22
- data/rdoc/RubyXL/CT_BlurEffect.html +69 -22
- data/rdoc/RubyXL/CT_Camera.html +69 -22
- data/rdoc/RubyXL/CT_Color.html +69 -22
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +69 -22
- data/rdoc/RubyXL/CT_ColorMapping.html +69 -22
- data/rdoc/RubyXL/CT_ColorScheme.html +69 -22
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +69 -22
- data/rdoc/RubyXL/CT_ConnectionSite.html +69 -22
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +69 -22
- data/rdoc/RubyXL/CT_DashStop.html +69 -22
- data/rdoc/RubyXL/CT_DashStopList.html +69 -22
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +69 -22
- data/rdoc/RubyXL/CT_DuotoneEffect.html +69 -22
- data/rdoc/RubyXL/CT_EffectContainer.html +69 -22
- data/rdoc/RubyXL/CT_EffectList.html +69 -22
- data/rdoc/RubyXL/CT_EffectReference.html +69 -22
- data/rdoc/RubyXL/CT_EffectStyleItem.html +69 -22
- data/rdoc/RubyXL/CT_EffectStyleList.html +69 -22
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +69 -22
- data/rdoc/RubyXL/CT_FillEffect.html +69 -22
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +69 -22
- data/rdoc/RubyXL/CT_FillStyleList.html +69 -22
- data/rdoc/RubyXL/CT_FlatText.html +69 -22
- data/rdoc/RubyXL/CT_FontCollection.html +69 -22
- data/rdoc/RubyXL/CT_FontReference.html +69 -22
- data/rdoc/RubyXL/CT_GeomGuideList.html +69 -22
- data/rdoc/RubyXL/CT_GlowEffect.html +69 -22
- data/rdoc/RubyXL/CT_GradientFillProperties.html +69 -22
- data/rdoc/RubyXL/CT_GradientStop.html +69 -22
- data/rdoc/RubyXL/CT_GradientStopList.html +69 -22
- data/rdoc/RubyXL/CT_HSLEffect.html +69 -22
- data/rdoc/RubyXL/CT_HslColor.html +69 -22
- data/rdoc/RubyXL/CT_Hyperlink.html +69 -22
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +69 -22
- data/rdoc/RubyXL/CT_LightRig.html +69 -22
- data/rdoc/RubyXL/CT_LineEndProperties.html +69 -22
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +69 -22
- data/rdoc/RubyXL/CT_LineProperties.html +69 -22
- data/rdoc/RubyXL/CT_LineStyleList.html +69 -22
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +69 -22
- data/rdoc/RubyXL/CT_LuminanceEffect.html +69 -22
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +69 -22
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +69 -22
- data/rdoc/RubyXL/CT_Path2D.html +69 -22
- data/rdoc/RubyXL/CT_Path2DArcTo.html +69 -22
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +69 -22
- data/rdoc/RubyXL/CT_Path2DList.html +69 -22
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +69 -22
- data/rdoc/RubyXL/CT_Path2DTo.html +69 -22
- data/rdoc/RubyXL/CT_PathShadeProperties.html +69 -22
- data/rdoc/RubyXL/CT_PatternFillProperties.html +69 -22
- data/rdoc/RubyXL/CT_Point3D.html +69 -22
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +69 -22
- data/rdoc/RubyXL/CT_PresetColor.html +69 -22
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +69 -22
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +69 -22
- data/rdoc/RubyXL/CT_PresetTextShape.html +69 -22
- data/rdoc/RubyXL/CT_ReflectionEffect.html +69 -22
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +69 -22
- data/rdoc/RubyXL/CT_RelativeRect.html +69 -22
- data/rdoc/RubyXL/CT_SRgbColor.html +69 -22
- data/rdoc/RubyXL/CT_ScRgbColor.html +69 -22
- data/rdoc/RubyXL/CT_Scene3D.html +69 -22
- data/rdoc/RubyXL/CT_SchemeColor.html +69 -22
- data/rdoc/RubyXL/CT_Shape3D.html +69 -22
- data/rdoc/RubyXL/CT_ShapeStyle.html +69 -22
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +69 -22
- data/rdoc/RubyXL/CT_SphereCoords.html +69 -22
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +69 -22
- data/rdoc/RubyXL/CT_StyleMatrix.html +69 -22
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +69 -22
- data/rdoc/RubyXL/CT_SupplementalFont.html +69 -22
- data/rdoc/RubyXL/CT_SystemColor.html +69 -22
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +69 -22
- data/rdoc/RubyXL/CT_TextBlipBullet.html +69 -22
- data/rdoc/RubyXL/CT_TextCharBullet.html +69 -22
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +69 -22
- data/rdoc/RubyXL/CT_TextFont.html +69 -22
- data/rdoc/RubyXL/CT_TextListStyle.html +69 -22
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +69 -22
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +69 -22
- data/rdoc/RubyXL/CT_TextSpacing.html +69 -22
- data/rdoc/RubyXL/CT_TextTabStop.html +69 -22
- data/rdoc/RubyXL/CT_TextTabStopList.html +69 -22
- data/rdoc/RubyXL/CT_TileInfoProperties.html +69 -22
- data/rdoc/RubyXL/CT_TintEffect.html +69 -22
- data/rdoc/RubyXL/CT_Transform2D.html +69 -22
- data/rdoc/RubyXL/CT_TransformEffect.html +69 -22
- data/rdoc/RubyXL/CT_Vector3D.html +69 -22
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +69 -22
- data/rdoc/RubyXL/CalculationChain.html +121 -38
- data/rdoc/RubyXL/CalculationChainCell.html +69 -22
- data/rdoc/RubyXL/CalculationProperties.html +69 -22
- data/rdoc/RubyXL/Cell.html +522 -147
- data/rdoc/RubyXL/CellConvenienceMethods.html +1201 -313
- data/rdoc/RubyXL/CellExt.html +69 -22
- data/rdoc/RubyXL/CellSmartTag.html +69 -22
- data/rdoc/RubyXL/CellSmartTagProperty.html +69 -22
- data/rdoc/RubyXL/CellSmartTags.html +69 -22
- data/rdoc/RubyXL/CellStyle.html +69 -22
- data/rdoc/RubyXL/CellStyleXFs.html +105 -36
- data/rdoc/RubyXL/CellStyles.html +105 -36
- data/rdoc/RubyXL/CellValue.html +105 -36
- data/rdoc/RubyXL/CellWatch.html +69 -22
- data/rdoc/RubyXL/CellWatches.html +69 -22
- data/rdoc/RubyXL/CellXFs.html +105 -36
- data/rdoc/RubyXL/ChartColorsFile.html +85 -24
- data/rdoc/RubyXL/ChartFile.html +126 -39
- data/rdoc/RubyXL/ChartStyleFile.html +85 -24
- data/rdoc/RubyXL/ChartUserShapesFile.html +85 -24
- data/rdoc/RubyXL/Chartsheet.html +174 -55
- data/rdoc/RubyXL/ChartsheetPageSetup.html +69 -22
- data/rdoc/RubyXL/ChartsheetProperties.html +69 -22
- data/rdoc/RubyXL/ChartsheetProtection.html +69 -22
- data/rdoc/RubyXL/ChartsheetView.html +69 -22
- data/rdoc/RubyXL/ChartsheetViews.html +69 -22
- data/rdoc/RubyXL/Color.html +114 -37
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +181 -58
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +220 -67
- data/rdoc/RubyXL/ColorConvenienceClasses.html +67 -19
- data/rdoc/RubyXL/ColorConvenienceMethods.html +103 -33
- data/rdoc/RubyXL/ColorFilter.html +69 -22
- data/rdoc/RubyXL/ColorScale.html +69 -22
- data/rdoc/RubyXL/ColorSet.html +69 -22
- data/rdoc/RubyXL/Colors.html +69 -22
- data/rdoc/RubyXL/ColumnRange.html +214 -63
- data/rdoc/RubyXL/ColumnRanges.html +196 -61
- data/rdoc/RubyXL/Comment.html +69 -22
- data/rdoc/RubyXL/CommentList.html +69 -22
- data/rdoc/RubyXL/CommentsFile.html +133 -42
- data/rdoc/RubyXL/ConditionalFormatValue.html +69 -22
- data/rdoc/RubyXL/ConditionalFormatting.html +69 -22
- data/rdoc/RubyXL/ConditionalFormattingRule.html +69 -22
- data/rdoc/RubyXL/Connection.html +69 -22
- data/rdoc/RubyXL/ConnectionTable.html +69 -22
- data/rdoc/RubyXL/ConnectionTables.html +69 -22
- data/rdoc/RubyXL/ConnectionTextField.html +69 -22
- data/rdoc/RubyXL/ConnectionTextFields.html +69 -22
- data/rdoc/RubyXL/Connections.html +121 -38
- data/rdoc/RubyXL/ContentTypeDefault.html +69 -22
- data/rdoc/RubyXL/ContentTypeOverride.html +69 -22
- data/rdoc/RubyXL/ContentTypes.html +152 -47
- data/rdoc/RubyXL/ControlPropertiesFile.html +85 -24
- data/rdoc/RubyXL/CorePropertiesFile.html +374 -107
- data/rdoc/RubyXL/CustomColor.html +69 -22
- data/rdoc/RubyXL/CustomColorList.html +69 -22
- data/rdoc/RubyXL/CustomFilter.html +69 -22
- data/rdoc/RubyXL/CustomFilters.html +69 -22
- data/rdoc/RubyXL/CustomGeometry.html +69 -22
- data/rdoc/RubyXL/CustomProperties.html +69 -22
- data/rdoc/RubyXL/CustomPropertiesFile.html +85 -24
- data/rdoc/RubyXL/CustomProperty.html +69 -22
- data/rdoc/RubyXL/CustomPropertyFile.html +85 -24
- data/rdoc/RubyXL/CustomSheetView.html +69 -22
- data/rdoc/RubyXL/CustomSheetViews.html +69 -22
- data/rdoc/RubyXL/CustomWorkbookView.html +69 -22
- data/rdoc/RubyXL/CustomWorkbookViews.html +69 -22
- data/rdoc/RubyXL/CustomXMLFile.html +78 -23
- data/rdoc/RubyXL/DXF.html +69 -22
- data/rdoc/RubyXL/DXFs.html +69 -22
- data/rdoc/RubyXL/DataBar.html +69 -22
- data/rdoc/RubyXL/DataConsolidate.html +69 -22
- data/rdoc/RubyXL/DataConsolidationReference.html +69 -22
- data/rdoc/RubyXL/DataConsolidationReferences.html +69 -22
- data/rdoc/RubyXL/DataType.html +118 -26
- data/rdoc/RubyXL/DataValidation.html +69 -22
- data/rdoc/RubyXL/DataValidations.html +69 -22
- data/rdoc/RubyXL/DateGroupItem.html +69 -22
- data/rdoc/RubyXL/DefinedName.html +69 -22
- data/rdoc/RubyXL/DefinedNameExt.html +69 -22
- data/rdoc/RubyXL/DefinedNames.html +69 -22
- data/rdoc/RubyXL/DefinedNamesExt.html +69 -22
- data/rdoc/RubyXL/DocumentPropertiesFile.html +164 -51
- data/rdoc/RubyXL/DrawingFile.html +126 -39
- data/rdoc/RubyXL/DynamicFilter.html +69 -22
- data/rdoc/RubyXL/EmbeddedControl.html +69 -22
- data/rdoc/RubyXL/EmbeddedControls.html +69 -22
- data/rdoc/RubyXL/Extension.html +69 -22
- data/rdoc/RubyXL/ExtensionStorageArea.html +69 -22
- data/rdoc/RubyXL/Extents.html +69 -22
- data/rdoc/RubyXL/ExternalBook.html +69 -22
- data/rdoc/RubyXL/ExternalLinksFile.html +126 -39
- data/rdoc/RubyXL/ExternalReference.html +69 -22
- data/rdoc/RubyXL/ExternalReferences.html +69 -22
- data/rdoc/RubyXL/ExtraColorSchemeList.html +69 -22
- data/rdoc/RubyXL/FieldItem.html +69 -22
- data/rdoc/RubyXL/FileRecoveryProperties.html +69 -22
- data/rdoc/RubyXL/FileSharing.html +69 -22
- data/rdoc/RubyXL/FileVersion.html +69 -22
- data/rdoc/RubyXL/Fill.html +105 -36
- data/rdoc/RubyXL/Fills.html +105 -36
- data/rdoc/RubyXL/FilterContainer.html +69 -22
- data/rdoc/RubyXL/FloatNode.html +69 -22
- data/rdoc/RubyXL/FloatValue.html +69 -22
- data/rdoc/RubyXL/Font.html +115 -38
- data/rdoc/RubyXL/FontConvenienceMethods.html +494 -138
- data/rdoc/RubyXL/FontScheme.html +69 -22
- data/rdoc/RubyXL/Fonts.html +105 -36
- data/rdoc/RubyXL/Formula.html +69 -22
- data/rdoc/RubyXL/FunctionGroup.html +69 -22
- data/rdoc/RubyXL/FunctionGroups.html +69 -22
- data/rdoc/RubyXL/GenericStorageObject.html +214 -65
- data/rdoc/RubyXL/GradientFill.html +69 -22
- data/rdoc/RubyXL/HeaderFooterSettings.html +69 -22
- data/rdoc/RubyXL/Hyperlink.html +69 -22
- data/rdoc/RubyXL/HyperlinkRelFile.html +78 -23
- data/rdoc/RubyXL/Hyperlinks.html +69 -22
- data/rdoc/RubyXL/IconFilter.html +69 -22
- data/rdoc/RubyXL/IconSet.html +69 -22
- data/rdoc/RubyXL/IgnoredError.html +69 -22
- data/rdoc/RubyXL/IgnoredErrors.html +69 -22
- data/rdoc/RubyXL/IndexedColors.html +69 -22
- data/rdoc/RubyXL/InputCells.html +69 -22
- data/rdoc/RubyXL/IntegerNode.html +69 -22
- data/rdoc/RubyXL/IntegerValue.html +69 -22
- data/rdoc/RubyXL/LegacyCell.html +103 -33
- data/rdoc/RubyXL/LegacyWorksheet.html +252 -73
- data/rdoc/RubyXL/MRUColors.html +69 -22
- data/rdoc/RubyXL/MacrosFile.html +85 -24
- data/rdoc/RubyXL/MergedCell.html +69 -22
- data/rdoc/RubyXL/MergedCells.html +69 -22
- data/rdoc/RubyXL/NumFmt.html +69 -22
- data/rdoc/RubyXL/NumberFormat.html +105 -36
- data/rdoc/RubyXL/NumberFormats.html +115 -38
- data/rdoc/RubyXL/OLEObject.html +69 -22
- data/rdoc/RubyXL/OLEObjectFile.html +85 -24
- data/rdoc/RubyXL/OLEObjects.html +69 -22
- data/rdoc/RubyXL/OLESize.html +69 -22
- data/rdoc/RubyXL/OOXMLContainerObject.html +295 -99
- data/rdoc/RubyXL/OOXMLIgnored.html +145 -46
- data/rdoc/RubyXL/OOXMLObject.html +74 -23
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +294 -112
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +370 -125
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +429 -124
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +283 -96
- data/rdoc/RubyXL/OdbcOleDbProperties.html +69 -22
- data/rdoc/RubyXL/Offset.html +69 -22
- data/rdoc/RubyXL/OlapProperties.html +69 -22
- data/rdoc/RubyXL/OleItem.html +69 -22
- data/rdoc/RubyXL/OleItems.html +69 -22
- data/rdoc/RubyXL/OleLink.html +69 -22
- data/rdoc/RubyXL/OutlineProperties.html +69 -22
- data/rdoc/RubyXL/PageMargins.html +69 -22
- data/rdoc/RubyXL/PageSetup.html +69 -22
- data/rdoc/RubyXL/PageSetupProperties.html +69 -22
- data/rdoc/RubyXL/Pane.html +69 -22
- data/rdoc/RubyXL/Parser.html +136 -45
- data/rdoc/RubyXL/PatternFill.html +69 -22
- data/rdoc/RubyXL/PersonMetadata.html +85 -24
- data/rdoc/RubyXL/PhoneticProperties.html +69 -22
- data/rdoc/RubyXL/PhoneticRun.html +69 -22
- data/rdoc/RubyXL/PivotArea.html +69 -22
- data/rdoc/RubyXL/PivotCache.html +69 -22
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +90 -25
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +85 -24
- data/rdoc/RubyXL/PivotCaches.html +69 -22
- data/rdoc/RubyXL/PivotReference.html +69 -22
- data/rdoc/RubyXL/PivotReferences.html +69 -22
- data/rdoc/RubyXL/PivotTableFile.html +90 -25
- data/rdoc/RubyXL/PivotTableSelection.html +69 -22
- data/rdoc/RubyXL/PresetGeometry.html +69 -22
- data/rdoc/RubyXL/PrintOptions.html +69 -22
- data/rdoc/RubyXL/PrinterSettingsFile.html +85 -24
- data/rdoc/RubyXL/ProtectedRange.html +69 -22
- data/rdoc/RubyXL/ProtectedRanges.html +69 -22
- data/rdoc/RubyXL/Protection.html +69 -22
- data/rdoc/RubyXL/QueryParameter.html +69 -22
- data/rdoc/RubyXL/QueryParameters.html +69 -22
- data/rdoc/RubyXL/QueryTable.html +126 -39
- data/rdoc/RubyXL/QueryTableDeletedField.html +69 -22
- data/rdoc/RubyXL/QueryTableDeletedFields.html +69 -22
- data/rdoc/RubyXL/QueryTableField.html +69 -22
- data/rdoc/RubyXL/QueryTableFields.html +69 -22
- data/rdoc/RubyXL/QueryTableRefresh.html +69 -22
- data/rdoc/RubyXL/RID.html +69 -22
- data/rdoc/RubyXL/RawOOXML.html +157 -50
- data/rdoc/RubyXL/Reference.html +512 -143
- data/rdoc/RubyXL/Relationship.html +69 -22
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +109 -33
- data/rdoc/RubyXL/RelationshipSupport.html +290 -84
- data/rdoc/RubyXL/RevisionPointer.html +69 -22
- data/rdoc/RubyXL/RichText.html +105 -36
- data/rdoc/RubyXL/RichTextRun.html +105 -36
- data/rdoc/RubyXL/Row.html +367 -106
- data/rdoc/RubyXL/RowExt.html +69 -22
- data/rdoc/RubyXL/RunProperties.html +69 -22
- data/rdoc/RubyXL/Scenario.html +69 -22
- data/rdoc/RubyXL/Scenarios.html +69 -22
- data/rdoc/RubyXL/Selection.html +105 -36
- data/rdoc/RubyXL/ShapeGuide.html +69 -22
- data/rdoc/RubyXL/ShapeTextRectangle.html +69 -22
- data/rdoc/RubyXL/SharedStringsTable.html +321 -96
- data/rdoc/RubyXL/Sheet.html +69 -22
- data/rdoc/RubyXL/SheetCalculationProperties.html +69 -22
- data/rdoc/RubyXL/SheetData.html +136 -45
- data/rdoc/RubyXL/SheetDataExt.html +69 -22
- data/rdoc/RubyXL/SheetDataSet.html +69 -22
- data/rdoc/RubyXL/SheetMetadata.html +85 -24
- data/rdoc/RubyXL/SheetName.html +69 -22
- data/rdoc/RubyXL/SheetNames.html +69 -22
- data/rdoc/RubyXL/Sheets.html +69 -22
- data/rdoc/RubyXL/SlicerCacheFile.html +85 -24
- data/rdoc/RubyXL/SlicerFile.html +85 -24
- data/rdoc/RubyXL/SmartTagProperties.html +69 -22
- data/rdoc/RubyXL/SmartTagType.html +69 -22
- data/rdoc/RubyXL/SmartTagTypes.html +69 -22
- data/rdoc/RubyXL/SmartTags.html +69 -22
- data/rdoc/RubyXL/SortCondition.html +69 -22
- data/rdoc/RubyXL/SortState.html +69 -22
- data/rdoc/RubyXL/Sqref.html +145 -46
- data/rdoc/RubyXL/Stop.html +69 -22
- data/rdoc/RubyXL/StringNode.html +69 -22
- data/rdoc/RubyXL/StringNodeW3C.html +145 -46
- data/rdoc/RubyXL/StringValue.html +69 -22
- data/rdoc/RubyXL/Stylesheet.html +256 -76
- data/rdoc/RubyXL/TableFile.html +85 -24
- data/rdoc/RubyXL/TableParts.html +69 -22
- data/rdoc/RubyXL/TableStyle.html +69 -22
- data/rdoc/RubyXL/TableStyles.html +69 -22
- data/rdoc/RubyXL/Text.html +153 -48
- data/rdoc/RubyXL/TextImportSettings.html +69 -22
- data/rdoc/RubyXL/Theme.html +191 -56
- data/rdoc/RubyXL/ThemeElements.html +69 -22
- data/rdoc/RubyXL/ThumbnailFile.html +85 -24
- data/rdoc/RubyXL/Top10.html +69 -22
- data/rdoc/RubyXL/VMLDrawingFile.html +91 -26
- data/rdoc/RubyXL/Variant.html +69 -22
- data/rdoc/RubyXL/Vector.html +105 -36
- data/rdoc/RubyXL/VectorValue.html +69 -22
- data/rdoc/RubyXL/VisualProperties.html +69 -22
- data/rdoc/RubyXL/WebPublishObject.html +69 -22
- data/rdoc/RubyXL/WebPublishObjects.html +69 -22
- data/rdoc/RubyXL/WebPublishingItem.html +69 -22
- data/rdoc/RubyXL/WebPublishingItems.html +69 -22
- data/rdoc/RubyXL/WebPublishingProperties.html +69 -22
- data/rdoc/RubyXL/WebQueryProperties.html +69 -22
- data/rdoc/RubyXL/Workbook.html +1053 -284
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +623 -175
- data/rdoc/RubyXL/WorkbookProperties.html +69 -22
- data/rdoc/RubyXL/WorkbookProtection.html +69 -22
- data/rdoc/RubyXL/WorkbookRoot.html +271 -82
- data/rdoc/RubyXL/WorkbookView.html +69 -22
- data/rdoc/RubyXL/WorkbookViews.html +69 -22
- data/rdoc/RubyXL/Worksheet.html +373 -110
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +2195 -585
- data/rdoc/RubyXL/WorksheetDimensions.html +69 -22
- data/rdoc/RubyXL/WorksheetFormatProperties.html +69 -22
- data/rdoc/RubyXL/WorksheetProperties.html +69 -22
- data/rdoc/RubyXL/WorksheetProtection.html +69 -22
- data/rdoc/RubyXL/WorksheetView.html +69 -22
- data/rdoc/RubyXL/WorksheetViews.html +69 -22
- data/rdoc/RubyXL/XF.html +69 -22
- data/rdoc/RubyXL.html +778 -134
- data/rdoc/created.rid +7 -7
- data/rdoc/css/rdoc.css +393 -397
- data/rdoc/index.html +42 -408
- data/rdoc/js/darkfish.js +45 -2
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +11 -1
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +44 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +1285 -53
- data/rubyXL.gemspec +15 -30
- data/spec/lib/cell_spec.rb +26 -0
- metadata +5 -5
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
|
|
3
|
-
<html>
|
|
3
|
+
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
|
|
8
|
+
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.35</title>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<meta name="keywords" content="ruby,module,RubyXL::OOXMLObjectClassMethods">
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<meta name="description" content="Documentation for the RubyXL::OOXMLObjectClassMethods module">
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
|
|
7
|
-
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 3.4.33</title>
|
|
8
19
|
|
|
9
20
|
<script type="text/javascript">
|
|
10
21
|
var rdoc_rel_prefix = "../";
|
|
@@ -21,8 +32,14 @@
|
|
|
21
32
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
22
33
|
|
|
23
34
|
|
|
35
|
+
|
|
24
36
|
<body id="top" role="document" class="module">
|
|
25
|
-
<
|
|
37
|
+
<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
|
|
38
|
+
<span aria-hidden="true">☰</span>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<nav id="navigation" role="navigation">
|
|
26
43
|
<div id="project-navigation">
|
|
27
44
|
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
45
|
<h2>
|
|
@@ -55,31 +72,67 @@
|
|
|
55
72
|
|
|
56
73
|
|
|
57
74
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<
|
|
71
|
-
<
|
|
72
|
-
<li ><a href="#method-i-define_relationship">#define_relationship</a>
|
|
73
|
-
<li ><a href="#method-i-obtain_class_variable">#obtain_class_variable</a>
|
|
74
|
-
<li ><a href="#method-i-parse">#parse</a>
|
|
75
|
-
</ul>
|
|
76
|
-
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<div class="nav-section">
|
|
87
|
+
<h3>Instance Methods</h3>
|
|
88
|
+
<ul class="link-list" role="directory">
|
|
77
89
|
|
|
90
|
+
<li ><a href="#method-i-define_attribute">define_attribute</a></li>
|
|
91
|
+
|
|
92
|
+
<li ><a href="#method-i-define_child_node">define_child_node</a></li>
|
|
93
|
+
|
|
94
|
+
<li ><a href="#method-i-define_element_name">define_element_name</a></li>
|
|
95
|
+
|
|
96
|
+
<li ><a href="#method-i-define_relationship">define_relationship</a></li>
|
|
97
|
+
|
|
98
|
+
<li ><a href="#method-i-obtain_class_variable">obtain_class_variable</a></li>
|
|
99
|
+
|
|
100
|
+
<li ><a href="#method-i-parse">parse</a></li>
|
|
101
|
+
|
|
102
|
+
</ul>
|
|
78
103
|
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
<footer id="validator-badges" role="contentinfo">
|
|
108
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
|
|
109
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.15.1.</p>
|
|
110
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>
|
|
111
|
+
</footer>
|
|
112
|
+
|
|
79
113
|
</nav>
|
|
80
114
|
|
|
81
115
|
<main role="main" aria-labelledby="module-RubyXL::OOXMLObjectClassMethods">
|
|
82
|
-
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
<ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb">
|
|
119
|
+
|
|
120
|
+
<li>
|
|
121
|
+
|
|
122
|
+
<a href="../RubyXL.html">RubyXL</a><span>::</span>
|
|
123
|
+
|
|
124
|
+
</li>
|
|
125
|
+
|
|
126
|
+
<li>
|
|
127
|
+
|
|
128
|
+
<span>OOXMLObjectClassMethods</span>
|
|
129
|
+
|
|
130
|
+
</li>
|
|
131
|
+
|
|
132
|
+
</ol>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<h1 id="module-RubyXL::OOXMLObjectClassMethods" class="anchor-link module">
|
|
83
136
|
module RubyXL::OOXMLObjectClassMethods
|
|
84
137
|
</h1>
|
|
85
138
|
|
|
@@ -87,27 +140,60 @@
|
|
|
87
140
|
|
|
88
141
|
</section>
|
|
89
142
|
|
|
90
|
-
|
|
143
|
+
|
|
144
|
+
<section id="5Buntitled-5D" class="documentation-section anchor-link">
|
|
145
|
+
|
|
146
|
+
|
|
91
147
|
|
|
92
148
|
|
|
93
149
|
|
|
94
150
|
|
|
95
151
|
|
|
96
|
-
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
|
|
97
155
|
<header>
|
|
98
156
|
<h3>Public Instance Methods</h3>
|
|
99
157
|
</header>
|
|
100
158
|
|
|
101
|
-
|
|
159
|
+
|
|
160
|
+
<div id="method-i-define_attribute" class="method-detail anchor-link ">
|
|
102
161
|
<div class="method-header">
|
|
103
|
-
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
162
|
+
|
|
163
|
+
<div class="method-heading">
|
|
164
|
+
<a href="#method-i-define_attribute" title="Link to this method">
|
|
165
|
+
<span class="method-name">define_attribute</span>
|
|
166
|
+
<span class="method-args">(attr_name, attr_type, extra_params = nil)</span>
|
|
167
|
+
</a>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
108
170
|
</div>
|
|
109
171
|
|
|
172
|
+
|
|
173
|
+
<div class="method-controls">
|
|
174
|
+
<details class="method-source-toggle">
|
|
175
|
+
<summary>Source</summary>
|
|
176
|
+
</details>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
110
181
|
<div class="method-description">
|
|
182
|
+
|
|
183
|
+
<div class="method-source-code" id="define_attribute-source">
|
|
184
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 50</span>
|
|
185
|
+
<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> = <span class="ruby-keyword">nil</span>)
|
|
186
|
+
<span class="ruby-identifier">attrs</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_attributes</span>)
|
|
187
|
+
<span class="ruby-identifier">attr_hash</span> = { <span class="ruby-value">:attr_type</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">attr_type</span> }
|
|
188
|
+
<span class="ruby-identifier">attr_hash</span>.<span class="ruby-identifier">merge!</span>(<span class="ruby-identifier">extra_params</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">extra_params</span>
|
|
189
|
+
<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>)
|
|
190
|
+
<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>
|
|
191
|
+
<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>]
|
|
192
|
+
<span class="ruby-keyword">end</span></pre>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
111
197
|
<p>Defines an attribute of OOXML object.</p>
|
|
112
198
|
|
|
113
199
|
<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>
|
|
@@ -133,7 +219,7 @@
|
|
|
133
219
|
</li><li>
|
|
134
220
|
<p><code>:bool</code> - <code>Boolean</code> (“1” and “true” convert to <code>true</code>, others to <code>false</code>)</p>
|
|
135
221
|
</li><li>
|
|
136
|
-
<p>one of <
|
|
222
|
+
<p>one of <a href="../lib/rubyXL/objects/simple_types_rb.html">simple_types</a> - <code>String</code>, plus the list of acceptable values is saved for future validation (not used yet).</p>
|
|
137
223
|
</li></ul>
|
|
138
224
|
</li><li>
|
|
139
225
|
<p><code>extra_parameters</code> - Hash of optional parameters as follows:</p>
|
|
@@ -170,32 +256,60 @@
|
|
|
170
256
|
|
|
171
257
|
<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>
|
|
172
258
|
|
|
173
|
-
|
|
174
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 48</span>
|
|
175
|
-
<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> = <span class="ruby-keyword">nil</span>)
|
|
176
|
-
<span class="ruby-identifier">attrs</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_attributes</span>)
|
|
177
|
-
<span class="ruby-identifier">attr_hash</span> = { <span class="ruby-value">:attr_type</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">attr_type</span> }
|
|
178
|
-
<span class="ruby-identifier">attr_hash</span>.<span class="ruby-identifier">merge!</span>(<span class="ruby-identifier">extra_params</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">extra_params</span>
|
|
179
|
-
<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>)
|
|
180
|
-
<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>
|
|
181
|
-
<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>]
|
|
182
|
-
<span class="ruby-keyword">end</span></pre>
|
|
183
|
-
</div>
|
|
259
|
+
|
|
184
260
|
</div>
|
|
185
261
|
|
|
186
262
|
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
187
266
|
</div>
|
|
188
267
|
|
|
189
|
-
|
|
268
|
+
|
|
269
|
+
<div id="method-i-define_child_node" class="method-detail anchor-link ">
|
|
190
270
|
<div class="method-header">
|
|
191
|
-
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
271
|
+
|
|
272
|
+
<div class="method-heading">
|
|
273
|
+
<a href="#method-i-define_child_node" title="Link to this method">
|
|
274
|
+
<span class="method-name">define_child_node</span>
|
|
275
|
+
<span class="method-args">(klass, extra_params = {})</span>
|
|
276
|
+
</a>
|
|
277
|
+
</div>
|
|
278
|
+
|
|
196
279
|
</div>
|
|
197
280
|
|
|
281
|
+
|
|
282
|
+
<div class="method-controls">
|
|
283
|
+
<details class="method-source-toggle">
|
|
284
|
+
<summary>Source</summary>
|
|
285
|
+
</details>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
198
290
|
<div class="method-description">
|
|
291
|
+
|
|
292
|
+
<div class="method-source-code" id="define_child_node-source">
|
|
293
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 84</span>
|
|
294
|
+
<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> = {})
|
|
295
|
+
<span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
|
|
296
|
+
<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>
|
|
297
|
+
<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>
|
|
298
|
+
|
|
299
|
+
<span class="ruby-identifier">child_nodes</span>[<span class="ruby-identifier">child_node_name</span>] = {
|
|
300
|
+
<span class="ruby-value">:class</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">klass</span>,
|
|
301
|
+
<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>],
|
|
302
|
+
<span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">accessor</span>
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
<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>
|
|
306
|
+
|
|
307
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:attr_accessor</span>, <span class="ruby-identifier">accessor</span>)
|
|
308
|
+
<span class="ruby-keyword">end</span></pre>
|
|
309
|
+
</div>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
199
313
|
<p>Defines a child node of OOXML object.</p>
|
|
200
314
|
|
|
201
315
|
<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,39 +356,48 @@
|
|
|
242
356
|
|
|
243
357
|
<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>
|
|
244
358
|
|
|
245
|
-
<div class="method-source-code" id="define_child_node-source">
|
|
246
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 82</span>
|
|
247
|
-
<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> = {})
|
|
248
|
-
<span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
|
|
249
|
-
<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>
|
|
250
|
-
<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>
|
|
251
359
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<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>],
|
|
255
|
-
<span class="ruby-value">:accessor</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">accessor</span>
|
|
256
|
-
}
|
|
360
|
+
</div>
|
|
361
|
+
|
|
257
362
|
|
|
258
|
-
<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>
|
|
259
363
|
|
|
260
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:attr_accessor</span>, <span class="ruby-identifier">accessor</span>)
|
|
261
|
-
<span class="ruby-keyword">end</span></pre>
|
|
262
|
-
</div>
|
|
263
|
-
</div>
|
|
264
364
|
|
|
265
365
|
|
|
266
366
|
</div>
|
|
267
367
|
|
|
268
|
-
|
|
368
|
+
|
|
369
|
+
<div id="method-i-define_element_name" class="method-detail anchor-link ">
|
|
269
370
|
<div class="method-header">
|
|
270
|
-
|
|
271
|
-
<
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
371
|
+
|
|
372
|
+
<div class="method-heading">
|
|
373
|
+
<a href="#method-i-define_element_name" title="Link to this method">
|
|
374
|
+
<span class="method-name">define_element_name</span>
|
|
375
|
+
<span class="method-args">(element_name)</span>
|
|
376
|
+
</a>
|
|
377
|
+
</div>
|
|
378
|
+
|
|
275
379
|
</div>
|
|
276
380
|
|
|
381
|
+
|
|
382
|
+
<div class="method-controls">
|
|
383
|
+
<details class="method-source-toggle">
|
|
384
|
+
<summary>Source</summary>
|
|
385
|
+
</details>
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
277
390
|
<div class="method-description">
|
|
391
|
+
|
|
392
|
+
<div class="method-source-code" id="define_element_name-source">
|
|
393
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 112</span>
|
|
394
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
|
|
395
|
+
<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>)
|
|
396
|
+
<span class="ruby-keyword">end</span></pre>
|
|
397
|
+
</div>
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
278
401
|
<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>
|
|
279
402
|
|
|
280
403
|
<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>
|
|
@@ -287,81 +410,135 @@
|
|
|
287
410
|
<pre class="ruby"><span class="ruby-identifier">define_element_name</span> <span class="ruby-string">'externalReference'</span>
|
|
288
411
|
</pre>
|
|
289
412
|
|
|
290
|
-
|
|
291
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 110</span>
|
|
292
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
|
|
293
|
-
<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>)
|
|
294
|
-
<span class="ruby-keyword">end</span></pre>
|
|
295
|
-
</div>
|
|
413
|
+
|
|
296
414
|
</div>
|
|
297
415
|
|
|
298
416
|
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
299
420
|
</div>
|
|
300
421
|
|
|
301
|
-
|
|
422
|
+
|
|
423
|
+
<div id="method-i-define_relationship" class="method-detail anchor-link ">
|
|
302
424
|
<div class="method-header">
|
|
303
|
-
|
|
304
|
-
<
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
425
|
+
|
|
426
|
+
<div class="method-heading">
|
|
427
|
+
<a href="#method-i-define_relationship" title="Link to this method">
|
|
428
|
+
<span class="method-name">define_relationship</span>
|
|
429
|
+
<span class="method-args">(extra_params = {})</span>
|
|
430
|
+
</a>
|
|
431
|
+
</div>
|
|
432
|
+
|
|
308
433
|
</div>
|
|
309
434
|
|
|
435
|
+
|
|
436
|
+
<div class="method-controls">
|
|
437
|
+
<details class="method-source-toggle">
|
|
438
|
+
<summary>Source</summary>
|
|
439
|
+
</details>
|
|
440
|
+
</div>
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
310
444
|
<div class="method-description">
|
|
311
|
-
<p>Defines a ‘r:id` attribute</p>
|
|
312
445
|
|
|
313
446
|
<div class="method-source-code" id="define_relationship-source">
|
|
314
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line
|
|
447
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 60</span>
|
|
315
448
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_relationship</span>(<span class="ruby-identifier">extra_params</span> = {})
|
|
316
449
|
<span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:'r:id'</span>, <span class="ruby-value">:string</span>, <span class="ruby-identifier">extra_params</span>)
|
|
317
450
|
<span class="ruby-keyword">end</span></pre>
|
|
318
451
|
</div>
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
<p>Defines a ‘r:id` attribute</p>
|
|
456
|
+
|
|
457
|
+
|
|
319
458
|
</div>
|
|
320
459
|
|
|
321
460
|
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
322
464
|
</div>
|
|
323
465
|
|
|
324
|
-
|
|
466
|
+
|
|
467
|
+
<div id="method-i-obtain_class_variable" class="method-detail anchor-link ">
|
|
325
468
|
<div class="method-header">
|
|
326
|
-
|
|
327
|
-
<
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
469
|
+
|
|
470
|
+
<div class="method-heading">
|
|
471
|
+
<a href="#method-i-obtain_class_variable" title="Link to this method">
|
|
472
|
+
<span class="method-name">obtain_class_variable</span>
|
|
473
|
+
<span class="method-args">(var_name, default = nil)</span>
|
|
474
|
+
</a>
|
|
475
|
+
</div>
|
|
476
|
+
|
|
331
477
|
</div>
|
|
332
478
|
|
|
333
|
-
<div class="method-description">
|
|
334
|
-
<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>
|
|
335
479
|
|
|
336
|
-
<
|
|
480
|
+
<div class="method-controls">
|
|
481
|
+
<details class="method-source-toggle">
|
|
482
|
+
<summary>Source</summary>
|
|
483
|
+
</details>
|
|
484
|
+
</div>
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
<div class="method-description">
|
|
337
489
|
|
|
338
490
|
<div class="method-source-code" id="obtain_class_variable-source">
|
|
339
491
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 15</span>
|
|
340
492
|
<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> = <span class="ruby-keyword">nil</span>)
|
|
341
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
|
342
|
-
<span class="ruby-keyword">
|
|
343
|
-
<span class="ruby-keyword">
|
|
493
|
+
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_defined?</span> <span class="ruby-identifier">var_name</span>
|
|
494
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class_variable_get</span>(<span class="ruby-identifier">var_name</span>)
|
|
495
|
+
<span class="ruby-keyword">else</span>
|
|
496
|
+
<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> <span class="ruby-operator">||</span> {})
|
|
497
|
+
<span class="ruby-keyword">end</span>
|
|
344
498
|
<span class="ruby-keyword">end</span></pre>
|
|
345
499
|
</div>
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
<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>
|
|
504
|
+
|
|
505
|
+
<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>
|
|
506
|
+
|
|
507
|
+
|
|
346
508
|
</div>
|
|
347
509
|
|
|
348
510
|
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
349
514
|
</div>
|
|
350
515
|
|
|
351
|
-
|
|
516
|
+
|
|
517
|
+
<div id="method-i-parse" class="method-detail anchor-link ">
|
|
352
518
|
<div class="method-header">
|
|
353
|
-
|
|
354
|
-
<
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
519
|
+
|
|
520
|
+
<div class="method-heading">
|
|
521
|
+
<a href="#method-i-parse" title="Link to this method">
|
|
522
|
+
<span class="method-name">parse</span>
|
|
523
|
+
<span class="method-args">(node, known_namespaces = nil)</span>
|
|
524
|
+
</a>
|
|
525
|
+
</div>
|
|
526
|
+
|
|
358
527
|
</div>
|
|
359
528
|
|
|
529
|
+
|
|
530
|
+
<div class="method-controls">
|
|
531
|
+
<details class="method-source-toggle">
|
|
532
|
+
<summary>Source</summary>
|
|
533
|
+
</details>
|
|
534
|
+
</div>
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
360
538
|
<div class="method-description">
|
|
361
|
-
|
|
362
539
|
|
|
363
540
|
<div class="method-source-code" id="parse-source">
|
|
364
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line
|
|
541
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 116</span>
|
|
365
542
|
<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>)
|
|
366
543
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">node</span>
|
|
367
544
|
<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>)
|
|
@@ -436,20 +613,25 @@
|
|
|
436
613
|
<span class="ruby-identifier">obj</span>
|
|
437
614
|
<span class="ruby-keyword">end</span></pre>
|
|
438
615
|
</div>
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
439
622
|
</div>
|
|
440
623
|
|
|
441
624
|
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
442
628
|
</div>
|
|
443
629
|
|
|
630
|
+
|
|
444
631
|
</section>
|
|
445
632
|
|
|
446
633
|
</section>
|
|
447
|
-
</main>
|
|
448
634
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
452
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.6.3.1.
|
|
453
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
454
|
-
</footer>
|
|
635
|
+
</main>
|
|
636
|
+
</body>
|
|
455
637
|
|