rubyXL 3.4.12 → 3.4.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -1
- data/Gemfile +8 -8
- data/Gemfile.lock +82 -50
- data/README.rdoc +26 -9
- data/Rakefile +26 -27
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +2 -4
- data/lib/rubyXL/convenience_methods/cell.rb +35 -31
- data/lib/rubyXL/convenience_methods/color.rb +6 -8
- data/lib/rubyXL/convenience_methods/workbook.rb +9 -4
- data/lib/rubyXL/convenience_methods/worksheet.rb +77 -1
- data/lib/rubyXL/objects/border.rb +0 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +1 -3
- data/lib/rubyXL/objects/chartsheet.rb +6 -10
- data/lib/rubyXL/objects/color.rb +1 -3
- data/lib/rubyXL/objects/column_range.rb +0 -3
- data/lib/rubyXL/objects/comments.rb +1 -4
- data/lib/rubyXL/objects/connection.rb +11 -11
- data/lib/rubyXL/objects/container_nodes.rb +1 -5
- data/lib/rubyXL/objects/content_types.rb +3 -6
- data/lib/rubyXL/objects/data_validation.rb +2 -2
- data/lib/rubyXL/objects/document_properties.rb +9 -13
- data/lib/rubyXL/objects/extensions.rb +0 -2
- data/lib/rubyXL/objects/external_links.rb +29 -7
- data/lib/rubyXL/objects/fill.rb +2 -5
- data/lib/rubyXL/objects/filters.rb +5 -7
- data/lib/rubyXL/objects/font.rb +2 -4
- data/lib/rubyXL/objects/formula.rb +3 -5
- data/lib/rubyXL/objects/ooxml_object.rb +18 -18
- data/lib/rubyXL/objects/query_table.rb +3 -3
- data/lib/rubyXL/objects/reference.rb +6 -8
- data/lib/rubyXL/objects/relationships.rb +6 -11
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +3 -6
- data/lib/rubyXL/objects/sheet_common.rb +1 -3
- data/lib/rubyXL/objects/sheet_data.rb +6 -8
- data/lib/rubyXL/objects/simple_types.rb +3 -1
- data/lib/rubyXL/objects/storage.rb +51 -50
- data/lib/rubyXL/objects/stylesheet.rb +8 -15
- data/lib/rubyXL/objects/text.rb +5 -7
- data/lib/rubyXL/objects/theme.rb +5 -8
- data/lib/rubyXL/objects/workbook.rb +35 -31
- data/lib/rubyXL/objects/worksheet.rb +33 -29
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +83 -84
- data/lib/rubyXL.rb +0 -1
- data/rdoc/README_rdoc.html +42 -28
- data/rdoc/RubyXL/AExtension.html +9 -49
- data/rdoc/RubyXL/AExtensionStorageArea.html +5 -12
- data/rdoc/RubyXL/ActiveX.html +12 -41
- data/rdoc/RubyXL/ActiveXBinary.html +5 -17
- data/rdoc/RubyXL/AdjustHandleList.html +5 -12
- data/rdoc/RubyXL/Alignment.html +5 -12
- data/rdoc/RubyXL/AlternateContent.html +5 -12
- data/rdoc/RubyXL/Authors.html +5 -12
- data/rdoc/RubyXL/AutoFilter.html +5 -12
- data/rdoc/RubyXL/AutoFilterColumn.html +5 -12
- data/rdoc/RubyXL/BinaryImageFile.html +5 -20
- data/rdoc/RubyXL/BodyProperties.html +5 -12
- data/rdoc/RubyXL/BooleanNode.html +5 -12
- data/rdoc/RubyXL/BooleanValue.html +5 -12
- data/rdoc/RubyXL/Border.html +12 -72
- data/rdoc/RubyXL/BorderEdge.html +10 -44
- data/rdoc/RubyXL/Borders.html +9 -30
- data/rdoc/RubyXL/Break.html +5 -12
- data/rdoc/RubyXL/BreakList.html +5 -12
- data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -12
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -12
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -12
- data/rdoc/RubyXL/CT_Backdrop.html +5 -12
- data/rdoc/RubyXL/CT_Bevel.html +5 -12
- data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -12
- data/rdoc/RubyXL/CT_BlendEffect.html +5 -12
- data/rdoc/RubyXL/CT_Blip.html +5 -12
- data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_BlurEffect.html +5 -12
- data/rdoc/RubyXL/CT_Camera.html +5 -12
- data/rdoc/RubyXL/CT_Color.html +5 -12
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -12
- data/rdoc/RubyXL/CT_ColorMapping.html +5 -12
- data/rdoc/RubyXL/CT_ColorScheme.html +5 -12
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -12
- data/rdoc/RubyXL/CT_ConnectionSite.html +5 -12
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -12
- data/rdoc/RubyXL/CT_DashStop.html +5 -12
- data/rdoc/RubyXL/CT_DashStopList.html +5 -12
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -12
- data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -12
- data/rdoc/RubyXL/CT_EffectContainer.html +5 -12
- data/rdoc/RubyXL/CT_EffectList.html +5 -12
- data/rdoc/RubyXL/CT_EffectReference.html +5 -12
- data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -12
- data/rdoc/RubyXL/CT_EffectStyleList.html +5 -12
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -12
- data/rdoc/RubyXL/CT_FillEffect.html +5 -12
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -12
- data/rdoc/RubyXL/CT_FillStyleList.html +5 -12
- data/rdoc/RubyXL/CT_FlatText.html +5 -12
- data/rdoc/RubyXL/CT_FontCollection.html +5 -12
- data/rdoc/RubyXL/CT_FontReference.html +5 -12
- data/rdoc/RubyXL/CT_GeomGuideList.html +5 -12
- data/rdoc/RubyXL/CT_GlowEffect.html +5 -12
- data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_GradientStop.html +5 -12
- data/rdoc/RubyXL/CT_GradientStopList.html +5 -12
- data/rdoc/RubyXL/CT_HSLEffect.html +5 -12
- data/rdoc/RubyXL/CT_HslColor.html +5 -12
- data/rdoc/RubyXL/CT_Hyperlink.html +5 -12
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_LightRig.html +5 -12
- data/rdoc/RubyXL/CT_LineEndProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineProperties.html +5 -12
- data/rdoc/RubyXL/CT_LineStyleList.html +5 -12
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -12
- data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -12
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -12
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_Path2D.html +5 -12
- data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DList.html +5 -12
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -12
- data/rdoc/RubyXL/CT_Path2DTo.html +5 -12
- data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -12
- data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -12
- data/rdoc/RubyXL/CT_Point3D.html +5 -12
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -12
- data/rdoc/RubyXL/CT_PresetColor.html +5 -12
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -12
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -12
- data/rdoc/RubyXL/CT_PresetTextShape.html +5 -12
- data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -12
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -12
- data/rdoc/RubyXL/CT_RelativeRect.html +5 -12
- data/rdoc/RubyXL/CT_SRgbColor.html +5 -12
- data/rdoc/RubyXL/CT_ScRgbColor.html +5 -12
- data/rdoc/RubyXL/CT_Scene3D.html +5 -12
- data/rdoc/RubyXL/CT_SchemeColor.html +5 -12
- data/rdoc/RubyXL/CT_Shape3D.html +5 -12
- data/rdoc/RubyXL/CT_ShapeStyle.html +5 -12
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -12
- data/rdoc/RubyXL/CT_SphereCoords.html +5 -12
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -12
- data/rdoc/RubyXL/CT_StyleMatrix.html +5 -12
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -12
- data/rdoc/RubyXL/CT_SupplementalFont.html +5 -12
- data/rdoc/RubyXL/CT_SystemColor.html +5 -12
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextCharBullet.html +5 -12
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -12
- data/rdoc/RubyXL/CT_TextFont.html +5 -12
- data/rdoc/RubyXL/CT_TextListStyle.html +5 -12
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -12
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -12
- data/rdoc/RubyXL/CT_TextSpacing.html +5 -12
- data/rdoc/RubyXL/CT_TextTabStop.html +5 -12
- data/rdoc/RubyXL/CT_TextTabStopList.html +5 -12
- data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -12
- data/rdoc/RubyXL/CT_TintEffect.html +5 -12
- data/rdoc/RubyXL/CT_Transform2D.html +5 -12
- data/rdoc/RubyXL/CT_TransformEffect.html +5 -12
- data/rdoc/RubyXL/CT_Vector3D.html +5 -12
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -12
- data/rdoc/RubyXL/CalculationChain.html +8 -37
- data/rdoc/RubyXL/CalculationChainCell.html +5 -12
- data/rdoc/RubyXL/CalculationProperties.html +5 -12
- data/rdoc/RubyXL/Cell.html +26 -228
- data/rdoc/RubyXL/CellConvenienceMethods.html +108 -503
- data/rdoc/RubyXL/CellExt.html +5 -12
- data/rdoc/RubyXL/CellSmartTag.html +5 -12
- data/rdoc/RubyXL/CellSmartTagProperty.html +5 -12
- data/rdoc/RubyXL/CellSmartTags.html +5 -12
- data/rdoc/RubyXL/CellStyle.html +5 -12
- data/rdoc/RubyXL/CellStyleXFs.html +9 -30
- data/rdoc/RubyXL/CellStyles.html +9 -30
- data/rdoc/RubyXL/CellValue.html +9 -30
- data/rdoc/RubyXL/CellWatch.html +5 -12
- data/rdoc/RubyXL/CellWatches.html +5 -12
- data/rdoc/RubyXL/CellXFs.html +10 -33
- data/rdoc/RubyXL/ChartColorsFile.html +5 -20
- data/rdoc/RubyXL/ChartFile.html +11 -43
- data/rdoc/RubyXL/ChartStyleFile.html +5 -20
- data/rdoc/RubyXL/ChartUserShapesFile.html +5 -20
- data/rdoc/RubyXL/Chartsheet.html +11 -60
- data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -12
- data/rdoc/RubyXL/ChartsheetProperties.html +5 -12
- data/rdoc/RubyXL/ChartsheetProtection.html +5 -12
- data/rdoc/RubyXL/ChartsheetView.html +5 -12
- data/rdoc/RubyXL/ChartsheetViews.html +5 -12
- data/rdoc/RubyXL/Color.html +10 -36
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +10 -58
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +18 -78
- data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -9
- data/rdoc/RubyXL/ColorConvenienceMethods.html +7 -27
- data/rdoc/RubyXL/ColorFilter.html +5 -12
- data/rdoc/RubyXL/ColorScale.html +5 -12
- data/rdoc/RubyXL/ColorSet.html +5 -12
- data/rdoc/RubyXL/Colors.html +5 -12
- data/rdoc/RubyXL/ColumnRange.html +11 -63
- data/rdoc/RubyXL/ColumnRanges.html +12 -72
- data/rdoc/RubyXL/Comment.html +5 -12
- data/rdoc/RubyXL/CommentList.html +5 -12
- data/rdoc/RubyXL/CommentsFile.html +9 -43
- data/rdoc/RubyXL/ConditionalFormatValue.html +5 -12
- data/rdoc/RubyXL/ConditionalFormatting.html +5 -12
- data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -12
- data/rdoc/RubyXL/Connection.html +5 -12
- data/rdoc/RubyXL/ConnectionTable.html +5 -12
- data/rdoc/RubyXL/ConnectionTables.html +5 -12
- data/rdoc/RubyXL/ConnectionTextField.html +5 -12
- data/rdoc/RubyXL/ConnectionTextFields.html +5 -12
- data/rdoc/RubyXL/Connections.html +8 -37
- data/rdoc/RubyXL/ContentTypeDefault.html +5 -12
- data/rdoc/RubyXL/ContentTypeOverride.html +5 -12
- data/rdoc/RubyXL/ContentTypes.html +12 -54
- data/rdoc/RubyXL/ControlPropertiesFile.html +7 -17
- data/rdoc/RubyXL/CorePropertiesFile.html +17 -155
- data/rdoc/RubyXL/CustomColor.html +5 -12
- data/rdoc/RubyXL/CustomColorList.html +5 -12
- data/rdoc/RubyXL/CustomFilter.html +5 -12
- data/rdoc/RubyXL/CustomFilters.html +5 -12
- data/rdoc/RubyXL/CustomGeometry.html +5 -12
- data/rdoc/RubyXL/CustomProperties.html +5 -12
- data/rdoc/RubyXL/CustomPropertiesFile.html +5 -20
- data/rdoc/RubyXL/CustomProperty.html +5 -12
- data/rdoc/RubyXL/CustomPropertyFile.html +5 -20
- data/rdoc/RubyXL/CustomSheetView.html +5 -12
- data/rdoc/RubyXL/CustomSheetViews.html +5 -12
- data/rdoc/RubyXL/CustomWorkbookView.html +5 -12
- data/rdoc/RubyXL/CustomWorkbookViews.html +5 -12
- data/rdoc/RubyXL/CustomXMLFile.html +5 -17
- data/rdoc/RubyXL/DXF.html +5 -12
- data/rdoc/RubyXL/DXFs.html +5 -12
- data/rdoc/RubyXL/DataBar.html +5 -12
- data/rdoc/RubyXL/DataConsolidate.html +5 -12
- data/rdoc/RubyXL/DataConsolidationReference.html +5 -12
- data/rdoc/RubyXL/DataConsolidationReferences.html +5 -12
- data/rdoc/RubyXL/DataType.html +3 -32
- data/rdoc/RubyXL/DataValidation.html +5 -12
- data/rdoc/RubyXL/DataValidations.html +5 -12
- data/rdoc/RubyXL/DateGroupItem.html +5 -12
- data/rdoc/RubyXL/DefinedName.html +5 -12
- data/rdoc/RubyXL/DefinedNameExt.html +5 -12
- data/rdoc/RubyXL/DefinedNames.html +5 -12
- data/rdoc/RubyXL/DefinedNamesExt.html +5 -12
- data/rdoc/RubyXL/DocumentPropertiesFile.html +10 -57
- data/rdoc/RubyXL/DrawingFile.html +11 -43
- data/rdoc/RubyXL/DynamicFilter.html +5 -12
- data/rdoc/RubyXL/EmbeddedControl.html +5 -12
- data/rdoc/RubyXL/EmbeddedControls.html +5 -12
- data/rdoc/RubyXL/Extension.html +5 -12
- data/rdoc/RubyXL/ExtensionStorageArea.html +5 -12
- data/rdoc/RubyXL/Extents.html +5 -12
- data/rdoc/RubyXL/ExternalBook.html +5 -12
- data/rdoc/RubyXL/ExternalLinksFile.html +11 -43
- data/rdoc/RubyXL/ExternalReference.html +5 -12
- data/rdoc/RubyXL/ExternalReferences.html +5 -12
- data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -12
- data/rdoc/RubyXL/FieldItem.html +5 -12
- data/rdoc/RubyXL/FileRecoveryProperties.html +5 -12
- data/rdoc/RubyXL/FileSharing.html +5 -12
- data/rdoc/RubyXL/FileVersion.html +5 -12
- data/rdoc/RubyXL/Fill.html +9 -30
- data/rdoc/RubyXL/Fills.html +9 -30
- data/rdoc/RubyXL/FilterContainer.html +5 -12
- data/rdoc/RubyXL/FloatNode.html +5 -12
- data/rdoc/RubyXL/FloatValue.html +5 -12
- data/rdoc/RubyXL/Font.html +11 -37
- data/rdoc/RubyXL/FontConvenienceMethods.html +7 -196
- data/rdoc/RubyXL/FontScheme.html +5 -12
- data/rdoc/RubyXL/Fonts.html +9 -30
- data/rdoc/RubyXL/Formula.html +5 -12
- data/rdoc/RubyXL/FunctionGroup.html +5 -12
- data/rdoc/RubyXL/FunctionGroups.html +5 -12
- data/rdoc/RubyXL/GenericStorageObject.html +12 -76
- data/rdoc/RubyXL/GradientFill.html +5 -12
- data/rdoc/RubyXL/HeaderFooterSettings.html +5 -12
- data/rdoc/RubyXL/Hyperlink.html +5 -12
- data/rdoc/RubyXL/HyperlinkRelFile.html +5 -17
- data/rdoc/RubyXL/Hyperlinks.html +5 -12
- data/rdoc/RubyXL/IconFilter.html +5 -12
- data/rdoc/RubyXL/IconSet.html +5 -12
- data/rdoc/RubyXL/IgnoredError.html +5 -12
- data/rdoc/RubyXL/IgnoredErrors.html +5 -12
- data/rdoc/RubyXL/IndexedColors.html +5 -12
- data/rdoc/RubyXL/InputCells.html +5 -12
- data/rdoc/RubyXL/IntegerNode.html +5 -12
- data/rdoc/RubyXL/IntegerValue.html +5 -12
- data/rdoc/RubyXL/LegacyCell.html +7 -27
- data/rdoc/RubyXL/LegacyWorksheet.html +11 -88
- data/rdoc/RubyXL/MRUColors.html +5 -12
- data/rdoc/RubyXL/MacrosFile.html +5 -20
- data/rdoc/RubyXL/MergedCell.html +5 -12
- data/rdoc/RubyXL/MergedCells.html +5 -12
- data/rdoc/RubyXL/NumFmt.html +5 -12
- data/rdoc/RubyXL/NumberFormat.html +10 -31
- data/rdoc/RubyXL/NumberFormats.html +9 -35
- data/rdoc/RubyXL/OLEObject.html +5 -12
- data/rdoc/RubyXL/OLEObjectFile.html +5 -20
- data/rdoc/RubyXL/OLEObjects.html +5 -12
- data/rdoc/RubyXL/OLESize.html +5 -12
- data/rdoc/RubyXL/OOXMLContainerObject.html +19 -114
- data/rdoc/RubyXL/OOXMLIgnored.html +11 -46
- data/rdoc/RubyXL/OOXMLObject.html +8 -18
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +42 -92
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +23 -144
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +24 -181
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +15 -102
- data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -12
- data/rdoc/RubyXL/Offset.html +5 -12
- data/rdoc/RubyXL/OlapProperties.html +5 -12
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +5 -12
- data/rdoc/RubyXL/PageMargins.html +5 -12
- data/rdoc/RubyXL/PageSetup.html +5 -12
- data/rdoc/RubyXL/PageSetupProperties.html +5 -12
- data/rdoc/RubyXL/Pane.html +5 -12
- data/rdoc/RubyXL/Parser.html +11 -45
- data/rdoc/RubyXL/PatternFill.html +5 -12
- data/rdoc/RubyXL/PhoneticProperties.html +5 -12
- data/rdoc/RubyXL/PhoneticRun.html +5 -12
- data/rdoc/RubyXL/PivotArea.html +5 -12
- data/rdoc/RubyXL/PivotCache.html +5 -12
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +7 -25
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -20
- data/rdoc/RubyXL/PivotCaches.html +5 -12
- data/rdoc/RubyXL/PivotReference.html +5 -12
- data/rdoc/RubyXL/PivotReferences.html +5 -12
- data/rdoc/RubyXL/PivotTableFile.html +7 -25
- data/rdoc/RubyXL/PivotTableSelection.html +5 -12
- data/rdoc/RubyXL/PresetGeometry.html +5 -12
- data/rdoc/RubyXL/PrintOptions.html +5 -12
- data/rdoc/RubyXL/PrinterSettingsFile.html +5 -20
- data/rdoc/RubyXL/ProtectedRange.html +5 -12
- data/rdoc/RubyXL/ProtectedRanges.html +5 -12
- data/rdoc/RubyXL/Protection.html +5 -12
- data/rdoc/RubyXL/QueryParameter.html +5 -12
- data/rdoc/RubyXL/QueryParameters.html +5 -12
- data/rdoc/RubyXL/QueryTable.html +10 -42
- data/rdoc/RubyXL/QueryTableDeletedField.html +5 -12
- data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -12
- data/rdoc/RubyXL/QueryTableField.html +5 -12
- data/rdoc/RubyXL/QueryTableFields.html +5 -12
- data/rdoc/RubyXL/QueryTableRefresh.html +5 -12
- data/rdoc/RubyXL/RID.html +5 -12
- data/rdoc/RubyXL/RawOOXML.html +11 -51
- data/rdoc/RubyXL/Reference.html +42 -204
- data/rdoc/RubyXL/Relationship.html +5 -12
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +7 -27
- data/rdoc/RubyXL/RelationshipSupport.html +15 -112
- data/rdoc/RubyXL/RevisionPointer.html +5 -12
- data/rdoc/RubyXL/RichText.html +11 -31
- data/rdoc/RubyXL/RichTextRun.html +9 -30
- data/rdoc/RubyXL/Row.html +8 -143
- data/rdoc/RubyXL/RowExt.html +5 -12
- data/rdoc/RubyXL/RunProperties.html +5 -12
- data/rdoc/RubyXL/Scenario.html +5 -12
- data/rdoc/RubyXL/Scenarios.html +5 -12
- data/rdoc/RubyXL/Selection.html +9 -30
- data/rdoc/RubyXL/ShapeGuide.html +5 -12
- data/rdoc/RubyXL/ShapeTextRectangle.html +5 -12
- data/rdoc/RubyXL/SharedStringsTable.html +16 -126
- data/rdoc/RubyXL/Sheet.html +5 -12
- data/rdoc/RubyXL/SheetCalculationProperties.html +5 -12
- data/rdoc/RubyXL/SheetData.html +8 -42
- data/rdoc/RubyXL/SheetDataExt.html +5 -12
- data/rdoc/RubyXL/SheetDataSet.html +5 -12
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +5 -12
- data/rdoc/RubyXL/SheetNames.html +5 -12
- data/rdoc/RubyXL/Sheets.html +5 -12
- data/rdoc/RubyXL/SlicerCacheFile.html +5 -20
- data/rdoc/RubyXL/SlicerFile.html +5 -20
- data/rdoc/RubyXL/SmartTagProperties.html +5 -12
- data/rdoc/RubyXL/SmartTagType.html +5 -12
- data/rdoc/RubyXL/SmartTagTypes.html +5 -12
- data/rdoc/RubyXL/SmartTags.html +5 -12
- data/rdoc/RubyXL/SortCondition.html +5 -12
- data/rdoc/RubyXL/SortState.html +5 -12
- data/rdoc/RubyXL/Sqref.html +11 -46
- data/rdoc/RubyXL/Stop.html +5 -12
- data/rdoc/RubyXL/StringNode.html +5 -12
- data/rdoc/RubyXL/StringNodeW3C.html +11 -46
- data/rdoc/RubyXL/StringValue.html +5 -12
- data/rdoc/RubyXL/Stylesheet.html +14 -97
- data/rdoc/RubyXL/TableFile.html +5 -20
- data/rdoc/RubyXL/TableParts.html +5 -12
- data/rdoc/RubyXL/TableStyle.html +5 -12
- data/rdoc/RubyXL/TableStyles.html +5 -12
- data/rdoc/RubyXL/Text.html +12 -54
- data/rdoc/RubyXL/TextImportSettings.html +5 -12
- data/rdoc/RubyXL/Theme.html +12 -68
- data/rdoc/RubyXL/ThemeElements.html +5 -12
- data/rdoc/RubyXL/ThumbnailFile.html +5 -20
- data/rdoc/RubyXL/Top10.html +5 -12
- data/rdoc/RubyXL/VMLDrawingFile.html +8 -26
- data/rdoc/RubyXL/Variant.html +5 -12
- data/rdoc/RubyXL/Vector.html +9 -30
- data/rdoc/RubyXL/VectorValue.html +5 -12
- data/rdoc/RubyXL/VisualProperties.html +5 -12
- data/rdoc/RubyXL/WebPublishObject.html +5 -12
- data/rdoc/RubyXL/WebPublishObjects.html +5 -12
- data/rdoc/RubyXL/WebPublishingItem.html +5 -12
- data/rdoc/RubyXL/WebPublishingItems.html +5 -12
- data/rdoc/RubyXL/WebPublishingProperties.html +5 -12
- data/rdoc/RubyXL/WebQueryProperties.html +5 -12
- data/rdoc/RubyXL/Workbook.html +45 -462
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +68 -239
- data/rdoc/RubyXL/WorkbookProperties.html +5 -12
- data/rdoc/RubyXL/WorkbookProtection.html +5 -12
- data/rdoc/RubyXL/WorkbookRoot.html +16 -104
- data/rdoc/RubyXL/WorkbookView.html +5 -12
- data/rdoc/RubyXL/WorkbookViews.html +5 -12
- data/rdoc/RubyXL/Worksheet.html +40 -135
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +170 -989
- data/rdoc/RubyXL/WorksheetDimensions.html +5 -12
- data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -12
- data/rdoc/RubyXL/WorksheetProperties.html +5 -12
- data/rdoc/RubyXL/WorksheetProtection.html +5 -12
- data/rdoc/RubyXL/WorksheetView.html +5 -12
- data/rdoc/RubyXL/WorksheetViews.html +5 -12
- data/rdoc/RubyXL/XF.html +5 -12
- data/rdoc/RubyXL.html +8 -319
- data/rdoc/created.rid +44 -44
- data/rdoc/css/rdoc.css +21 -1
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/index.html +9 -388
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +57 -5
- data/rubyXL.gemspec +24 -30
- data/spec/lib/cell_spec.rb +38 -6
- data/spec/lib/color_spec.rb +1 -1
- data/spec/lib/parser_spec.rb +24 -27
- data/spec/lib/reference_spec.rb +9 -3
- data/spec/lib/rgb_color_spec.rb +27 -0
- data/spec/lib/stylesheet_spec.rb +8 -11
- data/spec/lib/text_spec.rb +1 -5
- data/spec/lib/workbook_spec.rb +14 -4
- data/spec/lib/worksheet_spec.rb +790 -447
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +3 -3
- metadata +11 -8
- data/test/output/test.xlsx +0 -0
data/rdoc/RubyXL/Workbook.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class RubyXL::Workbook - rubyXL 3.4.
|
7
|
+
<title>class RubyXL::Workbook - rubyXL 3.4.25</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -21,7 +21,6 @@
|
|
21
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
24
|
<body id="top" role="document" class="class">
|
26
25
|
<nav role="navigation">
|
27
26
|
<div id="project-navigation">
|
@@ -58,93 +57,58 @@
|
|
58
57
|
|
59
58
|
<div id="class-metadata">
|
60
59
|
|
61
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
62
62
|
<h3>Parent</h3>
|
63
63
|
|
64
|
-
|
65
64
|
<p class="link"><a href="OOXMLTopLevelObject.html">RubyXL::OOXMLTopLevelObject</a>
|
66
|
-
|
67
65
|
</div>
|
68
66
|
|
69
|
-
|
67
|
+
|
68
|
+
<div id="includes-section" class="nav-section">
|
70
69
|
<h3>Included Modules</h3>
|
71
70
|
|
72
71
|
<ul class="link-list">
|
73
|
-
|
74
|
-
|
75
72
|
<li><a class="include" href="RelationshipSupport.html">RubyXL::RelationshipSupport</a>
|
76
|
-
|
77
|
-
|
78
|
-
|
79
73
|
<li><span class="include">Enumerable</span>
|
80
|
-
|
81
|
-
|
82
74
|
</ul>
|
83
75
|
</div>
|
84
76
|
|
85
77
|
|
86
|
-
|
78
|
+
|
79
|
+
<!-- Method Quickref -->
|
87
80
|
<div id="method-list-section" class="nav-section">
|
88
81
|
<h3>Methods</h3>
|
89
82
|
|
90
83
|
<ul class="link-list" role="directory">
|
91
|
-
|
92
84
|
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
93
|
-
|
94
85
|
<li ><a href="#method-i-5B-5D">#[]</a>
|
95
|
-
|
96
86
|
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
97
|
-
|
98
87
|
<li ><a href="#method-i-application">#application</a>
|
99
|
-
|
100
88
|
<li ><a href="#method-i-application-3D">#application=</a>
|
101
|
-
|
102
89
|
<li ><a href="#method-i-appversion">#appversion</a>
|
103
|
-
|
104
90
|
<li ><a href="#method-i-appversion-3D">#appversion=</a>
|
105
|
-
|
106
91
|
<li ><a href="#method-i-before_write_xml">#before_write_xml</a>
|
107
|
-
|
108
92
|
<li ><a href="#method-i-company">#company</a>
|
109
|
-
|
110
93
|
<li ><a href="#method-i-company-3D">#company=</a>
|
111
|
-
|
112
94
|
<li ><a href="#method-i-content_type">#content_type</a>
|
113
|
-
|
114
95
|
<li ><a href="#method-i-created_at">#created_at</a>
|
115
|
-
|
116
96
|
<li ><a href="#method-i-created_at-3D">#created_at=</a>
|
117
|
-
|
118
97
|
<li ><a href="#method-i-creator">#creator</a>
|
119
|
-
|
120
98
|
<li ><a href="#method-i-creator-3D">#creator=</a>
|
121
|
-
|
122
99
|
<li ><a href="#method-i-date1904">#date1904</a>
|
123
|
-
|
124
100
|
<li ><a href="#method-i-date1904-3D">#date1904=</a>
|
125
|
-
|
126
101
|
<li ><a href="#method-i-date_to_num">#date_to_num</a>
|
127
|
-
|
128
102
|
<li ><a href="#method-i-modified_at">#modified_at</a>
|
129
|
-
|
130
103
|
<li ><a href="#method-i-modified_at-3D">#modified_at=</a>
|
131
|
-
|
132
104
|
<li ><a href="#method-i-modifier">#modifier</a>
|
133
|
-
|
134
105
|
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
135
|
-
|
136
106
|
<li ><a href="#method-i-num_to_date">#num_to_date</a>
|
137
|
-
|
138
107
|
<li ><a href="#method-i-related_objects">#related_objects</a>
|
139
|
-
|
140
108
|
<li ><a href="#method-i-save">#save</a>
|
141
|
-
|
142
109
|
<li ><a href="#method-i-stream">#stream</a>
|
143
|
-
|
144
110
|
<li ><a href="#method-i-write">#write</a>
|
145
|
-
|
146
111
|
<li ><a href="#method-i-xlsx_path">#xlsx_path</a>
|
147
|
-
|
148
112
|
</ul>
|
149
113
|
</div>
|
150
114
|
|
@@ -162,90 +126,48 @@
|
|
162
126
|
|
163
127
|
</section>
|
164
128
|
|
165
|
-
|
166
129
|
<section id="5Buntitled-5D" class="documentation-section">
|
167
|
-
|
168
130
|
|
169
|
-
|
170
131
|
|
171
|
-
|
172
132
|
<section class="constants-list">
|
173
133
|
<header>
|
174
134
|
<h3>Constants</h3>
|
175
135
|
</header>
|
176
136
|
<dl>
|
177
|
-
|
178
137
|
<dt id="APPLICATION">APPLICATION
|
179
|
-
|
180
138
|
<dd>
|
181
|
-
|
182
|
-
|
183
139
|
<dt id="APPVERSION">APPVERSION
|
184
|
-
|
185
140
|
<dd>
|
186
|
-
|
187
|
-
|
188
141
|
<dt id="CONTENT_TYPE">CONTENT_TYPE
|
189
|
-
|
190
142
|
<dd>
|
191
|
-
|
192
|
-
|
193
143
|
<dt id="CONTENT_TYPE_TEMPLATE">CONTENT_TYPE_TEMPLATE
|
194
|
-
|
195
144
|
<dd>
|
196
|
-
|
197
|
-
|
198
145
|
<dt id="CONTENT_TYPE_TEMPLATE_WITH_MACROS">CONTENT_TYPE_TEMPLATE_WITH_MACROS
|
199
|
-
|
200
146
|
<dd>
|
201
|
-
|
202
|
-
|
203
147
|
<dt id="CONTENT_TYPE_WITH_MACROS">CONTENT_TYPE_WITH_MACROS
|
204
|
-
|
205
148
|
<dd>
|
206
|
-
|
207
|
-
|
208
149
|
<dt id="DATE1899">DATE1899
|
209
|
-
|
210
150
|
<dd><p>Subtracting one day to accomodate for erroneous 1900 leap year compatibility only for 1900 based dates</p>
|
211
|
-
|
212
|
-
|
213
151
|
<dt id="DATE1904">DATE1904
|
214
|
-
|
215
152
|
<dd>
|
216
|
-
|
217
|
-
|
218
153
|
<dt id="MARCH_1_1900">MARCH_1_1900
|
219
|
-
|
220
154
|
<dd>
|
221
|
-
|
222
|
-
|
223
155
|
<dt id="REL_TYPE">REL_TYPE
|
224
|
-
|
225
156
|
<dd>
|
226
|
-
|
227
|
-
|
228
157
|
<dt id="SHEET_NAME_FORBIDDEN_CHARS">SHEET_NAME_FORBIDDEN_CHARS
|
229
|
-
|
230
158
|
<dd><p><a href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-use-in-worksheet-names">www.accountingweb.com/technology/excel/seven-characters-you-cant-use-in-worksheet-names</a></p>
|
231
|
-
|
232
|
-
|
159
|
+
<dt id="SHEET_NAME_FORBIDDEN_NAMES">SHEET_NAME_FORBIDDEN_NAMES
|
160
|
+
<dd><p><a href="https://answers.microsoft.com/en-us/msoffice/forum/all/excel-history-is-a-reserved-name-help/f8a398a4-b72c-48e3-82da-4f132c305e91">answers.microsoft.com/en-us/msoffice/forum/all/excel-history-is-a-reserved-name-help/f8a398a4-b72c-48e3-82da-4f132c305e91</a></p>
|
233
161
|
<dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
|
234
|
-
|
235
162
|
<dd>
|
236
|
-
|
237
|
-
|
238
163
|
</dl>
|
239
164
|
</section>
|
240
|
-
|
241
165
|
|
242
|
-
|
243
166
|
<section class="attribute-method-details" class="method-section">
|
244
167
|
<header>
|
245
168
|
<h3>Attributes</h3>
|
246
169
|
</header>
|
247
170
|
|
248
|
-
|
249
171
|
<div id="attribute-i-is_template" class="method-detail">
|
250
172
|
<div class="method-heading attribute-method-heading">
|
251
173
|
<span class="method-name">is_template</span><span
|
@@ -254,11 +176,8 @@
|
|
254
176
|
|
255
177
|
<div class="method-description">
|
256
178
|
|
257
|
-
|
258
|
-
|
259
179
|
</div>
|
260
180
|
</div>
|
261
|
-
|
262
181
|
<div id="attribute-i-worksheets" class="method-detail">
|
263
182
|
<div class="method-heading attribute-method-heading">
|
264
183
|
<span class="method-name">worksheets</span><span
|
@@ -267,46 +186,32 @@
|
|
267
186
|
|
268
187
|
<div class="method-description">
|
269
188
|
|
270
|
-
|
271
|
-
|
272
189
|
</div>
|
273
190
|
</div>
|
274
|
-
|
275
191
|
</section>
|
276
|
-
|
277
192
|
|
278
|
-
|
193
|
+
|
279
194
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
280
195
|
<header>
|
281
196
|
<h3>Public Class Methods</h3>
|
282
197
|
</header>
|
283
198
|
|
284
|
-
|
285
199
|
<div id="method-c-new" class="method-detail ">
|
286
|
-
|
287
200
|
<div class="method-heading">
|
288
201
|
<span class="method-name">new</span><span
|
289
202
|
class="method-args">(worksheets = [], src_file_path = nil, creator = nil, modifier = nil, created_at = nil, company = '', application = APPLICATION, appversion = APPVERSION, date1904 = 0, is_template = false)</span>
|
290
|
-
|
291
203
|
<span class="method-click-advice">click to toggle source</span>
|
292
|
-
|
293
204
|
</div>
|
294
|
-
|
295
205
|
|
296
206
|
<div class="method-description">
|
297
207
|
|
298
|
-
|
299
|
-
|
300
|
-
|
301
208
|
<div class="method-calls-super">
|
302
209
|
Calls superclass method
|
303
210
|
<a href="OOXMLObjectInstanceMethods.html#method-c-new"><code>RubyXL::OOXMLObjectInstanceMethods::new</code></a>
|
304
211
|
</div>
|
305
|
-
|
306
212
|
|
307
|
-
|
308
213
|
<div class="method-source-code" id="new-source">
|
309
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
214
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 446</span>
|
310
215
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">worksheets</span> = [], <span class="ruby-identifier">src_file_path</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">creator</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">modifier</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">created_at</span> = <span class="ruby-keyword">nil</span>,
|
311
216
|
<span class="ruby-identifier">company</span> = <span class="ruby-string">''</span>, <span class="ruby-identifier">application</span> = <span class="ruby-constant">APPLICATION</span>, <span class="ruby-identifier">appversion</span> = <span class="ruby-constant">APPVERSION</span>, <span class="ruby-identifier">date1904</span> = <span class="ruby-value">0</span>,
|
312
217
|
<span class="ruby-identifier">is_template</span> = <span class="ruby-keyword">false</span>)
|
@@ -337,43 +242,30 @@
|
|
337
242
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_template</span> = <span class="ruby-identifier">is_template</span>
|
338
243
|
<span class="ruby-keyword">end</span></pre>
|
339
244
|
</div>
|
340
|
-
|
341
245
|
</div>
|
342
246
|
|
343
|
-
|
344
247
|
|
345
|
-
|
346
248
|
</div>
|
347
249
|
|
348
|
-
|
349
250
|
</section>
|
350
|
-
|
251
|
+
|
351
252
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
352
253
|
<header>
|
353
254
|
<h3>Public Instance Methods</h3>
|
354
255
|
</header>
|
355
256
|
|
356
|
-
|
357
257
|
<div id="method-i-5B-5D" class="method-detail ">
|
358
|
-
|
359
258
|
<div class="method-heading">
|
360
259
|
<span class="method-name">[]</span><span
|
361
260
|
class="method-args">(ind)</span>
|
362
|
-
|
363
261
|
<span class="method-click-advice">click to toggle source</span>
|
364
|
-
|
365
262
|
</div>
|
366
|
-
|
367
263
|
|
368
264
|
<div class="method-description">
|
369
|
-
|
370
265
|
<p>Finds worksheet by its name or numerical index</p>
|
371
|
-
|
372
|
-
|
373
266
|
|
374
|
-
|
375
267
|
<div class="method-source-code" id="5B-5D-source">
|
376
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
268
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 479</span>
|
377
269
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]</span>(<span class="ruby-identifier">ind</span>)
|
378
270
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
379
271
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>[<span class="ruby-identifier">ind</span>]
|
@@ -381,37 +273,25 @@
|
|
381
273
|
<span class="ruby-keyword">end</span>
|
382
274
|
<span class="ruby-keyword">end</span></pre>
|
383
275
|
</div>
|
384
|
-
|
385
276
|
</div>
|
386
277
|
|
387
|
-
|
388
278
|
|
389
|
-
|
390
279
|
</div>
|
391
280
|
|
392
|
-
|
393
281
|
<div id="method-i-add_worksheet" class="method-detail ">
|
394
|
-
|
395
282
|
<div class="method-heading">
|
396
283
|
<span class="method-name">add_worksheet</span><span
|
397
284
|
class="method-args">(name = nil)</span>
|
398
|
-
|
399
285
|
<span class="method-click-advice">click to toggle source</span>
|
400
|
-
|
401
286
|
</div>
|
402
|
-
|
403
287
|
|
404
288
|
<div class="method-description">
|
405
|
-
|
406
289
|
<p>Create new simple worksheet and add it to the workbook worksheets</p>
|
407
290
|
|
408
291
|
<p>@param [String] The name for the new worksheet</p>
|
409
|
-
|
410
|
-
|
411
292
|
|
412
|
-
|
413
293
|
<div class="method-source-code" id="add_worksheet-source">
|
414
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
294
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 489</span>
|
415
295
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_worksheet</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
|
416
296
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
417
297
|
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
@@ -426,169 +306,109 @@
|
|
426
306
|
<span class="ruby-identifier">new_worksheet</span>
|
427
307
|
<span class="ruby-keyword">end</span></pre>
|
428
308
|
</div>
|
429
|
-
|
430
309
|
</div>
|
431
310
|
|
432
|
-
|
433
311
|
|
434
|
-
|
435
312
|
</div>
|
436
313
|
|
437
|
-
|
438
314
|
<div id="method-i-application" class="method-detail ">
|
439
|
-
|
440
315
|
<div class="method-heading">
|
441
316
|
<span class="method-name">application</span><span
|
442
317
|
class="method-args">()</span>
|
443
|
-
|
444
318
|
<span class="method-click-advice">click to toggle source</span>
|
445
|
-
|
446
319
|
</div>
|
447
|
-
|
448
320
|
|
449
321
|
<div class="method-description">
|
450
322
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
323
|
|
455
|
-
|
456
324
|
<div class="method-source-code" id="application-source">
|
457
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
325
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 528</span>
|
458
326
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application</span>
|
459
327
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span>
|
460
328
|
<span class="ruby-keyword">end</span></pre>
|
461
329
|
</div>
|
462
|
-
|
463
330
|
</div>
|
464
331
|
|
465
|
-
|
466
332
|
|
467
|
-
|
468
333
|
</div>
|
469
334
|
|
470
|
-
|
471
335
|
<div id="method-i-application-3D" class="method-detail ">
|
472
|
-
|
473
336
|
<div class="method-heading">
|
474
337
|
<span class="method-name">application=</span><span
|
475
338
|
class="method-args">(v)</span>
|
476
|
-
|
477
339
|
<span class="method-click-advice">click to toggle source</span>
|
478
|
-
|
479
340
|
</div>
|
480
|
-
|
481
341
|
|
482
342
|
<div class="method-description">
|
483
343
|
|
484
|
-
|
485
|
-
|
486
|
-
|
487
344
|
|
488
|
-
|
489
345
|
<div class="method-source-code" id="application-3D-source">
|
490
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
346
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 532</span>
|
491
347
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application=</span>(<span class="ruby-identifier">v</span>)
|
492
348
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
493
349
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">application</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
494
350
|
<span class="ruby-keyword">end</span></pre>
|
495
351
|
</div>
|
496
|
-
|
497
352
|
</div>
|
498
353
|
|
499
|
-
|
500
354
|
|
501
|
-
|
502
355
|
</div>
|
503
356
|
|
504
|
-
|
505
357
|
<div id="method-i-appversion" class="method-detail ">
|
506
|
-
|
507
358
|
<div class="method-heading">
|
508
359
|
<span class="method-name">appversion</span><span
|
509
360
|
class="method-args">()</span>
|
510
|
-
|
511
361
|
<span class="method-click-advice">click to toggle source</span>
|
512
|
-
|
513
362
|
</div>
|
514
|
-
|
515
363
|
|
516
364
|
<div class="method-description">
|
517
365
|
|
518
|
-
|
519
|
-
|
520
|
-
|
521
366
|
|
522
|
-
|
523
367
|
<div class="method-source-code" id="appversion-source">
|
524
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
368
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 537</span>
|
525
369
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion</span>
|
526
370
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span>.<span class="ruby-identifier">value</span>
|
527
371
|
<span class="ruby-keyword">end</span></pre>
|
528
372
|
</div>
|
529
|
-
|
530
373
|
</div>
|
531
374
|
|
532
|
-
|
533
375
|
|
534
|
-
|
535
376
|
</div>
|
536
377
|
|
537
|
-
|
538
378
|
<div id="method-i-appversion-3D" class="method-detail ">
|
539
|
-
|
540
379
|
<div class="method-heading">
|
541
380
|
<span class="method-name">appversion=</span><span
|
542
381
|
class="method-args">(v)</span>
|
543
|
-
|
544
382
|
<span class="method-click-advice">click to toggle source</span>
|
545
|
-
|
546
383
|
</div>
|
547
|
-
|
548
384
|
|
549
385
|
<div class="method-description">
|
550
386
|
|
551
|
-
|
552
|
-
|
553
|
-
|
554
387
|
|
555
|
-
|
556
388
|
<div class="method-source-code" id="appversion-3D-source">
|
557
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
389
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 541</span>
|
558
390
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion=</span>(<span class="ruby-identifier">v</span>)
|
559
391
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
560
392
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">app_version</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
561
393
|
<span class="ruby-keyword">end</span></pre>
|
562
394
|
</div>
|
563
|
-
|
564
395
|
</div>
|
565
396
|
|
566
|
-
|
567
397
|
|
568
|
-
|
569
398
|
</div>
|
570
399
|
|
571
|
-
|
572
400
|
<div id="method-i-before_write_xml" class="method-detail ">
|
573
|
-
|
574
401
|
<div class="method-heading">
|
575
402
|
<span class="method-name">before_write_xml</span><span
|
576
403
|
class="method-args">()</span>
|
577
|
-
|
578
404
|
<span class="method-click-advice">click to toggle source</span>
|
579
|
-
|
580
405
|
</div>
|
581
|
-
|
582
406
|
|
583
407
|
<div class="method-description">
|
584
408
|
|
585
|
-
|
586
|
-
|
587
|
-
|
588
409
|
|
589
|
-
|
590
410
|
<div class="method-source-code" id="before_write_xml-source">
|
591
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
411
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 368</span>
|
592
412
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
|
593
413
|
<span class="ruby-identifier">max_sheet_id</span> = <span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">collect</span>(<span class="ruby-operator">&</span><span class="ruby-value">:sheet_id</span>).<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">max</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
594
414
|
|
@@ -598,6 +418,7 @@
|
|
598
418
|
<span class="ruby-identifier">rel</span> = <span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">find_by_target</span>(<span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">xlsx_path</span>)
|
599
419
|
|
600
420
|
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Worksheet name '#{sheet.sheet_name}' contains forbidden characters"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">SHEET_NAME_FORBIDDEN_CHARS</span>
|
421
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Worksheet name '#{sheet.sheet_name}' is forbidden"</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">SHEET_NAME_FORBIDDEN_NAMES</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span>)
|
601
422
|
|
602
423
|
<span class="ruby-identifier">sheets</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Sheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:name</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_name</span>[<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">30</span>], <span class="ruby-comment"># Max sheet name length is 31 char</span>
|
603
424
|
<span class="ruby-value">:sheet_id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">sheet_id</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">max_sheet_id</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>),
|
@@ -608,100 +429,64 @@
|
|
608
429
|
<span class="ruby-keyword">true</span>
|
609
430
|
<span class="ruby-keyword">end</span></pre>
|
610
431
|
</div>
|
611
|
-
|
612
432
|
</div>
|
613
433
|
|
614
|
-
|
615
434
|
|
616
|
-
|
617
435
|
</div>
|
618
436
|
|
619
|
-
|
620
437
|
<div id="method-i-company" class="method-detail ">
|
621
|
-
|
622
438
|
<div class="method-heading">
|
623
439
|
<span class="method-name">company</span><span
|
624
440
|
class="method-args">()</span>
|
625
|
-
|
626
441
|
<span class="method-click-advice">click to toggle source</span>
|
627
|
-
|
628
442
|
</div>
|
629
|
-
|
630
443
|
|
631
444
|
<div class="method-description">
|
632
445
|
|
633
|
-
|
634
|
-
|
635
|
-
|
636
446
|
|
637
|
-
|
638
447
|
<div class="method-source-code" id="company-source">
|
639
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
448
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 519</span>
|
640
449
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company</span>
|
641
450
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span>
|
642
451
|
<span class="ruby-keyword">end</span></pre>
|
643
452
|
</div>
|
644
|
-
|
645
453
|
</div>
|
646
454
|
|
647
|
-
|
648
455
|
|
649
|
-
|
650
456
|
</div>
|
651
457
|
|
652
|
-
|
653
458
|
<div id="method-i-company-3D" class="method-detail ">
|
654
|
-
|
655
459
|
<div class="method-heading">
|
656
460
|
<span class="method-name">company=</span><span
|
657
461
|
class="method-args">(v)</span>
|
658
|
-
|
659
462
|
<span class="method-click-advice">click to toggle source</span>
|
660
|
-
|
661
463
|
</div>
|
662
|
-
|
663
464
|
|
664
465
|
<div class="method-description">
|
665
466
|
|
666
|
-
|
667
|
-
|
668
|
-
|
669
467
|
|
670
|
-
|
671
468
|
<div class="method-source-code" id="company-3D-source">
|
672
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
469
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 523</span>
|
673
470
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company=</span>(<span class="ruby-identifier">v</span>)
|
674
471
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>
|
675
472
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">company</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
676
473
|
<span class="ruby-keyword">end</span></pre>
|
677
474
|
</div>
|
678
|
-
|
679
475
|
</div>
|
680
476
|
|
681
|
-
|
682
477
|
|
683
|
-
|
684
478
|
</div>
|
685
479
|
|
686
|
-
|
687
480
|
<div id="method-i-content_type" class="method-detail ">
|
688
|
-
|
689
481
|
<div class="method-heading">
|
690
482
|
<span class="method-name">content_type</span><span
|
691
483
|
class="method-args">()</span>
|
692
|
-
|
693
484
|
<span class="method-click-advice">click to toggle source</span>
|
694
|
-
|
695
485
|
</div>
|
696
|
-
|
697
486
|
|
698
487
|
<div class="method-description">
|
699
488
|
|
700
|
-
|
701
|
-
|
702
|
-
|
703
489
|
|
704
|
-
|
705
490
|
<div class="method-source-code" id="content_type-source">
|
706
491
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 313</span>
|
707
492
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">content_type</span>
|
@@ -711,468 +496,306 @@
|
|
711
496
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">content_type_name</span>)
|
712
497
|
<span class="ruby-keyword">end</span></pre>
|
713
498
|
</div>
|
714
|
-
|
715
499
|
</div>
|
716
500
|
|
717
|
-
|
718
501
|
|
719
|
-
|
720
502
|
</div>
|
721
503
|
|
722
|
-
|
723
504
|
<div id="method-i-created_at" class="method-detail ">
|
724
|
-
|
725
505
|
<div class="method-heading">
|
726
506
|
<span class="method-name">created_at</span><span
|
727
507
|
class="method-args">()</span>
|
728
|
-
|
729
508
|
<span class="method-click-advice">click to toggle source</span>
|
730
|
-
|
731
509
|
</div>
|
732
|
-
|
733
510
|
|
734
511
|
<div class="method-description">
|
735
512
|
|
736
|
-
|
737
|
-
|
738
|
-
|
739
513
|
|
740
|
-
|
741
514
|
<div class="method-source-code" id="created_at-source">
|
742
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
515
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 503</span>
|
743
516
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at</span>
|
744
517
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
|
745
518
|
<span class="ruby-keyword">end</span></pre>
|
746
519
|
</div>
|
747
|
-
|
748
520
|
</div>
|
749
521
|
|
750
|
-
|
751
522
|
|
752
|
-
|
753
523
|
</div>
|
754
524
|
|
755
|
-
|
756
525
|
<div id="method-i-created_at-3D" class="method-detail ">
|
757
|
-
|
758
526
|
<div class="method-heading">
|
759
527
|
<span class="method-name">created_at=</span><span
|
760
528
|
class="method-args">(v)</span>
|
761
|
-
|
762
529
|
<span class="method-click-advice">click to toggle source</span>
|
763
|
-
|
764
530
|
</div>
|
765
|
-
|
766
531
|
|
767
532
|
<div class="method-description">
|
768
533
|
|
769
|
-
|
770
|
-
|
771
|
-
|
772
534
|
|
773
|
-
|
774
535
|
<div class="method-source-code" id="created_at-3D-source">
|
775
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
536
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 507</span>
|
776
537
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at=</span>(<span class="ruby-identifier">v</span>)
|
777
538
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span> = <span class="ruby-identifier">v</span>
|
778
539
|
<span class="ruby-keyword">end</span></pre>
|
779
540
|
</div>
|
780
|
-
|
781
541
|
</div>
|
782
542
|
|
783
|
-
|
784
543
|
|
785
|
-
|
786
544
|
</div>
|
787
545
|
|
788
|
-
|
789
546
|
<div id="method-i-creator" class="method-detail ">
|
790
|
-
|
791
547
|
<div class="method-heading">
|
792
548
|
<span class="method-name">creator</span><span
|
793
549
|
class="method-args">()</span>
|
794
|
-
|
795
550
|
<span class="method-click-advice">click to toggle source</span>
|
796
|
-
|
797
551
|
</div>
|
798
|
-
|
799
552
|
|
800
553
|
<div class="method-description">
|
801
554
|
|
802
|
-
|
803
|
-
|
804
|
-
|
805
555
|
|
806
|
-
|
807
556
|
<div class="method-source-code" id="creator-source">
|
808
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
557
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 546</span>
|
809
558
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator</span>
|
810
559
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
|
811
560
|
<span class="ruby-keyword">end</span></pre>
|
812
561
|
</div>
|
813
|
-
|
814
562
|
</div>
|
815
563
|
|
816
|
-
|
817
564
|
|
818
|
-
|
819
565
|
</div>
|
820
566
|
|
821
|
-
|
822
567
|
<div id="method-i-creator-3D" class="method-detail ">
|
823
|
-
|
824
568
|
<div class="method-heading">
|
825
569
|
<span class="method-name">creator=</span><span
|
826
570
|
class="method-args">(v)</span>
|
827
|
-
|
828
571
|
<span class="method-click-advice">click to toggle source</span>
|
829
|
-
|
830
572
|
</div>
|
831
|
-
|
832
573
|
|
833
574
|
<div class="method-description">
|
834
575
|
|
835
|
-
|
836
|
-
|
837
|
-
|
838
576
|
|
839
|
-
|
840
577
|
<div class="method-source-code" id="creator-3D-source">
|
841
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
578
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 550</span>
|
842
579
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator=</span>(<span class="ruby-identifier">v</span>)
|
843
580
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span> = <span class="ruby-identifier">v</span>
|
844
581
|
<span class="ruby-keyword">end</span></pre>
|
845
582
|
</div>
|
846
|
-
|
847
583
|
</div>
|
848
584
|
|
849
|
-
|
850
585
|
|
851
|
-
|
852
586
|
</div>
|
853
587
|
|
854
|
-
|
855
588
|
<div id="method-i-date1904" class="method-detail ">
|
856
|
-
|
857
589
|
<div class="method-heading">
|
858
590
|
<span class="method-name">date1904</span><span
|
859
591
|
class="method-args">()</span>
|
860
|
-
|
861
592
|
<span class="method-click-advice">click to toggle source</span>
|
862
|
-
|
863
593
|
</div>
|
864
|
-
|
865
594
|
|
866
595
|
<div class="method-description">
|
867
596
|
|
868
|
-
|
869
|
-
|
870
|
-
|
871
597
|
|
872
|
-
|
873
598
|
<div class="method-source-code" id="date1904-source">
|
874
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
599
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 562</span>
|
875
600
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904</span>
|
876
601
|
<span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
|
877
602
|
<span class="ruby-keyword">end</span></pre>
|
878
603
|
</div>
|
879
|
-
|
880
604
|
</div>
|
881
605
|
|
882
|
-
|
883
606
|
|
884
|
-
|
885
607
|
</div>
|
886
608
|
|
887
|
-
|
888
609
|
<div id="method-i-date1904-3D" class="method-detail ">
|
889
|
-
|
890
610
|
<div class="method-heading">
|
891
611
|
<span class="method-name">date1904=</span><span
|
892
612
|
class="method-args">(v)</span>
|
893
|
-
|
894
613
|
<span class="method-click-advice">click to toggle source</span>
|
895
|
-
|
896
614
|
</div>
|
897
|
-
|
898
615
|
|
899
616
|
<div class="method-description">
|
900
617
|
|
901
|
-
|
902
|
-
|
903
|
-
|
904
618
|
|
905
|
-
|
906
619
|
<div class="method-source-code" id="date1904-3D-source">
|
907
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
620
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 566</span>
|
908
621
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904=</span>(<span class="ruby-identifier">v</span>)
|
909
622
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookProperties</span>.<span class="ruby-identifier">new</span>
|
910
623
|
<span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
|
911
624
|
<span class="ruby-keyword">end</span></pre>
|
912
625
|
</div>
|
913
|
-
|
914
626
|
</div>
|
915
627
|
|
916
|
-
|
917
628
|
|
918
|
-
|
919
629
|
</div>
|
920
630
|
|
921
|
-
|
922
631
|
<div id="method-i-date_to_num" class="method-detail ">
|
923
|
-
|
924
632
|
<div class="method-heading">
|
925
633
|
<span class="method-name">date_to_num</span><span
|
926
634
|
class="method-args">(date)</span>
|
927
|
-
|
928
635
|
<span class="method-click-advice">click to toggle source</span>
|
929
|
-
|
930
636
|
</div>
|
931
|
-
|
932
637
|
|
933
638
|
<div class="method-description">
|
934
639
|
|
935
|
-
|
936
|
-
|
937
|
-
|
938
640
|
|
939
|
-
|
940
641
|
<div class="method-source-code" id="date_to_num-source">
|
941
642
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 422</span>
|
942
643
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
943
|
-
<span class="ruby-
|
644
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">date</span>
|
645
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">DateTime</span> <span class="ruby-keyword">then</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
|
646
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Time</span> <span class="ruby-keyword">then</span> ((<span class="ruby-identifier">date</span>.<span class="ruby-identifier">to_r</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>.<span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">to_r</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">to_f</span>
|
647
|
+
<span class="ruby-keyword">end</span>
|
944
648
|
<span class="ruby-keyword">end</span></pre>
|
945
649
|
</div>
|
946
|
-
|
947
650
|
</div>
|
948
651
|
|
949
|
-
|
950
652
|
|
951
|
-
|
952
653
|
</div>
|
953
654
|
|
954
|
-
|
955
655
|
<div id="method-i-modified_at" class="method-detail ">
|
956
|
-
|
957
656
|
<div class="method-heading">
|
958
657
|
<span class="method-name">modified_at</span><span
|
959
658
|
class="method-args">()</span>
|
960
|
-
|
961
659
|
<span class="method-click-advice">click to toggle source</span>
|
962
|
-
|
963
660
|
</div>
|
964
|
-
|
965
661
|
|
966
662
|
<div class="method-description">
|
967
663
|
|
968
|
-
|
969
|
-
|
970
|
-
|
971
664
|
|
972
|
-
|
973
665
|
<div class="method-source-code" id="modified_at-source">
|
974
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
666
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 511</span>
|
975
667
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at</span>
|
976
668
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
977
669
|
<span class="ruby-keyword">end</span></pre>
|
978
670
|
</div>
|
979
|
-
|
980
671
|
</div>
|
981
672
|
|
982
|
-
|
983
673
|
|
984
|
-
|
985
674
|
</div>
|
986
675
|
|
987
|
-
|
988
676
|
<div id="method-i-modified_at-3D" class="method-detail ">
|
989
|
-
|
990
677
|
<div class="method-heading">
|
991
678
|
<span class="method-name">modified_at=</span><span
|
992
679
|
class="method-args">(v)</span>
|
993
|
-
|
994
680
|
<span class="method-click-advice">click to toggle source</span>
|
995
|
-
|
996
681
|
</div>
|
997
|
-
|
998
682
|
|
999
683
|
<div class="method-description">
|
1000
684
|
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
685
|
|
1005
|
-
|
1006
686
|
<div class="method-source-code" id="modified_at-3D-source">
|
1007
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
687
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 515</span>
|
1008
688
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at=</span>(<span class="ruby-identifier">v</span>)
|
1009
689
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span> = <span class="ruby-identifier">v</span>
|
1010
690
|
<span class="ruby-keyword">end</span></pre>
|
1011
691
|
</div>
|
1012
|
-
|
1013
692
|
</div>
|
1014
693
|
|
1015
|
-
|
1016
694
|
|
1017
|
-
|
1018
695
|
</div>
|
1019
696
|
|
1020
|
-
|
1021
697
|
<div id="method-i-modifier" class="method-detail ">
|
1022
|
-
|
1023
698
|
<div class="method-heading">
|
1024
699
|
<span class="method-name">modifier</span><span
|
1025
700
|
class="method-args">()</span>
|
1026
|
-
|
1027
701
|
<span class="method-click-advice">click to toggle source</span>
|
1028
|
-
|
1029
702
|
</div>
|
1030
|
-
|
1031
703
|
|
1032
704
|
<div class="method-description">
|
1033
705
|
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
706
|
|
1038
|
-
|
1039
707
|
<div class="method-source-code" id="modifier-source">
|
1040
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
708
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 554</span>
|
1041
709
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier</span>
|
1042
710
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
1043
711
|
<span class="ruby-keyword">end</span></pre>
|
1044
712
|
</div>
|
1045
|
-
|
1046
713
|
</div>
|
1047
714
|
|
1048
|
-
|
1049
715
|
|
1050
|
-
|
1051
716
|
</div>
|
1052
717
|
|
1053
|
-
|
1054
718
|
<div id="method-i-modifier-3D" class="method-detail ">
|
1055
|
-
|
1056
719
|
<div class="method-heading">
|
1057
720
|
<span class="method-name">modifier=</span><span
|
1058
721
|
class="method-args">(v)</span>
|
1059
|
-
|
1060
722
|
<span class="method-click-advice">click to toggle source</span>
|
1061
|
-
|
1062
723
|
</div>
|
1063
|
-
|
1064
724
|
|
1065
725
|
<div class="method-description">
|
1066
726
|
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
727
|
|
1071
|
-
|
1072
728
|
<div class="method-source-code" id="modifier-3D-source">
|
1073
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
729
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 558</span>
|
1074
730
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier=</span>(<span class="ruby-identifier">v</span>)
|
1075
731
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">v</span>
|
1076
732
|
<span class="ruby-keyword">end</span></pre>
|
1077
733
|
</div>
|
1078
|
-
|
1079
734
|
</div>
|
1080
735
|
|
1081
|
-
|
1082
736
|
|
1083
|
-
|
1084
737
|
</div>
|
1085
738
|
|
1086
|
-
|
1087
739
|
<div id="method-i-num_to_date" class="method-detail ">
|
1088
|
-
|
1089
740
|
<div class="method-heading">
|
1090
741
|
<span class="method-name">num_to_date</span><span
|
1091
742
|
class="method-args">(num)</span>
|
1092
|
-
|
1093
743
|
<span class="method-click-advice">click to toggle source</span>
|
1094
|
-
|
1095
744
|
</div>
|
1096
|
-
|
1097
745
|
|
1098
746
|
<div class="method-description">
|
1099
747
|
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
748
|
|
1104
|
-
|
1105
749
|
<div class="method-source-code" id="num_to_date-source">
|
1106
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
750
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 429</span>
|
1107
751
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
752
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span>.<span class="ruby-identifier">nil?</span>
|
753
|
+
|
1108
754
|
<span class="ruby-comment"># Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)</span>
|
1109
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&
|
755
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator"><</span> <span class="ruby-constant">MARCH_1_1900</span> <span class="ruby-keyword">then</span>
|
1110
756
|
<span class="ruby-identifier">num</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">workbook_properties</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span>
|
1111
757
|
<span class="ruby-keyword">end</span>
|
1112
758
|
|
1113
|
-
<span class="ruby-identifier">
|
759
|
+
<span class="ruby-identifier">dateparts</span> = <span class="ruby-identifier">num</span>.<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
|
760
|
+
<span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">+</span> (<span class="ruby-identifier">dateparts</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">*</span> <span class="ruby-value">86400</span>).<span class="ruby-identifier">round</span>(<span class="ruby-value">6</span>) <span class="ruby-operator">/</span> <span class="ruby-value">86400</span>)
|
1114
761
|
<span class="ruby-keyword">end</span></pre>
|
1115
762
|
</div>
|
1116
|
-
|
1117
763
|
</div>
|
1118
764
|
|
1119
|
-
|
1120
765
|
|
1121
|
-
|
1122
766
|
</div>
|
1123
767
|
|
1124
|
-
|
1125
768
|
<div id="method-i-related_objects" class="method-detail ">
|
1126
|
-
|
1127
769
|
<div class="method-heading">
|
1128
770
|
<span class="method-name">related_objects</span><span
|
1129
771
|
class="method-args">()</span>
|
1130
|
-
|
1131
772
|
<span class="method-click-advice">click to toggle source</span>
|
1132
|
-
|
1133
773
|
</div>
|
1134
|
-
|
1135
774
|
|
1136
775
|
<div class="method-description">
|
1137
776
|
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
777
|
|
1142
|
-
|
1143
778
|
<div class="method-source-code" id="related_objects-source">
|
1144
779
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 320</span>
|
1145
780
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">related_objects</span>
|
1146
781
|
[ <span class="ruby-identifier">calculation_chain</span>, <span class="ruby-identifier">stylesheet</span>, <span class="ruby-identifier">theme</span>, <span class="ruby-identifier">shared_strings_container</span>, <span class="ruby-identifier">macros</span> ] <span class="ruby-operator">+</span> <span class="ruby-ivar">@worksheets</span>
|
1147
782
|
<span class="ruby-keyword">end</span></pre>
|
1148
783
|
</div>
|
1149
|
-
|
1150
784
|
</div>
|
1151
785
|
|
1152
|
-
|
1153
786
|
|
1154
|
-
|
1155
787
|
</div>
|
1156
788
|
|
1157
|
-
|
1158
789
|
<div id="method-i-save" class="method-detail ">
|
1159
|
-
|
1160
790
|
<div class="method-heading">
|
1161
791
|
<span class="method-name">save</span><span
|
1162
792
|
class="method-args">(dst_file_path = nil)</span>
|
1163
|
-
|
1164
793
|
<span class="method-click-advice">click to toggle source</span>
|
1165
|
-
|
1166
794
|
</div>
|
1167
|
-
|
1168
795
|
|
1169
796
|
<div class="method-description">
|
1170
|
-
|
1171
797
|
<p>Save the resulting XLSX file to the specified location</p>
|
1172
|
-
|
1173
|
-
|
1174
798
|
|
1175
|
-
|
1176
799
|
<div class="method-source-code" id="save-source">
|
1177
800
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 398</span>
|
1178
801
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">save</span>(<span class="ruby-identifier">dst_file_path</span> = <span class="ruby-keyword">nil</span>)
|
@@ -1183,127 +806,87 @@
|
|
1183
806
|
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported)."</span>
|
1184
807
|
<span class="ruby-keyword">end</span>
|
1185
808
|
|
1186
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string"
|
809
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">dst_file_path</span>, <span class="ruby-string">'wb'</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">output_file</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">copy_stream</span>(<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>, <span class="ruby-identifier">output_file</span>) }
|
1187
810
|
|
1188
811
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">dst_file_path</span>
|
1189
812
|
<span class="ruby-keyword">end</span></pre>
|
1190
813
|
</div>
|
1191
|
-
|
1192
814
|
</div>
|
1193
815
|
|
1194
|
-
|
1195
816
|
<div class="aliases">
|
1196
817
|
Also aliased as: <a href="Workbook.html#method-i-write">write</a>
|
1197
818
|
</div>
|
1198
|
-
|
1199
819
|
|
1200
|
-
|
1201
820
|
</div>
|
1202
821
|
|
1203
|
-
|
1204
822
|
<div id="method-i-stream" class="method-detail ">
|
1205
|
-
|
1206
823
|
<div class="method-heading">
|
1207
824
|
<span class="method-name">stream</span><span
|
1208
825
|
class="method-args">()</span>
|
1209
|
-
|
1210
826
|
<span class="method-click-advice">click to toggle source</span>
|
1211
|
-
|
1212
827
|
</div>
|
1213
|
-
|
1214
828
|
|
1215
829
|
<div class="method-description">
|
1216
|
-
|
1217
830
|
<p>Return the resulting XLSX file in a stream (useful for sending over HTTP)</p>
|
1218
|
-
|
1219
|
-
|
1220
831
|
|
1221
|
-
|
1222
832
|
<div class="method-source-code" id="stream-source">
|
1223
833
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 393</span>
|
1224
834
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">stream</span>
|
1225
835
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>
|
1226
836
|
<span class="ruby-keyword">end</span></pre>
|
1227
837
|
</div>
|
1228
|
-
|
1229
838
|
</div>
|
1230
839
|
|
1231
|
-
|
1232
840
|
|
1233
|
-
|
1234
841
|
</div>
|
1235
842
|
|
1236
|
-
|
1237
843
|
<div id="method-i-write" class="method-detail method-alias">
|
1238
|
-
|
1239
844
|
<div class="method-heading">
|
1240
845
|
<span class="method-name">write</span><span
|
1241
846
|
class="method-args">(dst_file_path = nil)</span>
|
1242
|
-
|
1243
847
|
</div>
|
1244
|
-
|
1245
848
|
|
1246
849
|
<div class="method-description">
|
1247
850
|
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1251
851
|
|
1252
|
-
|
1253
852
|
</div>
|
1254
853
|
|
1255
|
-
|
1256
854
|
|
1257
|
-
|
1258
855
|
<div class="aliases">
|
1259
856
|
Alias for: <a href="Workbook.html#method-i-save">save</a>
|
1260
857
|
</div>
|
1261
|
-
|
1262
858
|
</div>
|
1263
859
|
|
1264
|
-
|
1265
860
|
<div id="method-i-xlsx_path" class="method-detail ">
|
1266
|
-
|
1267
861
|
<div class="method-heading">
|
1268
862
|
<span class="method-name">xlsx_path</span><span
|
1269
863
|
class="method-args">()</span>
|
1270
|
-
|
1271
864
|
<span class="method-click-advice">click to toggle source</span>
|
1272
|
-
|
1273
865
|
</div>
|
1274
|
-
|
1275
866
|
|
1276
867
|
<div class="method-description">
|
1277
868
|
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
869
|
|
1282
|
-
|
1283
870
|
<div class="method-source-code" id="xlsx_path-source">
|
1284
871
|
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 388</span>
|
1285
872
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">xlsx_path</span>
|
1286
873
|
<span class="ruby-constant">ROOT</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'workbook.xml'</span>)
|
1287
874
|
<span class="ruby-keyword">end</span></pre>
|
1288
875
|
</div>
|
1289
|
-
|
1290
876
|
</div>
|
1291
877
|
|
1292
|
-
|
1293
878
|
|
1294
|
-
|
1295
879
|
</div>
|
1296
880
|
|
1297
|
-
|
1298
881
|
</section>
|
1299
|
-
|
882
|
+
|
1300
883
|
</section>
|
1301
884
|
</main>
|
1302
885
|
|
1303
886
|
|
1304
887
|
<footer id="validator-badges" role="contentinfo">
|
1305
888
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
1306
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
889
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
1307
890
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
1308
891
|
</footer>
|
1309
892
|
|