rubyXL 3.4.21 → 3.4.24
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 +4 -4
- data/Gemfile +8 -8
- data/Gemfile.lock +21 -21
- data/README.rdoc +14 -9
- data/Rakefile +20 -19
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +0 -2
- data/lib/rubyXL/convenience_methods/cell.rb +20 -14
- data/lib/rubyXL/convenience_methods/color.rb +3 -7
- data/lib/rubyXL/convenience_methods/workbook.rb +9 -4
- data/lib/rubyXL/convenience_methods/worksheet.rb +2 -3
- data/lib/rubyXL/objects/border.rb +0 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +1 -3
- data/lib/rubyXL/objects/chartsheet.rb +4 -7
- data/lib/rubyXL/objects/color.rb +1 -3
- data/lib/rubyXL/objects/column_range.rb +0 -3
- data/lib/rubyXL/objects/comments.rb +1 -4
- data/lib/rubyXL/objects/connection.rb +11 -11
- data/lib/rubyXL/objects/container_nodes.rb +1 -5
- data/lib/rubyXL/objects/content_types.rb +3 -6
- data/lib/rubyXL/objects/data_validation.rb +0 -2
- data/lib/rubyXL/objects/document_properties.rb +9 -13
- data/lib/rubyXL/objects/extensions.rb +0 -2
- data/lib/rubyXL/objects/external_links.rb +4 -6
- data/lib/rubyXL/objects/fill.rb +2 -5
- data/lib/rubyXL/objects/filters.rb +5 -7
- data/lib/rubyXL/objects/font.rb +1 -3
- data/lib/rubyXL/objects/formula.rb +3 -5
- data/lib/rubyXL/objects/ooxml_object.rb +6 -13
- data/lib/rubyXL/objects/query_table.rb +3 -3
- data/lib/rubyXL/objects/reference.rb +5 -4
- data/lib/rubyXL/objects/relationships.rb +5 -10
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +3 -6
- data/lib/rubyXL/objects/sheet_common.rb +1 -3
- data/lib/rubyXL/objects/sheet_data.rb +4 -7
- data/lib/rubyXL/objects/simple_types.rb +1 -1
- data/lib/rubyXL/objects/storage.rb +51 -51
- data/lib/rubyXL/objects/stylesheet.rb +8 -15
- data/lib/rubyXL/objects/text.rb +3 -6
- data/lib/rubyXL/objects/theme.rb +4 -7
- data/lib/rubyXL/objects/workbook.rb +22 -23
- data/lib/rubyXL/objects/worksheet.rb +26 -22
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +83 -84
- data/lib/rubyXL.rb +0 -1
- data/rdoc/README_rdoc.html +20 -20
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/ActiveX.html +3 -3
- 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 +5 -5
- data/rdoc/RubyXL/BorderEdge.html +3 -3
- data/rdoc/RubyXL/Borders.html +2 -2
- 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 +16 -16
- data/rdoc/RubyXL/CellConvenienceMethods.html +92 -38
- 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 +2 -2
- data/rdoc/RubyXL/CellStyles.html +2 -2
- 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 +3 -5
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +2 -2
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +2 -2
- 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 -2
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +3 -3
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +7 -7
- data/rdoc/RubyXL/ColorConvenienceClasses.html +1 -1
- 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 +4 -4
- data/rdoc/RubyXL/ColumnRanges.html +5 -5
- data/rdoc/RubyXL/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.html +2 -2
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/Connection.html +1 -1
- data/rdoc/RubyXL/ConnectionTable.html +1 -1
- data/rdoc/RubyXL/ConnectionTables.html +1 -1
- data/rdoc/RubyXL/ConnectionTextField.html +1 -1
- data/rdoc/RubyXL/ConnectionTextFields.html +1 -1
- data/rdoc/RubyXL/Connections.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +5 -5
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +10 -10
- 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 +3 -3
- data/rdoc/RubyXL/DrawingFile.html +2 -2
- 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 +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/Fills.html +2 -2
- 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 -3
- data/rdoc/RubyXL/FontConvenienceMethods.html +1 -1
- 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 +4 -4
- 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 +2 -2
- data/rdoc/RubyXL/LegacyWorksheet.html +2 -2
- 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 +3 -3
- data/rdoc/RubyXL/NumberFormats.html +2 -2
- 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 +7 -7
- data/rdoc/RubyXL/OOXMLIgnored.html +3 -3
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +2 -3
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +9 -10
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +15 -15
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +6 -6
- data/rdoc/RubyXL/OdbcOleDbProperties.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OlapProperties.html +1 -1
- data/rdoc/RubyXL/OleItem.html +1 -1
- data/rdoc/RubyXL/OleItems.html +1 -1
- data/rdoc/RubyXL/OleLink.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 +4 -4
- 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/QueryParameter.html +1 -1
- data/rdoc/RubyXL/QueryParameters.html +1 -1
- data/rdoc/RubyXL/QueryTable.html +1 -1
- data/rdoc/RubyXL/QueryTableDeletedField.html +1 -1
- data/rdoc/RubyXL/QueryTableDeletedFields.html +1 -1
- data/rdoc/RubyXL/QueryTableField.html +1 -1
- data/rdoc/RubyXL/QueryTableFields.html +1 -1
- data/rdoc/RubyXL/QueryTableRefresh.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +3 -3
- data/rdoc/RubyXL/Reference.html +34 -12
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +2 -2
- data/rdoc/RubyXL/RelationshipSupport.html +7 -7
- data/rdoc/RubyXL/RevisionPointer.html +1 -1
- data/rdoc/RubyXL/RichText.html +2 -2
- data/rdoc/RubyXL/RichTextRun.html +2 -2
- 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 +8 -8
- 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/SheetMetadata.html +108 -0
- 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 +3 -3
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +3 -3
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +6 -6
- 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 +5 -5
- data/rdoc/RubyXL/TextImportSettings.html +1 -1
- data/rdoc/RubyXL/Theme.html +4 -4
- 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 +2 -2
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +2 -2
- 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/WebQueryProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +29 -26
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +63 -19
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.html +6 -6
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +31 -7
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +72 -72
- 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/RubyXL.html +1 -1
- data/rdoc/created.rid +44 -44
- data/rdoc/index.html +3 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/table_of_contents.html +36 -2
- data/rubyXL.gemspec +5 -4
- data/spec/lib/cell_spec.rb +14 -7
- data/spec/lib/parser_spec.rb +22 -26
- data/spec/lib/reference_spec.rb +8 -2
- data/spec/lib/rgb_color_spec.rb +13 -2
- data/spec/lib/stylesheet_spec.rb +3 -6
- data/spec/lib/text_spec.rb +1 -5
- data/spec/lib/workbook_spec.rb +12 -2
- data/spec/lib/worksheet_spec.rb +577 -535
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +3 -3
- metadata +4 -3
data/rdoc/RubyXL/Cell.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::Cell - rubyXL 3.4.
|
|
7
|
+
<title>class RubyXL::Cell - rubyXL 3.4.24</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
<div class="method-source-code" id="column-source">
|
|
161
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
161
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 60</span>
|
|
162
162
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">column</span>
|
|
163
163
|
<span class="ruby-identifier">r</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">first_col</span>
|
|
164
164
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
<div class="method-source-code" id="column-3D-source">
|
|
182
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
182
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 64</span>
|
|
183
183
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">column=</span>(<span class="ruby-identifier">v</span>)
|
|
184
184
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">row</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">v</span>)
|
|
185
185
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
<div class="method-source-code" id="get_cell_border-source">
|
|
203
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
203
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 85</span>
|
|
204
204
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_border</span>
|
|
205
205
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">border_id</span>]
|
|
206
206
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
<div class="method-source-code" id="get_cell_font-source">
|
|
224
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
224
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 81</span>
|
|
225
225
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_font</span>
|
|
226
226
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">font_id</span>]
|
|
227
227
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
<div class="method-source-code" id="get_cell_xf-source">
|
|
245
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
245
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 77</span>
|
|
246
246
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_cell_xf</span>
|
|
247
247
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>]
|
|
248
248
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
|
|
264
264
|
|
|
265
265
|
<div class="method-source-code" id="index_in_collection-source">
|
|
266
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
266
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 48</span>
|
|
267
267
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">index_in_collection</span>
|
|
268
268
|
<span class="ruby-identifier">r</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">begin</span>
|
|
269
269
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
|
|
285
285
|
|
|
286
286
|
<div class="method-source-code" id="inspect-source">
|
|
287
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
287
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 126</span>
|
|
288
288
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inspect</span>
|
|
289
289
|
<span class="ruby-identifier">str</span> = <span class="ruby-node">"#<#{self.class}(#{row},#{column}): #{raw_value.inspect}"</span>
|
|
290
290
|
<span class="ruby-identifier">str</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" =#{self.formula.expression}"</span> <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span>
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
|
|
309
309
|
|
|
310
310
|
<div class="method-source-code" id="is_date-3F-source">
|
|
311
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
311
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 93</span>
|
|
312
312
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_date?</span>
|
|
313
313
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-comment"># Only fully numeric values can be dates</span>
|
|
314
314
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">raw_value</span>
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
|
|
338
338
|
|
|
339
339
|
<div class="method-source-code" id="number_format-source">
|
|
340
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
340
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 89</span>
|
|
341
341
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">number_format</span>
|
|
342
342
|
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">get_number_format_by_id</span>(<span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">num_fmt_id</span>)
|
|
343
343
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
|
|
359
359
|
|
|
360
360
|
<div class="method-source-code" id="raw_value-source">
|
|
361
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
361
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 68</span>
|
|
362
362
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raw_value</span>
|
|
363
363
|
<span class="ruby-identifier">value_container</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value_container</span>.<span class="ruby-identifier">value</span>
|
|
364
364
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
|
|
380
380
|
|
|
381
381
|
<div class="method-source-code" id="raw_value-3D-source">
|
|
382
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
382
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 72</span>
|
|
383
383
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">raw_value=</span>(<span class="ruby-identifier">v</span>)
|
|
384
384
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">value_container</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">CellValue</span>.<span class="ruby-identifier">new</span>
|
|
385
385
|
<span class="ruby-identifier">value_container</span>.<span class="ruby-identifier">value</span> = <span class="ruby-identifier">v</span>
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
|
|
402
402
|
|
|
403
403
|
<div class="method-source-code" id="row-source">
|
|
404
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
404
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 52</span>
|
|
405
405
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row</span>
|
|
406
406
|
<span class="ruby-identifier">r</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">first_row</span>
|
|
407
407
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
|
|
423
423
|
|
|
424
424
|
<div class="method-source-code" id="row-3D-source">
|
|
425
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
425
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 56</span>
|
|
426
426
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row=</span>(<span class="ruby-identifier">v</span>)
|
|
427
427
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">v</span>, <span class="ruby-identifier">column</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>)
|
|
428
428
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -443,7 +443,7 @@
|
|
|
443
443
|
<p>Gets massaged value of the cell, converting datatypes to those known to Ruby (that includes stripping any special formatting from <a href="RichText.html"><code>RichText</code></a>).</p>
|
|
444
444
|
|
|
445
445
|
<div class="method-source-code" id="value-source">
|
|
446
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line
|
|
446
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/sheet_data.rb, line 107</span>
|
|
447
447
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">value</span>(<span class="ruby-identifier">args</span> = {})
|
|
448
448
|
<span class="ruby-identifier">r</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span>
|
|
449
449
|
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">is</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">is</span>.<span class="ruby-identifier">to_s</span>
|
|
456
456
|
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">is_date?</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_f</span>)
|
|
457
457
|
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) <span class="ruby-operator">&&</span> (<span class="ruby-identifier">r</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">NUMBER_REGEXP</span>) <span class="ruby-keyword">then</span> <span class="ruby-comment"># Numeric</span>
|
|
458
|
-
<span class="ruby-keyword">if</span> <span class="ruby-
|
|
458
|
+
<span class="ruby-keyword">if</span> <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">last_match</span>(<span class="ruby-value">1</span>) <span class="ruby-operator">!=</span> <span class="ruby-string">''</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_f</span>
|
|
459
459
|
<span class="ruby-keyword">else</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">to_i</span>
|
|
460
460
|
<span class="ruby-keyword">end</span>
|
|
461
461
|
<span class="ruby-keyword">else</span> <span class="ruby-identifier">r</span>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.
|
|
7
|
+
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.24</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
<h3>Methods</h3>
|
|
67
67
|
|
|
68
68
|
<ul class="link-list" role="directory">
|
|
69
|
+
<li ><a href="#method-i-add_hyperlink">#add_hyperlink</a>
|
|
69
70
|
<li ><a href="#method-i-change_border">#change_border</a>
|
|
70
71
|
<li ><a href="#method-i-change_border_color">#change_border_color</a>
|
|
71
72
|
<li ><a href="#method-i-change_contents">#change_contents</a>
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
<li ><a href="#method-i-change_font_strikethrough">#change_font_strikethrough</a>
|
|
79
80
|
<li ><a href="#method-i-change_font_underline">#change_font_underline</a>
|
|
80
81
|
<li ><a href="#method-i-change_horizontal_alignment">#change_horizontal_alignment</a>
|
|
82
|
+
<li ><a href="#method-i-change_shrink_to_fit">#change_shrink_to_fit</a>
|
|
81
83
|
<li ><a href="#method-i-change_text_indent">#change_text_indent</a>
|
|
82
84
|
<li ><a href="#method-i-change_text_rotation">#change_text_rotation</a>
|
|
83
85
|
<li ><a href="#method-i-change_text_wrap">#change_text_wrap</a>
|
|
@@ -126,6 +128,36 @@
|
|
|
126
128
|
<h3>Public Instance Methods</h3>
|
|
127
129
|
</header>
|
|
128
130
|
|
|
131
|
+
<div id="method-i-add_hyperlink" class="method-detail ">
|
|
132
|
+
<div class="method-heading">
|
|
133
|
+
<span class="method-name">add_hyperlink</span><span
|
|
134
|
+
class="method-args">(url, tooltip = nil)</span>
|
|
135
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
138
|
+
<div class="method-description">
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<div class="method-source-code" id="add_hyperlink-source">
|
|
142
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 256</span>
|
|
143
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_hyperlink</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">tooltip</span> = <span class="ruby-keyword">nil</span>)
|
|
144
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">relationship_container</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">OOXMLRelationshipsFile</span>.<span class="ruby-identifier">new</span>
|
|
145
|
+
<span class="ruby-identifier">relationships</span> = <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">relationships</span>
|
|
146
|
+
<span class="ruby-identifier">r_id</span> = <span class="ruby-node">"rId#{relationships.size + 1}"</span>
|
|
147
|
+
<span class="ruby-identifier">relationships</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Relationship</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">r_id</span>, <span class="ruby-value">:target</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">url</span>, <span class="ruby-value">:target_mode</span> <span class="ruby-operator">=></span> <span class="ruby-string">'External'</span>,
|
|
148
|
+
<span class="ruby-value">:type</span> <span class="ruby-operator">=></span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">HyperlinkRelFile</span><span class="ruby-operator">::</span><span class="ruby-constant">REL_TYPE</span>)
|
|
149
|
+
|
|
150
|
+
<span class="ruby-identifier">hyperlink</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:ref</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span>, <span class="ruby-value">:r_id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">r_id</span>)
|
|
151
|
+
<span class="ruby-identifier">hyperlink</span>.<span class="ruby-identifier">tooltip</span> = <span class="ruby-identifier">tooltip</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">tooltip</span>
|
|
152
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">hyperlinks</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlinks</span>.<span class="ruby-identifier">new</span>
|
|
153
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">hyperlinks</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">hyperlink</span>
|
|
154
|
+
<span class="ruby-keyword">end</span></pre>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
</div>
|
|
160
|
+
|
|
129
161
|
<div id="method-i-change_border" class="method-detail ">
|
|
130
162
|
<div class="method-heading">
|
|
131
163
|
<span class="method-name">change_border</span><span
|
|
@@ -137,7 +169,7 @@
|
|
|
137
169
|
|
|
138
170
|
|
|
139
171
|
<div class="method-source-code" id="change_border-source">
|
|
140
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
172
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 71</span>
|
|
141
173
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_border</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
|
142
174
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
143
175
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_border</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
|
@@ -159,7 +191,7 @@
|
|
|
159
191
|
|
|
160
192
|
|
|
161
193
|
<div class="method-source-code" id="change_border_color-source">
|
|
162
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
194
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 76</span>
|
|
163
195
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
|
164
196
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
165
197
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
|
@@ -182,7 +214,7 @@
|
|
|
182
214
|
|
|
183
215
|
|
|
184
216
|
<div class="method-source-code" id="change_contents-source">
|
|
185
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
217
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 3</span>
|
|
186
218
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_contents</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">formula_expression</span> = <span class="ruby-keyword">nil</span>)
|
|
187
219
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
188
220
|
|
|
@@ -191,12 +223,12 @@
|
|
|
191
223
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Formula</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:expression</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">formula_expression</span>)
|
|
192
224
|
<span class="ruby-keyword">else</span>
|
|
193
225
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">data</span>
|
|
194
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">nil</span>
|
|
226
|
+
<span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">Time</span>, <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">nil</span>
|
|
195
227
|
<span class="ruby-keyword">else</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">RAW_STRING</span>
|
|
196
228
|
<span class="ruby-keyword">end</span>
|
|
197
229
|
<span class="ruby-keyword">end</span>
|
|
198
230
|
|
|
199
|
-
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">data</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Date</span>)
|
|
231
|
+
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">data</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Date</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Time</span>)
|
|
200
232
|
|
|
201
233
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
|
|
202
234
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -217,7 +249,7 @@
|
|
|
217
249
|
<p>Changes fill color of cell</p>
|
|
218
250
|
|
|
219
251
|
<div class="method-source-code" id="change_fill-source">
|
|
220
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
252
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 165</span>
|
|
221
253
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_fill</span>(<span class="ruby-identifier">rgb</span> = <span class="ruby-string">'ffffff'</span>)
|
|
222
254
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
223
255
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">rgb</span>)
|
|
@@ -240,7 +272,7 @@
|
|
|
240
272
|
<p>Changes font bold settings of cell</p>
|
|
241
273
|
|
|
242
274
|
<div class="method-source-code" id="change_font_bold-source">
|
|
243
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
275
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 210</span>
|
|
244
276
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_bold</span>(<span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
|
|
245
277
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
246
278
|
|
|
@@ -265,7 +297,7 @@
|
|
|
265
297
|
<p>Changes font color of cell</p>
|
|
266
298
|
|
|
267
299
|
<div class="method-source-code" id="change_font_color-source">
|
|
268
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
300
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 191</span>
|
|
269
301
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_color</span>(<span class="ruby-identifier">font_color</span> = <span class="ruby-string">'000000'</span>)
|
|
270
302
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
271
303
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
|
@@ -291,7 +323,7 @@
|
|
|
291
323
|
<p>Changes font italics settings of cell</p>
|
|
292
324
|
|
|
293
325
|
<div class="method-source-code" id="change_font_italics-source">
|
|
294
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
326
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 201</span>
|
|
295
327
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_italics</span>(<span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
|
|
296
328
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
297
329
|
|
|
@@ -316,7 +348,7 @@
|
|
|
316
348
|
<p>Changes font name of cell</p>
|
|
317
349
|
|
|
318
350
|
<div class="method-source-code" id="change_font_name-source">
|
|
319
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
351
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 172</span>
|
|
320
352
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_name</span>(<span class="ruby-identifier">new_font_name</span> = <span class="ruby-string">'Verdana'</span>)
|
|
321
353
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
322
354
|
|
|
@@ -341,7 +373,7 @@
|
|
|
341
373
|
<p>Changes font size of cell</p>
|
|
342
374
|
|
|
343
375
|
<div class="method-source-code" id="change_font_size-source">
|
|
344
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
376
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 181</span>
|
|
345
377
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_size</span>(<span class="ruby-identifier">font_size</span> = <span class="ruby-value">10</span>)
|
|
346
378
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
347
379
|
<span class="ruby-identifier">raise</span> <span class="ruby-string">'Argument must be a number'</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Integer</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>)
|
|
@@ -367,7 +399,7 @@
|
|
|
367
399
|
|
|
368
400
|
|
|
369
401
|
<div class="method-source-code" id="change_font_strikethrough-source">
|
|
370
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
402
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 227</span>
|
|
371
403
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_strikethrough</span>(<span class="ruby-identifier">struckthrough</span> = <span class="ruby-keyword">false</span>)
|
|
372
404
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
373
405
|
|
|
@@ -392,7 +424,7 @@
|
|
|
392
424
|
<p>Changes font underline settings of cell</p>
|
|
393
425
|
|
|
394
426
|
<div class="method-source-code" id="change_font_underline-source">
|
|
395
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
427
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 219</span>
|
|
396
428
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_underline</span>(<span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
|
|
397
429
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
398
430
|
|
|
@@ -417,7 +449,7 @@
|
|
|
417
449
|
|
|
418
450
|
|
|
419
451
|
<div class="method-source-code" id="change_horizontal_alignment-source">
|
|
420
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
452
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 41</span>
|
|
421
453
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_horizontal_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
|
422
454
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
423
455
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">horizontal</span> = <span class="ruby-identifier">alignment</span> }
|
|
@@ -426,6 +458,28 @@
|
|
|
426
458
|
</div>
|
|
427
459
|
|
|
428
460
|
|
|
461
|
+
</div>
|
|
462
|
+
|
|
463
|
+
<div id="method-i-change_shrink_to_fit" class="method-detail ">
|
|
464
|
+
<div class="method-heading">
|
|
465
|
+
<span class="method-name">change_shrink_to_fit</span><span
|
|
466
|
+
class="method-args">(shrink_to_fit = false)</span>
|
|
467
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
<div class="method-description">
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
<div class="method-source-code" id="change_shrink_to_fit-source">
|
|
474
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 56</span>
|
|
475
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_shrink_to_fit</span>(<span class="ruby-identifier">shrink_to_fit</span> = <span class="ruby-keyword">false</span>)
|
|
476
|
+
<span class="ruby-identifier">validate_worksheet</span>
|
|
477
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">shrink_to_fit</span> = <span class="ruby-identifier">shrink_to_fit</span> }
|
|
478
|
+
<span class="ruby-keyword">end</span></pre>
|
|
479
|
+
</div>
|
|
480
|
+
</div>
|
|
481
|
+
|
|
482
|
+
|
|
429
483
|
</div>
|
|
430
484
|
|
|
431
485
|
<div id="method-i-change_text_indent" class="method-detail ">
|
|
@@ -439,7 +493,7 @@
|
|
|
439
493
|
|
|
440
494
|
|
|
441
495
|
<div class="method-source-code" id="change_text_indent-source">
|
|
442
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
496
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 66</span>
|
|
443
497
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_indent</span>(<span class="ruby-identifier">indent</span>)
|
|
444
498
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
445
499
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">indent</span> = <span class="ruby-identifier">indent</span> }
|
|
@@ -461,7 +515,7 @@
|
|
|
461
515
|
|
|
462
516
|
|
|
463
517
|
<div class="method-source-code" id="change_text_rotation-source">
|
|
464
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
518
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 61</span>
|
|
465
519
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_rotation</span>(<span class="ruby-identifier">rot</span>)
|
|
466
520
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
467
521
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">text_rotation</span> = <span class="ruby-identifier">rot</span> }
|
|
@@ -483,7 +537,7 @@
|
|
|
483
537
|
|
|
484
538
|
|
|
485
539
|
<div class="method-source-code" id="change_text_wrap-source">
|
|
486
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
540
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 51</span>
|
|
487
541
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_wrap</span>(<span class="ruby-identifier">wrap</span> = <span class="ruby-keyword">false</span>)
|
|
488
542
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
489
543
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">wrap_text</span> = <span class="ruby-identifier">wrap</span> }
|
|
@@ -505,7 +559,7 @@
|
|
|
505
559
|
|
|
506
560
|
|
|
507
561
|
<div class="method-source-code" id="change_vertical_alignment-source">
|
|
508
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
562
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 46</span>
|
|
509
563
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_vertical_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
|
510
564
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
511
565
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">vertical</span> = <span class="ruby-identifier">alignment</span> }
|
|
@@ -527,7 +581,7 @@
|
|
|
527
581
|
|
|
528
582
|
|
|
529
583
|
<div class="method-source-code" id="fill_color-source">
|
|
530
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
584
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 117</span>
|
|
531
585
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fill_color</span>()
|
|
532
586
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
533
587
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_cell_xf</span>)
|
|
@@ -549,7 +603,7 @@
|
|
|
549
603
|
|
|
550
604
|
|
|
551
605
|
<div class="method-source-code" id="font_color-source">
|
|
552
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
606
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 112</span>
|
|
553
607
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_color</span>()
|
|
554
608
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
555
609
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">'000000'</span>
|
|
@@ -571,7 +625,7 @@
|
|
|
571
625
|
|
|
572
626
|
|
|
573
627
|
<div class="method-source-code" id="font_name-source">
|
|
574
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
628
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 102</span>
|
|
575
629
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_name</span>()
|
|
576
630
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
577
631
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_name</span>
|
|
@@ -593,7 +647,7 @@
|
|
|
593
647
|
|
|
594
648
|
|
|
595
649
|
<div class="method-source-code" id="font_size-source">
|
|
596
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
650
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 107</span>
|
|
597
651
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_size</span>()
|
|
598
652
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
599
653
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_size</span>
|
|
@@ -615,7 +669,7 @@
|
|
|
615
669
|
<p>Performs correct modification based on what type of change_type is specified</p>
|
|
616
670
|
|
|
617
671
|
<div class="method-source-code" id="font_switch-source">
|
|
618
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
672
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 243</span>
|
|
619
673
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_switch</span>(<span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>)
|
|
620
674
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">change_type</span>
|
|
621
675
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">NAME</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_name</span>(<span class="ruby-identifier">arg</span>)
|
|
@@ -645,7 +699,7 @@
|
|
|
645
699
|
|
|
646
700
|
|
|
647
701
|
<div class="method-source-code" id="get_border-source">
|
|
648
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
702
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 31</span>
|
|
649
703
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border</span>(<span class="ruby-identifier">direction</span>)
|
|
650
704
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
651
705
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
|
|
@@ -667,7 +721,7 @@
|
|
|
667
721
|
|
|
668
722
|
|
|
669
723
|
<div class="method-source-code" id="get_border_color-source">
|
|
670
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
724
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 36</span>
|
|
671
725
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border_color</span>(<span class="ruby-identifier">direction</span>)
|
|
672
726
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
673
727
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
|
|
@@ -689,7 +743,7 @@
|
|
|
689
743
|
|
|
690
744
|
|
|
691
745
|
<div class="method-source-code" id="horizontal_alignment-source">
|
|
692
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
746
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 122</span>
|
|
693
747
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">horizontal_alignment</span>()
|
|
694
748
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
695
749
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -713,7 +767,7 @@
|
|
|
713
767
|
|
|
714
768
|
|
|
715
769
|
<div class="method-source-code" id="is_bolded-source">
|
|
716
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
770
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 87</span>
|
|
717
771
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_bolded</span>()
|
|
718
772
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
719
773
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_bold</span>
|
|
@@ -735,7 +789,7 @@
|
|
|
735
789
|
|
|
736
790
|
|
|
737
791
|
<div class="method-source-code" id="is_italicized-source">
|
|
738
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
792
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 82</span>
|
|
739
793
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_italicized</span>()
|
|
740
794
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
741
795
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_italic</span>
|
|
@@ -757,7 +811,7 @@
|
|
|
757
811
|
|
|
758
812
|
|
|
759
813
|
<div class="method-source-code" id="is_struckthrough-source">
|
|
760
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
814
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 97</span>
|
|
761
815
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_struckthrough</span>()
|
|
762
816
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
763
817
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
|
@@ -779,7 +833,7 @@
|
|
|
779
833
|
|
|
780
834
|
|
|
781
835
|
<div class="method-source-code" id="is_underlined-source">
|
|
782
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
836
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 92</span>
|
|
783
837
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_underlined</span>()
|
|
784
838
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
785
839
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_underlined</span>
|
|
@@ -801,7 +855,7 @@
|
|
|
801
855
|
|
|
802
856
|
|
|
803
857
|
<div class="method-source-code" id="remove_formula-source">
|
|
804
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
858
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 21</span>
|
|
805
859
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remove_formula</span>
|
|
806
860
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>
|
|
807
861
|
|
|
@@ -828,7 +882,7 @@
|
|
|
828
882
|
|
|
829
883
|
|
|
830
884
|
<div class="method-source-code" id="set_number_format-source">
|
|
831
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
885
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 157</span>
|
|
832
886
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
|
833
887
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">dup</span>
|
|
834
888
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">num_fmt_id</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">register_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
|
@@ -852,7 +906,7 @@
|
|
|
852
906
|
|
|
853
907
|
|
|
854
908
|
<div class="method-source-code" id="text_indent-source">
|
|
855
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
909
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 150</span>
|
|
856
910
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_indent</span>()
|
|
857
911
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
858
912
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -876,12 +930,12 @@
|
|
|
876
930
|
|
|
877
931
|
|
|
878
932
|
<div class="method-source-code" id="text_rotation-source">
|
|
879
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
933
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 143</span>
|
|
880
934
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_rotation</span>
|
|
881
935
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
882
936
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
883
937
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
884
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">text_rotation</span>
|
|
938
|
+
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">text_rotation</span>
|
|
885
939
|
<span class="ruby-keyword">end</span></pre>
|
|
886
940
|
</div>
|
|
887
941
|
</div>
|
|
@@ -900,7 +954,7 @@
|
|
|
900
954
|
|
|
901
955
|
|
|
902
956
|
<div class="method-source-code" id="text_wrap-source">
|
|
903
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
957
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 136</span>
|
|
904
958
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_wrap</span>()
|
|
905
959
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
906
960
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -924,7 +978,7 @@
|
|
|
924
978
|
|
|
925
979
|
|
|
926
980
|
<div class="method-source-code" id="vertical_alignment-source">
|
|
927
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
981
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 129</span>
|
|
928
982
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">vertical_alignment</span>()
|
|
929
983
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
930
984
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
data/rdoc/RubyXL/CellExt.html
CHANGED