rubyXL 3.3.33 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +12 -0
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +5 -1301
- data/lib/rubyXL/convenience_methods/cell.rb +262 -0
- data/lib/rubyXL/convenience_methods/color.rb +158 -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 +618 -0
- data/lib/rubyXL/objects/color.rb +0 -3
- data/lib/rubyXL/objects/external_links.rb +1 -1
- data/lib/rubyXL/objects/font.rb +0 -3
- data/lib/rubyXL/objects/sheet_data.rb +0 -2
- data/lib/rubyXL/objects/workbook.rb +95 -2
- data/lib/rubyXL/objects/worksheet.rb +0 -2
- data/rdoc/README_rdoc.html +24 -1
- data/rdoc/RubyXL.html +21 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/ActiveX.html +1 -1
- data/rdoc/RubyXL/ActiveXBinary.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/Authors.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +12 -16
- data/rdoc/RubyXL/CellConvenienceMethods.html +34 -34
- data/rdoc/RubyXL/CellExt.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +2 -2
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +1 -1
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +2 -13
- data/rdoc/RubyXL/ColorConvenienceClasses.html +1 -1
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +3 -3
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +4 -4
- data/rdoc/RubyXL/ColorConvenienceMethods.html +2 -2
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +1 -1
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomPropertyFile.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalBook.html +1 -1
- data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +3 -14
- data/rdoc/RubyXL/FontConvenienceMethods.html +15 -15
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +2 -2
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorageObject.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjectFile.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLIgnored.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +1 -1
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
- data/rdoc/RubyXL/RevisionPointer.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +10 -10
- data/rdoc/RubyXL/RowExt.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +2 -2
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +3 -3
- data/rdoc/RubyXL/SheetDataExt.html +1 -1
- data/rdoc/RubyXL/SheetDataSet.html +1 -1
- data/rdoc/RubyXL/SheetName.html +1 -1
- data/rdoc/RubyXL/SheetNames.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +664 -14
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +54 -640
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +5 -9
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +69 -69
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +14 -9
- data/rdoc/index.html +2 -2
- 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 +49 -38
- data/rubyXL.gemspec +8 -3
- data/spec/lib/cell_spec.rb +2 -0
- data/spec/lib/color_spec.rb +1 -0
- data/spec/lib/workbook_spec.rb +11 -0
- data/spec/lib/worksheet_spec.rb +1 -0
- metadata +7 -2
data/rdoc/RubyXL/SmartTags.html
CHANGED
data/rdoc/RubyXL/SortState.html
CHANGED
data/rdoc/RubyXL/Sqref.html
CHANGED
data/rdoc/RubyXL/Stop.html
CHANGED
data/rdoc/RubyXL/StringNode.html
CHANGED
data/rdoc/RubyXL/Stylesheet.html
CHANGED
data/rdoc/RubyXL/TableFile.html
CHANGED
data/rdoc/RubyXL/TableParts.html
CHANGED
data/rdoc/RubyXL/TableStyle.html
CHANGED
data/rdoc/RubyXL/Text.html
CHANGED
data/rdoc/RubyXL/Theme.html
CHANGED
data/rdoc/RubyXL/Top10.html
CHANGED
data/rdoc/RubyXL/Variant.html
CHANGED
data/rdoc/RubyXL/Vector.html
CHANGED
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.
|
7
|
+
<title>class RubyXL::Workbook - rubyXL 3.4.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -76,10 +76,6 @@
|
|
76
76
|
<li><span class="include">Enumerable</span>
|
77
77
|
|
78
78
|
|
79
|
-
|
80
|
-
<li><a class="include" href="WorkbookConvenienceMethods.html">RubyXL::WorkbookConvenienceMethods</a>
|
81
|
-
|
82
|
-
|
83
79
|
</ul>
|
84
80
|
</div>
|
85
81
|
|
@@ -92,12 +88,48 @@
|
|
92
88
|
|
93
89
|
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
94
90
|
|
91
|
+
<li ><a href="#method-i-5B-5D">#[]</a>
|
92
|
+
|
93
|
+
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
94
|
+
|
95
|
+
<li ><a href="#method-i-application">#application</a>
|
96
|
+
|
97
|
+
<li ><a href="#method-i-application-3D">#application=</a>
|
98
|
+
|
99
|
+
<li ><a href="#method-i-appversion">#appversion</a>
|
100
|
+
|
101
|
+
<li ><a href="#method-i-appversion-3D">#appversion=</a>
|
102
|
+
|
95
103
|
<li ><a href="#method-i-before_write_xml">#before_write_xml</a>
|
96
104
|
|
105
|
+
<li ><a href="#method-i-company">#company</a>
|
106
|
+
|
107
|
+
<li ><a href="#method-i-company-3D">#company=</a>
|
108
|
+
|
97
109
|
<li ><a href="#method-i-content_type">#content_type</a>
|
98
110
|
|
111
|
+
<li ><a href="#method-i-created_at">#created_at</a>
|
112
|
+
|
113
|
+
<li ><a href="#method-i-created_at-3D">#created_at=</a>
|
114
|
+
|
115
|
+
<li ><a href="#method-i-creator">#creator</a>
|
116
|
+
|
117
|
+
<li ><a href="#method-i-creator-3D">#creator=</a>
|
118
|
+
|
119
|
+
<li ><a href="#method-i-date1904">#date1904</a>
|
120
|
+
|
121
|
+
<li ><a href="#method-i-date1904-3D">#date1904=</a>
|
122
|
+
|
99
123
|
<li ><a href="#method-i-date_to_num">#date_to_num</a>
|
100
124
|
|
125
|
+
<li ><a href="#method-i-modified_at">#modified_at</a>
|
126
|
+
|
127
|
+
<li ><a href="#method-i-modified_at-3D">#modified_at=</a>
|
128
|
+
|
129
|
+
<li ><a href="#method-i-modifier">#modifier</a>
|
130
|
+
|
131
|
+
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
132
|
+
|
101
133
|
<li ><a href="#method-i-num_to_date">#num_to_date</a>
|
102
134
|
|
103
135
|
<li ><a href="#method-i-related_objects">#related_objects</a>
|
@@ -190,6 +222,11 @@ compatibility only for 1900 based dates</p>
|
|
190
222
|
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>
|
191
223
|
|
192
224
|
|
225
|
+
<dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
|
226
|
+
|
227
|
+
<dd>
|
228
|
+
|
229
|
+
|
193
230
|
</dl>
|
194
231
|
</section>
|
195
232
|
|
@@ -248,7 +285,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
248
285
|
|
249
286
|
|
250
287
|
<div class="method-source-code" id="new-source">
|
251
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
288
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 432</span>
|
252
289
|
<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>,
|
253
290
|
<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>)
|
254
291
|
<span class="ruby-keyword">super</span>()
|
@@ -294,6 +331,221 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
294
331
|
</header>
|
295
332
|
|
296
333
|
|
334
|
+
<div id="method-i-5B-5D" class="method-detail ">
|
335
|
+
|
336
|
+
<div class="method-heading">
|
337
|
+
<span class="method-name">[]</span><span
|
338
|
+
class="method-args">(ind)</span>
|
339
|
+
|
340
|
+
<span class="method-click-advice">click to toggle source</span>
|
341
|
+
|
342
|
+
</div>
|
343
|
+
|
344
|
+
|
345
|
+
<div class="method-description">
|
346
|
+
|
347
|
+
<p>Finds worksheet by its name or numerical index</p>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
<div class="method-source-code" id="5B-5D-source">
|
353
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 463</span>
|
354
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">ind</span>)
|
355
|
+
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
356
|
+
<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>]
|
357
|
+
<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> }
|
358
|
+
<span class="ruby-keyword">end</span>
|
359
|
+
<span class="ruby-keyword">end</span></pre>
|
360
|
+
</div>
|
361
|
+
|
362
|
+
</div>
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
</div>
|
368
|
+
|
369
|
+
|
370
|
+
<div id="method-i-add_worksheet" class="method-detail ">
|
371
|
+
|
372
|
+
<div class="method-heading">
|
373
|
+
<span class="method-name">add_worksheet</span><span
|
374
|
+
class="method-args">(name = nil)</span>
|
375
|
+
|
376
|
+
<span class="method-click-advice">click to toggle source</span>
|
377
|
+
|
378
|
+
</div>
|
379
|
+
|
380
|
+
|
381
|
+
<div class="method-description">
|
382
|
+
|
383
|
+
<p>Create new simple worksheet and add it to the workbook worksheets</p>
|
384
|
+
|
385
|
+
<p>@param [String] The name for the new worksheet</p>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
<div class="method-source-code" id="add_worksheet-source">
|
391
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 473</span>
|
392
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_worksheet</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
|
393
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
394
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
395
|
+
|
396
|
+
<span class="ruby-keyword">begin</span>
|
397
|
+
<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>)
|
398
|
+
<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>
|
399
|
+
<span class="ruby-keyword">end</span>
|
400
|
+
|
401
|
+
<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>)
|
402
|
+
<span class="ruby-identifier">worksheets</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">new_worksheet</span>
|
403
|
+
<span class="ruby-identifier">new_worksheet</span>
|
404
|
+
<span class="ruby-keyword">end</span></pre>
|
405
|
+
</div>
|
406
|
+
|
407
|
+
</div>
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
</div>
|
413
|
+
|
414
|
+
|
415
|
+
<div id="method-i-application" class="method-detail ">
|
416
|
+
|
417
|
+
<div class="method-heading">
|
418
|
+
<span class="method-name">application</span><span
|
419
|
+
class="method-args">()</span>
|
420
|
+
|
421
|
+
<span class="method-click-advice">click to toggle source</span>
|
422
|
+
|
423
|
+
</div>
|
424
|
+
|
425
|
+
|
426
|
+
<div class="method-description">
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
<div class="method-source-code" id="application-source">
|
434
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 512</span>
|
435
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application</span>
|
436
|
+
<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>
|
437
|
+
<span class="ruby-keyword">end</span></pre>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
</div>
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
</div>
|
446
|
+
|
447
|
+
|
448
|
+
<div id="method-i-application-3D" class="method-detail ">
|
449
|
+
|
450
|
+
<div class="method-heading">
|
451
|
+
<span class="method-name">application=</span><span
|
452
|
+
class="method-args">(v)</span>
|
453
|
+
|
454
|
+
<span class="method-click-advice">click to toggle source</span>
|
455
|
+
|
456
|
+
</div>
|
457
|
+
|
458
|
+
|
459
|
+
<div class="method-description">
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
<div class="method-source-code" id="application-3D-source">
|
467
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 516</span>
|
468
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application=</span>(<span class="ruby-identifier">v</span>)
|
469
|
+
<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>
|
470
|
+
<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>
|
471
|
+
<span class="ruby-keyword">end</span></pre>
|
472
|
+
</div>
|
473
|
+
|
474
|
+
</div>
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
</div>
|
480
|
+
|
481
|
+
|
482
|
+
<div id="method-i-appversion" class="method-detail ">
|
483
|
+
|
484
|
+
<div class="method-heading">
|
485
|
+
<span class="method-name">appversion</span><span
|
486
|
+
class="method-args">()</span>
|
487
|
+
|
488
|
+
<span class="method-click-advice">click to toggle source</span>
|
489
|
+
|
490
|
+
</div>
|
491
|
+
|
492
|
+
|
493
|
+
<div class="method-description">
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
<div class="method-source-code" id="appversion-source">
|
501
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 521</span>
|
502
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">appversion</span>
|
503
|
+
<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>
|
504
|
+
<span class="ruby-keyword">end</span></pre>
|
505
|
+
</div>
|
506
|
+
|
507
|
+
</div>
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
</div>
|
513
|
+
|
514
|
+
|
515
|
+
<div id="method-i-appversion-3D" class="method-detail ">
|
516
|
+
|
517
|
+
<div class="method-heading">
|
518
|
+
<span class="method-name">appversion=</span><span
|
519
|
+
class="method-args">(v)</span>
|
520
|
+
|
521
|
+
<span class="method-click-advice">click to toggle source</span>
|
522
|
+
|
523
|
+
</div>
|
524
|
+
|
525
|
+
|
526
|
+
<div class="method-description">
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
<div class="method-source-code" id="appversion-3D-source">
|
534
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 525</span>
|
535
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">appversion=</span>(<span class="ruby-identifier">v</span>)
|
536
|
+
<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>
|
537
|
+
<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>
|
538
|
+
<span class="ruby-keyword">end</span></pre>
|
539
|
+
</div>
|
540
|
+
|
541
|
+
</div>
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
</div>
|
547
|
+
|
548
|
+
|
297
549
|
<div id="method-i-before_write_xml" class="method-detail ">
|
298
550
|
|
299
551
|
<div class="method-heading">
|
@@ -313,7 +565,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
313
565
|
|
314
566
|
|
315
567
|
<div class="method-source-code" id="before_write_xml-source">
|
316
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
568
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 361</span>
|
317
569
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">before_write_xml</span>
|
318
570
|
<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>
|
319
571
|
|
@@ -339,6 +591,73 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
339
591
|
|
340
592
|
|
341
593
|
|
594
|
+
</div>
|
595
|
+
|
596
|
+
|
597
|
+
<div id="method-i-company" class="method-detail ">
|
598
|
+
|
599
|
+
<div class="method-heading">
|
600
|
+
<span class="method-name">company</span><span
|
601
|
+
class="method-args">()</span>
|
602
|
+
|
603
|
+
<span class="method-click-advice">click to toggle source</span>
|
604
|
+
|
605
|
+
</div>
|
606
|
+
|
607
|
+
|
608
|
+
<div class="method-description">
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
<div class="method-source-code" id="company-source">
|
616
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 503</span>
|
617
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">company</span>
|
618
|
+
<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>
|
619
|
+
<span class="ruby-keyword">end</span></pre>
|
620
|
+
</div>
|
621
|
+
|
622
|
+
</div>
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
</div>
|
628
|
+
|
629
|
+
|
630
|
+
<div id="method-i-company-3D" class="method-detail ">
|
631
|
+
|
632
|
+
<div class="method-heading">
|
633
|
+
<span class="method-name">company=</span><span
|
634
|
+
class="method-args">(v)</span>
|
635
|
+
|
636
|
+
<span class="method-click-advice">click to toggle source</span>
|
637
|
+
|
638
|
+
</div>
|
639
|
+
|
640
|
+
|
641
|
+
<div class="method-description">
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
<div class="method-source-code" id="company-3D-source">
|
649
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 507</span>
|
650
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">company=</span>(<span class="ruby-identifier">v</span>)
|
651
|
+
<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>
|
652
|
+
<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>
|
653
|
+
<span class="ruby-keyword">end</span></pre>
|
654
|
+
</div>
|
655
|
+
|
656
|
+
</div>
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
342
661
|
</div>
|
343
662
|
|
344
663
|
|
@@ -361,7 +680,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
361
680
|
|
362
681
|
|
363
682
|
<div class="method-source-code" id="content_type-source">
|
364
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
683
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 310</span>
|
365
684
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">content_type</span>
|
366
685
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">macros</span> <span class="ruby-keyword">then</span> <span class="ruby-constant">CONTENT_TYPE_WITH_MACROS</span> <span class="ruby-keyword">else</span> <span class="ruby-constant">CONTENT_TYPE</span> <span class="ruby-keyword">end</span>
|
367
686
|
<span class="ruby-keyword">end</span></pre>
|
@@ -372,6 +691,205 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
372
691
|
|
373
692
|
|
374
693
|
|
694
|
+
</div>
|
695
|
+
|
696
|
+
|
697
|
+
<div id="method-i-created_at" class="method-detail ">
|
698
|
+
|
699
|
+
<div class="method-heading">
|
700
|
+
<span class="method-name">created_at</span><span
|
701
|
+
class="method-args">()</span>
|
702
|
+
|
703
|
+
<span class="method-click-advice">click to toggle source</span>
|
704
|
+
|
705
|
+
</div>
|
706
|
+
|
707
|
+
|
708
|
+
<div class="method-description">
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
<div class="method-source-code" id="created_at-source">
|
716
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 487</span>
|
717
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created_at</span>
|
718
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
|
719
|
+
<span class="ruby-keyword">end</span></pre>
|
720
|
+
</div>
|
721
|
+
|
722
|
+
</div>
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
</div>
|
728
|
+
|
729
|
+
|
730
|
+
<div id="method-i-created_at-3D" class="method-detail ">
|
731
|
+
|
732
|
+
<div class="method-heading">
|
733
|
+
<span class="method-name">created_at=</span><span
|
734
|
+
class="method-args">(v)</span>
|
735
|
+
|
736
|
+
<span class="method-click-advice">click to toggle source</span>
|
737
|
+
|
738
|
+
</div>
|
739
|
+
|
740
|
+
|
741
|
+
<div class="method-description">
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
<div class="method-source-code" id="created_at-3D-source">
|
749
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 491</span>
|
750
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created_at=</span>(<span class="ruby-identifier">v</span>)
|
751
|
+
<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>
|
752
|
+
<span class="ruby-keyword">end</span></pre>
|
753
|
+
</div>
|
754
|
+
|
755
|
+
</div>
|
756
|
+
|
757
|
+
|
758
|
+
|
759
|
+
|
760
|
+
</div>
|
761
|
+
|
762
|
+
|
763
|
+
<div id="method-i-creator" class="method-detail ">
|
764
|
+
|
765
|
+
<div class="method-heading">
|
766
|
+
<span class="method-name">creator</span><span
|
767
|
+
class="method-args">()</span>
|
768
|
+
|
769
|
+
<span class="method-click-advice">click to toggle source</span>
|
770
|
+
|
771
|
+
</div>
|
772
|
+
|
773
|
+
|
774
|
+
<div class="method-description">
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
|
780
|
+
|
781
|
+
<div class="method-source-code" id="creator-source">
|
782
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 530</span>
|
783
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">creator</span>
|
784
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
|
785
|
+
<span class="ruby-keyword">end</span></pre>
|
786
|
+
</div>
|
787
|
+
|
788
|
+
</div>
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
</div>
|
794
|
+
|
795
|
+
|
796
|
+
<div id="method-i-creator-3D" class="method-detail ">
|
797
|
+
|
798
|
+
<div class="method-heading">
|
799
|
+
<span class="method-name">creator=</span><span
|
800
|
+
class="method-args">(v)</span>
|
801
|
+
|
802
|
+
<span class="method-click-advice">click to toggle source</span>
|
803
|
+
|
804
|
+
</div>
|
805
|
+
|
806
|
+
|
807
|
+
<div class="method-description">
|
808
|
+
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
<div class="method-source-code" id="creator-3D-source">
|
815
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 534</span>
|
816
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">creator=</span>(<span class="ruby-identifier">v</span>)
|
817
|
+
<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>
|
818
|
+
<span class="ruby-keyword">end</span></pre>
|
819
|
+
</div>
|
820
|
+
|
821
|
+
</div>
|
822
|
+
|
823
|
+
|
824
|
+
|
825
|
+
|
826
|
+
</div>
|
827
|
+
|
828
|
+
|
829
|
+
<div id="method-i-date1904" class="method-detail ">
|
830
|
+
|
831
|
+
<div class="method-heading">
|
832
|
+
<span class="method-name">date1904</span><span
|
833
|
+
class="method-args">()</span>
|
834
|
+
|
835
|
+
<span class="method-click-advice">click to toggle source</span>
|
836
|
+
|
837
|
+
</div>
|
838
|
+
|
839
|
+
|
840
|
+
<div class="method-description">
|
841
|
+
|
842
|
+
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
<div class="method-source-code" id="date1904-source">
|
848
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 546</span>
|
849
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date1904</span>
|
850
|
+
<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>
|
851
|
+
<span class="ruby-keyword">end</span></pre>
|
852
|
+
</div>
|
853
|
+
|
854
|
+
</div>
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
|
859
|
+
</div>
|
860
|
+
|
861
|
+
|
862
|
+
<div id="method-i-date1904-3D" class="method-detail ">
|
863
|
+
|
864
|
+
<div class="method-heading">
|
865
|
+
<span class="method-name">date1904=</span><span
|
866
|
+
class="method-args">(v)</span>
|
867
|
+
|
868
|
+
<span class="method-click-advice">click to toggle source</span>
|
869
|
+
|
870
|
+
</div>
|
871
|
+
|
872
|
+
|
873
|
+
<div class="method-description">
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
<div class="method-source-code" id="date1904-3D-source">
|
881
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 550</span>
|
882
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date1904=</span>(<span class="ruby-identifier">v</span>)
|
883
|
+
<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>
|
884
|
+
<span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
|
885
|
+
<span class="ruby-keyword">end</span></pre>
|
886
|
+
</div>
|
887
|
+
|
888
|
+
</div>
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
|
375
893
|
</div>
|
376
894
|
|
377
895
|
|
@@ -394,7 +912,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
394
912
|
|
395
913
|
|
396
914
|
<div class="method-source-code" id="date_to_num-source">
|
397
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
915
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 414</span>
|
398
916
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
399
917
|
<span class="ruby-identifier">date</span> <span class="ruby-operator">&&</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>
|
400
918
|
<span class="ruby-keyword">end</span></pre>
|
@@ -405,6 +923,138 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
405
923
|
|
406
924
|
|
407
925
|
|
926
|
+
</div>
|
927
|
+
|
928
|
+
|
929
|
+
<div id="method-i-modified_at" class="method-detail ">
|
930
|
+
|
931
|
+
<div class="method-heading">
|
932
|
+
<span class="method-name">modified_at</span><span
|
933
|
+
class="method-args">()</span>
|
934
|
+
|
935
|
+
<span class="method-click-advice">click to toggle source</span>
|
936
|
+
|
937
|
+
</div>
|
938
|
+
|
939
|
+
|
940
|
+
<div class="method-description">
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
<div class="method-source-code" id="modified_at-source">
|
948
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 495</span>
|
949
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modified_at</span>
|
950
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
951
|
+
<span class="ruby-keyword">end</span></pre>
|
952
|
+
</div>
|
953
|
+
|
954
|
+
</div>
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
</div>
|
960
|
+
|
961
|
+
|
962
|
+
<div id="method-i-modified_at-3D" class="method-detail ">
|
963
|
+
|
964
|
+
<div class="method-heading">
|
965
|
+
<span class="method-name">modified_at=</span><span
|
966
|
+
class="method-args">(v)</span>
|
967
|
+
|
968
|
+
<span class="method-click-advice">click to toggle source</span>
|
969
|
+
|
970
|
+
</div>
|
971
|
+
|
972
|
+
|
973
|
+
<div class="method-description">
|
974
|
+
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
<div class="method-source-code" id="modified_at-3D-source">
|
981
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 499</span>
|
982
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modified_at=</span>(<span class="ruby-identifier">v</span>)
|
983
|
+
<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>
|
984
|
+
<span class="ruby-keyword">end</span></pre>
|
985
|
+
</div>
|
986
|
+
|
987
|
+
</div>
|
988
|
+
|
989
|
+
|
990
|
+
|
991
|
+
|
992
|
+
</div>
|
993
|
+
|
994
|
+
|
995
|
+
<div id="method-i-modifier" class="method-detail ">
|
996
|
+
|
997
|
+
<div class="method-heading">
|
998
|
+
<span class="method-name">modifier</span><span
|
999
|
+
class="method-args">()</span>
|
1000
|
+
|
1001
|
+
<span class="method-click-advice">click to toggle source</span>
|
1002
|
+
|
1003
|
+
</div>
|
1004
|
+
|
1005
|
+
|
1006
|
+
<div class="method-description">
|
1007
|
+
|
1008
|
+
|
1009
|
+
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
<div class="method-source-code" id="modifier-source">
|
1014
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 538</span>
|
1015
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modifier</span>
|
1016
|
+
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
1017
|
+
<span class="ruby-keyword">end</span></pre>
|
1018
|
+
</div>
|
1019
|
+
|
1020
|
+
</div>
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
1024
|
+
|
1025
|
+
</div>
|
1026
|
+
|
1027
|
+
|
1028
|
+
<div id="method-i-modifier-3D" class="method-detail ">
|
1029
|
+
|
1030
|
+
<div class="method-heading">
|
1031
|
+
<span class="method-name">modifier=</span><span
|
1032
|
+
class="method-args">(v)</span>
|
1033
|
+
|
1034
|
+
<span class="method-click-advice">click to toggle source</span>
|
1035
|
+
|
1036
|
+
</div>
|
1037
|
+
|
1038
|
+
|
1039
|
+
<div class="method-description">
|
1040
|
+
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
1044
|
+
|
1045
|
+
|
1046
|
+
<div class="method-source-code" id="modifier-3D-source">
|
1047
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 542</span>
|
1048
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modifier=</span>(<span class="ruby-identifier">v</span>)
|
1049
|
+
<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>
|
1050
|
+
<span class="ruby-keyword">end</span></pre>
|
1051
|
+
</div>
|
1052
|
+
|
1053
|
+
</div>
|
1054
|
+
|
1055
|
+
|
1056
|
+
|
1057
|
+
|
408
1058
|
</div>
|
409
1059
|
|
410
1060
|
|
@@ -427,7 +1077,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
427
1077
|
|
428
1078
|
|
429
1079
|
<div class="method-source-code" id="num_to_date-source">
|
430
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
1080
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 418</span>
|
431
1081
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
432
1082
|
<span class="ruby-comment"># Bug-for-bug Excel compatibility (https://support.microsoft.com/kb/214058/)</span>
|
433
1083
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">num</span> <span class="ruby-operator">&&</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>
|
@@ -465,7 +1115,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
465
1115
|
|
466
1116
|
|
467
1117
|
<div class="method-source-code" id="related_objects-source">
|
468
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
1118
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 314</span>
|
469
1119
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">related_objects</span>
|
470
1120
|
[ <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>
|
471
1121
|
<span class="ruby-keyword">end</span></pre>
|
@@ -498,7 +1148,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
498
1148
|
|
499
1149
|
|
500
1150
|
<div class="method-source-code" id="save-source">
|
501
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
1151
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 390</span>
|
502
1152
|
<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>)
|
503
1153
|
<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>
|
504
1154
|
|
@@ -544,7 +1194,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
544
1194
|
|
545
1195
|
|
546
1196
|
<div class="method-source-code" id="stream-source">
|
547
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
1197
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 385</span>
|
548
1198
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stream</span>
|
549
1199
|
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">stream</span>
|
550
1200
|
<span class="ruby-keyword">end</span></pre>
|
@@ -605,7 +1255,7 @@ href="http://www.accountingweb.com/technology/excel/seven-characters-you-cant-us
|
|
605
1255
|
|
606
1256
|
|
607
1257
|
<div class="method-source-code" id="xlsx_path-source">
|
608
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line
|
1258
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/workbook.rb, line 380</span>
|
609
1259
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">xlsx_path</span>
|
610
1260
|
<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>)
|
611
1261
|
<span class="ruby-keyword">end</span></pre>
|