rubyXL 3.3.21 → 3.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +96 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +47 -16
- data/Rakefile +3 -2
- data/VERSION +1 -1
- data/lib/rubyXL.rb +1 -0
- data/lib/rubyXL/cell.rb +1 -26
- data/lib/rubyXL/convenience_methods.rb +5 -982
- data/lib/rubyXL/convenience_methods/cell.rb +272 -0
- data/lib/rubyXL/convenience_methods/color.rb +160 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +136 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +710 -0
- data/lib/rubyXL/objects/border.rb +31 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +8 -8
- data/lib/rubyXL/objects/chartsheet.rb +10 -10
- data/lib/rubyXL/objects/color.rb +6 -4
- data/lib/rubyXL/objects/column_range.rb +10 -10
- data/lib/rubyXL/objects/comments.rb +6 -6
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +2 -2
- data/lib/rubyXL/objects/content_types.rb +2 -2
- data/lib/rubyXL/objects/data_validation.rb +4 -2
- data/lib/rubyXL/objects/document_properties.rb +3 -3
- data/lib/rubyXL/objects/extensions.rb +20 -3
- data/lib/rubyXL/objects/external_links.rb +26 -2
- data/lib/rubyXL/objects/fill.rb +4 -4
- data/lib/rubyXL/objects/filters.rb +12 -12
- data/lib/rubyXL/objects/font.rb +2 -60
- data/lib/rubyXL/objects/formula.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +15 -3
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/relationships.rb +8 -3
- data/lib/rubyXL/objects/shared_strings.rb +1 -1
- data/lib/rubyXL/objects/sheet_common.rb +4 -4
- data/lib/rubyXL/objects/sheet_data.rb +48 -11
- data/lib/rubyXL/objects/simple_types.rb +18 -0
- data/lib/rubyXL/objects/storage.rb +25 -1
- data/lib/rubyXL/objects/stylesheet.rb +14 -14
- data/lib/rubyXL/objects/text.rb +8 -8
- data/lib/rubyXL/objects/theme.rb +138 -119
- data/lib/rubyXL/objects/workbook.rb +153 -43
- data/lib/rubyXL/objects/worksheet.rb +118 -107
- data/lib/rubyXL/worksheet.rb +19 -13
- data/rdoc/README_rdoc.html +109 -103
- data/rdoc/RubyXL.html +39 -296
- data/rdoc/RubyXL/AExtension.html +21 -60
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
- data/rdoc/RubyXL/ActiveX.html +154 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +13 -19
- data/rdoc/RubyXL/Alignment.html +13 -19
- data/rdoc/RubyXL/AlternateContent.html +12 -17
- data/rdoc/RubyXL/Authors.html +13 -19
- data/rdoc/RubyXL/AutoFilter.html +13 -19
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
- data/rdoc/RubyXL/BinaryImageFile.html +12 -25
- data/rdoc/RubyXL/BodyProperties.html +13 -19
- data/rdoc/RubyXL/BooleanNode.html +12 -17
- data/rdoc/RubyXL/BooleanValue.html +12 -17
- data/rdoc/RubyXL/Border.html +76 -53
- data/rdoc/RubyXL/BorderEdge.html +71 -17
- data/rdoc/RubyXL/Borders.html +19 -39
- data/rdoc/RubyXL/Break.html +13 -19
- data/rdoc/RubyXL/BreakList.html +13 -19
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
- data/rdoc/RubyXL/CT_Backdrop.html +13 -19
- data/rdoc/RubyXL/CT_Bevel.html +13 -19
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
- data/rdoc/RubyXL/CT_Blip.html +13 -19
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
- data/rdoc/RubyXL/CT_Camera.html +13 -19
- data/rdoc/RubyXL/CT_Color.html +13 -19
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
- data/rdoc/RubyXL/CT_DashStop.html +13 -19
- data/rdoc/RubyXL/CT_DashStopList.html +13 -19
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
- data/rdoc/RubyXL/CT_EffectList.html +13 -19
- data/rdoc/RubyXL/CT_EffectReference.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
- data/rdoc/RubyXL/CT_FillEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
- data/rdoc/RubyXL/CT_FlatText.html +13 -19
- data/rdoc/RubyXL/CT_FontCollection.html +13 -19
- data/rdoc/RubyXL/CT_FontReference.html +13 -19
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_GradientStop.html +13 -19
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
- data/rdoc/RubyXL/CT_HslColor.html +13 -19
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_LightRig.html +13 -19
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_Path2D.html +13 -19
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DList.html +13 -19
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_Point3D.html +13 -19
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CT_PresetColor.html +13 -19
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_Scene3D.html +13 -19
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
- data/rdoc/RubyXL/CT_Shape3D.html +13 -19
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
- data/rdoc/RubyXL/CT_SystemColor.html +13 -19
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextFont.html +13 -19
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_TintEffect.html +13 -19
- data/rdoc/RubyXL/CT_Transform2D.html +13 -19
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
- data/rdoc/RubyXL/CT_Vector3D.html +13 -19
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CalculationChain.html +17 -45
- data/rdoc/RubyXL/CalculationChainCell.html +13 -19
- data/rdoc/RubyXL/CalculationProperties.html +13 -19
- data/rdoc/RubyXL/Cell.html +144 -204
- data/rdoc/RubyXL/CellConvenienceMethods.html +240 -426
- data/rdoc/RubyXL/CellExt.html +13 -19
- data/rdoc/RubyXL/CellSmartTag.html +13 -19
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
- data/rdoc/RubyXL/CellSmartTags.html +13 -19
- data/rdoc/RubyXL/CellStyle.html +13 -19
- data/rdoc/RubyXL/CellStyleXFs.html +18 -38
- data/rdoc/RubyXL/CellStyles.html +18 -38
- data/rdoc/RubyXL/CellValue.html +18 -38
- data/rdoc/RubyXL/CellWatch.html +13 -19
- data/rdoc/RubyXL/CellWatches.html +13 -19
- data/rdoc/RubyXL/CellXFs.html +19 -39
- data/rdoc/RubyXL/ChartColorsFile.html +12 -25
- data/rdoc/RubyXL/ChartFile.html +19 -49
- data/rdoc/RubyXL/ChartStyleFile.html +12 -25
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
- data/rdoc/RubyXL/Chartsheet.html +19 -67
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
- data/rdoc/RubyXL/ChartsheetView.html +13 -19
- data/rdoc/RubyXL/ChartsheetViews.html +13 -19
- data/rdoc/RubyXL/Color.html +28 -39
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -19
- data/rdoc/RubyXL/ColorScale.html +13 -19
- data/rdoc/RubyXL/ColorSet.html +13 -19
- data/rdoc/RubyXL/Colors.html +13 -19
- data/rdoc/RubyXL/ColumnRange.html +20 -71
- data/rdoc/RubyXL/ColumnRanges.html +20 -79
- data/rdoc/RubyXL/Comment.html +13 -19
- data/rdoc/RubyXL/CommentList.html +13 -19
- data/rdoc/RubyXL/CommentsFile.html +17 -50
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +147 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
- data/rdoc/RubyXL/ContentTypes.html +23 -63
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
- data/rdoc/RubyXL/CorePropertiesFile.html +26 -162
- data/rdoc/RubyXL/CustomColor.html +13 -19
- data/rdoc/RubyXL/CustomColorList.html +13 -19
- data/rdoc/RubyXL/CustomFilter.html +13 -19
- data/rdoc/RubyXL/CustomFilters.html +13 -19
- data/rdoc/RubyXL/CustomGeometry.html +13 -19
- data/rdoc/RubyXL/CustomProperties.html +13 -19
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
- data/rdoc/RubyXL/CustomProperty.html +13 -19
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -19
- data/rdoc/RubyXL/CustomSheetViews.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
- data/rdoc/RubyXL/CustomXMLFile.html +12 -22
- data/rdoc/RubyXL/DXF.html +13 -19
- data/rdoc/RubyXL/DXFs.html +13 -19
- data/rdoc/RubyXL/DataBar.html +13 -19
- data/rdoc/RubyXL/DataConsolidate.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
- data/rdoc/RubyXL/DataType.html +11 -39
- data/rdoc/RubyXL/DataValidation.html +13 -19
- data/rdoc/RubyXL/DataValidations.html +13 -19
- data/rdoc/RubyXL/DateGroupItem.html +13 -19
- data/rdoc/RubyXL/DefinedName.html +13 -19
- data/rdoc/RubyXL/DefinedNameExt.html +13 -19
- data/rdoc/RubyXL/DefinedNames.html +13 -19
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
- data/rdoc/RubyXL/DocumentPropertiesFile.html +20 -66
- data/rdoc/RubyXL/DrawingFile.html +19 -49
- data/rdoc/RubyXL/DynamicFilter.html +13 -19
- data/rdoc/RubyXL/EmbeddedControl.html +13 -19
- data/rdoc/RubyXL/EmbeddedControls.html +13 -19
- data/rdoc/RubyXL/Extension.html +13 -19
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
- data/rdoc/RubyXL/Extents.html +13 -19
- data/rdoc/RubyXL/ExternalBook.html +13 -19
- data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
- data/rdoc/RubyXL/ExternalReference.html +13 -19
- data/rdoc/RubyXL/ExternalReferences.html +13 -19
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
- data/rdoc/RubyXL/FieldItem.html +13 -19
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
- data/rdoc/RubyXL/FileSharing.html +13 -19
- data/rdoc/RubyXL/FileVersion.html +13 -19
- data/rdoc/RubyXL/Fill.html +18 -38
- data/rdoc/RubyXL/Fills.html +18 -38
- data/rdoc/RubyXL/FilterContainer.html +13 -19
- data/rdoc/RubyXL/FloatNode.html +12 -17
- data/rdoc/RubyXL/FloatValue.html +12 -17
- data/rdoc/RubyXL/Font.html +20 -544
- data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
- data/rdoc/RubyXL/FontScheme.html +13 -19
- data/rdoc/RubyXL/Fonts.html +19 -39
- data/rdoc/RubyXL/Formula.html +13 -19
- data/rdoc/RubyXL/FunctionGroup.html +13 -19
- data/rdoc/RubyXL/FunctionGroups.html +13 -19
- data/rdoc/RubyXL/GenericStorageObject.html +19 -81
- data/rdoc/RubyXL/GradientFill.html +13 -19
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
- data/rdoc/RubyXL/Hyperlink.html +13 -19
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
- data/rdoc/RubyXL/Hyperlinks.html +13 -19
- data/rdoc/RubyXL/IconFilter.html +13 -19
- data/rdoc/RubyXL/IconSet.html +13 -19
- data/rdoc/RubyXL/IgnoredError.html +13 -19
- data/rdoc/RubyXL/IgnoredErrors.html +13 -19
- data/rdoc/RubyXL/IndexedColors.html +13 -19
- data/rdoc/RubyXL/InputCells.html +13 -19
- data/rdoc/RubyXL/IntegerNode.html +12 -17
- data/rdoc/RubyXL/IntegerValue.html +12 -17
- data/rdoc/RubyXL/LegacyCell.html +14 -66
- data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
- data/rdoc/RubyXL/MRUColors.html +13 -19
- data/rdoc/RubyXL/MacrosFile.html +12 -25
- data/rdoc/RubyXL/MergedCell.html +13 -19
- data/rdoc/RubyXL/MergedCells.html +13 -19
- data/rdoc/RubyXL/NumFmt.html +13 -19
- data/rdoc/RubyXL/NumberFormat.html +18 -38
- data/rdoc/RubyXL/NumberFormats.html +18 -44
- data/rdoc/RubyXL/OLEObject.html +13 -19
- data/rdoc/RubyXL/OLEObjectFile.html +12 -25
- data/rdoc/RubyXL/OLEObjects.html +13 -19
- data/rdoc/RubyXL/OLESize.html +13 -19
- data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
- data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
- data/rdoc/RubyXL/OOXMLObject.html +15 -25
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +88 -179
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +47 -183
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +42 -194
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -19
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +13 -19
- data/rdoc/RubyXL/PageMargins.html +13 -19
- data/rdoc/RubyXL/PageSetup.html +13 -19
- data/rdoc/RubyXL/PageSetupProperties.html +13 -19
- data/rdoc/RubyXL/Pane.html +13 -19
- data/rdoc/RubyXL/Parser.html +20 -53
- data/rdoc/RubyXL/PatternFill.html +13 -19
- data/rdoc/RubyXL/PhoneticProperties.html +13 -19
- data/rdoc/RubyXL/PhoneticRun.html +13 -19
- data/rdoc/RubyXL/PivotArea.html +13 -19
- data/rdoc/RubyXL/PivotCache.html +13 -19
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
- data/rdoc/RubyXL/PivotCaches.html +13 -19
- data/rdoc/RubyXL/PivotReference.html +13 -19
- data/rdoc/RubyXL/PivotReferences.html +13 -19
- data/rdoc/RubyXL/PivotTableFile.html +14 -30
- data/rdoc/RubyXL/PivotTableSelection.html +13 -19
- data/rdoc/RubyXL/PresetGeometry.html +13 -19
- data/rdoc/RubyXL/PrintOptions.html +13 -19
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
- data/rdoc/RubyXL/ProtectedRange.html +13 -19
- data/rdoc/RubyXL/ProtectedRanges.html +13 -19
- data/rdoc/RubyXL/Protection.html +13 -19
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +155 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -17
- data/rdoc/RubyXL/RawOOXML.html +19 -58
- data/rdoc/RubyXL/Reference.html +31 -215
- data/rdoc/RubyXL/Relationship.html +12 -17
- data/rdoc/RubyXL/RelationshipSupport.html +32 -126
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +15 -33
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +18 -38
- data/rdoc/RubyXL/RichTextRun.html +17 -37
- data/rdoc/RubyXL/Row.html +53 -152
- data/rdoc/RubyXL/RowExt.html +13 -19
- data/rdoc/RubyXL/RunProperties.html +13 -19
- data/rdoc/RubyXL/Scenario.html +13 -19
- data/rdoc/RubyXL/Scenarios.html +13 -19
- data/rdoc/RubyXL/Selection.html +20 -40
- data/rdoc/RubyXL/ShapeGuide.html +13 -19
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
- data/rdoc/RubyXL/SharedStringsTable.html +31 -140
- data/rdoc/RubyXL/Sheet.html +13 -19
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
- data/rdoc/RubyXL/SheetData.html +20 -53
- data/rdoc/RubyXL/SheetDataExt.html +13 -19
- data/rdoc/RubyXL/SheetDataSet.html +13 -19
- data/rdoc/RubyXL/SheetName.html +13 -19
- data/rdoc/RubyXL/SheetNames.html +13 -19
- data/rdoc/RubyXL/Sheets.html +13 -19
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
- data/rdoc/RubyXL/SlicerFile.html +12 -25
- data/rdoc/RubyXL/SmartTagProperties.html +13 -19
- data/rdoc/RubyXL/SmartTagType.html +13 -19
- data/rdoc/RubyXL/SmartTagTypes.html +13 -19
- data/rdoc/RubyXL/SmartTags.html +13 -19
- data/rdoc/RubyXL/SortCondition.html +13 -19
- data/rdoc/RubyXL/SortState.html +13 -19
- data/rdoc/RubyXL/Sqref.html +18 -51
- data/rdoc/RubyXL/Stop.html +13 -19
- data/rdoc/RubyXL/StringNode.html +12 -17
- data/rdoc/RubyXL/StringNodeW3C.html +19 -52
- data/rdoc/RubyXL/StringValue.html +12 -17
- data/rdoc/RubyXL/Stylesheet.html +30 -112
- data/rdoc/RubyXL/TableFile.html +12 -25
- data/rdoc/RubyXL/TableParts.html +12 -17
- data/rdoc/RubyXL/TableStyle.html +13 -19
- data/rdoc/RubyXL/TableStyles.html +13 -19
- data/rdoc/RubyXL/Text.html +19 -63
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +58 -63
- data/rdoc/RubyXL/ThemeElements.html +13 -19
- data/rdoc/RubyXL/ThumbnailFile.html +12 -25
- data/rdoc/RubyXL/Top10.html +13 -19
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
- data/rdoc/RubyXL/Variant.html +13 -19
- data/rdoc/RubyXL/Vector.html +17 -37
- data/rdoc/RubyXL/VectorValue.html +12 -17
- data/rdoc/RubyXL/VisualProperties.html +13 -19
- data/rdoc/RubyXL/WebPublishObject.html +13 -19
- data/rdoc/RubyXL/WebPublishObjects.html +13 -19
- data/rdoc/RubyXL/WebPublishingItem.html +13 -19
- data/rdoc/RubyXL/WebPublishingItems.html +13 -19
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +483 -226
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +149 -857
- data/rdoc/RubyXL/WorkbookProperties.html +13 -19
- data/rdoc/RubyXL/WorkbookProtection.html +13 -19
- data/rdoc/RubyXL/WorkbookRoot.html +23 -109
- data/rdoc/RubyXL/WorkbookView.html +13 -19
- data/rdoc/RubyXL/WorkbookViews.html +13 -19
- data/rdoc/RubyXL/Worksheet.html +70 -122
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +398 -1049
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
- data/rdoc/RubyXL/WorksheetProperties.html +13 -19
- data/rdoc/RubyXL/WorksheetProtection.html +13 -19
- data/rdoc/RubyXL/WorksheetView.html +13 -19
- data/rdoc/RubyXL/WorksheetViews.html +13 -19
- data/rdoc/RubyXL/XF.html +13 -19
- data/rdoc/created.rid +45 -38
- data/rdoc/css/fonts.css +6 -6
- data/rdoc/css/rdoc.css +35 -6
- data/rdoc/index.html +43 -363
- data/rdoc/js/darkfish.js +23 -100
- data/rdoc/js/navigation.js +4 -41
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +7 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +368 -75
- data/rubyXL.gemspec +60 -26
- data/spec/lib/cell_spec.rb +147 -2
- data/spec/lib/color_spec.rb +1 -0
- data/spec/lib/parser_spec.rb +1 -1
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/text_spec.rb +8 -0
- data/spec/lib/workbook_spec.rb +12 -1
- data/spec/lib/worksheet_spec.rb +353 -37
- data/test/test_parse_write.rb +15 -15
- metadata +63 -9
- data/rdoc/js/jquery.js +0 -4
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>class RubyXL::WebQueryProperties - rubyXL 3.4.17</title>
|
|
8
|
+
|
|
9
|
+
<script type="text/javascript">
|
|
10
|
+
var rdoc_rel_prefix = "../";
|
|
11
|
+
var index_rel_prefix = "../";
|
|
12
|
+
</script>
|
|
13
|
+
|
|
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>
|
|
19
|
+
|
|
20
|
+
<link href="../css/fonts.css" rel="stylesheet">
|
|
21
|
+
<link href="../css/rdoc.css" rel="stylesheet">
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<body id="top" role="document" class="class">
|
|
25
|
+
<nav role="navigation">
|
|
26
|
+
<div id="project-navigation">
|
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
+
<h2>
|
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
|
30
|
+
</h2>
|
|
31
|
+
|
|
32
|
+
<div id="table-of-contents-navigation">
|
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
+
<div id="search-field-wrapper">
|
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
+
</form>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<div id="class-metadata">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
62
|
+
<h3>Parent</h3>
|
|
63
|
+
|
|
64
|
+
<p class="link">OOXMLObject
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
</nav>
|
|
72
|
+
|
|
73
|
+
<main role="main" aria-labelledby="class-RubyXL::WebQueryProperties">
|
|
74
|
+
<h1 id="class-RubyXL::WebQueryProperties" class="class">
|
|
75
|
+
class RubyXL::WebQueryProperties
|
|
76
|
+
</h1>
|
|
77
|
+
|
|
78
|
+
<section class="description">
|
|
79
|
+
|
|
80
|
+
<p><a href="http://www.datypic.com/sc/ooxml/e-ssml_webPr-1.html">www.datypic.com/sc/ooxml/e-ssml_webPr-1.html</a></p>
|
|
81
|
+
|
|
82
|
+
</section>
|
|
83
|
+
|
|
84
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
</section>
|
|
91
|
+
</main>
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<footer id="validator-badges" role="contentinfo">
|
|
95
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
96
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
|
97
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
98
|
+
</footer>
|
|
99
|
+
|
data/rdoc/RubyXL/Workbook.html
CHANGED
|
@@ -4,20 +4,23 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::Workbook - rubyXL 3.
|
|
7
|
+
<title>class RubyXL::Workbook - rubyXL 3.4.17</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
|
+
var index_rel_prefix = "../";
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
|
-
<script src="../js/
|
|
14
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
15
19
|
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
18
22
|
|
|
19
23
|
|
|
20
|
-
|
|
21
24
|
<body id="top" role="document" class="class">
|
|
22
25
|
<nav role="navigation">
|
|
23
26
|
<div id="project-navigation">
|
|
@@ -54,61 +57,58 @@
|
|
|
54
57
|
|
|
55
58
|
<div id="class-metadata">
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
|
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
|
58
62
|
<h3>Parent</h3>
|
|
59
63
|
|
|
60
|
-
|
|
61
64
|
<p class="link"><a href="OOXMLTopLevelObject.html">RubyXL::OOXMLTopLevelObject</a>
|
|
62
|
-
|
|
63
65
|
</div>
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
|
|
68
|
+
<div id="includes-section" class="nav-section">
|
|
66
69
|
<h3>Included Modules</h3>
|
|
67
70
|
|
|
68
71
|
<ul class="link-list">
|
|
69
|
-
|
|
70
|
-
|
|
71
72
|
<li><a class="include" href="RelationshipSupport.html">RubyXL::RelationshipSupport</a>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
73
|
<li><span class="include">Enumerable</span>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<li><a class="include" href="WorkbookConvenienceMethods.html">RubyXL::WorkbookConvenienceMethods</a>
|
|
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
|
-
|
|
85
|
+
<li ><a href="#method-i-5B-5D">#[]</a>
|
|
86
|
+
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
|
87
|
+
<li ><a href="#method-i-application">#application</a>
|
|
88
|
+
<li ><a href="#method-i-application-3D">#application=</a>
|
|
89
|
+
<li ><a href="#method-i-appversion">#appversion</a>
|
|
90
|
+
<li ><a href="#method-i-appversion-3D">#appversion=</a>
|
|
94
91
|
<li ><a href="#method-i-before_write_xml">#before_write_xml</a>
|
|
95
|
-
|
|
92
|
+
<li ><a href="#method-i-company">#company</a>
|
|
93
|
+
<li ><a href="#method-i-company-3D">#company=</a>
|
|
96
94
|
<li ><a href="#method-i-content_type">#content_type</a>
|
|
97
|
-
|
|
95
|
+
<li ><a href="#method-i-created_at">#created_at</a>
|
|
96
|
+
<li ><a href="#method-i-created_at-3D">#created_at=</a>
|
|
97
|
+
<li ><a href="#method-i-creator">#creator</a>
|
|
98
|
+
<li ><a href="#method-i-creator-3D">#creator=</a>
|
|
99
|
+
<li ><a href="#method-i-date1904">#date1904</a>
|
|
100
|
+
<li ><a href="#method-i-date1904-3D">#date1904=</a>
|
|
98
101
|
<li ><a href="#method-i-date_to_num">#date_to_num</a>
|
|
99
|
-
|
|
102
|
+
<li ><a href="#method-i-modified_at">#modified_at</a>
|
|
103
|
+
<li ><a href="#method-i-modified_at-3D">#modified_at=</a>
|
|
104
|
+
<li ><a href="#method-i-modifier">#modifier</a>
|
|
105
|
+
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
|
100
106
|
<li ><a href="#method-i-num_to_date">#num_to_date</a>
|
|
101
|
-
|
|
102
107
|
<li ><a href="#method-i-related_objects">#related_objects</a>
|
|
103
|
-
|
|
104
108
|
<li ><a href="#method-i-save">#save</a>
|
|
105
|
-
|
|
106
109
|
<li ><a href="#method-i-stream">#stream</a>
|
|
107
|
-
|
|
108
110
|
<li ><a href="#method-i-write">#write</a>
|
|
109
|
-
|
|
110
111
|
<li ><a href="#method-i-xlsx_path">#xlsx_path</a>
|
|
111
|
-
|
|
112
112
|
</ul>
|
|
113
113
|
</div>
|
|
114
114
|
|
|
@@ -122,84 +122,60 @@
|
|
|
122
122
|
|
|
123
123
|
<section class="description">
|
|
124
124
|
|
|
125
|
-
<p><a
|
|
126
|
-
href="http://www.schemacentral.com/sc/ooxml/e-ssml_workbook.html">www.schemacentral.com/sc/ooxml/e-ssml_workbook.html</a></p>
|
|
125
|
+
<p><a href="http://www.datypic.com/sc/ooxml/e-ssml_workbook.html">www.datypic.com/sc/ooxml/e-ssml_workbook.html</a></p>
|
|
127
126
|
|
|
128
127
|
</section>
|
|
129
128
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
129
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
134
|
-
|
|
135
130
|
|
|
136
|
-
|
|
137
131
|
|
|
138
|
-
|
|
139
132
|
<section class="constants-list">
|
|
140
133
|
<header>
|
|
141
134
|
<h3>Constants</h3>
|
|
142
135
|
</header>
|
|
143
136
|
<dl>
|
|
144
|
-
|
|
145
137
|
<dt id="APPLICATION">APPLICATION
|
|
146
|
-
|
|
147
138
|
<dd>
|
|
148
|
-
|
|
149
|
-
|
|
150
139
|
<dt id="APPVERSION">APPVERSION
|
|
151
|
-
|
|
152
140
|
<dd>
|
|
153
|
-
|
|
154
|
-
|
|
155
141
|
<dt id="CONTENT_TYPE">CONTENT_TYPE
|
|
156
|
-
|
|
157
142
|
<dd>
|
|
158
|
-
|
|
159
|
-
|
|
143
|
+
<dt id="CONTENT_TYPE_TEMPLATE">CONTENT_TYPE_TEMPLATE
|
|
144
|
+
<dd>
|
|
145
|
+
<dt id="CONTENT_TYPE_TEMPLATE_WITH_MACROS">CONTENT_TYPE_TEMPLATE_WITH_MACROS
|
|
146
|
+
<dd>
|
|
160
147
|
<dt id="CONTENT_TYPE_WITH_MACROS">CONTENT_TYPE_WITH_MACROS
|
|
161
|
-
|
|
162
148
|
<dd>
|
|
163
|
-
|
|
164
|
-
|
|
165
149
|
<dt id="DATE1899">DATE1899
|
|
166
|
-
|
|
167
|
-
<dd><p>Subtracting one day to accomodate for erroneous 1900 leap year
|
|
168
|
-
compatibility only for 1900 based dates</p>
|
|
169
|
-
|
|
170
|
-
|
|
150
|
+
<dd><p>Subtracting one day to accomodate for erroneous 1900 leap year compatibility only for 1900 based dates</p>
|
|
171
151
|
<dt id="DATE1904">DATE1904
|
|
172
|
-
|
|
173
152
|
<dd>
|
|
174
|
-
|
|
175
|
-
|
|
176
153
|
<dt id="MARCH_1_1900">MARCH_1_1900
|
|
177
|
-
|
|
178
154
|
<dd>
|
|
179
|
-
|
|
180
|
-
|
|
181
155
|
<dt id="REL_TYPE">REL_TYPE
|
|
182
|
-
|
|
183
156
|
<dd>
|
|
184
|
-
|
|
185
|
-
|
|
186
157
|
<dt id="SHEET_NAME_FORBIDDEN_CHARS">SHEET_NAME_FORBIDDEN_CHARS
|
|
187
|
-
|
|
188
|
-
<
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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>
|
|
159
|
+
<dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
|
|
160
|
+
<dd>
|
|
192
161
|
</dl>
|
|
193
162
|
</section>
|
|
194
|
-
|
|
195
163
|
|
|
196
|
-
|
|
197
164
|
<section class="attribute-method-details" class="method-section">
|
|
198
165
|
<header>
|
|
199
166
|
<h3>Attributes</h3>
|
|
200
167
|
</header>
|
|
201
168
|
|
|
202
|
-
|
|
169
|
+
<div id="attribute-i-is_template" class="method-detail">
|
|
170
|
+
<div class="method-heading attribute-method-heading">
|
|
171
|
+
<span class="method-name">is_template</span><span
|
|
172
|
+
class="attribute-access-type">[RW]</span>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div class="method-description">
|
|
176
|
+
|
|
177
|
+
</div>
|
|
178
|
+
</div>
|
|
203
179
|
<div id="attribute-i-worksheets" class="method-detail">
|
|
204
180
|
<div class="method-heading attribute-method-heading">
|
|
205
181
|
<span class="method-name">worksheets</span><span
|
|
@@ -208,48 +184,35 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
208
184
|
|
|
209
185
|
<div class="method-description">
|
|
210
186
|
|
|
211
|
-
|
|
212
|
-
|
|
213
187
|
</div>
|
|
214
188
|
</div>
|
|
215
|
-
|
|
216
189
|
</section>
|
|
217
|
-
|
|
218
190
|
|
|
219
|
-
|
|
191
|
+
|
|
220
192
|
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
221
193
|
<header>
|
|
222
194
|
<h3>Public Class Methods</h3>
|
|
223
195
|
</header>
|
|
224
196
|
|
|
225
|
-
|
|
226
197
|
<div id="method-c-new" class="method-detail ">
|
|
227
|
-
|
|
228
198
|
<div class="method-heading">
|
|
229
199
|
<span class="method-name">new</span><span
|
|
230
|
-
class="method-args">(worksheets = [], src_file_path = nil, creator = nil, modifier = nil, created_at = nil, company =
|
|
231
|
-
|
|
200
|
+
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>
|
|
232
201
|
<span class="method-click-advice">click to toggle source</span>
|
|
233
|
-
|
|
234
202
|
</div>
|
|
235
|
-
|
|
236
203
|
|
|
237
204
|
<div class="method-description">
|
|
238
205
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
206
|
<div class="method-calls-super">
|
|
243
207
|
Calls superclass method
|
|
244
|
-
<a href="OOXMLObjectInstanceMethods.html#method-c-new">RubyXL::OOXMLObjectInstanceMethods
|
|
208
|
+
<a href="OOXMLObjectInstanceMethods.html#method-c-new"><code>RubyXL::OOXMLObjectInstanceMethods::new</code></a>
|
|
245
209
|
</div>
|
|
246
|
-
|
|
247
210
|
|
|
248
|
-
|
|
249
211
|
<div class="method-source-code" id="new-source">
|
|
250
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
251
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">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>,
|
|
252
|
-
<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
|
|
212
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 446</span>
|
|
213
|
+
<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>,
|
|
214
|
+
<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>,
|
|
215
|
+
<span class="ruby-identifier">is_template</span> = <span class="ruby-keyword">false</span>)
|
|
253
216
|
<span class="ruby-keyword">super</span>()
|
|
254
217
|
|
|
255
218
|
<span class="ruby-comment"># Order of sheets in the +worksheets+ array corresponds to the order of pages in Excel UI.</span>
|
|
@@ -274,46 +237,177 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
274
237
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">creator</span> = <span class="ruby-identifier">creator</span>
|
|
275
238
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">modifier</span> = <span class="ruby-identifier">modifier</span>
|
|
276
239
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">date1904</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
|
240
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">is_template</span> = <span class="ruby-identifier">is_template</span>
|
|
277
241
|
<span class="ruby-keyword">end</span></pre>
|
|
278
242
|
</div>
|
|
279
|
-
|
|
280
243
|
</div>
|
|
281
244
|
|
|
282
|
-
|
|
283
245
|
|
|
284
|
-
|
|
285
246
|
</div>
|
|
286
247
|
|
|
287
|
-
|
|
288
248
|
</section>
|
|
289
|
-
|
|
249
|
+
|
|
290
250
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
291
251
|
<header>
|
|
292
252
|
<h3>Public Instance Methods</h3>
|
|
293
253
|
</header>
|
|
294
254
|
|
|
295
|
-
|
|
296
|
-
<div id="method-i-before_write_xml" class="method-detail ">
|
|
297
|
-
|
|
255
|
+
<div id="method-i-5B-5D" class="method-detail ">
|
|
298
256
|
<div class="method-heading">
|
|
299
|
-
<span class="method-name">
|
|
257
|
+
<span class="method-name">[]</span><span
|
|
258
|
+
class="method-args">(ind)</span>
|
|
259
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<div class="method-description">
|
|
263
|
+
<p>Finds worksheet by its name or numerical index</p>
|
|
264
|
+
|
|
265
|
+
<div class="method-source-code" id="5B-5D-source">
|
|
266
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 479</span>
|
|
267
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">[]</span>(<span class="ruby-identifier">ind</span>)
|
|
268
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
|
269
|
+
<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>]
|
|
270
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">ws</span><span class="ruby-operator">|</span> <span class="ruby-identifier">ws</span>.<span class="ruby-identifier">sheet_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">ind</span> }
|
|
271
|
+
<span class="ruby-keyword">end</span>
|
|
272
|
+
<span class="ruby-keyword">end</span></pre>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</div>
|
|
278
|
+
|
|
279
|
+
<div id="method-i-add_worksheet" class="method-detail ">
|
|
280
|
+
<div class="method-heading">
|
|
281
|
+
<span class="method-name">add_worksheet</span><span
|
|
282
|
+
class="method-args">(name = nil)</span>
|
|
283
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
<div class="method-description">
|
|
287
|
+
<p>Create new simple worksheet and add it to the workbook worksheets</p>
|
|
288
|
+
|
|
289
|
+
<p>@param [String] The name for the new worksheet</p>
|
|
290
|
+
|
|
291
|
+
<div class="method-source-code" id="add_worksheet-source">
|
|
292
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 489</span>
|
|
293
|
+
<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>)
|
|
294
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
|
295
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
|
296
|
+
|
|
297
|
+
<span class="ruby-keyword">begin</span>
|
|
298
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-constant">SHEET_NAME_TEMPLATE</span> <span class="ruby-operator">%</span> (<span class="ruby-identifier">n</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>)
|
|
299
|
+
<span class="ruby-keyword">end</span> <span class="ruby-keyword">until</span> <span class="ruby-keyword">self</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">nil?</span>
|
|
300
|
+
<span class="ruby-keyword">end</span>
|
|
301
|
+
|
|
302
|
+
<span class="ruby-identifier">new_worksheet</span> = <span class="ruby-constant">Worksheet</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:workbook</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">self</span>, <span class="ruby-value">:sheet_name</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">name</span>)
|
|
303
|
+
<span class="ruby-identifier">worksheets</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">new_worksheet</span>
|
|
304
|
+
<span class="ruby-identifier">new_worksheet</span>
|
|
305
|
+
<span class="ruby-keyword">end</span></pre>
|
|
306
|
+
</div>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
<div id="method-i-application" class="method-detail ">
|
|
313
|
+
<div class="method-heading">
|
|
314
|
+
<span class="method-name">application</span><span
|
|
300
315
|
class="method-args">()</span>
|
|
301
|
-
|
|
302
316
|
<span class="method-click-advice">click to toggle source</span>
|
|
303
|
-
|
|
304
317
|
</div>
|
|
305
|
-
|
|
306
318
|
|
|
307
319
|
<div class="method-description">
|
|
308
320
|
|
|
321
|
+
|
|
322
|
+
<div class="method-source-code" id="application-source">
|
|
323
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 528</span>
|
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application</span>
|
|
325
|
+
<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>
|
|
326
|
+
<span class="ruby-keyword">end</span></pre>
|
|
327
|
+
</div>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
</div>
|
|
332
|
+
|
|
333
|
+
<div id="method-i-application-3D" class="method-detail ">
|
|
334
|
+
<div class="method-heading">
|
|
335
|
+
<span class="method-name">application=</span><span
|
|
336
|
+
class="method-args">(v)</span>
|
|
337
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
338
|
+
</div>
|
|
339
|
+
|
|
340
|
+
<div class="method-description">
|
|
309
341
|
|
|
342
|
+
|
|
343
|
+
<div class="method-source-code" id="application-3D-source">
|
|
344
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 532</span>
|
|
345
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">application=</span>(<span class="ruby-identifier">v</span>)
|
|
346
|
+
<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>
|
|
347
|
+
<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>
|
|
348
|
+
<span class="ruby-keyword">end</span></pre>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
</div>
|
|
354
|
+
|
|
355
|
+
<div id="method-i-appversion" class="method-detail ">
|
|
356
|
+
<div class="method-heading">
|
|
357
|
+
<span class="method-name">appversion</span><span
|
|
358
|
+
class="method-args">()</span>
|
|
359
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
360
|
+
</div>
|
|
361
|
+
|
|
362
|
+
<div class="method-description">
|
|
310
363
|
|
|
364
|
+
|
|
365
|
+
<div class="method-source-code" id="appversion-source">
|
|
366
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 537</span>
|
|
367
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion</span>
|
|
368
|
+
<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>
|
|
369
|
+
<span class="ruby-keyword">end</span></pre>
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
<div id="method-i-appversion-3D" class="method-detail ">
|
|
377
|
+
<div class="method-heading">
|
|
378
|
+
<span class="method-name">appversion=</span><span
|
|
379
|
+
class="method-args">(v)</span>
|
|
380
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
381
|
+
</div>
|
|
382
|
+
|
|
383
|
+
<div class="method-description">
|
|
311
384
|
|
|
312
385
|
|
|
386
|
+
<div class="method-source-code" id="appversion-3D-source">
|
|
387
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 541</span>
|
|
388
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">appversion=</span>(<span class="ruby-identifier">v</span>)
|
|
389
|
+
<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>
|
|
390
|
+
<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>
|
|
391
|
+
<span class="ruby-keyword">end</span></pre>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
</div>
|
|
397
|
+
|
|
398
|
+
<div id="method-i-before_write_xml" class="method-detail ">
|
|
399
|
+
<div class="method-heading">
|
|
400
|
+
<span class="method-name">before_write_xml</span><span
|
|
401
|
+
class="method-args">()</span>
|
|
402
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
403
|
+
</div>
|
|
404
|
+
|
|
405
|
+
<div class="method-description">
|
|
313
406
|
|
|
407
|
+
|
|
314
408
|
<div class="method-source-code" id="before_write_xml-source">
|
|
315
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
316
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">before_write_xml</span>
|
|
409
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 369</span>
|
|
410
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span>
|
|
317
411
|
<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>
|
|
318
412
|
|
|
319
413
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sheets</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Sheets</span>.<span class="ruby-identifier">new</span>
|
|
@@ -323,187 +417,390 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
323
417
|
|
|
324
418
|
<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>
|
|
325
419
|
|
|
326
|
-
<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>
|
|
327
|
-
<span class="ruby-value">:sheet_id</span>
|
|
328
|
-
<span class="ruby-value">:state</span>
|
|
329
|
-
<span class="ruby-value">:r_id</span>
|
|
420
|
+
<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>
|
|
421
|
+
<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>),
|
|
422
|
+
<span class="ruby-value">:state</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">state</span>,
|
|
423
|
+
<span class="ruby-value">:r_id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">rel</span>.<span class="ruby-identifier">id</span>)
|
|
330
424
|
}
|
|
331
425
|
|
|
332
426
|
<span class="ruby-keyword">true</span>
|
|
333
427
|
<span class="ruby-keyword">end</span></pre>
|
|
334
428
|
</div>
|
|
429
|
+
</div>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
</div>
|
|
433
|
+
|
|
434
|
+
<div id="method-i-company" class="method-detail ">
|
|
435
|
+
<div class="method-heading">
|
|
436
|
+
<span class="method-name">company</span><span
|
|
437
|
+
class="method-args">()</span>
|
|
438
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
439
|
+
</div>
|
|
440
|
+
|
|
441
|
+
<div class="method-description">
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
<div class="method-source-code" id="company-source">
|
|
445
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 519</span>
|
|
446
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company</span>
|
|
447
|
+
<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>
|
|
448
|
+
<span class="ruby-keyword">end</span></pre>
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
<div id="method-i-company-3D" class="method-detail ">
|
|
456
|
+
<div class="method-heading">
|
|
457
|
+
<span class="method-name">company=</span><span
|
|
458
|
+
class="method-args">(v)</span>
|
|
459
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
460
|
+
</div>
|
|
461
|
+
|
|
462
|
+
<div class="method-description">
|
|
335
463
|
|
|
464
|
+
|
|
465
|
+
<div class="method-source-code" id="company-3D-source">
|
|
466
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 523</span>
|
|
467
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">company=</span>(<span class="ruby-identifier">v</span>)
|
|
468
|
+
<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>
|
|
469
|
+
<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>
|
|
470
|
+
<span class="ruby-keyword">end</span></pre>
|
|
471
|
+
</div>
|
|
336
472
|
</div>
|
|
337
473
|
|
|
338
|
-
|
|
339
474
|
|
|
340
|
-
|
|
341
475
|
</div>
|
|
342
476
|
|
|
343
|
-
|
|
344
477
|
<div id="method-i-content_type" class="method-detail ">
|
|
345
|
-
|
|
346
478
|
<div class="method-heading">
|
|
347
479
|
<span class="method-name">content_type</span><span
|
|
348
480
|
class="method-args">()</span>
|
|
349
|
-
|
|
350
481
|
<span class="method-click-advice">click to toggle source</span>
|
|
482
|
+
</div>
|
|
483
|
+
|
|
484
|
+
<div class="method-description">
|
|
351
485
|
|
|
486
|
+
|
|
487
|
+
<div class="method-source-code" id="content_type-source">
|
|
488
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 313</span>
|
|
489
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">content_type</span>
|
|
490
|
+
<span class="ruby-identifier">content_type_name</span> = <span class="ruby-string">'CONTENT_TYPE'</span>
|
|
491
|
+
<span class="ruby-identifier">content_type_name</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'_TEMPLATE'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">is_template</span>
|
|
492
|
+
<span class="ruby-identifier">content_type_name</span> <span class="ruby-operator"><<</span> <span class="ruby-string">'_WITH_MACROS'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">macros</span>
|
|
493
|
+
<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>)
|
|
494
|
+
<span class="ruby-keyword">end</span></pre>
|
|
495
|
+
</div>
|
|
496
|
+
</div>
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
</div>
|
|
500
|
+
|
|
501
|
+
<div id="method-i-created_at" class="method-detail ">
|
|
502
|
+
<div class="method-heading">
|
|
503
|
+
<span class="method-name">created_at</span><span
|
|
504
|
+
class="method-args">()</span>
|
|
505
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
352
506
|
</div>
|
|
353
|
-
|
|
354
507
|
|
|
355
508
|
<div class="method-description">
|
|
356
509
|
|
|
510
|
+
|
|
511
|
+
<div class="method-source-code" id="created_at-source">
|
|
512
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 503</span>
|
|
513
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at</span>
|
|
514
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
|
|
515
|
+
<span class="ruby-keyword">end</span></pre>
|
|
516
|
+
</div>
|
|
517
|
+
</div>
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
<div id="method-i-created_at-3D" class="method-detail ">
|
|
523
|
+
<div class="method-heading">
|
|
524
|
+
<span class="method-name">created_at=</span><span
|
|
525
|
+
class="method-args">(v)</span>
|
|
526
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
527
|
+
</div>
|
|
528
|
+
|
|
529
|
+
<div class="method-description">
|
|
357
530
|
|
|
531
|
+
|
|
532
|
+
<div class="method-source-code" id="created_at-3D-source">
|
|
533
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 507</span>
|
|
534
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">created_at=</span>(<span class="ruby-identifier">v</span>)
|
|
535
|
+
<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>
|
|
536
|
+
<span class="ruby-keyword">end</span></pre>
|
|
537
|
+
</div>
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
<div id="method-i-creator" class="method-detail ">
|
|
544
|
+
<div class="method-heading">
|
|
545
|
+
<span class="method-name">creator</span><span
|
|
546
|
+
class="method-args">()</span>
|
|
547
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
548
|
+
</div>
|
|
549
|
+
|
|
550
|
+
<div class="method-description">
|
|
358
551
|
|
|
552
|
+
|
|
553
|
+
<div class="method-source-code" id="creator-source">
|
|
554
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 546</span>
|
|
555
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator</span>
|
|
556
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
|
|
557
|
+
<span class="ruby-keyword">end</span></pre>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
</div>
|
|
563
|
+
|
|
564
|
+
<div id="method-i-creator-3D" class="method-detail ">
|
|
565
|
+
<div class="method-heading">
|
|
566
|
+
<span class="method-name">creator=</span><span
|
|
567
|
+
class="method-args">(v)</span>
|
|
568
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
569
|
+
</div>
|
|
570
|
+
|
|
571
|
+
<div class="method-description">
|
|
359
572
|
|
|
360
573
|
|
|
574
|
+
<div class="method-source-code" id="creator-3D-source">
|
|
575
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 550</span>
|
|
576
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">creator=</span>(<span class="ruby-identifier">v</span>)
|
|
577
|
+
<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>
|
|
578
|
+
<span class="ruby-keyword">end</span></pre>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
</div>
|
|
584
|
+
|
|
585
|
+
<div id="method-i-date1904" class="method-detail ">
|
|
586
|
+
<div class="method-heading">
|
|
587
|
+
<span class="method-name">date1904</span><span
|
|
588
|
+
class="method-args">()</span>
|
|
589
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<div class="method-description">
|
|
361
593
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
<span class="ruby-
|
|
365
|
-
|
|
594
|
+
|
|
595
|
+
<div class="method-source-code" id="date1904-source">
|
|
596
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 562</span>
|
|
597
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904</span>
|
|
598
|
+
<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>
|
|
366
599
|
<span class="ruby-keyword">end</span></pre>
|
|
367
600
|
</div>
|
|
601
|
+
</div>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
<div id="method-i-date1904-3D" class="method-detail ">
|
|
607
|
+
<div class="method-heading">
|
|
608
|
+
<span class="method-name">date1904=</span><span
|
|
609
|
+
class="method-args">(v)</span>
|
|
610
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
611
|
+
</div>
|
|
612
|
+
|
|
613
|
+
<div class="method-description">
|
|
368
614
|
|
|
615
|
+
|
|
616
|
+
<div class="method-source-code" id="date1904-3D-source">
|
|
617
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 566</span>
|
|
618
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date1904=</span>(<span class="ruby-identifier">v</span>)
|
|
619
|
+
<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>
|
|
620
|
+
<span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
|
|
621
|
+
<span class="ruby-keyword">end</span></pre>
|
|
622
|
+
</div>
|
|
369
623
|
</div>
|
|
370
624
|
|
|
371
|
-
|
|
372
625
|
|
|
373
|
-
|
|
374
626
|
</div>
|
|
375
627
|
|
|
376
|
-
|
|
377
628
|
<div id="method-i-date_to_num" class="method-detail ">
|
|
378
|
-
|
|
379
629
|
<div class="method-heading">
|
|
380
630
|
<span class="method-name">date_to_num</span><span
|
|
381
631
|
class="method-args">(date)</span>
|
|
382
|
-
|
|
383
632
|
<span class="method-click-advice">click to toggle source</span>
|
|
384
|
-
|
|
385
633
|
</div>
|
|
386
|
-
|
|
387
634
|
|
|
388
635
|
<div class="method-description">
|
|
389
636
|
|
|
637
|
+
|
|
638
|
+
<div class="method-source-code" id="date_to_num-source">
|
|
639
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 422</span>
|
|
640
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
|
641
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">date</span>
|
|
642
|
+
<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>
|
|
643
|
+
<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>
|
|
644
|
+
<span class="ruby-keyword">end</span>
|
|
645
|
+
<span class="ruby-keyword">end</span></pre>
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
</div>
|
|
651
|
+
|
|
652
|
+
<div id="method-i-modified_at" class="method-detail ">
|
|
653
|
+
<div class="method-heading">
|
|
654
|
+
<span class="method-name">modified_at</span><span
|
|
655
|
+
class="method-args">()</span>
|
|
656
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
657
|
+
</div>
|
|
658
|
+
|
|
659
|
+
<div class="method-description">
|
|
390
660
|
|
|
661
|
+
|
|
662
|
+
<div class="method-source-code" id="modified_at-source">
|
|
663
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 511</span>
|
|
664
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at</span>
|
|
665
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
|
666
|
+
<span class="ruby-keyword">end</span></pre>
|
|
667
|
+
</div>
|
|
668
|
+
</div>
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
</div>
|
|
672
|
+
|
|
673
|
+
<div id="method-i-modified_at-3D" class="method-detail ">
|
|
674
|
+
<div class="method-heading">
|
|
675
|
+
<span class="method-name">modified_at=</span><span
|
|
676
|
+
class="method-args">(v)</span>
|
|
677
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
678
|
+
</div>
|
|
679
|
+
|
|
680
|
+
<div class="method-description">
|
|
391
681
|
|
|
392
|
-
|
|
393
682
|
|
|
683
|
+
<div class="method-source-code" id="modified_at-3D-source">
|
|
684
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 515</span>
|
|
685
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modified_at=</span>(<span class="ruby-identifier">v</span>)
|
|
686
|
+
<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>
|
|
687
|
+
<span class="ruby-keyword">end</span></pre>
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
</div>
|
|
693
|
+
|
|
694
|
+
<div id="method-i-modifier" class="method-detail ">
|
|
695
|
+
<div class="method-heading">
|
|
696
|
+
<span class="method-name">modifier</span><span
|
|
697
|
+
class="method-args">()</span>
|
|
698
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
699
|
+
</div>
|
|
700
|
+
|
|
701
|
+
<div class="method-description">
|
|
394
702
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<span class="ruby-
|
|
398
|
-
|
|
703
|
+
|
|
704
|
+
<div class="method-source-code" id="modifier-source">
|
|
705
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 554</span>
|
|
706
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier</span>
|
|
707
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
|
399
708
|
<span class="ruby-keyword">end</span></pre>
|
|
400
709
|
</div>
|
|
710
|
+
</div>
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
<div id="method-i-modifier-3D" class="method-detail ">
|
|
716
|
+
<div class="method-heading">
|
|
717
|
+
<span class="method-name">modifier=</span><span
|
|
718
|
+
class="method-args">(v)</span>
|
|
719
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
720
|
+
</div>
|
|
721
|
+
|
|
722
|
+
<div class="method-description">
|
|
401
723
|
|
|
724
|
+
|
|
725
|
+
<div class="method-source-code" id="modifier-3D-source">
|
|
726
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 558</span>
|
|
727
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modifier=</span>(<span class="ruby-identifier">v</span>)
|
|
728
|
+
<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>
|
|
729
|
+
<span class="ruby-keyword">end</span></pre>
|
|
730
|
+
</div>
|
|
402
731
|
</div>
|
|
403
732
|
|
|
404
|
-
|
|
405
733
|
|
|
406
|
-
|
|
407
734
|
</div>
|
|
408
735
|
|
|
409
|
-
|
|
410
736
|
<div id="method-i-num_to_date" class="method-detail ">
|
|
411
|
-
|
|
412
737
|
<div class="method-heading">
|
|
413
738
|
<span class="method-name">num_to_date</span><span
|
|
414
739
|
class="method-args">(num)</span>
|
|
415
|
-
|
|
416
740
|
<span class="method-click-advice">click to toggle source</span>
|
|
417
|
-
|
|
418
741
|
</div>
|
|
419
|
-
|
|
420
742
|
|
|
421
743
|
<div class="method-description">
|
|
422
744
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
745
|
|
|
427
|
-
|
|
428
746
|
<div class="method-source-code" id="num_to_date-source">
|
|
429
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
430
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
|
747
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 429</span>
|
|
748
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
|
749
|
+
<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>
|
|
750
|
+
|
|
431
751
|
<span class="ruby-comment"># Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)</span>
|
|
432
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&
|
|
752
|
+
<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>
|
|
433
753
|
<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>
|
|
434
754
|
<span class="ruby-keyword">end</span>
|
|
435
755
|
|
|
436
|
-
<span class="ruby-identifier">
|
|
756
|
+
<span class="ruby-identifier">dateparts</span> = <span class="ruby-identifier">num</span>.<span class="ruby-identifier">divmod</span>(<span class="ruby-value">1</span>)
|
|
757
|
+
<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>)
|
|
437
758
|
<span class="ruby-keyword">end</span></pre>
|
|
438
759
|
</div>
|
|
439
|
-
|
|
440
760
|
</div>
|
|
441
761
|
|
|
442
|
-
|
|
443
762
|
|
|
444
|
-
|
|
445
763
|
</div>
|
|
446
764
|
|
|
447
|
-
|
|
448
765
|
<div id="method-i-related_objects" class="method-detail ">
|
|
449
|
-
|
|
450
766
|
<div class="method-heading">
|
|
451
767
|
<span class="method-name">related_objects</span><span
|
|
452
768
|
class="method-args">()</span>
|
|
453
|
-
|
|
454
769
|
<span class="method-click-advice">click to toggle source</span>
|
|
455
|
-
|
|
456
770
|
</div>
|
|
457
|
-
|
|
458
771
|
|
|
459
772
|
<div class="method-description">
|
|
460
773
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
774
|
|
|
465
|
-
|
|
466
775
|
<div class="method-source-code" id="related_objects-source">
|
|
467
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
468
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">related_objects</span>
|
|
776
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 320</span>
|
|
777
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">related_objects</span>
|
|
469
778
|
[ <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>
|
|
470
779
|
<span class="ruby-keyword">end</span></pre>
|
|
471
780
|
</div>
|
|
472
|
-
|
|
473
781
|
</div>
|
|
474
782
|
|
|
475
|
-
|
|
476
783
|
|
|
477
|
-
|
|
478
784
|
</div>
|
|
479
785
|
|
|
480
|
-
|
|
481
786
|
<div id="method-i-save" class="method-detail ">
|
|
482
|
-
|
|
483
787
|
<div class="method-heading">
|
|
484
788
|
<span class="method-name">save</span><span
|
|
485
789
|
class="method-args">(dst_file_path = nil)</span>
|
|
486
|
-
|
|
487
790
|
<span class="method-click-advice">click to toggle source</span>
|
|
488
|
-
|
|
489
791
|
</div>
|
|
490
|
-
|
|
491
792
|
|
|
492
793
|
<div class="method-description">
|
|
493
|
-
|
|
494
794
|
<p>Save the resulting XLSX file to the specified location</p>
|
|
495
|
-
|
|
496
|
-
|
|
497
795
|
|
|
498
|
-
|
|
499
796
|
<div class="method-source-code" id="save-source">
|
|
500
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
501
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">dst_file_path</span> = <span class="ruby-keyword">nil</span>)
|
|
797
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 398</span>
|
|
798
|
+
<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>)
|
|
502
799
|
<span class="ruby-identifier">dst_file_path</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">root</span>.<span class="ruby-identifier">source_file_path</span>
|
|
503
800
|
|
|
504
801
|
<span class="ruby-identifier">extension</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">dst_file_path</span>)
|
|
505
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-node">%w{.xlsx .xlsm}</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">extension</span>.<span class="ruby-identifier">downcase</span>)
|
|
506
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unsupported extension: #{extension} (only .xlsx and .
|
|
802
|
+
<span class="ruby-keyword">unless</span> <span class="ruby-node">%w{.xlsx .xlsm .xltx .xltm}</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">extension</span>.<span class="ruby-identifier">downcase</span>)
|
|
803
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"Unsupported extension: #{extension} (only .xlsx, .xlsm, .xltx and .xltm files are supported)."</span>
|
|
507
804
|
<span class="ruby-keyword">end</span>
|
|
508
805
|
|
|
509
806
|
<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>) }
|
|
@@ -511,122 +808,82 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
|
511
808
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">dst_file_path</span>
|
|
512
809
|
<span class="ruby-keyword">end</span></pre>
|
|
513
810
|
</div>
|
|
514
|
-
|
|
515
811
|
</div>
|
|
516
812
|
|
|
517
|
-
|
|
518
813
|
<div class="aliases">
|
|
519
814
|
Also aliased as: <a href="Workbook.html#method-i-write">write</a>
|
|
520
815
|
</div>
|
|
521
|
-
|
|
522
816
|
|
|
523
|
-
|
|
524
817
|
</div>
|
|
525
818
|
|
|
526
|
-
|
|
527
819
|
<div id="method-i-stream" class="method-detail ">
|
|
528
|
-
|
|
529
820
|
<div class="method-heading">
|
|
530
821
|
<span class="method-name">stream</span><span
|
|
531
822
|
class="method-args">()</span>
|
|
532
|
-
|
|
533
823
|
<span class="method-click-advice">click to toggle source</span>
|
|
534
|
-
|
|
535
824
|
</div>
|
|
536
|
-
|
|
537
825
|
|
|
538
826
|
<div class="method-description">
|
|
539
|
-
|
|
540
827
|
<p>Return the resulting XLSX file in a stream (useful for sending over HTTP)</p>
|
|
541
|
-
|
|
542
|
-
|
|
543
828
|
|
|
544
|
-
|
|
545
829
|
<div class="method-source-code" id="stream-source">
|
|
546
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
547
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stream</span>
|
|
830
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 393</span>
|
|
831
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">stream</span>
|
|
548
832
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>
|
|
549
833
|
<span class="ruby-keyword">end</span></pre>
|
|
550
834
|
</div>
|
|
551
|
-
|
|
552
835
|
</div>
|
|
553
836
|
|
|
554
|
-
|
|
555
837
|
|
|
556
|
-
|
|
557
838
|
</div>
|
|
558
839
|
|
|
559
|
-
|
|
560
840
|
<div id="method-i-write" class="method-detail method-alias">
|
|
561
|
-
|
|
562
841
|
<div class="method-heading">
|
|
563
842
|
<span class="method-name">write</span><span
|
|
564
843
|
class="method-args">(dst_file_path = nil)</span>
|
|
565
|
-
|
|
566
844
|
</div>
|
|
567
|
-
|
|
568
845
|
|
|
569
846
|
<div class="method-description">
|
|
570
847
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
848
|
|
|
575
|
-
|
|
576
849
|
</div>
|
|
577
850
|
|
|
578
|
-
|
|
579
851
|
|
|
580
|
-
|
|
581
852
|
<div class="aliases">
|
|
582
853
|
Alias for: <a href="Workbook.html#method-i-save">save</a>
|
|
583
854
|
</div>
|
|
584
|
-
|
|
585
855
|
</div>
|
|
586
856
|
|
|
587
|
-
|
|
588
857
|
<div id="method-i-xlsx_path" class="method-detail ">
|
|
589
|
-
|
|
590
858
|
<div class="method-heading">
|
|
591
859
|
<span class="method-name">xlsx_path</span><span
|
|
592
860
|
class="method-args">()</span>
|
|
593
|
-
|
|
594
861
|
<span class="method-click-advice">click to toggle source</span>
|
|
595
|
-
|
|
596
862
|
</div>
|
|
597
|
-
|
|
598
863
|
|
|
599
864
|
<div class="method-description">
|
|
600
865
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
866
|
|
|
605
|
-
|
|
606
867
|
<div class="method-source-code" id="xlsx_path-source">
|
|
607
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
|
608
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">xlsx_path</span>
|
|
868
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 388</span>
|
|
869
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">xlsx_path</span>
|
|
609
870
|
<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>)
|
|
610
871
|
<span class="ruby-keyword">end</span></pre>
|
|
611
872
|
</div>
|
|
612
|
-
|
|
613
873
|
</div>
|
|
614
874
|
|
|
615
|
-
|
|
616
875
|
|
|
617
|
-
|
|
618
876
|
</div>
|
|
619
877
|
|
|
620
|
-
|
|
621
878
|
</section>
|
|
622
|
-
|
|
879
|
+
|
|
623
880
|
</section>
|
|
624
881
|
</main>
|
|
625
882
|
|
|
626
883
|
|
|
627
884
|
<footer id="validator-badges" role="contentinfo">
|
|
628
|
-
<p><a href="
|
|
629
|
-
<p>Generated by <a href="
|
|
885
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
886
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
|
630
887
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
631
888
|
</footer>
|
|
632
889
|
|