rubyXL 3.4.5 → 3.4.18
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 +2 -1
- data/Gemfile +3 -3
- data/Gemfile.lock +76 -51
- data/LICENSE.txt +1 -1
- data/README.rdoc +10 -2
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods/cell.rb +11 -1
- data/lib/rubyXL/convenience_methods/color.rb +5 -3
- data/lib/rubyXL/convenience_methods/worksheet.rb +77 -0
- data/lib/rubyXL/objects/chartsheet.rb +1 -1
- data/lib/rubyXL/objects/data_validation.rb +2 -0
- data/lib/rubyXL/objects/document_properties.rb +2 -2
- data/lib/rubyXL/objects/external_links.rb +25 -1
- data/lib/rubyXL/objects/ooxml_object.rb +13 -1
- data/lib/rubyXL/objects/relationships.rb +1 -1
- data/lib/rubyXL/objects/sheet_data.rb +11 -4
- data/lib/rubyXL/objects/storage.rb +1 -0
- data/lib/rubyXL/objects/text.rb +1 -1
- data/lib/rubyXL/objects/theme.rb +1 -1
- data/lib/rubyXL/objects/workbook.rb +24 -10
- data/lib/rubyXL/objects/worksheet.rb +7 -7
- data/lib/rubyXL/worksheet.rb +2 -0
- data/rdoc/README_rdoc.html +22 -10
- data/rdoc/RubyXL/AExtension.html +14 -51
- data/rdoc/RubyXL/AExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/ActiveX.html +16 -42
- data/rdoc/RubyXL/ActiveXBinary.html +10 -19
- data/rdoc/RubyXL/AdjustHandleList.html +10 -14
- data/rdoc/RubyXL/Alignment.html +10 -14
- data/rdoc/RubyXL/AlternateContent.html +10 -14
- data/rdoc/RubyXL/Authors.html +10 -14
- data/rdoc/RubyXL/AutoFilter.html +10 -14
- data/rdoc/RubyXL/AutoFilterColumn.html +10 -14
- data/rdoc/RubyXL/BinaryImageFile.html +10 -22
- data/rdoc/RubyXL/BodyProperties.html +10 -14
- data/rdoc/RubyXL/BooleanNode.html +10 -14
- data/rdoc/RubyXL/BooleanValue.html +10 -14
- data/rdoc/RubyXL/Border.html +13 -70
- data/rdoc/RubyXL/BorderEdge.html +13 -44
- data/rdoc/RubyXL/Borders.html +13 -31
- data/rdoc/RubyXL/Break.html +10 -14
- data/rdoc/RubyXL/BreakList.html +10 -14
- data/rdoc/RubyXL/CT_AdjPoint2D.html +10 -14
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +10 -14
- data/rdoc/RubyXL/CT_Backdrop.html +10 -14
- data/rdoc/RubyXL/CT_Bevel.html +10 -14
- data/rdoc/RubyXL/CT_BiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_BlendEffect.html +10 -14
- data/rdoc/RubyXL/CT_Blip.html +10 -14
- data/rdoc/RubyXL/CT_BlipFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_BlurEffect.html +10 -14
- data/rdoc/RubyXL/CT_Camera.html +10 -14
- data/rdoc/RubyXL/CT_Color.html +10 -14
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +10 -14
- data/rdoc/RubyXL/CT_ColorMapping.html +10 -14
- data/rdoc/RubyXL/CT_ColorScheme.html +10 -14
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSite.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +10 -14
- data/rdoc/RubyXL/CT_DashStop.html +10 -14
- data/rdoc/RubyXL/CT_DashStopList.html +10 -14
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +10 -14
- data/rdoc/RubyXL/CT_DuotoneEffect.html +10 -14
- data/rdoc/RubyXL/CT_EffectContainer.html +10 -14
- data/rdoc/RubyXL/CT_EffectList.html +10 -14
- data/rdoc/RubyXL/CT_EffectReference.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleItem.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleList.html +10 -14
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +10 -14
- data/rdoc/RubyXL/CT_FillEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillStyleList.html +10 -14
- data/rdoc/RubyXL/CT_FlatText.html +10 -14
- data/rdoc/RubyXL/CT_FontCollection.html +10 -14
- data/rdoc/RubyXL/CT_FontReference.html +10 -14
- data/rdoc/RubyXL/CT_GeomGuideList.html +10 -14
- data/rdoc/RubyXL/CT_GlowEffect.html +10 -14
- data/rdoc/RubyXL/CT_GradientFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_GradientStop.html +10 -14
- data/rdoc/RubyXL/CT_GradientStopList.html +10 -14
- data/rdoc/RubyXL/CT_HSLEffect.html +10 -14
- data/rdoc/RubyXL/CT_HslColor.html +10 -14
- data/rdoc/RubyXL/CT_Hyperlink.html +10 -14
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_LightRig.html +10 -14
- data/rdoc/RubyXL/CT_LineEndProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineStyleList.html +10 -14
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_LuminanceEffect.html +10 -14
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +10 -14
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_Path2D.html +10 -14
- data/rdoc/RubyXL/CT_Path2DArcTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DList.html +10 -14
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DTo.html +10 -14
- data/rdoc/RubyXL/CT_PathShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_PatternFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_Point3D.html +10 -14
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CT_PresetColor.html +10 -14
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +10 -14
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_PresetTextShape.html +10 -14
- data/rdoc/RubyXL/CT_ReflectionEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeRect.html +10 -14
- data/rdoc/RubyXL/CT_SRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_ScRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_Scene3D.html +10 -14
- data/rdoc/RubyXL/CT_SchemeColor.html +10 -14
- data/rdoc/RubyXL/CT_Shape3D.html +10 -14
- data/rdoc/RubyXL/CT_ShapeStyle.html +10 -14
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +10 -14
- data/rdoc/RubyXL/CT_SphereCoords.html +10 -14
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrix.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +10 -14
- data/rdoc/RubyXL/CT_SupplementalFont.html +10 -14
- data/rdoc/RubyXL/CT_SystemColor.html +10 -14
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextBlipBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextFont.html +10 -14
- data/rdoc/RubyXL/CT_TextListStyle.html +10 -14
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +10 -14
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextSpacing.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStop.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStopList.html +10 -14
- data/rdoc/RubyXL/CT_TileInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_TintEffect.html +10 -14
- data/rdoc/RubyXL/CT_Transform2D.html +10 -14
- data/rdoc/RubyXL/CT_TransformEffect.html +10 -14
- data/rdoc/RubyXL/CT_Vector3D.html +10 -14
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CalculationChain.html +13 -39
- data/rdoc/RubyXL/CalculationChainCell.html +10 -14
- data/rdoc/RubyXL/CalculationProperties.html +10 -14
- data/rdoc/RubyXL/Cell.html +28 -221
- data/rdoc/RubyXL/CellConvenienceMethods.html +70 -475
- data/rdoc/RubyXL/CellExt.html +10 -14
- data/rdoc/RubyXL/CellSmartTag.html +10 -14
- data/rdoc/RubyXL/CellSmartTagProperty.html +10 -14
- data/rdoc/RubyXL/CellSmartTags.html +10 -14
- data/rdoc/RubyXL/CellStyle.html +10 -14
- data/rdoc/RubyXL/CellStyleXFs.html +13 -31
- data/rdoc/RubyXL/CellStyles.html +13 -31
- data/rdoc/RubyXL/CellValue.html +13 -31
- data/rdoc/RubyXL/CellWatch.html +10 -14
- data/rdoc/RubyXL/CellWatches.html +10 -14
- data/rdoc/RubyXL/CellXFs.html +13 -31
- data/rdoc/RubyXL/ChartColorsFile.html +10 -22
- data/rdoc/RubyXL/ChartFile.html +15 -44
- data/rdoc/RubyXL/ChartStyleFile.html +10 -22
- data/rdoc/RubyXL/ChartUserShapesFile.html +10 -22
- data/rdoc/RubyXL/Chartsheet.html +15 -61
- data/rdoc/RubyXL/ChartsheetPageSetup.html +10 -14
- data/rdoc/RubyXL/ChartsheetProperties.html +10 -14
- data/rdoc/RubyXL/ChartsheetProtection.html +10 -14
- data/rdoc/RubyXL/ChartsheetView.html +10 -14
- data/rdoc/RubyXL/ChartsheetViews.html +10 -14
- data/rdoc/RubyXL/Color.html +13 -36
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +15 -60
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +19 -76
- data/rdoc/RubyXL/ColorConvenienceClasses.html +8 -11
- data/rdoc/RubyXL/ColorConvenienceMethods.html +11 -28
- data/rdoc/RubyXL/ColorFilter.html +10 -14
- data/rdoc/RubyXL/ColorScale.html +10 -14
- data/rdoc/RubyXL/ColorSet.html +10 -14
- data/rdoc/RubyXL/Colors.html +10 -14
- data/rdoc/RubyXL/ColumnRange.html +13 -62
- data/rdoc/RubyXL/ColumnRanges.html +13 -70
- data/rdoc/RubyXL/Comment.html +10 -14
- data/rdoc/RubyXL/CommentList.html +10 -14
- data/rdoc/RubyXL/CommentsFile.html +13 -44
- data/rdoc/RubyXL/ConditionalFormatValue.html +10 -14
- data/rdoc/RubyXL/ConditionalFormatting.html +10 -14
- data/rdoc/RubyXL/ConditionalFormattingRule.html +10 -14
- data/rdoc/RubyXL/Connection.html +10 -14
- data/rdoc/RubyXL/ConnectionTable.html +10 -14
- data/rdoc/RubyXL/ConnectionTables.html +10 -14
- data/rdoc/RubyXL/ConnectionTextField.html +10 -14
- data/rdoc/RubyXL/ConnectionTextFields.html +10 -14
- data/rdoc/RubyXL/Connections.html +13 -39
- data/rdoc/RubyXL/ContentTypeDefault.html +10 -14
- data/rdoc/RubyXL/ContentTypeOverride.html +10 -14
- data/rdoc/RubyXL/ContentTypes.html +13 -52
- data/rdoc/RubyXL/ControlPropertiesFile.html +12 -19
- data/rdoc/RubyXL/CorePropertiesFile.html +15 -150
- data/rdoc/RubyXL/CustomColor.html +10 -14
- data/rdoc/RubyXL/CustomColorList.html +10 -14
- data/rdoc/RubyXL/CustomFilter.html +10 -14
- data/rdoc/RubyXL/CustomFilters.html +10 -14
- data/rdoc/RubyXL/CustomGeometry.html +10 -14
- data/rdoc/RubyXL/CustomProperties.html +10 -14
- data/rdoc/RubyXL/CustomPropertiesFile.html +10 -22
- data/rdoc/RubyXL/CustomProperty.html +10 -14
- data/rdoc/RubyXL/CustomPropertyFile.html +10 -22
- data/rdoc/RubyXL/CustomSheetView.html +10 -14
- data/rdoc/RubyXL/CustomSheetViews.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookView.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookViews.html +10 -14
- data/rdoc/RubyXL/CustomXMLFile.html +10 -19
- data/rdoc/RubyXL/DXF.html +10 -14
- data/rdoc/RubyXL/DXFs.html +10 -14
- data/rdoc/RubyXL/DataBar.html +10 -14
- data/rdoc/RubyXL/DataConsolidate.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReference.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReferences.html +10 -14
- data/rdoc/RubyXL/DataType.html +8 -34
- data/rdoc/RubyXL/DataValidation.html +10 -14
- data/rdoc/RubyXL/DataValidations.html +10 -14
- data/rdoc/RubyXL/DateGroupItem.html +10 -14
- data/rdoc/RubyXL/DefinedName.html +10 -14
- data/rdoc/RubyXL/DefinedNameExt.html +10 -14
- data/rdoc/RubyXL/DefinedNames.html +10 -14
- data/rdoc/RubyXL/DefinedNamesExt.html +10 -14
- data/rdoc/RubyXL/DocumentPropertiesFile.html +13 -57
- data/rdoc/RubyXL/DrawingFile.html +15 -44
- data/rdoc/RubyXL/DynamicFilter.html +10 -14
- data/rdoc/RubyXL/EmbeddedControl.html +10 -14
- data/rdoc/RubyXL/EmbeddedControls.html +10 -14
- data/rdoc/RubyXL/Extension.html +10 -14
- data/rdoc/RubyXL/ExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/Extents.html +10 -14
- data/rdoc/RubyXL/ExternalBook.html +10 -14
- data/rdoc/RubyXL/ExternalLinksFile.html +16 -45
- data/rdoc/RubyXL/ExternalReference.html +10 -14
- data/rdoc/RubyXL/ExternalReferences.html +10 -14
- data/rdoc/RubyXL/ExtraColorSchemeList.html +10 -14
- data/rdoc/RubyXL/FieldItem.html +10 -14
- data/rdoc/RubyXL/FileRecoveryProperties.html +10 -14
- data/rdoc/RubyXL/FileSharing.html +10 -14
- data/rdoc/RubyXL/FileVersion.html +10 -14
- data/rdoc/RubyXL/Fill.html +13 -31
- data/rdoc/RubyXL/Fills.html +13 -31
- data/rdoc/RubyXL/FilterContainer.html +10 -14
- data/rdoc/RubyXL/FloatNode.html +10 -14
- data/rdoc/RubyXL/FloatValue.html +10 -14
- data/rdoc/RubyXL/Font.html +13 -36
- data/rdoc/RubyXL/FontConvenienceMethods.html +11 -197
- data/rdoc/RubyXL/FontScheme.html +10 -14
- data/rdoc/RubyXL/Fonts.html +13 -31
- data/rdoc/RubyXL/Formula.html +10 -14
- data/rdoc/RubyXL/FunctionGroup.html +10 -14
- data/rdoc/RubyXL/FunctionGroups.html +10 -14
- data/rdoc/RubyXL/GenericStorageObject.html +14 -75
- data/rdoc/RubyXL/GradientFill.html +10 -14
- data/rdoc/RubyXL/HeaderFooterSettings.html +10 -14
- data/rdoc/RubyXL/Hyperlink.html +10 -14
- data/rdoc/RubyXL/HyperlinkRelFile.html +10 -19
- data/rdoc/RubyXL/Hyperlinks.html +10 -14
- data/rdoc/RubyXL/IconFilter.html +10 -14
- data/rdoc/RubyXL/IconSet.html +10 -14
- data/rdoc/RubyXL/IgnoredError.html +10 -14
- data/rdoc/RubyXL/IgnoredErrors.html +10 -14
- data/rdoc/RubyXL/IndexedColors.html +10 -14
- data/rdoc/RubyXL/InputCells.html +10 -14
- data/rdoc/RubyXL/IntegerNode.html +10 -14
- data/rdoc/RubyXL/IntegerValue.html +10 -14
- data/rdoc/RubyXL/LegacyCell.html +11 -28
- data/rdoc/RubyXL/LegacyWorksheet.html +16 -88
- data/rdoc/RubyXL/MRUColors.html +10 -14
- data/rdoc/RubyXL/MacrosFile.html +10 -22
- data/rdoc/RubyXL/MergedCell.html +10 -14
- data/rdoc/RubyXL/MergedCells.html +10 -14
- data/rdoc/RubyXL/NumFmt.html +10 -14
- data/rdoc/RubyXL/NumberFormat.html +13 -31
- data/rdoc/RubyXL/NumberFormats.html +13 -36
- data/rdoc/RubyXL/OLEObject.html +10 -14
- data/rdoc/RubyXL/OLEObjectFile.html +10 -22
- data/rdoc/RubyXL/OLEObjects.html +10 -14
- data/rdoc/RubyXL/OLESize.html +10 -14
- data/rdoc/RubyXL/OOXMLContainerObject.html +24 -116
- data/rdoc/RubyXL/OOXMLIgnored.html +14 -46
- data/rdoc/RubyXL/OOXMLObject.html +12 -19
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +39 -84
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +28 -141
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +15 -169
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -103
- data/rdoc/RubyXL/OdbcOleDbProperties.html +10 -14
- data/rdoc/RubyXL/Offset.html +10 -14
- data/rdoc/RubyXL/OlapProperties.html +10 -14
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +10 -14
- data/rdoc/RubyXL/PageMargins.html +10 -14
- data/rdoc/RubyXL/PageSetup.html +10 -14
- data/rdoc/RubyXL/PageSetupProperties.html +10 -14
- data/rdoc/RubyXL/Pane.html +10 -14
- data/rdoc/RubyXL/Parser.html +13 -44
- data/rdoc/RubyXL/PatternFill.html +10 -14
- data/rdoc/RubyXL/PhoneticProperties.html +10 -14
- data/rdoc/RubyXL/PhoneticRun.html +10 -14
- data/rdoc/RubyXL/PivotArea.html +10 -14
- data/rdoc/RubyXL/PivotCache.html +10 -14
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +12 -27
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +10 -22
- data/rdoc/RubyXL/PivotCaches.html +10 -14
- data/rdoc/RubyXL/PivotReference.html +10 -14
- data/rdoc/RubyXL/PivotReferences.html +10 -14
- data/rdoc/RubyXL/PivotTableFile.html +12 -27
- data/rdoc/RubyXL/PivotTableSelection.html +10 -14
- data/rdoc/RubyXL/PresetGeometry.html +10 -14
- data/rdoc/RubyXL/PrintOptions.html +10 -14
- data/rdoc/RubyXL/PrinterSettingsFile.html +10 -22
- data/rdoc/RubyXL/ProtectedRange.html +10 -14
- data/rdoc/RubyXL/ProtectedRanges.html +10 -14
- data/rdoc/RubyXL/Protection.html +10 -14
- data/rdoc/RubyXL/QueryParameter.html +10 -14
- data/rdoc/RubyXL/QueryParameters.html +10 -14
- data/rdoc/RubyXL/QueryTable.html +15 -44
- data/rdoc/RubyXL/QueryTableDeletedField.html +10 -14
- data/rdoc/RubyXL/QueryTableDeletedFields.html +10 -14
- data/rdoc/RubyXL/QueryTableField.html +10 -14
- data/rdoc/RubyXL/QueryTableFields.html +10 -14
- data/rdoc/RubyXL/QueryTableRefresh.html +10 -14
- data/rdoc/RubyXL/RID.html +10 -14
- data/rdoc/RubyXL/RawOOXML.html +14 -51
- data/rdoc/RubyXL/Reference.html +14 -192
- data/rdoc/RubyXL/Relationship.html +10 -14
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +11 -28
- data/rdoc/RubyXL/RelationshipSupport.html +14 -108
- data/rdoc/RubyXL/RevisionPointer.html +10 -14
- data/rdoc/RubyXL/RichText.html +14 -32
- data/rdoc/RubyXL/RichTextRun.html +13 -31
- data/rdoc/RubyXL/Row.html +22 -154
- data/rdoc/RubyXL/RowExt.html +10 -14
- data/rdoc/RubyXL/RunProperties.html +10 -14
- data/rdoc/RubyXL/Scenario.html +10 -14
- data/rdoc/RubyXL/Scenarios.html +10 -14
- data/rdoc/RubyXL/Selection.html +13 -31
- data/rdoc/RubyXL/ShapeGuide.html +10 -14
- data/rdoc/RubyXL/ShapeTextRectangle.html +10 -14
- data/rdoc/RubyXL/SharedStringsTable.html +14 -121
- data/rdoc/RubyXL/Sheet.html +10 -14
- data/rdoc/RubyXL/SheetCalculationProperties.html +10 -14
- data/rdoc/RubyXL/SheetData.html +15 -46
- data/rdoc/RubyXL/SheetDataExt.html +10 -14
- data/rdoc/RubyXL/SheetDataSet.html +10 -14
- data/rdoc/RubyXL/SheetName.html +10 -14
- data/rdoc/RubyXL/SheetNames.html +10 -14
- data/rdoc/RubyXL/Sheets.html +10 -14
- data/rdoc/RubyXL/SlicerCacheFile.html +10 -22
- data/rdoc/RubyXL/SlicerFile.html +10 -22
- data/rdoc/RubyXL/SmartTagProperties.html +10 -14
- data/rdoc/RubyXL/SmartTagType.html +10 -14
- data/rdoc/RubyXL/SmartTagTypes.html +10 -14
- data/rdoc/RubyXL/SmartTags.html +10 -14
- data/rdoc/RubyXL/SortCondition.html +10 -14
- data/rdoc/RubyXL/SortState.html +10 -14
- data/rdoc/RubyXL/Sqref.html +14 -46
- data/rdoc/RubyXL/Stop.html +10 -14
- data/rdoc/RubyXL/StringNode.html +10 -14
- data/rdoc/RubyXL/StringNodeW3C.html +14 -46
- data/rdoc/RubyXL/StringValue.html +10 -14
- data/rdoc/RubyXL/Stylesheet.html +14 -94
- data/rdoc/RubyXL/TableFile.html +10 -22
- data/rdoc/RubyXL/TableParts.html +10 -14
- data/rdoc/RubyXL/TableStyle.html +10 -14
- data/rdoc/RubyXL/TableStyles.html +10 -14
- data/rdoc/RubyXL/Text.html +13 -52
- data/rdoc/RubyXL/TextImportSettings.html +10 -14
- data/rdoc/RubyXL/Theme.html +14 -67
- data/rdoc/RubyXL/ThemeElements.html +10 -14
- data/rdoc/RubyXL/ThumbnailFile.html +10 -22
- data/rdoc/RubyXL/Top10.html +10 -14
- data/rdoc/RubyXL/VMLDrawingFile.html +12 -27
- data/rdoc/RubyXL/Variant.html +10 -14
- data/rdoc/RubyXL/Vector.html +13 -31
- data/rdoc/RubyXL/VectorValue.html +10 -14
- data/rdoc/RubyXL/VisualProperties.html +10 -14
- data/rdoc/RubyXL/WebPublishObject.html +10 -14
- data/rdoc/RubyXL/WebPublishObjects.html +10 -14
- data/rdoc/RubyXL/WebPublishingItem.html +10 -14
- data/rdoc/RubyXL/WebPublishingItems.html +10 -14
- data/rdoc/RubyXL/WebPublishingProperties.html +10 -14
- data/rdoc/RubyXL/WebQueryProperties.html +10 -14
- data/rdoc/RubyXL/Workbook.html +76 -465
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +11 -223
- data/rdoc/RubyXL/WorkbookProperties.html +10 -14
- data/rdoc/RubyXL/WorkbookProtection.html +10 -14
- data/rdoc/RubyXL/WorkbookRoot.html +16 -101
- data/rdoc/RubyXL/WorkbookView.html +10 -14
- data/rdoc/RubyXL/WorkbookViews.html +10 -14
- data/rdoc/RubyXL/Worksheet.html +16 -132
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +171 -987
- data/rdoc/RubyXL/WorksheetDimensions.html +10 -14
- data/rdoc/RubyXL/WorksheetFormatProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProtection.html +10 -14
- data/rdoc/RubyXL/WorksheetView.html +10 -14
- data/rdoc/RubyXL/WorksheetViews.html +10 -14
- data/rdoc/RubyXL/XF.html +10 -14
- data/rdoc/RubyXL.html +11 -321
- data/rdoc/created.rid +26 -26
- data/rdoc/css/rdoc.css +55 -6
- data/rdoc/index.html +13 -390
- data/rdoc/js/darkfish.js +22 -99
- data/rdoc/js/navigation.js +4 -40
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +6 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +33 -7
- data/rubyXL.gemspec +24 -31
- data/spec/lib/cell_spec.rb +44 -2
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/worksheet_spec.rb +301 -0
- metadata +12 -10
- data/rdoc/js/jquery.js +0 -4
|
@@ -4,21 +4,23 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::OOXMLIgnored - rubyXL 3.4.
|
|
7
|
+
<title>class RubyXL::OOXMLIgnored - rubyXL 3.4.18</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
11
|
var index_rel_prefix = "../";
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<script src="../js/
|
|
15
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
16
19
|
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
<body id="top" role="document" class="class">
|
|
23
25
|
<nav role="navigation">
|
|
24
26
|
<div id="project-navigation">
|
|
@@ -55,26 +57,23 @@
|
|
|
55
57
|
|
|
56
58
|
<div id="class-metadata">
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
59
62
|
<h3>Parent</h3>
|
|
60
63
|
|
|
61
|
-
|
|
62
64
|
<p class="link">OOXMLObject
|
|
63
|
-
|
|
64
65
|
</div>
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
|
|
69
|
+
|
|
70
|
+
<!-- Method Quickref -->
|
|
69
71
|
<div id="method-list-section" class="nav-section">
|
|
70
72
|
<h3>Methods</h3>
|
|
71
73
|
|
|
72
74
|
<ul class="link-list" role="directory">
|
|
73
|
-
|
|
74
75
|
<li ><a href="#method-c-parse">::parse</a>
|
|
75
|
-
|
|
76
76
|
<li ><a href="#method-i-write_xml">#write_xml</a>
|
|
77
|
-
|
|
78
77
|
</ul>
|
|
79
78
|
</div>
|
|
80
79
|
|
|
@@ -90,106 +89,75 @@
|
|
|
90
89
|
|
|
91
90
|
</section>
|
|
92
91
|
|
|
93
|
-
|
|
94
92
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
95
|
-
|
|
96
93
|
|
|
97
|
-
|
|
98
94
|
|
|
99
|
-
|
|
100
95
|
|
|
101
|
-
|
|
102
96
|
|
|
103
|
-
|
|
97
|
+
|
|
104
98
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
105
99
|
<header>
|
|
106
100
|
<h3>Public Class Methods</h3>
|
|
107
101
|
</header>
|
|
108
102
|
|
|
109
|
-
|
|
110
103
|
<div id="method-c-parse" class="method-detail ">
|
|
111
|
-
|
|
112
104
|
<div class="method-heading">
|
|
113
105
|
<span class="method-name">parse</span><span
|
|
114
106
|
class="method-args">(node, ignore)</span>
|
|
115
|
-
|
|
116
107
|
<span class="method-click-advice">click to toggle source</span>
|
|
117
|
-
|
|
118
108
|
</div>
|
|
119
|
-
|
|
120
109
|
|
|
121
110
|
<div class="method-description">
|
|
122
111
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
112
|
|
|
127
|
-
|
|
128
113
|
<div class="method-source-code" id="parse-source">
|
|
129
114
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/extensions.rb, line 37</span>
|
|
130
115
|
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">parse</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">ignore</span>)
|
|
131
116
|
<span class="ruby-keyword">nil</span>
|
|
132
117
|
<span class="ruby-keyword">end</span></pre>
|
|
133
118
|
</div>
|
|
134
|
-
|
|
135
119
|
</div>
|
|
136
120
|
|
|
137
|
-
|
|
138
121
|
|
|
139
|
-
|
|
140
122
|
</div>
|
|
141
123
|
|
|
142
|
-
|
|
143
124
|
</section>
|
|
144
|
-
|
|
125
|
+
|
|
145
126
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
146
127
|
<header>
|
|
147
128
|
<h3>Public Instance Methods</h3>
|
|
148
129
|
</header>
|
|
149
130
|
|
|
150
|
-
|
|
151
131
|
<div id="method-i-write_xml" class="method-detail ">
|
|
152
|
-
|
|
153
132
|
<div class="method-heading">
|
|
154
133
|
<span class="method-name">write_xml</span><span
|
|
155
134
|
class="method-args">(xml, node_name_override = nil)</span>
|
|
156
|
-
|
|
157
135
|
<span class="method-click-advice">click to toggle source</span>
|
|
158
|
-
|
|
159
136
|
</div>
|
|
160
|
-
|
|
161
137
|
|
|
162
138
|
<div class="method-description">
|
|
163
139
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
140
|
|
|
168
|
-
|
|
169
141
|
<div class="method-source-code" id="write_xml-source">
|
|
170
142
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/extensions.rb, line 41</span>
|
|
171
143
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">write_xml</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">node_name_override</span> = <span class="ruby-keyword">nil</span>)
|
|
172
144
|
<span class="ruby-string">''</span>
|
|
173
145
|
<span class="ruby-keyword">end</span></pre>
|
|
174
146
|
</div>
|
|
175
|
-
|
|
176
147
|
</div>
|
|
177
148
|
|
|
178
|
-
|
|
179
149
|
|
|
180
|
-
|
|
181
150
|
</div>
|
|
182
151
|
|
|
183
|
-
|
|
184
152
|
</section>
|
|
185
|
-
|
|
153
|
+
|
|
186
154
|
</section>
|
|
187
155
|
</main>
|
|
188
156
|
|
|
189
157
|
|
|
190
158
|
<footer id="validator-badges" role="contentinfo">
|
|
191
159
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
192
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
|
160
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
|
193
161
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
194
162
|
</footer>
|
|
195
163
|
|
|
@@ -4,21 +4,23 @@
|
|
|
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.18</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
11
|
var index_rel_prefix = "../";
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<script src="../js/
|
|
15
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
16
19
|
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
<body id="top" role="document" class="class">
|
|
23
25
|
<nav role="navigation">
|
|
24
26
|
<div id="project-navigation">
|
|
@@ -55,23 +57,19 @@
|
|
|
55
57
|
|
|
56
58
|
<div id="class-metadata">
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
59
62
|
<h3>Parent</h3>
|
|
60
63
|
|
|
61
|
-
|
|
62
64
|
<p class="link">Object
|
|
63
|
-
|
|
64
65
|
</div>
|
|
65
66
|
|
|
66
|
-
|
|
67
|
+
|
|
68
|
+
<div id="includes-section" class="nav-section">
|
|
67
69
|
<h3>Included Modules</h3>
|
|
68
70
|
|
|
69
71
|
<ul class="link-list">
|
|
70
|
-
|
|
71
|
-
|
|
72
72
|
<li><a class="include" href="OOXMLObjectInstanceMethods.html">RubyXL::OOXMLObjectInstanceMethods</a>
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
</ul>
|
|
76
74
|
</div>
|
|
77
75
|
|
|
@@ -91,24 +89,19 @@
|
|
|
91
89
|
|
|
92
90
|
</section>
|
|
93
91
|
|
|
94
|
-
|
|
95
92
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
96
|
-
|
|
97
93
|
|
|
98
|
-
|
|
99
94
|
|
|
100
|
-
|
|
101
95
|
|
|
102
|
-
|
|
103
96
|
|
|
104
|
-
|
|
97
|
+
|
|
105
98
|
</section>
|
|
106
99
|
</main>
|
|
107
100
|
|
|
108
101
|
|
|
109
102
|
<footer id="validator-badges" role="contentinfo">
|
|
110
103
|
<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.
|
|
104
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
|
112
105
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
113
106
|
</footer>
|
|
114
107
|
|
|
@@ -4,21 +4,23 @@
|
|
|
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.18</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
11
|
var index_rel_prefix = "../";
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<script src="../js/
|
|
15
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
16
19
|
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
<body id="top" role="document" class="module">
|
|
23
25
|
<nav role="navigation">
|
|
24
26
|
<div id="project-navigation">
|
|
@@ -58,22 +60,18 @@
|
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
|
|
64
|
+
<!-- Method Quickref -->
|
|
62
65
|
<div id="method-list-section" class="nav-section">
|
|
63
66
|
<h3>Methods</h3>
|
|
64
67
|
|
|
65
68
|
<ul class="link-list" role="directory">
|
|
66
|
-
|
|
67
69
|
<li ><a href="#method-i-define_attribute">#define_attribute</a>
|
|
68
|
-
|
|
69
70
|
<li ><a href="#method-i-define_child_node">#define_child_node</a>
|
|
70
|
-
|
|
71
71
|
<li ><a href="#method-i-define_element_name">#define_element_name</a>
|
|
72
|
-
|
|
72
|
+
<li ><a href="#method-i-define_relationship">#define_relationship</a>
|
|
73
73
|
<li ><a href="#method-i-obtain_class_variable">#obtain_class_variable</a>
|
|
74
|
-
|
|
75
74
|
<li ><a href="#method-i-parse">#parse</a>
|
|
76
|
-
|
|
77
75
|
</ul>
|
|
78
76
|
</div>
|
|
79
77
|
|
|
@@ -89,36 +87,25 @@
|
|
|
89
87
|
|
|
90
88
|
</section>
|
|
91
89
|
|
|
92
|
-
|
|
93
90
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
94
|
-
|
|
95
91
|
|
|
96
|
-
|
|
97
92
|
|
|
98
|
-
|
|
99
93
|
|
|
100
|
-
|
|
101
94
|
|
|
102
|
-
|
|
95
|
+
|
|
103
96
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
104
97
|
<header>
|
|
105
98
|
<h3>Public Instance Methods</h3>
|
|
106
99
|
</header>
|
|
107
100
|
|
|
108
|
-
|
|
109
101
|
<div id="method-i-define_attribute" class="method-detail ">
|
|
110
|
-
|
|
111
102
|
<div class="method-heading">
|
|
112
103
|
<span class="method-name">define_attribute</span><span
|
|
113
104
|
class="method-args">(attr_name, attr_type, extra_params = {})</span>
|
|
114
|
-
|
|
115
105
|
<span class="method-click-advice">click to toggle source</span>
|
|
116
|
-
|
|
117
106
|
</div>
|
|
118
|
-
|
|
119
107
|
|
|
120
108
|
<div class="method-description">
|
|
121
|
-
|
|
122
109
|
<p>Defines an attribute of OOXML object.</p>
|
|
123
110
|
|
|
124
111
|
<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>
|
|
@@ -180,10 +167,7 @@
|
|
|
180
167
|
</pre>
|
|
181
168
|
|
|
182
169
|
<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>
|
|
183
|
-
|
|
184
|
-
|
|
185
170
|
|
|
186
|
-
|
|
187
171
|
<div class="method-source-code" id="define_attribute-source">
|
|
188
172
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 48</span>
|
|
189
173
|
<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> = {})
|
|
@@ -194,28 +178,19 @@
|
|
|
194
178
|
<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>]
|
|
195
179
|
<span class="ruby-keyword">end</span></pre>
|
|
196
180
|
</div>
|
|
197
|
-
|
|
198
181
|
</div>
|
|
199
182
|
|
|
200
|
-
|
|
201
183
|
|
|
202
|
-
|
|
203
184
|
</div>
|
|
204
185
|
|
|
205
|
-
|
|
206
186
|
<div id="method-i-define_child_node" class="method-detail ">
|
|
207
|
-
|
|
208
187
|
<div class="method-heading">
|
|
209
188
|
<span class="method-name">define_child_node</span><span
|
|
210
189
|
class="method-args">(klass, extra_params = {})</span>
|
|
211
|
-
|
|
212
190
|
<span class="method-click-advice">click to toggle source</span>
|
|
213
|
-
|
|
214
191
|
</div>
|
|
215
|
-
|
|
216
192
|
|
|
217
193
|
<div class="method-description">
|
|
218
|
-
|
|
219
194
|
<p>Defines a child node of OOXML object.</p>
|
|
220
195
|
|
|
221
196
|
<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>
|
|
@@ -261,12 +236,9 @@
|
|
|
261
236
|
</pre>
|
|
262
237
|
|
|
263
238
|
<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>
|
|
264
|
-
|
|
265
|
-
|
|
266
239
|
|
|
267
|
-
|
|
268
240
|
<div class="method-source-code" id="define_child_node-source">
|
|
269
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line
|
|
241
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 81</span>
|
|
270
242
|
<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> = {})
|
|
271
243
|
<span class="ruby-identifier">child_nodes</span> = <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>)
|
|
272
244
|
<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>
|
|
@@ -283,28 +255,19 @@
|
|
|
283
255
|
<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>)
|
|
284
256
|
<span class="ruby-keyword">end</span></pre>
|
|
285
257
|
</div>
|
|
286
|
-
|
|
287
258
|
</div>
|
|
288
259
|
|
|
289
|
-
|
|
290
260
|
|
|
291
|
-
|
|
292
261
|
</div>
|
|
293
262
|
|
|
294
|
-
|
|
295
263
|
<div id="method-i-define_element_name" class="method-detail ">
|
|
296
|
-
|
|
297
264
|
<div class="method-heading">
|
|
298
265
|
<span class="method-name">define_element_name</span><span
|
|
299
266
|
class="method-args">(element_name)</span>
|
|
300
|
-
|
|
301
267
|
<span class="method-click-advice">click to toggle source</span>
|
|
302
|
-
|
|
303
268
|
</div>
|
|
304
|
-
|
|
305
269
|
|
|
306
270
|
<div class="method-description">
|
|
307
|
-
|
|
308
271
|
<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>
|
|
309
272
|
|
|
310
273
|
<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>
|
|
@@ -316,45 +279,51 @@
|
|
|
316
279
|
|
|
317
280
|
<pre class="ruby"><span class="ruby-identifier">define_element_name</span> <span class="ruby-string">'externalReference'</span>
|
|
318
281
|
</pre>
|
|
319
|
-
|
|
320
|
-
|
|
321
282
|
|
|
322
|
-
|
|
323
283
|
<div class="method-source-code" id="define_element_name-source">
|
|
324
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line
|
|
284
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 109</span>
|
|
325
285
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_element_name</span>(<span class="ruby-identifier">element_name</span>)
|
|
326
286
|
<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>)
|
|
327
287
|
<span class="ruby-keyword">end</span></pre>
|
|
328
288
|
</div>
|
|
329
|
-
|
|
330
289
|
</div>
|
|
331
290
|
|
|
332
|
-
|
|
333
291
|
|
|
334
|
-
|
|
335
292
|
</div>
|
|
336
293
|
|
|
337
|
-
|
|
294
|
+
<div id="method-i-define_relationship" class="method-detail ">
|
|
295
|
+
<div class="method-heading">
|
|
296
|
+
<span class="method-name">define_relationship</span><span
|
|
297
|
+
class="method-args">(extra_params = {})</span>
|
|
298
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<div class="method-description">
|
|
302
|
+
<p>Defines a `r:id` attribute</p>
|
|
303
|
+
|
|
304
|
+
<div class="method-source-code" id="define_relationship-source">
|
|
305
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 57</span>
|
|
306
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_relationship</span>(<span class="ruby-identifier">extra_params</span> = {})
|
|
307
|
+
<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>)
|
|
308
|
+
<span class="ruby-keyword">end</span></pre>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
</div>
|
|
314
|
+
|
|
338
315
|
<div id="method-i-obtain_class_variable" class="method-detail ">
|
|
339
|
-
|
|
340
316
|
<div class="method-heading">
|
|
341
317
|
<span class="method-name">obtain_class_variable</span><span
|
|
342
318
|
class="method-args">(var_name, default = {})</span>
|
|
343
|
-
|
|
344
319
|
<span class="method-click-advice">click to toggle source</span>
|
|
345
|
-
|
|
346
320
|
</div>
|
|
347
|
-
|
|
348
321
|
|
|
349
322
|
<div class="method-description">
|
|
350
|
-
|
|
351
323
|
<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>
|
|
352
324
|
|
|
353
325
|
<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>
|
|
354
|
-
|
|
355
|
-
|
|
356
326
|
|
|
357
|
-
|
|
358
327
|
<div class="method-source-code" id="obtain_class_variable-source">
|
|
359
328
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 15</span>
|
|
360
329
|
<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> = {})
|
|
@@ -363,35 +332,23 @@
|
|
|
363
332
|
<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>)
|
|
364
333
|
<span class="ruby-keyword">end</span></pre>
|
|
365
334
|
</div>
|
|
366
|
-
|
|
367
335
|
</div>
|
|
368
336
|
|
|
369
|
-
|
|
370
337
|
|
|
371
|
-
|
|
372
338
|
</div>
|
|
373
339
|
|
|
374
|
-
|
|
375
340
|
<div id="method-i-parse" class="method-detail ">
|
|
376
|
-
|
|
377
341
|
<div class="method-heading">
|
|
378
342
|
<span class="method-name">parse</span><span
|
|
379
343
|
class="method-args">(node, known_namespaces = nil)</span>
|
|
380
|
-
|
|
381
344
|
<span class="method-click-advice">click to toggle source</span>
|
|
382
|
-
|
|
383
345
|
</div>
|
|
384
|
-
|
|
385
346
|
|
|
386
347
|
<div class="method-description">
|
|
387
348
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
349
|
|
|
392
|
-
|
|
393
350
|
<div class="method-source-code" id="parse-source">
|
|
394
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line
|
|
351
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 113</span>
|
|
395
352
|
<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>)
|
|
396
353
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">node</span>
|
|
397
354
|
<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>)
|
|
@@ -431,7 +388,9 @@
|
|
|
431
388
|
<span class="ruby-identifier">node</span>.<span class="ruby-identifier">element_children</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">child_node</span><span class="ruby-operator">|</span>
|
|
432
389
|
|
|
433
390
|
<span class="ruby-identifier">ns</span> = <span class="ruby-identifier">child_node</span>.<span class="ruby-identifier">namespace</span>
|
|
434
|
-
<span class="ruby-identifier">prefix</span> = <span class="ruby-identifier">known_namespaces</span>
|
|
391
|
+
<span class="ruby-identifier">prefix</span> = <span class="ruby-keyword">if</span> <span class="ruby-identifier">known_namespaces</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">href</span>) <span class="ruby-keyword">then</span> <span class="ruby-identifier">known_namespaces</span>[<span class="ruby-identifier">ns</span>.<span class="ruby-identifier">href</span>]
|
|
392
|
+
<span class="ruby-keyword">else</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">prefix</span>
|
|
393
|
+
<span class="ruby-keyword">end</span>
|
|
435
394
|
|
|
436
395
|
<span class="ruby-identifier">child_node_name</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">prefix</span>
|
|
437
396
|
<span class="ruby-keyword">when</span> <span class="ruby-string">''</span>, <span class="ruby-keyword">nil</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">child_node</span>.<span class="ruby-identifier">name</span>
|
|
@@ -462,24 +421,20 @@
|
|
|
462
421
|
<span class="ruby-identifier">obj</span>
|
|
463
422
|
<span class="ruby-keyword">end</span></pre>
|
|
464
423
|
</div>
|
|
465
|
-
|
|
466
424
|
</div>
|
|
467
425
|
|
|
468
|
-
|
|
469
426
|
|
|
470
|
-
|
|
471
427
|
</div>
|
|
472
428
|
|
|
473
|
-
|
|
474
429
|
</section>
|
|
475
|
-
|
|
430
|
+
|
|
476
431
|
</section>
|
|
477
432
|
</main>
|
|
478
433
|
|
|
479
434
|
|
|
480
435
|
<footer id="validator-badges" role="contentinfo">
|
|
481
436
|
<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.
|
|
437
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
|
483
438
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
484
439
|
</footer>
|
|
485
440
|
|