rubyXL 3.3.29 → 3.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +60 -0
- data/.rubocop.yml +124 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +11 -8
- data/LICENSE.txt +1 -1
- data/README.rdoc +57 -19
- data/Rakefile +29 -29
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +2 -29
- data/lib/rubyXL/convenience_methods/cell.rb +276 -0
- data/lib/rubyXL/convenience_methods/color.rb +156 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +137 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +734 -0
- data/lib/rubyXL/convenience_methods.rb +5 -1122
- data/lib/rubyXL/objects/border.rb +0 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +4 -6
- data/lib/rubyXL/objects/chartsheet.rb +8 -12
- data/lib/rubyXL/objects/color.rb +4 -6
- data/lib/rubyXL/objects/column_range.rb +16 -15
- data/lib/rubyXL/objects/comments.rb +1 -4
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +1 -5
- data/lib/rubyXL/objects/content_types.rb +3 -6
- data/lib/rubyXL/objects/data_validation.rb +2 -2
- data/lib/rubyXL/objects/document_properties.rb +12 -15
- data/lib/rubyXL/objects/extensions.rb +0 -2
- data/lib/rubyXL/objects/external_links.rb +38 -8
- data/lib/rubyXL/objects/fill.rb +2 -5
- data/lib/rubyXL/objects/filters.rb +5 -7
- data/lib/rubyXL/objects/font.rb +2 -7
- data/lib/rubyXL/objects/formula.rb +3 -5
- data/lib/rubyXL/objects/ooxml_object.rb +40 -31
- data/lib/rubyXL/objects/query_table.rb +106 -0
- data/lib/rubyXL/objects/reference.rb +26 -17
- data/lib/rubyXL/objects/relationships.rb +14 -14
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +4 -7
- data/lib/rubyXL/objects/sheet_common.rb +1 -3
- data/lib/rubyXL/objects/sheet_data.rb +44 -17
- data/lib/rubyXL/objects/simple_types.rb +19 -2
- data/lib/rubyXL/objects/storage.rb +60 -49
- data/lib/rubyXL/objects/stylesheet.rb +9 -17
- data/lib/rubyXL/objects/text.rb +6 -8
- data/lib/rubyXL/objects/theme.rb +23 -9
- data/lib/rubyXL/objects/workbook.rb +144 -36
- data/lib/rubyXL/objects/worksheet.rb +48 -34
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +86 -86
- data/lib/rubyXL.rb +1 -1
- data/rdoc/README_rdoc.html +212 -153
- data/rdoc/RubyXL/AExtension.html +33 -69
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -18
- data/rdoc/RubyXL/ActiveX.html +26 -52
- data/rdoc/RubyXL/ActiveXBinary.html +12 -23
- data/rdoc/RubyXL/AdjustHandleList.html +13 -20
- data/rdoc/RubyXL/Alignment.html +13 -20
- data/rdoc/RubyXL/AlternateContent.html +12 -18
- data/rdoc/RubyXL/AlternateUrls.html +99 -0
- data/rdoc/RubyXL/Authors.html +13 -20
- data/rdoc/RubyXL/AutoFilter.html +13 -20
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -20
- data/rdoc/RubyXL/BinaryImageFile.html +12 -26
- data/rdoc/RubyXL/BodyProperties.html +13 -20
- data/rdoc/RubyXL/BooleanNode.html +12 -18
- data/rdoc/RubyXL/BooleanValue.html +12 -18
- data/rdoc/RubyXL/Border.html +49 -101
- data/rdoc/RubyXL/BorderEdge.html +32 -61
- data/rdoc/RubyXL/Borders.html +25 -44
- data/rdoc/RubyXL/Break.html +13 -20
- data/rdoc/RubyXL/BreakList.html +13 -20
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -20
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -20
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -20
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -20
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -20
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -20
- data/rdoc/RubyXL/CT_Backdrop.html +13 -20
- data/rdoc/RubyXL/CT_Bevel.html +13 -20
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -20
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -20
- data/rdoc/RubyXL/CT_Blip.html +13 -20
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -20
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -20
- data/rdoc/RubyXL/CT_Camera.html +13 -20
- data/rdoc/RubyXL/CT_Color.html +13 -20
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -20
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -20
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -20
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -20
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -20
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -20
- data/rdoc/RubyXL/CT_DashStop.html +13 -20
- data/rdoc/RubyXL/CT_DashStopList.html +13 -20
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -20
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -20
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -20
- data/rdoc/RubyXL/CT_EffectList.html +13 -20
- data/rdoc/RubyXL/CT_EffectReference.html +13 -20
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -20
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -20
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -20
- data/rdoc/RubyXL/CT_FillEffect.html +13 -20
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -20
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -20
- data/rdoc/RubyXL/CT_FlatText.html +13 -20
- data/rdoc/RubyXL/CT_FontCollection.html +13 -20
- data/rdoc/RubyXL/CT_FontReference.html +13 -20
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -20
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -20
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -20
- data/rdoc/RubyXL/CT_GradientStop.html +13 -20
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -20
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -20
- data/rdoc/RubyXL/CT_HslColor.html +13 -20
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -20
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -20
- data/rdoc/RubyXL/CT_LightRig.html +13 -20
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -20
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -20
- data/rdoc/RubyXL/CT_LineProperties.html +13 -20
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -20
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -20
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -20
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -20
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -20
- data/rdoc/RubyXL/CT_Path2D.html +13 -20
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -20
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -20
- data/rdoc/RubyXL/CT_Path2DList.html +13 -20
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -20
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -20
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -20
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -20
- data/rdoc/RubyXL/CT_Point3D.html +13 -20
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -20
- data/rdoc/RubyXL/CT_PresetColor.html +13 -20
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -20
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -20
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -20
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -20
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -20
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -20
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -20
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -20
- data/rdoc/RubyXL/CT_Scene3D.html +13 -20
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -20
- data/rdoc/RubyXL/CT_Shape3D.html +13 -20
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -20
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -20
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -20
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -20
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -20
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -20
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -20
- data/rdoc/RubyXL/CT_SystemColor.html +13 -20
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -20
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -20
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -20
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -20
- data/rdoc/RubyXL/CT_TextFont.html +13 -20
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -20
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -20
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -20
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -20
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -20
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -20
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -20
- data/rdoc/RubyXL/CT_TintEffect.html +13 -20
- data/rdoc/RubyXL/CT_Transform2D.html +13 -20
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -20
- data/rdoc/RubyXL/CT_Vector3D.html +13 -20
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -20
- data/rdoc/RubyXL/CalculationChain.html +23 -50
- data/rdoc/RubyXL/CalculationChainCell.html +13 -20
- data/rdoc/RubyXL/CalculationProperties.html +13 -20
- data/rdoc/RubyXL/Cell.html +210 -258
- data/rdoc/RubyXL/CellConvenienceMethods.html +438 -572
- data/rdoc/RubyXL/CellExt.html +13 -20
- data/rdoc/RubyXL/CellSmartTag.html +13 -20
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -20
- data/rdoc/RubyXL/CellSmartTags.html +13 -20
- data/rdoc/RubyXL/CellStyle.html +13 -20
- data/rdoc/RubyXL/CellStyleXFs.html +25 -44
- data/rdoc/RubyXL/CellStyles.html +25 -44
- data/rdoc/RubyXL/CellValue.html +24 -43
- data/rdoc/RubyXL/CellWatch.html +13 -20
- data/rdoc/RubyXL/CellWatches.html +13 -20
- data/rdoc/RubyXL/CellXFs.html +26 -48
- data/rdoc/RubyXL/ChartColorsFile.html +12 -26
- data/rdoc/RubyXL/ChartFile.html +25 -54
- data/rdoc/RubyXL/ChartStyleFile.html +12 -26
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -26
- data/rdoc/RubyXL/Chartsheet.html +26 -73
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -20
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -20
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -20
- data/rdoc/RubyXL/ChartsheetView.html +13 -20
- data/rdoc/RubyXL/ChartsheetViews.html +13 -20
- data/rdoc/RubyXL/Color.html +24 -48
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +246 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +285 -0
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +139 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -20
- data/rdoc/RubyXL/ColorScale.html +13 -20
- data/rdoc/RubyXL/ColorSet.html +13 -20
- data/rdoc/RubyXL/Colors.html +13 -20
- data/rdoc/RubyXL/ColumnRange.html +76 -91
- data/rdoc/RubyXL/ColumnRanges.html +54 -106
- data/rdoc/RubyXL/Comment.html +13 -20
- data/rdoc/RubyXL/CommentList.html +13 -20
- data/rdoc/RubyXL/CommentsFile.html +24 -56
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -20
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -20
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -20
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +149 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -18
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -18
- data/rdoc/RubyXL/ContentTypes.html +35 -72
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -23
- data/rdoc/RubyXL/CorePropertiesFile.html +89 -208
- data/rdoc/RubyXL/CustomColor.html +13 -20
- data/rdoc/RubyXL/CustomColorList.html +13 -20
- data/rdoc/RubyXL/CustomFilter.html +13 -20
- data/rdoc/RubyXL/CustomFilters.html +13 -20
- data/rdoc/RubyXL/CustomGeometry.html +13 -20
- data/rdoc/RubyXL/CustomProperties.html +13 -20
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -26
- data/rdoc/RubyXL/CustomProperty.html +13 -20
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -20
- data/rdoc/RubyXL/CustomSheetViews.html +13 -20
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -20
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -20
- data/rdoc/RubyXL/CustomXMLFile.html +12 -23
- data/rdoc/RubyXL/DXF.html +13 -20
- data/rdoc/RubyXL/DXFs.html +13 -20
- data/rdoc/RubyXL/DataBar.html +13 -20
- data/rdoc/RubyXL/DataConsolidate.html +13 -20
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -20
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -20
- data/rdoc/RubyXL/DataType.html +11 -40
- data/rdoc/RubyXL/DataValidation.html +13 -20
- data/rdoc/RubyXL/DataValidations.html +13 -20
- data/rdoc/RubyXL/DateGroupItem.html +13 -20
- data/rdoc/RubyXL/DefinedName.html +13 -20
- data/rdoc/RubyXL/DefinedNameExt.html +13 -20
- data/rdoc/RubyXL/DefinedNames.html +13 -20
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -20
- data/rdoc/RubyXL/DocumentPropertiesFile.html +34 -76
- data/rdoc/RubyXL/DrawingFile.html +25 -54
- data/rdoc/RubyXL/DynamicFilter.html +13 -20
- data/rdoc/RubyXL/EmbeddedControl.html +13 -20
- data/rdoc/RubyXL/EmbeddedControls.html +13 -20
- data/rdoc/RubyXL/Extension.html +13 -20
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -20
- data/rdoc/RubyXL/Extents.html +13 -20
- data/rdoc/RubyXL/ExternalBook.html +13 -20
- data/rdoc/RubyXL/ExternalLinksFile.html +25 -54
- data/rdoc/RubyXL/ExternalReference.html +13 -20
- data/rdoc/RubyXL/ExternalReferences.html +13 -20
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -20
- data/rdoc/RubyXL/FieldItem.html +13 -20
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -20
- data/rdoc/RubyXL/FileSharing.html +13 -20
- data/rdoc/RubyXL/FileVersion.html +13 -20
- data/rdoc/RubyXL/Fill.html +25 -44
- data/rdoc/RubyXL/Fills.html +25 -44
- data/rdoc/RubyXL/FilterContainer.html +13 -20
- data/rdoc/RubyXL/FloatNode.html +12 -18
- data/rdoc/RubyXL/FloatValue.html +12 -18
- data/rdoc/RubyXL/Font.html +28 -64
- data/rdoc/RubyXL/FontConvenienceMethods.html +133 -294
- data/rdoc/RubyXL/FontScheme.html +13 -20
- data/rdoc/RubyXL/Fonts.html +25 -44
- data/rdoc/RubyXL/Formula.html +13 -20
- data/rdoc/RubyXL/FunctionGroup.html +13 -20
- data/rdoc/RubyXL/FunctionGroups.html +13 -20
- data/rdoc/RubyXL/GenericStorageObject.html +41 -98
- data/rdoc/RubyXL/GradientFill.html +13 -20
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -20
- data/rdoc/RubyXL/Hyperlink.html +13 -20
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -23
- data/rdoc/RubyXL/Hyperlinks.html +13 -20
- data/rdoc/RubyXL/IconFilter.html +13 -20
- data/rdoc/RubyXL/IconSet.html +13 -20
- data/rdoc/RubyXL/IgnoredError.html +13 -20
- data/rdoc/RubyXL/IgnoredErrors.html +13 -20
- data/rdoc/RubyXL/IndexedColors.html +13 -20
- data/rdoc/RubyXL/InputCells.html +13 -20
- data/rdoc/RubyXL/IntegerNode.html +12 -18
- data/rdoc/RubyXL/IntegerValue.html +12 -18
- data/rdoc/RubyXL/LegacyCell.html +20 -71
- data/rdoc/RubyXL/LegacyWorksheet.html +77 -126
- data/rdoc/RubyXL/MRUColors.html +13 -20
- data/rdoc/RubyXL/MacrosFile.html +12 -26
- data/rdoc/RubyXL/MergedCell.html +13 -20
- data/rdoc/RubyXL/MergedCells.html +13 -20
- data/rdoc/RubyXL/NumFmt.html +13 -20
- data/rdoc/RubyXL/NumberFormat.html +25 -44
- data/rdoc/RubyXL/NumberFormats.html +25 -50
- data/rdoc/RubyXL/OLEObject.html +13 -20
- data/rdoc/RubyXL/OLEObjectFile.html +12 -26
- data/rdoc/RubyXL/OLEObjects.html +13 -20
- data/rdoc/RubyXL/OLESize.html +13 -20
- data/rdoc/RubyXL/OOXMLContainerObject.html +72 -157
- data/rdoc/RubyXL/OOXMLIgnored.html +32 -62
- data/rdoc/RubyXL/OOXMLObject.html +15 -26
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +126 -203
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +104 -226
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +109 -242
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +67 -154
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -20
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +13 -20
- data/rdoc/RubyXL/PageMargins.html +13 -20
- data/rdoc/RubyXL/PageSetup.html +13 -20
- data/rdoc/RubyXL/PageSetupProperties.html +13 -20
- data/rdoc/RubyXL/Pane.html +13 -20
- data/rdoc/RubyXL/Parser.html +35 -65
- data/rdoc/RubyXL/PatternFill.html +13 -20
- data/rdoc/RubyXL/PersonMetadata.html +108 -0
- data/rdoc/RubyXL/PhoneticProperties.html +13 -20
- data/rdoc/RubyXL/PhoneticRun.html +13 -20
- data/rdoc/RubyXL/PivotArea.html +13 -20
- data/rdoc/RubyXL/PivotCache.html +13 -20
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -31
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -26
- data/rdoc/RubyXL/PivotCaches.html +13 -20
- data/rdoc/RubyXL/PivotReference.html +13 -20
- data/rdoc/RubyXL/PivotReferences.html +13 -20
- data/rdoc/RubyXL/PivotTableFile.html +14 -31
- data/rdoc/RubyXL/PivotTableSelection.html +13 -20
- data/rdoc/RubyXL/PresetGeometry.html +13 -20
- data/rdoc/RubyXL/PrintOptions.html +13 -20
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -26
- data/rdoc/RubyXL/ProtectedRange.html +13 -20
- data/rdoc/RubyXL/ProtectedRanges.html +13 -20
- data/rdoc/RubyXL/Protection.html +13 -20
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +157 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -18
- data/rdoc/RubyXL/RawOOXML.html +33 -69
- data/rdoc/RubyXL/Reference.html +156 -286
- data/rdoc/RubyXL/Relationship.html +12 -18
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +20 -37
- data/rdoc/RubyXL/RelationshipSupport.html +62 -145
- data/rdoc/RubyXL/RevisionPointer.html +13 -23
- data/rdoc/RubyXL/RichText.html +27 -45
- data/rdoc/RubyXL/RichTextRun.html +24 -43
- data/rdoc/RubyXL/Row.html +88 -205
- data/rdoc/RubyXL/RowExt.html +13 -20
- data/rdoc/RubyXL/RunProperties.html +13 -20
- data/rdoc/RubyXL/Scenario.html +13 -20
- data/rdoc/RubyXL/Scenarios.html +13 -20
- data/rdoc/RubyXL/Selection.html +23 -42
- data/rdoc/RubyXL/ShapeGuide.html +13 -20
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -20
- data/rdoc/RubyXL/SharedStringsTable.html +81 -177
- data/rdoc/RubyXL/Sheet.html +13 -20
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -20
- data/rdoc/RubyXL/SheetData.html +32 -62
- data/rdoc/RubyXL/SheetDataExt.html +13 -20
- data/rdoc/RubyXL/SheetDataSet.html +13 -20
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +13 -20
- data/rdoc/RubyXL/SheetNames.html +13 -20
- data/rdoc/RubyXL/Sheets.html +13 -20
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -26
- data/rdoc/RubyXL/SlicerFile.html +12 -26
- data/rdoc/RubyXL/SmartTagProperties.html +13 -20
- data/rdoc/RubyXL/SmartTagType.html +13 -20
- data/rdoc/RubyXL/SmartTagTypes.html +13 -20
- data/rdoc/RubyXL/SmartTags.html +13 -20
- data/rdoc/RubyXL/SortCondition.html +13 -20
- data/rdoc/RubyXL/SortState.html +13 -20
- data/rdoc/RubyXL/Sqref.html +33 -63
- data/rdoc/RubyXL/Stop.html +13 -20
- data/rdoc/RubyXL/StringNode.html +12 -18
- data/rdoc/RubyXL/StringNodeW3C.html +33 -63
- data/rdoc/RubyXL/StringValue.html +12 -18
- data/rdoc/RubyXL/Stylesheet.html +65 -138
- data/rdoc/RubyXL/TableFile.html +12 -26
- data/rdoc/RubyXL/TableParts.html +12 -18
- data/rdoc/RubyXL/TableStyle.html +13 -20
- data/rdoc/RubyXL/TableStyles.html +13 -20
- data/rdoc/RubyXL/Text.html +35 -76
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +72 -72
- data/rdoc/RubyXL/ThemeElements.html +13 -20
- data/rdoc/RubyXL/ThumbnailFile.html +12 -26
- data/rdoc/RubyXL/Top10.html +13 -20
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -33
- data/rdoc/RubyXL/Variant.html +13 -20
- data/rdoc/RubyXL/Vector.html +24 -43
- data/rdoc/RubyXL/VectorValue.html +12 -18
- data/rdoc/RubyXL/VisualProperties.html +13 -20
- data/rdoc/RubyXL/WebPublishObject.html +13 -20
- data/rdoc/RubyXL/WebPublishObjects.html +13 -20
- data/rdoc/RubyXL/WebPublishingItem.html +13 -20
- data/rdoc/RubyXL/WebPublishingItems.html +13 -20
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -20
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +581 -266
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +226 -951
- data/rdoc/RubyXL/WorkbookProperties.html +13 -20
- data/rdoc/RubyXL/WorkbookProtection.html +13 -20
- data/rdoc/RubyXL/WorkbookRoot.html +58 -135
- data/rdoc/RubyXL/WorkbookView.html +13 -20
- data/rdoc/RubyXL/WorkbookViews.html +13 -20
- data/rdoc/RubyXL/Worksheet.html +122 -137
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +717 -1373
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -20
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -18
- data/rdoc/RubyXL/WorksheetProperties.html +13 -20
- data/rdoc/RubyXL/WorksheetProtection.html +13 -20
- data/rdoc/RubyXL/WorksheetView.html +13 -20
- data/rdoc/RubyXL/WorksheetViews.html +13 -20
- data/rdoc/RubyXL/XF.html +13 -20
- data/rdoc/RubyXL.html +46 -306
- data/rdoc/created.rid +45 -38
- data/rdoc/css/rdoc.css +109 -12
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/index.html +403 -726
- data/rdoc/js/darkfish.js +33 -97
- data/rdoc/js/navigation.js +12 -49
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +35 -34
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +6 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +287 -45
- data/rubyXL.gemspec +77 -43
- data/spec/lib/cell_spec.rb +119 -6
- data/spec/lib/color_spec.rb +9 -1
- data/spec/lib/parser_spec.rb +28 -28
- data/spec/lib/reference_spec.rb +41 -5
- data/spec/lib/rgb_color_spec.rb +29 -0
- data/spec/lib/stylesheet_spec.rb +10 -11
- data/spec/lib/text_spec.rb +4 -6
- data/spec/lib/workbook_spec.rb +31 -8
- data/spec/lib/worksheet_spec.rb +886 -480
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +15 -15
- metadata +76 -10
- data/rdoc/js/jquery.js +0 -4
@@ -4,21 +4,23 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.
|
7
|
+
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.4.33</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
11
|
var index_rel_prefix = "../";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="../js/
|
15
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
16
19
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
19
22
|
|
20
23
|
|
21
|
-
|
22
24
|
<body id="top" role="document" class="module">
|
23
25
|
<nav role="navigation">
|
24
26
|
<div id="project-navigation">
|
@@ -39,7 +41,7 @@
|
|
39
41
|
<div id="search-field-wrapper">
|
40
42
|
<input id="search-field" role="combobox" aria-label="Search"
|
41
43
|
aria-autocomplete="list" aria-controls="search-results"
|
42
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
44
|
+
type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
|
43
45
|
title="Type to search, Up and Down to navigate, Enter to load">
|
44
46
|
</div>
|
45
47
|
|
@@ -58,76 +60,30 @@
|
|
58
60
|
|
59
61
|
|
60
62
|
|
61
|
-
|
63
|
+
|
64
|
+
<!-- Method Quickref -->
|
62
65
|
<div id="method-list-section" class="nav-section">
|
63
66
|
<h3>Methods</h3>
|
64
67
|
|
65
68
|
<ul class="link-list" role="directory">
|
66
|
-
|
67
|
-
<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
69
|
<li ><a href="#method-i-borders">#borders</a>
|
80
|
-
|
81
70
|
<li ><a href="#method-i-cell_xfs">#cell_xfs</a>
|
82
|
-
|
83
|
-
<li ><a href="#method-i-company">#company</a>
|
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>
|
98
|
-
|
71
|
+
<li ><a href="#method-i-define_new_name">#define_new_name</a>
|
99
72
|
<li ><a href="#method-i-each">#each</a>
|
100
|
-
|
101
73
|
<li ><a href="#method-i-fills">#fills</a>
|
102
|
-
|
103
74
|
<li ><a href="#method-i-fonts">#fonts</a>
|
104
|
-
|
75
|
+
<li ><a href="#method-i-get_defined_name">#get_defined_name</a>
|
105
76
|
<li ><a href="#method-i-get_fill_color">#get_fill_color</a>
|
106
|
-
|
107
|
-
<li ><a href="#method-i-modified_at">#modified_at</a>
|
108
|
-
|
109
|
-
<li ><a href="#method-i-modified_at-3D">#modified_at=</a>
|
110
|
-
|
111
|
-
<li ><a href="#method-i-modifier">#modifier</a>
|
112
|
-
|
113
|
-
<li ><a href="#method-i-modifier-3D">#modifier=</a>
|
114
|
-
|
115
77
|
<li ><a href="#method-i-modify_alignment">#modify_alignment</a>
|
116
|
-
|
117
78
|
<li ><a href="#method-i-modify_border">#modify_border</a>
|
118
|
-
|
119
79
|
<li ><a href="#method-i-modify_border_color">#modify_border_color</a>
|
120
|
-
|
121
80
|
<li ><a href="#method-i-modify_fill">#modify_fill</a>
|
122
|
-
|
123
81
|
<li ><a href="#method-i-password_hash">#password_hash</a>
|
124
|
-
|
125
82
|
<li ><a href="#method-i-register_new_fill">#register_new_fill</a>
|
126
|
-
|
127
83
|
<li ><a href="#method-i-register_new_font">#register_new_font</a>
|
128
|
-
|
129
84
|
<li ><a href="#method-i-register_new_xf">#register_new_xf</a>
|
130
|
-
|
85
|
+
<li ><a href="#method-i-title">#title</a>
|
86
|
+
<li ><a href="#method-i-title-3D">#title=</a>
|
131
87
|
</ul>
|
132
88
|
</div>
|
133
89
|
|
@@ -143,912 +99,251 @@
|
|
143
99
|
|
144
100
|
</section>
|
145
101
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
174
|
-
<header>
|
175
|
-
<h3>Public Instance Methods</h3>
|
176
|
-
</header>
|
177
|
-
|
178
|
-
|
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
|
-
<div id="method-i-borders" class="method-detail ">
|
395
|
-
|
396
|
-
<div class="method-heading">
|
397
|
-
<span class="method-name">borders</span><span
|
398
|
-
class="method-args">()</span>
|
399
|
-
|
400
|
-
<span class="method-click-advice">click to toggle source</span>
|
401
|
-
|
402
|
-
</div>
|
403
|
-
|
404
|
-
|
405
|
-
<div class="method-description">
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
<div class="method-source-code" id="borders-source">
|
413
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 115</span>
|
414
|
-
<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
|
-
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
|
416
|
-
<span class="ruby-keyword">end</span></pre>
|
417
|
-
</div>
|
418
|
-
|
419
|
-
</div>
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
</div>
|
425
|
-
|
426
|
-
|
427
|
-
<div id="method-i-cell_xfs" class="method-detail ">
|
428
|
-
|
429
|
-
<div class="method-heading">
|
430
|
-
<span class="method-name">cell_xfs</span><span
|
431
|
-
class="method-args">()</span>
|
432
|
-
|
433
|
-
<span class="method-click-advice">click to toggle source</span>
|
434
|
-
|
435
|
-
</div>
|
436
|
-
|
437
|
-
|
438
|
-
<div class="method-description">
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
<div class="method-source-code" id="cell_xfs-source">
|
446
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 103</span>
|
447
|
-
<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
|
-
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
|
449
|
-
<span class="ruby-keyword">end</span></pre>
|
450
|
-
</div>
|
451
|
-
|
452
|
-
</div>
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
</div>
|
458
|
-
|
459
|
-
|
460
|
-
<div id="method-i-company" class="method-detail ">
|
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>
|
102
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
619
103
|
|
620
|
-
|
621
104
|
|
622
|
-
|
623
|
-
</div>
|
624
105
|
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
106
|
+
|
107
|
+
|
108
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
109
|
+
<header>
|
110
|
+
<h3>Public Instance Methods</h3>
|
111
|
+
</header>
|
112
|
+
|
113
|
+
<div id="method-i-borders" class="method-detail ">
|
114
|
+
<div class="method-header">
|
115
|
+
<div class="method-heading">
|
116
|
+
<span class="method-name">borders</span><span
|
117
|
+
class="method-args">()</span>
|
118
|
+
<span class="method-click-advice">click to toggle source</span>
|
119
|
+
</div>
|
634
120
|
</div>
|
635
|
-
|
636
121
|
|
637
122
|
<div class="method-description">
|
638
123
|
|
639
|
-
|
640
|
-
|
641
|
-
|
642
124
|
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
<span class="ruby-
|
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>
|
125
|
+
<div class="method-source-code" id="borders-source">
|
126
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 19</span>
|
127
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">borders</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
128
|
+
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
|
648
129
|
<span class="ruby-keyword">end</span></pre>
|
649
130
|
</div>
|
650
|
-
|
651
131
|
</div>
|
652
132
|
|
653
|
-
|
654
133
|
|
655
|
-
|
656
134
|
</div>
|
657
135
|
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
class="method-
|
664
|
-
|
665
|
-
<span class="method-click-advice">click to toggle source</span>
|
666
|
-
|
136
|
+
<div id="method-i-cell_xfs" class="method-detail ">
|
137
|
+
<div class="method-header">
|
138
|
+
<div class="method-heading">
|
139
|
+
<span class="method-name">cell_xfs</span><span
|
140
|
+
class="method-args">()</span>
|
141
|
+
<span class="method-click-advice">click to toggle source</span>
|
142
|
+
</div>
|
667
143
|
</div>
|
668
|
-
|
669
144
|
|
670
145
|
<div class="method-description">
|
671
146
|
|
672
|
-
|
673
|
-
|
674
|
-
|
675
147
|
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
<span class="ruby-
|
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>
|
148
|
+
<div class="method-source-code" id="cell_xfs-source">
|
149
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 7</span>
|
150
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cell_xfs</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
151
|
+
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
|
681
152
|
<span class="ruby-keyword">end</span></pre>
|
682
153
|
</div>
|
683
|
-
|
684
154
|
</div>
|
685
155
|
|
686
|
-
|
687
156
|
|
688
|
-
|
689
157
|
</div>
|
690
158
|
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
class="method-
|
697
|
-
|
698
|
-
<span class="method-click-advice">click to toggle source</span>
|
699
|
-
|
159
|
+
<div id="method-i-define_new_name" class="method-detail ">
|
160
|
+
<div class="method-header">
|
161
|
+
<div class="method-heading">
|
162
|
+
<span class="method-name">define_new_name</span><span
|
163
|
+
class="method-args">(name, reference)</span>
|
164
|
+
<span class="method-click-advice">click to toggle source</span>
|
165
|
+
</div>
|
700
166
|
</div>
|
701
|
-
|
702
167
|
|
703
168
|
<div class="method-description">
|
704
169
|
|
705
|
-
|
706
|
-
|
707
|
-
|
708
170
|
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
<span class="ruby-keyword">
|
713
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">
|
714
|
-
<span class="ruby-identifier">workbook_properties</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">v</span>
|
171
|
+
<div class="method-source-code" id="define_new_name-source">
|
172
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 118</span>
|
173
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_new_name</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">reference</span>)
|
174
|
+
<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>
|
175
|
+
<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
176
|
<span class="ruby-keyword">end</span></pre>
|
716
177
|
</div>
|
717
|
-
|
718
178
|
</div>
|
719
179
|
|
720
|
-
|
721
180
|
|
722
|
-
|
723
181
|
</div>
|
724
182
|
|
725
|
-
|
726
183
|
<div id="method-i-each" class="method-detail ">
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
184
|
+
<div class="method-header">
|
185
|
+
<div class="method-heading">
|
186
|
+
<span class="method-name">each</span><span
|
187
|
+
class="method-args">() { |i| ... }</span>
|
188
|
+
<span class="method-click-advice">click to toggle source</span>
|
189
|
+
</div>
|
734
190
|
</div>
|
735
|
-
|
736
191
|
|
737
192
|
<div class="method-description">
|
738
193
|
|
739
|
-
|
740
|
-
|
741
|
-
|
742
194
|
|
743
|
-
|
744
195
|
<div class="method-source-code" id="each-source">
|
745
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
746
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
|
196
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 3</span>
|
197
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each</span>
|
747
198
|
<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
199
|
<span class="ruby-keyword">end</span></pre>
|
749
200
|
</div>
|
750
|
-
|
751
201
|
</div>
|
752
202
|
|
753
|
-
|
754
203
|
|
755
|
-
|
756
204
|
</div>
|
757
205
|
|
758
|
-
|
759
206
|
<div id="method-i-fills" class="method-detail ">
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
207
|
+
<div class="method-header">
|
208
|
+
<div class="method-heading">
|
209
|
+
<span class="method-name">fills</span><span
|
210
|
+
class="method-args">()</span>
|
211
|
+
<span class="method-click-advice">click to toggle source</span>
|
212
|
+
</div>
|
767
213
|
</div>
|
768
|
-
|
769
214
|
|
770
215
|
<div class="method-description">
|
771
216
|
|
772
|
-
|
773
|
-
|
774
|
-
|
775
217
|
|
776
|
-
|
777
218
|
<div class="method-source-code" id="fills-source">
|
778
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
779
|
-
<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>
|
219
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 15</span>
|
220
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fills</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
780
221
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fills</span>
|
781
222
|
<span class="ruby-keyword">end</span></pre>
|
782
223
|
</div>
|
783
|
-
|
784
224
|
</div>
|
785
225
|
|
786
|
-
|
787
226
|
|
788
|
-
|
789
227
|
</div>
|
790
228
|
|
791
|
-
|
792
229
|
<div id="method-i-fonts" class="method-detail ">
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
230
|
+
<div class="method-header">
|
231
|
+
<div class="method-heading">
|
232
|
+
<span class="method-name">fonts</span><span
|
233
|
+
class="method-args">()</span>
|
234
|
+
<span class="method-click-advice">click to toggle source</span>
|
235
|
+
</div>
|
800
236
|
</div>
|
801
|
-
|
802
237
|
|
803
238
|
<div class="method-description">
|
804
239
|
|
805
|
-
|
806
|
-
|
807
|
-
|
808
240
|
|
809
|
-
|
810
241
|
<div class="method-source-code" id="fonts-source">
|
811
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
812
|
-
<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>
|
242
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 11</span>
|
243
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fonts</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
813
244
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>
|
814
245
|
<span class="ruby-keyword">end</span></pre>
|
815
246
|
</div>
|
816
|
-
|
817
|
-
</div>
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
</div>
|
823
|
-
|
824
|
-
|
825
|
-
<div id="method-i-get_fill_color" class="method-detail ">
|
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-operator">&&</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-operator">||</span> <span class="ruby-string">'ffffff'</span>
|
850
|
-
<span class="ruby-keyword">end</span></pre>
|
851
|
-
</div>
|
852
|
-
|
853
247
|
</div>
|
854
248
|
|
855
|
-
|
856
249
|
|
857
|
-
|
858
250
|
</div>
|
859
251
|
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
class="method-
|
866
|
-
|
867
|
-
<span class="method-click-advice">click to toggle source</span>
|
868
|
-
|
869
|
-
</div>
|
870
|
-
|
871
|
-
|
872
|
-
<div class="method-description">
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
<div class="method-source-code" id="modified_at-source">
|
880
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 95</span>
|
881
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modified_at</span>
|
882
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modified_at</span>
|
883
|
-
<span class="ruby-keyword">end</span></pre>
|
252
|
+
<div id="method-i-get_defined_name" class="method-detail ">
|
253
|
+
<div class="method-header">
|
254
|
+
<div class="method-heading">
|
255
|
+
<span class="method-name">get_defined_name</span><span
|
256
|
+
class="method-args">(name)</span>
|
257
|
+
<span class="method-click-advice">click to toggle source</span>
|
884
258
|
</div>
|
885
|
-
|
886
|
-
</div>
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
</div>
|
892
|
-
|
893
|
-
|
894
|
-
<div id="method-i-modified_at-3D" class="method-detail ">
|
895
|
-
|
896
|
-
<div class="method-heading">
|
897
|
-
<span class="method-name">modified_at=</span><span
|
898
|
-
class="method-args">(v)</span>
|
899
|
-
|
900
|
-
<span class="method-click-advice">click to toggle source</span>
|
901
|
-
|
902
259
|
</div>
|
903
|
-
|
904
260
|
|
905
261
|
<div class="method-description">
|
906
262
|
|
907
|
-
|
908
|
-
|
909
|
-
|
910
263
|
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
<span class="ruby-keyword">
|
915
|
-
<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>
|
264
|
+
<div class="method-source-code" id="get_defined_name-source">
|
265
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 123</span>
|
266
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_defined_name</span>(<span class="ruby-identifier">name</span>)
|
267
|
+
<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> }
|
916
268
|
<span class="ruby-keyword">end</span></pre>
|
917
269
|
</div>
|
918
|
-
|
919
270
|
</div>
|
920
271
|
|
921
|
-
|
922
272
|
|
923
|
-
|
924
273
|
</div>
|
925
274
|
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
class="method-
|
932
|
-
|
933
|
-
<span class="method-click-advice">click to toggle source</span>
|
934
|
-
|
935
|
-
</div>
|
936
|
-
|
937
|
-
|
938
|
-
<div class="method-description">
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
<div class="method-source-code" id="modifier-source">
|
946
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 79</span>
|
947
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modifier</span>
|
948
|
-
<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">modifier</span>
|
949
|
-
<span class="ruby-keyword">end</span></pre>
|
275
|
+
<div id="method-i-get_fill_color" class="method-detail ">
|
276
|
+
<div class="method-header">
|
277
|
+
<div class="method-heading">
|
278
|
+
<span class="method-name">get_fill_color</span><span
|
279
|
+
class="method-args">(xf)</span>
|
280
|
+
<span class="method-click-advice">click to toggle source</span>
|
950
281
|
</div>
|
951
|
-
|
952
|
-
</div>
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
</div>
|
958
|
-
|
959
|
-
|
960
|
-
<div id="method-i-modifier-3D" class="method-detail ">
|
961
|
-
|
962
|
-
<div class="method-heading">
|
963
|
-
<span class="method-name">modifier=</span><span
|
964
|
-
class="method-args">(v)</span>
|
965
|
-
|
966
|
-
<span class="method-click-advice">click to toggle source</span>
|
967
|
-
|
968
282
|
</div>
|
969
|
-
|
970
283
|
|
971
284
|
<div class="method-description">
|
972
285
|
|
973
|
-
|
974
|
-
|
975
|
-
|
976
286
|
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
<span class="ruby-
|
981
|
-
<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>
|
287
|
+
<div class="method-source-code" id="get_fill_color-source">
|
288
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 23</span>
|
289
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
|
290
|
+
<span class="ruby-identifier">fills</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">fill_id</span>]&.<span class="ruby-identifier">pattern_fill</span>&.<span class="ruby-identifier">fg_color</span>&.<span class="ruby-identifier">get_rgb</span>(<span class="ruby-keyword">self</span>)&.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">||</span> <span class="ruby-string">'ffffff'</span>
|
982
291
|
<span class="ruby-keyword">end</span></pre>
|
983
292
|
</div>
|
984
|
-
|
985
293
|
</div>
|
986
294
|
|
987
|
-
|
988
295
|
|
989
|
-
|
990
296
|
</div>
|
991
297
|
|
992
|
-
|
993
298
|
<div id="method-i-modify_alignment" class="method-detail ">
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
299
|
+
<div class="method-header">
|
300
|
+
<div class="method-heading">
|
301
|
+
<span class="method-name">modify_alignment</span><span
|
302
|
+
class="method-args">(style_index) { |alignment| ... }</span>
|
303
|
+
<span class="method-click-advice">click to toggle source</span>
|
304
|
+
</div>
|
1001
305
|
</div>
|
1002
|
-
|
1003
306
|
|
1004
307
|
<div class="method-description">
|
1005
308
|
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
309
|
|
1010
|
-
|
1011
310
|
<div class="method-source-code" id="modify_alignment-source">
|
1012
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1013
|
-
<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>)
|
1014
|
-
<span class="ruby-identifier">
|
1015
|
-
<span class="ruby-identifier">
|
1016
|
-
<span class="ruby-keyword">
|
1017
|
-
|
311
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 52</span>
|
312
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modify_alignment</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
313
|
+
<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>]
|
314
|
+
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
315
|
+
<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>
|
316
|
+
<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>
|
317
|
+
<span class="ruby-keyword">else</span>
|
318
|
+
<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>
|
319
|
+
<span class="ruby-keyword">end</span>
|
1018
320
|
|
1019
|
-
<span class="ruby-
|
321
|
+
<span class="ruby-keyword">yield</span>(<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">alignment</span>)
|
322
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_alignment</span> = <span class="ruby-keyword">true</span>
|
323
|
+
|
324
|
+
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1020
325
|
<span class="ruby-keyword">end</span></pre>
|
1021
326
|
</div>
|
1022
|
-
|
1023
327
|
</div>
|
1024
328
|
|
1025
|
-
|
1026
329
|
|
1027
|
-
|
1028
330
|
</div>
|
1029
331
|
|
1030
|
-
|
1031
332
|
<div id="method-i-modify_border" class="method-detail ">
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
333
|
+
<div class="method-header">
|
334
|
+
<div class="method-heading">
|
335
|
+
<span class="method-name">modify_border</span><span
|
336
|
+
class="method-args">(style_index, direction, weight)</span>
|
337
|
+
<span class="method-click-advice">click to toggle source</span>
|
338
|
+
</div>
|
1039
339
|
</div>
|
1040
|
-
|
1041
340
|
|
1042
341
|
<div class="method-description">
|
1043
342
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
343
|
|
1048
|
-
|
1049
344
|
<div class="method-source-code" id="modify_border-source">
|
1050
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1051
|
-
<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>)
|
345
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 75</span>
|
346
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modify_border</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
1052
347
|
<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>
|
1053
348
|
<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>
|
1054
349
|
|
@@ -1065,36 +360,26 @@
|
|
1065
360
|
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
|
1066
361
|
<span class="ruby-keyword">end</span></pre>
|
1067
362
|
</div>
|
1068
|
-
|
1069
363
|
</div>
|
1070
364
|
|
1071
|
-
|
1072
365
|
|
1073
|
-
|
1074
366
|
</div>
|
1075
367
|
|
1076
|
-
|
1077
368
|
<div id="method-i-modify_border_color" class="method-detail ">
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
369
|
+
<div class="method-header">
|
370
|
+
<div class="method-heading">
|
371
|
+
<span class="method-name">modify_border_color</span><span
|
372
|
+
class="method-args">(style_index, direction, color)</span>
|
373
|
+
<span class="method-click-advice">click to toggle source</span>
|
374
|
+
</div>
|
1085
375
|
</div>
|
1086
|
-
|
1087
376
|
|
1088
377
|
<div class="method-description">
|
1089
378
|
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
379
|
|
1094
|
-
|
1095
380
|
<div class="method-source-code" id="modify_border_color-source">
|
1096
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1097
|
-
<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>)
|
381
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 92</span>
|
382
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modify_border_color</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
1098
383
|
<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>
|
1099
384
|
<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>
|
1100
385
|
<span class="ruby-identifier">new_border</span>.<span class="ruby-identifier">set_edge_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
@@ -1107,75 +392,53 @@
|
|
1107
392
|
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
|
1108
393
|
<span class="ruby-keyword">end</span></pre>
|
1109
394
|
</div>
|
1110
|
-
|
1111
395
|
</div>
|
1112
396
|
|
1113
|
-
|
1114
397
|
|
1115
|
-
|
1116
398
|
</div>
|
1117
399
|
|
1118
|
-
|
1119
400
|
<div id="method-i-modify_fill" class="method-detail ">
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
401
|
+
<div class="method-header">
|
402
|
+
<div class="method-heading">
|
403
|
+
<span class="method-name">modify_fill</span><span
|
404
|
+
class="method-args">(style_index, rgb)</span>
|
405
|
+
<span class="method-click-advice">click to toggle source</span>
|
406
|
+
</div>
|
1127
407
|
</div>
|
1128
|
-
|
1129
408
|
|
1130
409
|
<div class="method-description">
|
1131
410
|
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
411
|
|
1136
|
-
|
1137
412
|
<div class="method-source-code" id="modify_fill-source">
|
1138
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1139
|
-
<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>)
|
413
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 67</span>
|
414
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">modify_fill</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
1140
415
|
<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>
|
1141
|
-
<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>
|
1142
|
-
|
1143
|
-
|
416
|
+
<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>
|
417
|
+
<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">PatternFill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_type</span> <span class="ruby-operator">=></span> <span class="ruby-string">'solid'</span>,
|
418
|
+
<span class="ruby-value">:fg_color</span> <span class="ruby-operator">=></span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:rgb</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">rgb</span>)))
|
1144
419
|
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">xf</span>))
|
1145
420
|
<span class="ruby-keyword">end</span></pre>
|
1146
421
|
</div>
|
1147
|
-
|
1148
422
|
</div>
|
1149
423
|
|
1150
|
-
|
1151
424
|
|
1152
|
-
|
1153
425
|
</div>
|
1154
426
|
|
1155
|
-
|
1156
427
|
<div id="method-i-password_hash" class="method-detail ">
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
428
|
+
<div class="method-header">
|
429
|
+
<div class="method-heading">
|
430
|
+
<span class="method-name">password_hash</span><span
|
431
|
+
class="method-args">(pwd)</span>
|
432
|
+
<span class="method-click-advice">click to toggle source</span>
|
433
|
+
</div>
|
1164
434
|
</div>
|
1165
|
-
|
1166
435
|
|
1167
436
|
<div class="method-description">
|
1168
|
-
|
1169
|
-
<p>Calculate password hash from string for use in 'password' fields.
|
1170
|
-
<a
|
1171
|
-
href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/excelfileformat.pdf</a></p>
|
1172
|
-
|
1173
|
-
|
437
|
+
<p>Calculate password hash from string for use in ‘password’ fields. <a href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/excelfileformat.pdf</a></p>
|
1174
438
|
|
1175
|
-
|
1176
439
|
<div class="method-source-code" id="password_hash-source">
|
1177
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1178
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">password_hash</span>(<span class="ruby-identifier">pwd</span>)
|
440
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 107</span>
|
441
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">password_hash</span>(<span class="ruby-identifier">pwd</span>)
|
1179
442
|
<span class="ruby-identifier">hsh</span> = <span class="ruby-value">0</span>
|
1180
443
|
<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>
|
1181
444
|
<span class="ruby-identifier">hsh</span> = <span class="ruby-identifier">hsh</span> <span class="ruby-operator">^</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">ord</span>
|
@@ -1186,36 +449,26 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1186
449
|
(<span class="ruby-identifier">hsh</span> <span class="ruby-operator">^</span> <span class="ruby-identifier">pwd</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">^</span> <span class="ruby-value">0xCE4B</span>).<span class="ruby-identifier">to_s</span>(<span class="ruby-value">16</span>)
|
1187
450
|
<span class="ruby-keyword">end</span></pre>
|
1188
451
|
</div>
|
1189
|
-
|
1190
452
|
</div>
|
1191
453
|
|
1192
|
-
|
1193
454
|
|
1194
|
-
|
1195
455
|
</div>
|
1196
456
|
|
1197
|
-
|
1198
457
|
<div id="method-i-register_new_fill" class="method-detail ">
|
1199
|
-
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
458
|
+
<div class="method-header">
|
459
|
+
<div class="method-heading">
|
460
|
+
<span class="method-name">register_new_fill</span><span
|
461
|
+
class="method-args">(new_fill, old_xf)</span>
|
462
|
+
<span class="method-click-advice">click to toggle source</span>
|
463
|
+
</div>
|
1206
464
|
</div>
|
1207
|
-
|
1208
465
|
|
1209
466
|
<div class="method-description">
|
1210
467
|
|
1211
|
-
|
1212
|
-
|
1213
|
-
|
1214
468
|
|
1215
|
-
|
1216
469
|
<div class="method-source-code" id="register_new_fill-source">
|
1217
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1218
|
-
<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>)
|
470
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 27</span>
|
471
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">old_xf</span>)
|
1219
472
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1220
473
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_fill</span> = <span class="ruby-keyword">true</span>
|
1221
474
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">fill_id</span> = <span class="ruby-identifier">fills</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_fill</span> } <span class="ruby-comment"># Reuse existing fill, if it exists</span>
|
@@ -1224,36 +477,26 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1224
477
|
<span class="ruby-identifier">new_xf</span>
|
1225
478
|
<span class="ruby-keyword">end</span></pre>
|
1226
479
|
</div>
|
1227
|
-
|
1228
480
|
</div>
|
1229
481
|
|
1230
|
-
|
1231
482
|
|
1232
|
-
|
1233
483
|
</div>
|
1234
484
|
|
1235
|
-
|
1236
485
|
<div id="method-i-register_new_font" class="method-detail ">
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
486
|
+
<div class="method-header">
|
487
|
+
<div class="method-heading">
|
488
|
+
<span class="method-name">register_new_font</span><span
|
489
|
+
class="method-args">(new_font, old_xf)</span>
|
490
|
+
<span class="method-click-advice">click to toggle source</span>
|
491
|
+
</div>
|
1244
492
|
</div>
|
1245
|
-
|
1246
493
|
|
1247
494
|
<div class="method-description">
|
1248
495
|
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
1252
496
|
|
1253
|
-
|
1254
497
|
<div class="method-source-code" id="register_new_font-source">
|
1255
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1256
|
-
<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>)
|
498
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 36</span>
|
499
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">register_new_font</span>(<span class="ruby-identifier">new_font</span>, <span class="ruby-identifier">old_xf</span>)
|
1257
500
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1258
501
|
<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>
|
1259
502
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">fonts</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this font has never existed before, add it to collection.</span>
|
@@ -1262,60 +505,92 @@ href="https://www.openoffice.org/sc/excelfileformat.pdf">www.openoffice.org/sc/e
|
|
1262
505
|
<span class="ruby-identifier">new_xf</span>
|
1263
506
|
<span class="ruby-keyword">end</span></pre>
|
1264
507
|
</div>
|
1265
|
-
|
1266
508
|
</div>
|
1267
509
|
|
1268
|
-
|
1269
510
|
|
1270
|
-
|
1271
511
|
</div>
|
1272
512
|
|
1273
|
-
|
1274
513
|
<div id="method-i-register_new_xf" class="method-detail ">
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
514
|
+
<div class="method-header">
|
515
|
+
<div class="method-heading">
|
516
|
+
<span class="method-name">register_new_xf</span><span
|
517
|
+
class="method-args">(new_xf)</span>
|
518
|
+
<span class="method-click-advice">click to toggle source</span>
|
519
|
+
</div>
|
1282
520
|
</div>
|
1283
|
-
|
1284
521
|
|
1285
522
|
<div class="method-description">
|
1286
523
|
|
1287
|
-
|
1288
|
-
|
1289
|
-
|
1290
524
|
|
1291
|
-
|
1292
525
|
<div class="method-source-code" id="register_new_xf-source">
|
1293
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1294
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
526
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 45</span>
|
527
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1295
528
|
<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>
|
1296
529
|
<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>
|
1297
530
|
<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">new_xf_id</span>] = <span class="ruby-identifier">new_xf</span>
|
1298
531
|
<span class="ruby-identifier">new_xf_id</span>
|
1299
532
|
<span class="ruby-keyword">end</span></pre>
|
1300
533
|
</div>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
|
537
|
+
</div>
|
538
|
+
|
539
|
+
<div id="method-i-title" class="method-detail ">
|
540
|
+
<div class="method-header">
|
541
|
+
<div class="method-heading">
|
542
|
+
<span class="method-name">title</span><span
|
543
|
+
class="method-args">()</span>
|
544
|
+
<span class="method-click-advice">click to toggle source</span>
|
545
|
+
</div>
|
546
|
+
</div>
|
547
|
+
|
548
|
+
<div class="method-description">
|
549
|
+
|
550
|
+
|
551
|
+
<div class="method-source-code" id="title-source">
|
552
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 127</span>
|
553
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">title</span>
|
554
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">dc_title</span> <span class="ruby-operator">&&</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">dc_title</span>.<span class="ruby-identifier">value</span>
|
555
|
+
<span class="ruby-keyword">end</span></pre>
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
|
559
|
+
|
560
|
+
</div>
|
561
|
+
|
562
|
+
<div id="method-i-title-3D" class="method-detail ">
|
563
|
+
<div class="method-header">
|
564
|
+
<div class="method-heading">
|
565
|
+
<span class="method-name">title=</span><span
|
566
|
+
class="method-args">(v)</span>
|
567
|
+
<span class="method-click-advice">click to toggle source</span>
|
568
|
+
</div>
|
569
|
+
</div>
|
570
|
+
|
571
|
+
<div class="method-description">
|
1301
572
|
|
573
|
+
|
574
|
+
<div class="method-source-code" id="title-3D-source">
|
575
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/workbook.rb, line 131</span>
|
576
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">title=</span>(<span class="ruby-identifier">v</span>)
|
577
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span>.<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">dc_title</span> = <span class="ruby-identifier">v</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">StringNode</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:value</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">v</span>)
|
578
|
+
<span class="ruby-keyword">end</span></pre>
|
579
|
+
</div>
|
1302
580
|
</div>
|
1303
581
|
|
1304
|
-
|
1305
582
|
|
1306
|
-
|
1307
583
|
</div>
|
1308
584
|
|
1309
|
-
|
1310
585
|
</section>
|
1311
|
-
|
586
|
+
|
1312
587
|
</section>
|
1313
588
|
</main>
|
1314
589
|
|
1315
590
|
|
1316
591
|
<footer id="validator-badges" role="contentinfo">
|
1317
|
-
<p><a href="
|
1318
|
-
<p>Generated by <a href="https://
|
592
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
593
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.6.3.1.
|
1319
594
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
1320
595
|
</footer>
|
1321
596
|
|