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
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.
|
7
|
+
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.4.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -64,37 +64,11 @@
|
|
64
64
|
|
65
65
|
<ul class="link-list" role="directory">
|
66
66
|
|
67
|
-
<li ><a href="#method-i-5B-5D">#[]</a>
|
68
|
-
|
69
|
-
<li ><a href="#method-i-add_worksheet">#add_worksheet</a>
|
70
|
-
|
71
|
-
<li ><a href="#method-i-application">#application</a>
|
72
|
-
|
73
|
-
<li ><a href="#method-i-application-3D">#application=</a>
|
74
|
-
|
75
|
-
<li ><a href="#method-i-appversion">#appversion</a>
|
76
|
-
|
77
|
-
<li ><a href="#method-i-appversion-3D">#appversion=</a>
|
78
|
-
|
79
67
|
<li ><a href="#method-i-borders">#borders</a>
|
80
68
|
|
81
69
|
<li ><a href="#method-i-cell_xfs">#cell_xfs</a>
|
82
70
|
|
83
|
-
<li ><a href="#method-i-
|
84
|
-
|
85
|
-
<li ><a href="#method-i-company-3D">#company=</a>
|
86
|
-
|
87
|
-
<li ><a href="#method-i-created_at">#created_at</a>
|
88
|
-
|
89
|
-
<li ><a href="#method-i-created_at-3D">#created_at=</a>
|
90
|
-
|
91
|
-
<li ><a href="#method-i-creator">#creator</a>
|
92
|
-
|
93
|
-
<li ><a href="#method-i-creator-3D">#creator=</a>
|
94
|
-
|
95
|
-
<li ><a href="#method-i-date1904">#date1904</a>
|
96
|
-
|
97
|
-
<li ><a href="#method-i-date1904-3D">#date1904=</a>
|
71
|
+
<li ><a href="#method-i-define_new_name">#define_new_name</a>
|
98
72
|
|
99
73
|
<li ><a href="#method-i-each">#each</a>
|
100
74
|
|
@@ -102,15 +76,9 @@
|
|
102
76
|
|
103
77
|
<li ><a href="#method-i-fonts">#fonts</a>
|
104
78
|
|
105
|
-
<li ><a href="#method-i-
|
106
|
-
|
107
|
-
<li ><a href="#method-i-modified_at">#modified_at</a>
|
79
|
+
<li ><a href="#method-i-get_defined_name">#get_defined_name</a>
|
108
80
|
|
109
|
-
<li ><a href="#method-i-
|
110
|
-
|
111
|
-
<li ><a href="#method-i-modifier">#modifier</a>
|
112
|
-
|
113
|
-
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
81
|
+
<li ><a href="#method-i-get_fill_color">#get_fill_color</a>
|
114
82
|
|
115
83
|
<li ><a href="#method-i-modify_alignment">#modify_alignment</a>
|
116
84
|
|
@@ -152,20 +120,6 @@
|
|
152
120
|
|
153
121
|
|
154
122
|
|
155
|
-
<section class="constants-list">
|
156
|
-
<header>
|
157
|
-
<h3>Constants</h3>
|
158
|
-
</header>
|
159
|
-
<dl>
|
160
|
-
|
161
|
-
<dt id="SHEET_NAME_TEMPLATE">SHEET_NAME_TEMPLATE
|
162
|
-
|
163
|
-
<dd>
|
164
|
-
|
165
|
-
|
166
|
-
</dl>
|
167
|
-
</section>
|
168
|
-
|
169
123
|
|
170
124
|
|
171
125
|
|
@@ -176,221 +130,6 @@
|
|
176
130
|
</header>
|
177
131
|
|
178
132
|
|
179
|
-
<div id="method-i-5B-5D" class="method-detail ">
|
180
|
-
|
181
|
-
<div class="method-heading">
|
182
|
-
<span class="method-name">[]</span><span
|
183
|
-
class="method-args">(ind)</span>
|
184
|
-
|
185
|
-
<span class="method-click-advice">click to toggle source</span>
|
186
|
-
|
187
|
-
</div>
|
188
|
-
|
189
|
-
|
190
|
-
<div class="method-description">
|
191
|
-
|
192
|
-
<p>Finds worksheet by its name or numerical index</p>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
<div class="method-source-code" id="5B-5D-source">
|
198
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 7</span>
|
199
|
-
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">ind</span>)
|
200
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
201
|
-
<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>]
|
202
|
-
<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> }
|
203
|
-
<span class="ruby-keyword">end</span>
|
204
|
-
<span class="ruby-keyword">end</span></pre>
|
205
|
-
</div>
|
206
|
-
|
207
|
-
</div>
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
</div>
|
213
|
-
|
214
|
-
|
215
|
-
<div id="method-i-add_worksheet" class="method-detail ">
|
216
|
-
|
217
|
-
<div class="method-heading">
|
218
|
-
<span class="method-name">add_worksheet</span><span
|
219
|
-
class="method-args">(name = nil)</span>
|
220
|
-
|
221
|
-
<span class="method-click-advice">click to toggle source</span>
|
222
|
-
|
223
|
-
</div>
|
224
|
-
|
225
|
-
|
226
|
-
<div class="method-description">
|
227
|
-
|
228
|
-
<p>Create new simple worksheet and add it to the workbook worksheets</p>
|
229
|
-
|
230
|
-
<p>@param [String] The name for the new worksheet</p>
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
<div class="method-source-code" id="add_worksheet-source">
|
236
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 17</span>
|
237
|
-
<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>)
|
238
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
239
|
-
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
240
|
-
|
241
|
-
<span class="ruby-keyword">begin</span>
|
242
|
-
<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>)
|
243
|
-
<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>
|
244
|
-
<span class="ruby-keyword">end</span>
|
245
|
-
|
246
|
-
<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>)
|
247
|
-
<span class="ruby-identifier">worksheets</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">new_worksheet</span>
|
248
|
-
<span class="ruby-identifier">new_worksheet</span>
|
249
|
-
<span class="ruby-keyword">end</span></pre>
|
250
|
-
</div>
|
251
|
-
|
252
|
-
</div>
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
</div>
|
258
|
-
|
259
|
-
|
260
|
-
<div id="method-i-application" class="method-detail ">
|
261
|
-
|
262
|
-
<div class="method-heading">
|
263
|
-
<span class="method-name">application</span><span
|
264
|
-
class="method-args">()</span>
|
265
|
-
|
266
|
-
<span class="method-click-advice">click to toggle source</span>
|
267
|
-
|
268
|
-
</div>
|
269
|
-
|
270
|
-
|
271
|
-
<div class="method-description">
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
<div class="method-source-code" id="application-source">
|
279
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 53</span>
|
280
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application</span>
|
281
|
-
<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>
|
282
|
-
<span class="ruby-keyword">end</span></pre>
|
283
|
-
</div>
|
284
|
-
|
285
|
-
</div>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
</div>
|
291
|
-
|
292
|
-
|
293
|
-
<div id="method-i-application-3D" class="method-detail ">
|
294
|
-
|
295
|
-
<div class="method-heading">
|
296
|
-
<span class="method-name">application=</span><span
|
297
|
-
class="method-args">(v)</span>
|
298
|
-
|
299
|
-
<span class="method-click-advice">click to toggle source</span>
|
300
|
-
|
301
|
-
</div>
|
302
|
-
|
303
|
-
|
304
|
-
<div class="method-description">
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
<div class="method-source-code" id="application-3D-source">
|
312
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 57</span>
|
313
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">application=</span>(<span class="ruby-identifier">v</span>)
|
314
|
-
<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>
|
315
|
-
<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>
|
316
|
-
<span class="ruby-keyword">end</span></pre>
|
317
|
-
</div>
|
318
|
-
|
319
|
-
</div>
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
</div>
|
325
|
-
|
326
|
-
|
327
|
-
<div id="method-i-appversion" class="method-detail ">
|
328
|
-
|
329
|
-
<div class="method-heading">
|
330
|
-
<span class="method-name">appversion</span><span
|
331
|
-
class="method-args">()</span>
|
332
|
-
|
333
|
-
<span class="method-click-advice">click to toggle source</span>
|
334
|
-
|
335
|
-
</div>
|
336
|
-
|
337
|
-
|
338
|
-
<div class="method-description">
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
<div class="method-source-code" id="appversion-source">
|
346
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 62</span>
|
347
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">appversion</span>
|
348
|
-
<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>
|
349
|
-
<span class="ruby-keyword">end</span></pre>
|
350
|
-
</div>
|
351
|
-
|
352
|
-
</div>
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
</div>
|
358
|
-
|
359
|
-
|
360
|
-
<div id="method-i-appversion-3D" class="method-detail ">
|
361
|
-
|
362
|
-
<div class="method-heading">
|
363
|
-
<span class="method-name">appversion=</span><span
|
364
|
-
class="method-args">(v)</span>
|
365
|
-
|
366
|
-
<span class="method-click-advice">click to toggle source</span>
|
367
|
-
|
368
|
-
</div>
|
369
|
-
|
370
|
-
|
371
|
-
<div class="method-description">
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
<div class="method-source-code" id="appversion-3D-source">
|
379
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 66</span>
|
380
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">appversion=</span>(<span class="ruby-identifier">v</span>)
|
381
|
-
<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>
|
382
|
-
<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>
|
383
|
-
<span class="ruby-keyword">end</span></pre>
|
384
|
-
</div>
|
385
|
-
|
386
|
-
</div>
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
</div>
|
392
|
-
|
393
|
-
|
394
133
|
<div id="method-i-borders" class="method-detail ">
|
395
134
|
|
396
135
|
<div class="method-heading">
|
@@ -410,7 +149,7 @@
|
|
410
149
|
|
411
150
|
|
412
151
|
<div class="method-source-code" id="borders-source">
|
413
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
152
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 21</span>
|
414
153
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">borders</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
415
154
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
|
416
155
|
<span class="ruby-keyword">end</span></pre>
|
@@ -443,7 +182,7 @@
|
|
443
182
|
|
444
183
|
|
445
184
|
<div class="method-source-code" id="cell_xfs-source">
|
446
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
185
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 9</span>
|
447
186
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cell_xfs</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
448
187
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
|
449
188
|
<span class="ruby-keyword">end</span></pre>
|
@@ -457,243 +196,11 @@
|
|
457
196
|
</div>
|
458
197
|
|
459
198
|
|
460
|
-
<div id="method-i-
|
461
|
-
|
462
|
-
<div class="method-heading">
|
463
|
-
<span class="method-name">company</span><span
|
464
|
-
class="method-args">()</span>
|
465
|
-
|
466
|
-
<span class="method-click-advice">click to toggle source</span>
|
467
|
-
|
468
|
-
</div>
|
469
|
-
|
470
|
-
|
471
|
-
<div class="method-description">
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
<div class="method-source-code" id="company-source">
|
479
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 44</span>
|
480
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">company</span>
|
481
|
-
<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>
|
482
|
-
<span class="ruby-keyword">end</span></pre>
|
483
|
-
</div>
|
484
|
-
|
485
|
-
</div>
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
</div>
|
491
|
-
|
492
|
-
|
493
|
-
<div id="method-i-company-3D" class="method-detail ">
|
494
|
-
|
495
|
-
<div class="method-heading">
|
496
|
-
<span class="method-name">company=</span><span
|
497
|
-
class="method-args">(v)</span>
|
498
|
-
|
499
|
-
<span class="method-click-advice">click to toggle source</span>
|
500
|
-
|
501
|
-
</div>
|
502
|
-
|
503
|
-
|
504
|
-
<div class="method-description">
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
<div class="method-source-code" id="company-3D-source">
|
512
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 48</span>
|
513
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">company=</span>(<span class="ruby-identifier">v</span>)
|
514
|
-
<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>
|
515
|
-
<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>
|
516
|
-
<span class="ruby-keyword">end</span></pre>
|
517
|
-
</div>
|
518
|
-
|
519
|
-
</div>
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
</div>
|
525
|
-
|
526
|
-
|
527
|
-
<div id="method-i-created_at" class="method-detail ">
|
528
|
-
|
529
|
-
<div class="method-heading">
|
530
|
-
<span class="method-name">created_at</span><span
|
531
|
-
class="method-args">()</span>
|
532
|
-
|
533
|
-
<span class="method-click-advice">click to toggle source</span>
|
534
|
-
|
535
|
-
</div>
|
536
|
-
|
537
|
-
|
538
|
-
<div class="method-description">
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
<div class="method-source-code" id="created_at-source">
|
546
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 87</span>
|
547
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created_at</span>
|
548
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">created_at</span>
|
549
|
-
<span class="ruby-keyword">end</span></pre>
|
550
|
-
</div>
|
551
|
-
|
552
|
-
</div>
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
</div>
|
558
|
-
|
559
|
-
|
560
|
-
<div id="method-i-created_at-3D" class="method-detail ">
|
561
|
-
|
562
|
-
<div class="method-heading">
|
563
|
-
<span class="method-name">created_at=</span><span
|
564
|
-
class="method-args">(v)</span>
|
565
|
-
|
566
|
-
<span class="method-click-advice">click to toggle source</span>
|
567
|
-
|
568
|
-
</div>
|
569
|
-
|
570
|
-
|
571
|
-
<div class="method-description">
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
<div class="method-source-code" id="created_at-3D-source">
|
579
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 91</span>
|
580
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">created_at=</span>(<span class="ruby-identifier">v</span>)
|
581
|
-
<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>
|
582
|
-
<span class="ruby-keyword">end</span></pre>
|
583
|
-
</div>
|
584
|
-
|
585
|
-
</div>
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
</div>
|
591
|
-
|
592
|
-
|
593
|
-
<div id="method-i-creator" class="method-detail ">
|
594
|
-
|
595
|
-
<div class="method-heading">
|
596
|
-
<span class="method-name">creator</span><span
|
597
|
-
class="method-args">()</span>
|
598
|
-
|
599
|
-
<span class="method-click-advice">click to toggle source</span>
|
600
|
-
|
601
|
-
</div>
|
602
|
-
|
603
|
-
|
604
|
-
<div class="method-description">
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
<div class="method-source-code" id="creator-source">
|
612
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 71</span>
|
613
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">creator</span>
|
614
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">creator</span>
|
615
|
-
<span class="ruby-keyword">end</span></pre>
|
616
|
-
</div>
|
617
|
-
|
618
|
-
</div>
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
</div>
|
624
|
-
|
625
|
-
|
626
|
-
<div id="method-i-creator-3D" class="method-detail ">
|
627
|
-
|
628
|
-
<div class="method-heading">
|
629
|
-
<span class="method-name">creator=</span><span
|
630
|
-
class="method-args">(v)</span>
|
631
|
-
|
632
|
-
<span class="method-click-advice">click to toggle source</span>
|
633
|
-
|
634
|
-
</div>
|
635
|
-
|
636
|
-
|
637
|
-
<div class="method-description">
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
<div class="method-source-code" id="creator-3D-source">
|
645
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 75</span>
|
646
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">creator=</span>(<span class="ruby-identifier">v</span>)
|
647
|
-
<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>
|
648
|
-
<span class="ruby-keyword">end</span></pre>
|
649
|
-
</div>
|
650
|
-
|
651
|
-
</div>
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
</div>
|
657
|
-
|
658
|
-
|
659
|
-
<div id="method-i-date1904" class="method-detail ">
|
660
|
-
|
661
|
-
<div class="method-heading">
|
662
|
-
<span class="method-name">date1904</span><span
|
663
|
-
class="method-args">()</span>
|
664
|
-
|
665
|
-
<span class="method-click-advice">click to toggle source</span>
|
666
|
-
|
667
|
-
</div>
|
668
|
-
|
669
|
-
|
670
|
-
<div class="method-description">
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
<div class="method-source-code" id="date1904-source">
|
678
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 35</span>
|
679
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date1904</span>
|
680
|
-
<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>
|
681
|
-
<span class="ruby-keyword">end</span></pre>
|
682
|
-
</div>
|
683
|
-
|
684
|
-
</div>
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
</div>
|
690
|
-
|
691
|
-
|
692
|
-
<div id="method-i-date1904-3D" class="method-detail ">
|
199
|
+
<div id="method-i-define_new_name" class="method-detail ">
|
693
200
|
|
694
201
|
<div class="method-heading">
|
695
|
-
<span class="method-name">
|
696
|
-
class="method-args">(
|
202
|
+
<span class="method-name">define_new_name</span><span
|
203
|
+
class="method-args">(name, reference)</span>
|
697
204
|
|
698
205
|
<span class="method-click-advice">click to toggle source</span>
|
699
206
|
|
@@ -707,11 +214,11 @@
|
|
707
214
|
|
708
215
|
|
709
216
|
|
710
|
-
<div class="method-source-code" id="
|
711
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
712
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
713
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
714
|
-
<span class="ruby-identifier">
|
217
|
+
<div class="method-source-code" id="define_new_name-source">
|
218
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 124</span>
|
219
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">define_new_name</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">reference</span>)
|
220
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">defined_names</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DefinedNames</span>.<span class="ruby-identifier">new</span>
|
221
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">defined_names</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DefinedName</span>.<span class="ruby-identifier">new</span>({<span class="ruby-value">:name</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">name</span>, <span class="ruby-value">:reference</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">reference</span>})
|
715
222
|
<span class="ruby-keyword">end</span></pre>
|
716
223
|
</div>
|
717
224
|
|
@@ -742,7 +249,7 @@
|
|
742
249
|
|
743
250
|
|
744
251
|
<div class="method-source-code" id="each-source">
|
745
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
252
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 5</span>
|
746
253
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
|
747
254
|
<span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">i</span> }
|
748
255
|
<span class="ruby-keyword">end</span></pre>
|
@@ -775,7 +282,7 @@
|
|
775
282
|
|
776
283
|
|
777
284
|
<div class="method-source-code" id="fills-source">
|
778
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
285
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 17</span>
|
779
286
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fills</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
780
287
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fills</span>
|
781
288
|
<span class="ruby-keyword">end</span></pre>
|
@@ -808,7 +315,7 @@
|
|
808
315
|
|
809
316
|
|
810
317
|
<div class="method-source-code" id="fonts-source">
|
811
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
318
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 13</span>
|
812
319
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fonts</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
813
320
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>
|
814
321
|
<span class="ruby-keyword">end</span></pre>
|
@@ -822,81 +329,11 @@
|
|
822
329
|
</div>
|
823
330
|
|
824
331
|
|
825
|
-
<div id="method-i-
|
826
|
-
|
827
|
-
<div class="method-heading">
|
828
|
-
<span class="method-name">get_fill_color</span><span
|
829
|
-
class="method-args">(xf)</span>
|
830
|
-
|
831
|
-
<span class="method-click-advice">click to toggle source</span>
|
832
|
-
|
833
|
-
</div>
|
834
|
-
|
835
|
-
|
836
|
-
<div class="method-description">
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
<div class="method-source-code" id="get_fill_color-source">
|
844
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 119</span>
|
845
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
|
846
|
-
<span class="ruby-identifier">fill</span> = <span class="ruby-identifier">fills</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">fill_id</span>]
|
847
|
-
<span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">fill</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">fill</span>.<span class="ruby-identifier">pattern_fill</span>
|
848
|
-
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">pattern</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">fg_color</span>
|
849
|
-
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">color</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">get_rgb</span>(<span class="ruby-keyword">self</span>)
|
850
|
-
<span class="ruby-identifier">color</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">||</span> <span class="ruby-string">'ffffff'</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-modified_at" class="method-detail ">
|
863
|
-
|
864
|
-
<div class="method-heading">
|
865
|
-
<span class="method-name">modified_at</span><span
|
866
|
-
class="method-args">()</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="modified_at-source">
|
881
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 95</span>
|
882
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modified_at</span>
|
883
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
884
|
-
<span class="ruby-keyword">end</span></pre>
|
885
|
-
</div>
|
886
|
-
|
887
|
-
</div>
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
</div>
|
893
|
-
|
894
|
-
|
895
|
-
<div id="method-i-modified_at-3D" class="method-detail ">
|
332
|
+
<div id="method-i-get_defined_name" class="method-detail ">
|
896
333
|
|
897
334
|
<div class="method-heading">
|
898
|
-
<span class="method-name">
|
899
|
-
class="method-args">(
|
335
|
+
<span class="method-name">get_defined_name</span><span
|
336
|
+
class="method-args">(name)</span>
|
900
337
|
|
901
338
|
<span class="method-click-advice">click to toggle source</span>
|
902
339
|
|
@@ -910,10 +347,10 @@
|
|
910
347
|
|
911
348
|
|
912
349
|
|
913
|
-
<div class="method-source-code" id="
|
914
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
915
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
916
|
-
<span class="ruby-identifier">
|
350
|
+
<div class="method-source-code" id="get_defined_name-source">
|
351
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 129</span>
|
352
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_defined_name</span>(<span class="ruby-identifier">name</span>)
|
353
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">defined_names</span> <span class="ruby-operator">&&</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">defined_names</span>.<span class="ruby-identifier">find</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">n</span><span class="ruby-operator">|</span> <span class="ruby-identifier">n</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">name</span> }
|
917
354
|
<span class="ruby-keyword">end</span></pre>
|
918
355
|
</div>
|
919
356
|
|
@@ -925,44 +362,11 @@
|
|
925
362
|
</div>
|
926
363
|
|
927
364
|
|
928
|
-
<div id="method-i-
|
929
|
-
|
930
|
-
<div class="method-heading">
|
931
|
-
<span class="method-name">modifier</span><span
|
932
|
-
class="method-args">()</span>
|
933
|
-
|
934
|
-
<span class="method-click-advice">click to toggle source</span>
|
935
|
-
|
936
|
-
</div>
|
937
|
-
|
938
|
-
|
939
|
-
<div class="method-description">
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
<div class="method-source-code" id="modifier-source">
|
947
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 79</span>
|
948
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modifier</span>
|
949
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
950
|
-
<span class="ruby-keyword">end</span></pre>
|
951
|
-
</div>
|
952
|
-
|
953
|
-
</div>
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
</div>
|
959
|
-
|
960
|
-
|
961
|
-
<div id="method-i-modifier-3D" class="method-detail ">
|
365
|
+
<div id="method-i-get_fill_color" class="method-detail ">
|
962
366
|
|
963
367
|
<div class="method-heading">
|
964
|
-
<span class="method-name">
|
965
|
-
class="method-args">(
|
368
|
+
<span class="method-name">get_fill_color</span><span
|
369
|
+
class="method-args">(xf)</span>
|
966
370
|
|
967
371
|
<span class="method-click-advice">click to toggle source</span>
|
968
372
|
|
@@ -976,10 +380,14 @@
|
|
976
380
|
|
977
381
|
|
978
382
|
|
979
|
-
<div class="method-source-code" id="
|
980
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
981
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">
|
982
|
-
<span class="ruby-identifier">
|
383
|
+
<div class="method-source-code" id="get_fill_color-source">
|
384
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 25</span>
|
385
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
|
386
|
+
<span class="ruby-identifier">fill</span> = <span class="ruby-identifier">fills</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">fill_id</span>]
|
387
|
+
<span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">fill</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">fill</span>.<span class="ruby-identifier">pattern_fill</span>
|
388
|
+
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">pattern</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">fg_color</span>
|
389
|
+
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">color</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">get_rgb</span>(<span class="ruby-keyword">self</span>)
|
390
|
+
<span class="ruby-identifier">color</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">||</span> <span class="ruby-string">'ffffff'</span>
|
983
391
|
<span class="ruby-keyword">end</span></pre>
|
984
392
|
</div>
|
985
393
|
|
@@ -1010,14 +418,20 @@
|
|
1010
418
|
|
1011
419
|
|
1012
420
|
<div class="method-source-code" id="modify_alignment-source">
|
1013
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
421
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 58</span>
|
1014
422
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_alignment</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1015
|
-
<span class="ruby-identifier">
|
1016
|
-
<span class="ruby-identifier">
|
1017
|
-
<span class="ruby-keyword">
|
1018
|
-
|
423
|
+
<span class="ruby-identifier">old_xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>]
|
424
|
+
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
425
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">alignment</span> <span class="ruby-keyword">then</span>
|
426
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">dup</span>
|
427
|
+
<span class="ruby-keyword">else</span>
|
428
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>
|
429
|
+
<span class="ruby-keyword">end</span>
|
1019
430
|
|
1020
|
-
<span class="ruby-
|
431
|
+
<span class="ruby-keyword">yield</span>(<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">alignment</span>)
|
432
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_alignment</span> = <span class="ruby-keyword">true</span>
|
433
|
+
|
434
|
+
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1021
435
|
<span class="ruby-keyword">end</span></pre>
|
1022
436
|
</div>
|
1023
437
|
|
@@ -1048,7 +462,7 @@
|
|
1048
462
|
|
1049
463
|
|
1050
464
|
<div class="method-source-code" id="modify_border-source">
|
1051
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
465
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 81</span>
|
1052
466
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
1053
467
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
1054
468
|
<span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
@@ -1094,7 +508,7 @@
|
|
1094
508
|
|
1095
509
|
|
1096
510
|
<div class="method-source-code" id="modify_border_color-source">
|
1097
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
511
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 98</span>
|
1098
512
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
1099
513
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
1100
514
|
<span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
@@ -1136,7 +550,7 @@
|
|
1136
550
|
|
1137
551
|
|
1138
552
|
<div class="method-source-code" id="modify_fill-source">
|
1139
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
553
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 73</span>
|
1140
554
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_fill</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
1141
555
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
1142
556
|
<span class="ruby-identifier">new_fill</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Fill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_fill</span> =<span class="ruby-operator">></span>
|
@@ -1175,7 +589,7 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1175
589
|
|
1176
590
|
|
1177
591
|
<div class="method-source-code" id="password_hash-source">
|
1178
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
592
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 113</span>
|
1179
593
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">password_hash</span>(<span class="ruby-identifier">pwd</span>)
|
1180
594
|
<span class="ruby-identifier">hsh</span> = <span class="ruby-value">0</span>
|
1181
595
|
<span class="ruby-identifier">pwd</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each_char</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
@@ -1215,7 +629,7 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1215
629
|
|
1216
630
|
|
1217
631
|
<div class="method-source-code" id="register_new_fill-source">
|
1218
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
632
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 33</span>
|
1219
633
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">old_xf</span>)
|
1220
634
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1221
635
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_fill</span> = <span class="ruby-keyword">true</span>
|
@@ -1253,7 +667,7 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1253
667
|
|
1254
668
|
|
1255
669
|
<div class="method-source-code" id="register_new_font-source">
|
1256
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
670
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 42</span>
|
1257
671
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">new_font</span>, <span class="ruby-identifier">old_xf</span>)
|
1258
672
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1259
673
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span> = <span class="ruby-identifier">fonts</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_font</span> } <span class="ruby-comment"># Reuse existing font, if it exists</span>
|
@@ -1291,7 +705,7 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1291
705
|
|
1292
706
|
|
1293
707
|
<div class="method-source-code" id="register_new_xf-source">
|
1294
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
708
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 51</span>
|
1295
709
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1296
710
|
<span class="ruby-identifier">new_xf_id</span> = <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">xf</span><span class="ruby-operator">|</span> <span class="ruby-identifier">xf</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_xf</span> } <span class="ruby-comment"># Reuse existing XF, if it exists</span>
|
1297
711
|
<span class="ruby-identifier">new_xf_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this XF has never existed before, add it to collection.</span>
|