rubyXL 3.3.22 → 3.4.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/Gemfile +9 -8
- data/Gemfile.lock +124 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +54 -18
- data/Rakefile +29 -29
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +3 -30
- 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 +141 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +714 -0
- data/lib/rubyXL/convenience_methods.rb +5 -1045
- data/lib/rubyXL/objects/border.rb +2 -5
- data/lib/rubyXL/objects/calculation_chain.rb +4 -4
- data/lib/rubyXL/objects/cell_style.rb +9 -11
- data/lib/rubyXL/objects/chartsheet.rb +15 -19
- data/lib/rubyXL/objects/color.rb +7 -7
- data/lib/rubyXL/objects/column_range.rb +10 -13
- data/lib/rubyXL/objects/comments.rb +5 -8
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +3 -7
- data/lib/rubyXL/objects/content_types.rb +5 -8
- data/lib/rubyXL/objects/data_validation.rb +4 -4
- data/lib/rubyXL/objects/document_properties.rb +12 -16
- data/lib/rubyXL/objects/extensions.rb +19 -4
- data/lib/rubyXL/objects/external_links.rb +30 -8
- data/lib/rubyXL/objects/fill.rb +6 -9
- data/lib/rubyXL/objects/filters.rb +17 -19
- data/lib/rubyXL/objects/font.rb +4 -64
- data/lib/rubyXL/objects/formula.rb +4 -6
- data/lib/rubyXL/objects/ooxml_object.rb +25 -18
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/reference.rb +6 -8
- data/lib/rubyXL/objects/relationships.rb +13 -13
- data/lib/rubyXL/objects/root.rb +0 -2
- data/lib/rubyXL/objects/shared_strings.rb +4 -7
- data/lib/rubyXL/objects/sheet_common.rb +5 -7
- data/lib/rubyXL/objects/sheet_data.rb +50 -16
- data/lib/rubyXL/objects/simple_types.rb +21 -1
- data/lib/rubyXL/objects/storage.rb +67 -43
- data/lib/rubyXL/objects/stylesheet.rb +22 -29
- data/lib/rubyXL/objects/text.rb +12 -14
- data/lib/rubyXL/objects/theme.rb +142 -126
- data/lib/rubyXL/objects/workbook.rb +172 -64
- data/lib/rubyXL/objects/worksheet.rb +143 -128
- data/lib/rubyXL/parser.rb +1 -3
- data/lib/rubyXL/worksheet.rb +83 -78
- data/lib/rubyXL.rb +1 -1
- data/rdoc/README_rdoc.html +122 -114
- data/rdoc/RubyXL/AExtension.html +21 -60
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
- data/rdoc/RubyXL/ActiveX.html +154 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +13 -19
- data/rdoc/RubyXL/Alignment.html +13 -19
- data/rdoc/RubyXL/AlternateContent.html +12 -17
- data/rdoc/RubyXL/Authors.html +13 -19
- data/rdoc/RubyXL/AutoFilter.html +13 -19
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
- data/rdoc/RubyXL/BinaryImageFile.html +12 -25
- data/rdoc/RubyXL/BodyProperties.html +13 -19
- data/rdoc/RubyXL/BooleanNode.html +12 -17
- data/rdoc/RubyXL/BooleanValue.html +12 -17
- data/rdoc/RubyXL/Border.html +25 -84
- data/rdoc/RubyXL/BorderEdge.html +20 -52
- data/rdoc/RubyXL/Borders.html +19 -39
- data/rdoc/RubyXL/Break.html +13 -19
- data/rdoc/RubyXL/BreakList.html +13 -19
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
- data/rdoc/RubyXL/CT_Backdrop.html +13 -19
- data/rdoc/RubyXL/CT_Bevel.html +13 -19
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
- data/rdoc/RubyXL/CT_Blip.html +13 -19
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
- data/rdoc/RubyXL/CT_Camera.html +13 -19
- data/rdoc/RubyXL/CT_Color.html +13 -19
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
- data/rdoc/RubyXL/CT_DashStop.html +13 -19
- data/rdoc/RubyXL/CT_DashStopList.html +13 -19
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
- data/rdoc/RubyXL/CT_EffectList.html +13 -19
- data/rdoc/RubyXL/CT_EffectReference.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
- data/rdoc/RubyXL/CT_FillEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
- data/rdoc/RubyXL/CT_FlatText.html +13 -19
- data/rdoc/RubyXL/CT_FontCollection.html +13 -19
- data/rdoc/RubyXL/CT_FontReference.html +13 -19
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_GradientStop.html +13 -19
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
- data/rdoc/RubyXL/CT_HslColor.html +13 -19
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_LightRig.html +13 -19
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_Path2D.html +13 -19
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DList.html +13 -19
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_Point3D.html +13 -19
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CT_PresetColor.html +13 -19
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_Scene3D.html +13 -19
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
- data/rdoc/RubyXL/CT_Shape3D.html +13 -19
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
- data/rdoc/RubyXL/CT_SystemColor.html +13 -19
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextFont.html +13 -19
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_TintEffect.html +13 -19
- data/rdoc/RubyXL/CT_Transform2D.html +13 -19
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
- data/rdoc/RubyXL/CT_Vector3D.html +13 -19
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CalculationChain.html +17 -45
- data/rdoc/RubyXL/CalculationChainCell.html +13 -19
- data/rdoc/RubyXL/CalculationProperties.html +13 -19
- data/rdoc/RubyXL/Cell.html +145 -205
- data/rdoc/RubyXL/CellConvenienceMethods.html +255 -460
- data/rdoc/RubyXL/CellExt.html +13 -19
- data/rdoc/RubyXL/CellSmartTag.html +13 -19
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
- data/rdoc/RubyXL/CellSmartTags.html +13 -19
- data/rdoc/RubyXL/CellStyle.html +13 -19
- data/rdoc/RubyXL/CellStyleXFs.html +19 -39
- data/rdoc/RubyXL/CellStyles.html +19 -39
- data/rdoc/RubyXL/CellValue.html +18 -38
- data/rdoc/RubyXL/CellWatch.html +13 -19
- data/rdoc/RubyXL/CellWatches.html +13 -19
- data/rdoc/RubyXL/CellXFs.html +20 -42
- data/rdoc/RubyXL/ChartColorsFile.html +12 -25
- data/rdoc/RubyXL/ChartFile.html +19 -49
- data/rdoc/RubyXL/ChartStyleFile.html +12 -25
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
- data/rdoc/RubyXL/Chartsheet.html +20 -68
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
- data/rdoc/RubyXL/ChartsheetView.html +13 -19
- data/rdoc/RubyXL/ChartsheetViews.html +13 -19
- data/rdoc/RubyXL/Color.html +29 -40
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -19
- data/rdoc/RubyXL/ColorScale.html +13 -19
- data/rdoc/RubyXL/ColorSet.html +13 -19
- data/rdoc/RubyXL/Colors.html +13 -19
- data/rdoc/RubyXL/ColumnRange.html +23 -74
- data/rdoc/RubyXL/ColumnRanges.html +24 -83
- data/rdoc/RubyXL/Comment.html +13 -19
- data/rdoc/RubyXL/CommentList.html +13 -19
- data/rdoc/RubyXL/CommentsFile.html +18 -51
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +147 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
- data/rdoc/RubyXL/ContentTypes.html +25 -65
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
- data/rdoc/RubyXL/CorePropertiesFile.html +35 -171
- data/rdoc/RubyXL/CustomColor.html +13 -19
- data/rdoc/RubyXL/CustomColorList.html +13 -19
- data/rdoc/RubyXL/CustomFilter.html +13 -19
- data/rdoc/RubyXL/CustomFilters.html +13 -19
- data/rdoc/RubyXL/CustomGeometry.html +13 -19
- data/rdoc/RubyXL/CustomProperties.html +13 -19
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
- data/rdoc/RubyXL/CustomProperty.html +13 -19
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -19
- data/rdoc/RubyXL/CustomSheetViews.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
- data/rdoc/RubyXL/CustomXMLFile.html +12 -22
- data/rdoc/RubyXL/DXF.html +13 -19
- data/rdoc/RubyXL/DXFs.html +13 -19
- data/rdoc/RubyXL/DataBar.html +13 -19
- data/rdoc/RubyXL/DataConsolidate.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
- data/rdoc/RubyXL/DataType.html +11 -39
- data/rdoc/RubyXL/DataValidation.html +13 -19
- data/rdoc/RubyXL/DataValidations.html +13 -19
- data/rdoc/RubyXL/DateGroupItem.html +13 -19
- data/rdoc/RubyXL/DefinedName.html +13 -19
- data/rdoc/RubyXL/DefinedNameExt.html +13 -19
- data/rdoc/RubyXL/DefinedNames.html +13 -19
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
- data/rdoc/RubyXL/DocumentPropertiesFile.html +22 -68
- data/rdoc/RubyXL/DrawingFile.html +19 -49
- data/rdoc/RubyXL/DynamicFilter.html +13 -19
- data/rdoc/RubyXL/EmbeddedControl.html +13 -19
- data/rdoc/RubyXL/EmbeddedControls.html +13 -19
- data/rdoc/RubyXL/Extension.html +13 -19
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
- data/rdoc/RubyXL/Extents.html +13 -19
- data/rdoc/RubyXL/ExternalBook.html +13 -19
- data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
- data/rdoc/RubyXL/ExternalReference.html +13 -19
- data/rdoc/RubyXL/ExternalReferences.html +13 -19
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
- data/rdoc/RubyXL/FieldItem.html +13 -19
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
- data/rdoc/RubyXL/FileSharing.html +13 -19
- data/rdoc/RubyXL/FileVersion.html +13 -19
- data/rdoc/RubyXL/Fill.html +19 -39
- data/rdoc/RubyXL/Fills.html +19 -39
- data/rdoc/RubyXL/FilterContainer.html +13 -19
- data/rdoc/RubyXL/FloatNode.html +12 -17
- data/rdoc/RubyXL/FloatValue.html +12 -17
- data/rdoc/RubyXL/Font.html +20 -544
- data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
- data/rdoc/RubyXL/FontScheme.html +13 -19
- data/rdoc/RubyXL/Fonts.html +19 -39
- data/rdoc/RubyXL/Formula.html +13 -19
- data/rdoc/RubyXL/FunctionGroup.html +13 -19
- data/rdoc/RubyXL/FunctionGroups.html +13 -19
- data/rdoc/RubyXL/GenericStorageObject.html +22 -84
- data/rdoc/RubyXL/GradientFill.html +13 -19
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
- data/rdoc/RubyXL/Hyperlink.html +13 -19
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
- data/rdoc/RubyXL/Hyperlinks.html +13 -19
- data/rdoc/RubyXL/IconFilter.html +13 -19
- data/rdoc/RubyXL/IconSet.html +13 -19
- data/rdoc/RubyXL/IgnoredError.html +13 -19
- data/rdoc/RubyXL/IgnoredErrors.html +13 -19
- data/rdoc/RubyXL/IndexedColors.html +13 -19
- data/rdoc/RubyXL/InputCells.html +13 -19
- data/rdoc/RubyXL/IntegerNode.html +12 -17
- data/rdoc/RubyXL/IntegerValue.html +12 -17
- data/rdoc/RubyXL/LegacyCell.html +14 -66
- data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
- data/rdoc/RubyXL/MRUColors.html +13 -19
- data/rdoc/RubyXL/MacrosFile.html +12 -25
- data/rdoc/RubyXL/MergedCell.html +13 -19
- data/rdoc/RubyXL/MergedCells.html +13 -19
- data/rdoc/RubyXL/NumFmt.html +13 -19
- data/rdoc/RubyXL/NumberFormat.html +19 -39
- data/rdoc/RubyXL/NumberFormats.html +19 -45
- data/rdoc/RubyXL/OLEObject.html +13 -19
- data/rdoc/RubyXL/OLEObjectFile.html +12 -25
- data/rdoc/RubyXL/OLEObjects.html +13 -19
- data/rdoc/RubyXL/OLESize.html +13 -19
- data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
- data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
- data/rdoc/RubyXL/OOXMLObject.html +15 -25
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +92 -183
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +49 -185
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +48 -200
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -19
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +13 -19
- data/rdoc/RubyXL/PageMargins.html +13 -19
- data/rdoc/RubyXL/PageSetup.html +13 -19
- data/rdoc/RubyXL/PageSetupProperties.html +13 -19
- data/rdoc/RubyXL/Pane.html +13 -19
- data/rdoc/RubyXL/Parser.html +23 -56
- data/rdoc/RubyXL/PatternFill.html +13 -19
- data/rdoc/RubyXL/PhoneticProperties.html +13 -19
- data/rdoc/RubyXL/PhoneticRun.html +13 -19
- data/rdoc/RubyXL/PivotArea.html +13 -19
- data/rdoc/RubyXL/PivotCache.html +13 -19
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
- data/rdoc/RubyXL/PivotCaches.html +13 -19
- data/rdoc/RubyXL/PivotReference.html +13 -19
- data/rdoc/RubyXL/PivotReferences.html +13 -19
- data/rdoc/RubyXL/PivotTableFile.html +14 -30
- data/rdoc/RubyXL/PivotTableSelection.html +13 -19
- data/rdoc/RubyXL/PresetGeometry.html +13 -19
- data/rdoc/RubyXL/PrintOptions.html +13 -19
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
- data/rdoc/RubyXL/ProtectedRange.html +13 -19
- data/rdoc/RubyXL/ProtectedRanges.html +13 -19
- data/rdoc/RubyXL/Protection.html +13 -19
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +155 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -17
- data/rdoc/RubyXL/RawOOXML.html +21 -60
- data/rdoc/RubyXL/Reference.html +63 -228
- data/rdoc/RubyXL/Relationship.html +12 -17
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +14 -32
- data/rdoc/RubyXL/RelationshipSupport.html +26 -120
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +20 -39
- data/rdoc/RubyXL/RichTextRun.html +18 -38
- data/rdoc/RubyXL/Row.html +53 -152
- data/rdoc/RubyXL/RowExt.html +13 -19
- data/rdoc/RubyXL/RunProperties.html +13 -19
- data/rdoc/RubyXL/Scenario.html +13 -19
- data/rdoc/RubyXL/Scenarios.html +13 -19
- data/rdoc/RubyXL/Selection.html +19 -39
- data/rdoc/RubyXL/ShapeGuide.html +13 -19
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
- data/rdoc/RubyXL/SharedStringsTable.html +38 -147
- data/rdoc/RubyXL/Sheet.html +13 -19
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
- data/rdoc/RubyXL/SheetData.html +20 -53
- data/rdoc/RubyXL/SheetDataExt.html +13 -19
- data/rdoc/RubyXL/SheetDataSet.html +13 -19
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +13 -19
- data/rdoc/RubyXL/SheetNames.html +13 -19
- data/rdoc/RubyXL/Sheets.html +13 -19
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
- data/rdoc/RubyXL/SlicerFile.html +12 -25
- data/rdoc/RubyXL/SmartTagProperties.html +13 -19
- data/rdoc/RubyXL/SmartTagType.html +13 -19
- data/rdoc/RubyXL/SmartTagTypes.html +13 -19
- data/rdoc/RubyXL/SmartTags.html +13 -19
- data/rdoc/RubyXL/SortCondition.html +13 -19
- data/rdoc/RubyXL/SortState.html +13 -19
- data/rdoc/RubyXL/Sqref.html +20 -53
- data/rdoc/RubyXL/Stop.html +13 -19
- data/rdoc/RubyXL/StringNode.html +12 -17
- data/rdoc/RubyXL/StringNodeW3C.html +21 -54
- data/rdoc/RubyXL/StringValue.html +12 -17
- data/rdoc/RubyXL/Stylesheet.html +35 -117
- data/rdoc/RubyXL/TableFile.html +12 -25
- data/rdoc/RubyXL/TableParts.html +12 -17
- data/rdoc/RubyXL/TableStyle.html +13 -19
- data/rdoc/RubyXL/TableStyles.html +13 -19
- data/rdoc/RubyXL/Text.html +23 -67
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +57 -62
- data/rdoc/RubyXL/ThemeElements.html +13 -19
- data/rdoc/RubyXL/ThumbnailFile.html +12 -25
- data/rdoc/RubyXL/Top10.html +13 -19
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
- data/rdoc/RubyXL/Variant.html +13 -19
- data/rdoc/RubyXL/Vector.html +18 -38
- data/rdoc/RubyXL/VectorValue.html +12 -17
- data/rdoc/RubyXL/VisualProperties.html +13 -19
- data/rdoc/RubyXL/WebPublishObject.html +13 -19
- data/rdoc/RubyXL/WebPublishObjects.html +13 -19
- data/rdoc/RubyXL/WebPublishingItem.html +13 -19
- data/rdoc/RubyXL/WebPublishingItems.html +13 -19
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +487 -227
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +163 -871
- data/rdoc/RubyXL/WorkbookProperties.html +13 -19
- data/rdoc/RubyXL/WorkbookProtection.html +13 -19
- data/rdoc/RubyXL/WorkbookRoot.html +28 -114
- data/rdoc/RubyXL/WorkbookView.html +13 -19
- data/rdoc/RubyXL/WorkbookViews.html +13 -19
- data/rdoc/RubyXL/Worksheet.html +93 -121
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +299 -1109
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
- data/rdoc/RubyXL/WorksheetProperties.html +13 -19
- data/rdoc/RubyXL/WorksheetProtection.html +13 -19
- data/rdoc/RubyXL/WorksheetView.html +13 -19
- data/rdoc/RubyXL/WorksheetViews.html +13 -19
- data/rdoc/RubyXL/XF.html +13 -19
- data/rdoc/RubyXL.html +41 -296
- data/rdoc/created.rid +45 -38
- data/rdoc/css/fonts.css +6 -6
- data/rdoc/css/rdoc.css +55 -6
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/index.html +44 -363
- data/rdoc/js/darkfish.js +23 -100
- data/rdoc/js/navigation.js +4 -41
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +7 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +347 -75
- data/rubyXL.gemspec +78 -43
- data/spec/lib/cell_spec.rb +115 -4
- data/spec/lib/color_spec.rb +2 -1
- data/spec/lib/parser_spec.rb +24 -27
- data/spec/lib/reference_spec.rb +9 -3
- data/spec/lib/rgb_color_spec.rb +27 -0
- data/spec/lib/stylesheet_spec.rb +8 -11
- data/spec/lib/text_spec.rb +8 -4
- data/spec/lib/workbook_spec.rb +26 -5
- data/spec/lib/worksheet_spec.rb +873 -479
- data/spec/spec_helper.rb +2 -0
- data/test/test_parse_write.rb +15 -15
- metadata +65 -10
- data/rdoc/js/jquery.js +0 -4
@@ -4,20 +4,23 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.
|
7
|
+
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.25</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
11
|
+
var index_rel_prefix = "../";
|
11
12
|
</script>
|
12
13
|
|
13
|
-
<script src="../js/
|
14
|
-
<script src="../js/
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
15
|
+
<script src="../js/search.js" defer></script>
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
15
19
|
|
16
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
17
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
18
22
|
|
19
23
|
|
20
|
-
|
21
24
|
<body id="top" role="document" class="module">
|
22
25
|
<nav role="navigation">
|
23
26
|
<div id="project-navigation">
|
@@ -57,70 +60,48 @@
|
|
57
60
|
|
58
61
|
|
59
62
|
|
60
|
-
|
63
|
+
|
64
|
+
<!-- Method Quickref -->
|
61
65
|
<div id="method-list-section" class="nav-section">
|
62
66
|
<h3>Methods</h3>
|
63
67
|
|
64
68
|
<ul class="link-list" role="directory">
|
65
|
-
|
69
|
+
<li ><a href="#method-i-add_hyperlink">#add_hyperlink</a>
|
66
70
|
<li ><a href="#method-i-change_border">#change_border</a>
|
67
|
-
|
68
71
|
<li ><a href="#method-i-change_border_color">#change_border_color</a>
|
69
|
-
|
70
72
|
<li ><a href="#method-i-change_contents">#change_contents</a>
|
71
|
-
|
72
73
|
<li ><a href="#method-i-change_fill">#change_fill</a>
|
73
|
-
|
74
74
|
<li ><a href="#method-i-change_font_bold">#change_font_bold</a>
|
75
|
-
|
76
75
|
<li ><a href="#method-i-change_font_color">#change_font_color</a>
|
77
|
-
|
78
76
|
<li ><a href="#method-i-change_font_italics">#change_font_italics</a>
|
79
|
-
|
80
77
|
<li ><a href="#method-i-change_font_name">#change_font_name</a>
|
81
|
-
|
82
78
|
<li ><a href="#method-i-change_font_size">#change_font_size</a>
|
83
|
-
|
84
79
|
<li ><a href="#method-i-change_font_strikethrough">#change_font_strikethrough</a>
|
85
|
-
|
86
80
|
<li ><a href="#method-i-change_font_underline">#change_font_underline</a>
|
87
|
-
|
88
81
|
<li ><a href="#method-i-change_horizontal_alignment">#change_horizontal_alignment</a>
|
89
|
-
|
82
|
+
<li ><a href="#method-i-change_shrink_to_fit">#change_shrink_to_fit</a>
|
83
|
+
<li ><a href="#method-i-change_text_indent">#change_text_indent</a>
|
84
|
+
<li ><a href="#method-i-change_text_rotation">#change_text_rotation</a>
|
90
85
|
<li ><a href="#method-i-change_text_wrap">#change_text_wrap</a>
|
91
|
-
|
92
86
|
<li ><a href="#method-i-change_vertical_alignment">#change_vertical_alignment</a>
|
93
|
-
|
94
87
|
<li ><a href="#method-i-fill_color">#fill_color</a>
|
95
|
-
|
96
88
|
<li ><a href="#method-i-font_color">#font_color</a>
|
97
|
-
|
98
89
|
<li ><a href="#method-i-font_name">#font_name</a>
|
99
|
-
|
100
90
|
<li ><a href="#method-i-font_size">#font_size</a>
|
101
|
-
|
102
91
|
<li ><a href="#method-i-font_switch">#font_switch</a>
|
103
|
-
|
104
92
|
<li ><a href="#method-i-get_border">#get_border</a>
|
105
|
-
|
106
93
|
<li ><a href="#method-i-get_border_color">#get_border_color</a>
|
107
|
-
|
108
94
|
<li ><a href="#method-i-horizontal_alignment">#horizontal_alignment</a>
|
109
|
-
|
110
95
|
<li ><a href="#method-i-is_bolded">#is_bolded</a>
|
111
|
-
|
112
96
|
<li ><a href="#method-i-is_italicized">#is_italicized</a>
|
113
|
-
|
114
97
|
<li ><a href="#method-i-is_struckthrough">#is_struckthrough</a>
|
115
|
-
|
116
98
|
<li ><a href="#method-i-is_underlined">#is_underlined</a>
|
117
|
-
|
99
|
+
<li ><a href="#method-i-remove_formula">#remove_formula</a>
|
118
100
|
<li ><a href="#method-i-set_number_format">#set_number_format</a>
|
119
|
-
|
101
|
+
<li ><a href="#method-i-text_indent">#text_indent</a>
|
102
|
+
<li ><a href="#method-i-text_rotation">#text_rotation</a>
|
120
103
|
<li ><a href="#method-i-text_wrap">#text_wrap</a>
|
121
|
-
|
122
104
|
<li ><a href="#method-i-vertical_alignment">#vertical_alignment</a>
|
123
|
-
|
124
105
|
</ul>
|
125
106
|
</div>
|
126
107
|
|
@@ -136,197 +117,163 @@
|
|
136
117
|
|
137
118
|
</section>
|
138
119
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
120
|
<section id="5Buntitled-5D" class="documentation-section">
|
143
|
-
|
144
121
|
|
145
|
-
|
146
122
|
|
147
|
-
|
148
123
|
|
149
|
-
|
150
124
|
|
151
|
-
|
125
|
+
|
152
126
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
153
127
|
<header>
|
154
128
|
<h3>Public Instance Methods</h3>
|
155
129
|
</header>
|
156
130
|
|
157
|
-
|
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
|
+
|
158
161
|
<div id="method-i-change_border" class="method-detail ">
|
159
|
-
|
160
162
|
<div class="method-heading">
|
161
163
|
<span class="method-name">change_border</span><span
|
162
164
|
class="method-args">(direction, weight)</span>
|
163
|
-
|
164
165
|
<span class="method-click-advice">click to toggle source</span>
|
165
|
-
|
166
166
|
</div>
|
167
|
-
|
168
167
|
|
169
168
|
<div class="method-description">
|
170
169
|
|
171
|
-
|
172
|
-
|
173
|
-
|
174
170
|
|
175
|
-
|
176
171
|
<div class="method-source-code" id="change_border-source">
|
177
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
178
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
172
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 71</span>
|
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>)
|
179
174
|
<span class="ruby-identifier">validate_worksheet</span>
|
180
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>)
|
181
176
|
<span class="ruby-keyword">end</span></pre>
|
182
177
|
</div>
|
183
|
-
|
184
178
|
</div>
|
185
179
|
|
186
|
-
|
187
180
|
|
188
|
-
|
189
181
|
</div>
|
190
182
|
|
191
|
-
|
192
183
|
<div id="method-i-change_border_color" class="method-detail ">
|
193
|
-
|
194
184
|
<div class="method-heading">
|
195
185
|
<span class="method-name">change_border_color</span><span
|
196
186
|
class="method-args">(direction, color)</span>
|
197
|
-
|
198
187
|
<span class="method-click-advice">click to toggle source</span>
|
199
|
-
|
200
188
|
</div>
|
201
|
-
|
202
189
|
|
203
190
|
<div class="method-description">
|
204
191
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
192
|
|
209
|
-
|
210
193
|
<div class="method-source-code" id="change_border_color-source">
|
211
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
212
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
194
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 76</span>
|
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>)
|
213
196
|
<span class="ruby-identifier">validate_worksheet</span>
|
214
197
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
215
198
|
<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_color</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
216
199
|
<span class="ruby-keyword">end</span></pre>
|
217
200
|
</div>
|
218
|
-
|
219
201
|
</div>
|
220
202
|
|
221
|
-
|
222
203
|
|
223
|
-
|
224
204
|
</div>
|
225
205
|
|
226
|
-
|
227
206
|
<div id="method-i-change_contents" class="method-detail ">
|
228
|
-
|
229
207
|
<div class="method-heading">
|
230
208
|
<span class="method-name">change_contents</span><span
|
231
209
|
class="method-args">(data, formula_expression = nil)</span>
|
232
|
-
|
233
210
|
<span class="method-click-advice">click to toggle source</span>
|
234
|
-
|
235
211
|
</div>
|
236
|
-
|
237
212
|
|
238
213
|
<div class="method-description">
|
239
214
|
|
240
|
-
|
241
|
-
|
242
|
-
|
243
215
|
|
244
|
-
|
245
216
|
<div class="method-source-code" id="change_contents-source">
|
246
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
247
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_contents</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">formula_expression</span> = <span class="ruby-keyword">nil</span>)
|
217
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 3</span>
|
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>)
|
248
219
|
<span class="ruby-identifier">validate_worksheet</span>
|
249
220
|
|
250
221
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">formula_expression</span> <span class="ruby-keyword">then</span>
|
251
222
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-keyword">nil</span>
|
252
|
-
<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>
|
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>)
|
253
224
|
<span class="ruby-keyword">else</span>
|
254
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>
|
255
|
-
<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>
|
256
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>
|
257
228
|
<span class="ruby-keyword">end</span>
|
258
229
|
<span class="ruby-keyword">end</span>
|
259
230
|
|
260
|
-
<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>)
|
261
232
|
|
262
233
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
|
263
234
|
<span class="ruby-keyword">end</span></pre>
|
264
235
|
</div>
|
265
|
-
|
266
236
|
</div>
|
267
237
|
|
268
|
-
|
269
238
|
|
270
|
-
|
271
239
|
</div>
|
272
240
|
|
273
|
-
|
274
241
|
<div id="method-i-change_fill" class="method-detail ">
|
275
|
-
|
276
242
|
<div class="method-heading">
|
277
243
|
<span class="method-name">change_fill</span><span
|
278
|
-
class="method-args">(rgb =
|
279
|
-
|
244
|
+
class="method-args">(rgb = 'ffffff')</span>
|
280
245
|
<span class="method-click-advice">click to toggle source</span>
|
281
|
-
|
282
246
|
</div>
|
283
|
-
|
284
247
|
|
285
248
|
<div class="method-description">
|
286
|
-
|
287
249
|
<p>Changes fill color of cell</p>
|
288
|
-
|
289
|
-
|
290
250
|
|
291
|
-
|
292
251
|
<div class="method-source-code" id="change_fill-source">
|
293
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
294
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_fill</span>(<span class="ruby-identifier">rgb</span> = <span class="ruby-string">'ffffff'</span>)
|
252
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 165</span>
|
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>)
|
295
254
|
<span class="ruby-identifier">validate_worksheet</span>
|
296
255
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">rgb</span>)
|
297
256
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_fill</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
298
257
|
<span class="ruby-keyword">end</span></pre>
|
299
258
|
</div>
|
300
|
-
|
301
259
|
</div>
|
302
260
|
|
303
|
-
|
304
261
|
|
305
|
-
|
306
262
|
</div>
|
307
263
|
|
308
|
-
|
309
264
|
<div id="method-i-change_font_bold" class="method-detail ">
|
310
|
-
|
311
265
|
<div class="method-heading">
|
312
266
|
<span class="method-name">change_font_bold</span><span
|
313
267
|
class="method-args">(bolded = false)</span>
|
314
|
-
|
315
268
|
<span class="method-click-advice">click to toggle source</span>
|
316
|
-
|
317
269
|
</div>
|
318
|
-
|
319
270
|
|
320
271
|
<div class="method-description">
|
321
|
-
|
322
272
|
<p>Changes font bold settings of cell</p>
|
323
|
-
|
324
|
-
|
325
273
|
|
326
|
-
|
327
274
|
<div class="method-source-code" id="change_font_bold-source">
|
328
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
329
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_bold</span>(<span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
|
275
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 210</span>
|
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>)
|
330
277
|
<span class="ruby-identifier">validate_worksheet</span>
|
331
278
|
|
332
279
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
@@ -334,36 +281,24 @@
|
|
334
281
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
335
282
|
<span class="ruby-keyword">end</span></pre>
|
336
283
|
</div>
|
337
|
-
|
338
284
|
</div>
|
339
285
|
|
340
|
-
|
341
286
|
|
342
|
-
|
343
287
|
</div>
|
344
288
|
|
345
|
-
|
346
289
|
<div id="method-i-change_font_color" class="method-detail ">
|
347
|
-
|
348
290
|
<div class="method-heading">
|
349
291
|
<span class="method-name">change_font_color</span><span
|
350
|
-
class="method-args">(font_color =
|
351
|
-
|
292
|
+
class="method-args">(font_color = '000000')</span>
|
352
293
|
<span class="method-click-advice">click to toggle source</span>
|
353
|
-
|
354
294
|
</div>
|
355
|
-
|
356
295
|
|
357
296
|
<div class="method-description">
|
358
|
-
|
359
297
|
<p>Changes font color of cell</p>
|
360
|
-
|
361
|
-
|
362
298
|
|
363
|
-
|
364
299
|
<div class="method-source-code" id="change_font_color-source">
|
365
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
366
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_color</span>(<span class="ruby-identifier">font_color</span> = <span class="ruby-string">'000000'</span>)
|
300
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 191</span>
|
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>)
|
367
302
|
<span class="ruby-identifier">validate_worksheet</span>
|
368
303
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
369
304
|
|
@@ -372,36 +307,24 @@
|
|
372
307
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
373
308
|
<span class="ruby-keyword">end</span></pre>
|
374
309
|
</div>
|
375
|
-
|
376
310
|
</div>
|
377
311
|
|
378
|
-
|
379
312
|
|
380
|
-
|
381
313
|
</div>
|
382
314
|
|
383
|
-
|
384
315
|
<div id="method-i-change_font_italics" class="method-detail ">
|
385
|
-
|
386
316
|
<div class="method-heading">
|
387
317
|
<span class="method-name">change_font_italics</span><span
|
388
318
|
class="method-args">(italicized = false)</span>
|
389
|
-
|
390
319
|
<span class="method-click-advice">click to toggle source</span>
|
391
|
-
|
392
320
|
</div>
|
393
|
-
|
394
321
|
|
395
322
|
<div class="method-description">
|
396
|
-
|
397
323
|
<p>Changes font italics settings of cell</p>
|
398
|
-
|
399
|
-
|
400
324
|
|
401
|
-
|
402
325
|
<div class="method-source-code" id="change_font_italics-source">
|
403
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
404
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_italics</span>(<span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
|
326
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 201</span>
|
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>)
|
405
328
|
<span class="ruby-identifier">validate_worksheet</span>
|
406
329
|
|
407
330
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
@@ -409,36 +332,24 @@
|
|
409
332
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
410
333
|
<span class="ruby-keyword">end</span></pre>
|
411
334
|
</div>
|
412
|
-
|
413
335
|
</div>
|
414
336
|
|
415
|
-
|
416
337
|
|
417
|
-
|
418
338
|
</div>
|
419
339
|
|
420
|
-
|
421
340
|
<div id="method-i-change_font_name" class="method-detail ">
|
422
|
-
|
423
341
|
<div class="method-heading">
|
424
342
|
<span class="method-name">change_font_name</span><span
|
425
|
-
class="method-args">(new_font_name =
|
426
|
-
|
343
|
+
class="method-args">(new_font_name = 'Verdana')</span>
|
427
344
|
<span class="method-click-advice">click to toggle source</span>
|
428
|
-
|
429
345
|
</div>
|
430
|
-
|
431
346
|
|
432
347
|
<div class="method-description">
|
433
|
-
|
434
348
|
<p>Changes font name of cell</p>
|
435
|
-
|
436
|
-
|
437
349
|
|
438
|
-
|
439
350
|
<div class="method-source-code" id="change_font_name-source">
|
440
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
441
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_name</span>(<span class="ruby-identifier">new_font_name</span> = <span class="ruby-string">'Verdana'</span>)
|
351
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 172</span>
|
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>)
|
442
353
|
<span class="ruby-identifier">validate_worksheet</span>
|
443
354
|
|
444
355
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
@@ -446,36 +357,24 @@
|
|
446
357
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
447
358
|
<span class="ruby-keyword">end</span></pre>
|
448
359
|
</div>
|
449
|
-
|
450
360
|
</div>
|
451
361
|
|
452
|
-
|
453
362
|
|
454
|
-
|
455
363
|
</div>
|
456
364
|
|
457
|
-
|
458
365
|
<div id="method-i-change_font_size" class="method-detail ">
|
459
|
-
|
460
366
|
<div class="method-heading">
|
461
367
|
<span class="method-name">change_font_size</span><span
|
462
368
|
class="method-args">(font_size = 10)</span>
|
463
|
-
|
464
369
|
<span class="method-click-advice">click to toggle source</span>
|
465
|
-
|
466
370
|
</div>
|
467
|
-
|
468
371
|
|
469
372
|
<div class="method-description">
|
470
|
-
|
471
373
|
<p>Changes font size of cell</p>
|
472
|
-
|
473
|
-
|
474
374
|
|
475
|
-
|
476
375
|
<div class="method-source-code" id="change_font_size-source">
|
477
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
478
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_size</span>(<span class="ruby-identifier">font_size</span> = <span class="ruby-value">10</span>)
|
376
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 181</span>
|
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>)
|
479
378
|
<span class="ruby-identifier">validate_worksheet</span>
|
480
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>)
|
481
380
|
|
@@ -484,36 +383,24 @@
|
|
484
383
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
485
384
|
<span class="ruby-keyword">end</span></pre>
|
486
385
|
</div>
|
487
|
-
|
488
386
|
</div>
|
489
387
|
|
490
|
-
|
491
388
|
|
492
|
-
|
493
389
|
</div>
|
494
390
|
|
495
|
-
|
496
391
|
<div id="method-i-change_font_strikethrough" class="method-detail ">
|
497
|
-
|
498
392
|
<div class="method-heading">
|
499
393
|
<span class="method-name">change_font_strikethrough</span><span
|
500
394
|
class="method-args">(struckthrough = false)</span>
|
501
|
-
|
502
395
|
<span class="method-click-advice">click to toggle source</span>
|
503
|
-
|
504
396
|
</div>
|
505
|
-
|
506
397
|
|
507
398
|
<div class="method-description">
|
508
399
|
|
509
|
-
|
510
|
-
|
511
|
-
|
512
400
|
|
513
|
-
|
514
401
|
<div class="method-source-code" id="change_font_strikethrough-source">
|
515
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
516
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_strikethrough</span>(<span class="ruby-identifier">struckthrough</span> = <span class="ruby-keyword">false</span>)
|
402
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 227</span>
|
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>)
|
517
404
|
<span class="ruby-identifier">validate_worksheet</span>
|
518
405
|
|
519
406
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
@@ -521,36 +408,24 @@
|
|
521
408
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
522
409
|
<span class="ruby-keyword">end</span></pre>
|
523
410
|
</div>
|
524
|
-
|
525
411
|
</div>
|
526
412
|
|
527
|
-
|
528
413
|
|
529
|
-
|
530
414
|
</div>
|
531
415
|
|
532
|
-
|
533
416
|
<div id="method-i-change_font_underline" class="method-detail ">
|
534
|
-
|
535
417
|
<div class="method-heading">
|
536
418
|
<span class="method-name">change_font_underline</span><span
|
537
419
|
class="method-args">(underlined = false)</span>
|
538
|
-
|
539
420
|
<span class="method-click-advice">click to toggle source</span>
|
540
|
-
|
541
421
|
</div>
|
542
|
-
|
543
422
|
|
544
423
|
<div class="method-description">
|
545
|
-
|
546
424
|
<p>Changes font underline settings of cell</p>
|
547
|
-
|
548
|
-
|
549
425
|
|
550
|
-
|
551
426
|
<div class="method-source-code" id="change_font_underline-source">
|
552
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
553
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_font_underline</span>(<span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
|
427
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 219</span>
|
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>)
|
554
429
|
<span class="ruby-identifier">validate_worksheet</span>
|
555
430
|
|
556
431
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
@@ -558,275 +433,244 @@
|
|
558
433
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
559
434
|
<span class="ruby-keyword">end</span></pre>
|
560
435
|
</div>
|
561
|
-
|
562
436
|
</div>
|
563
437
|
|
564
|
-
|
565
438
|
|
566
|
-
|
567
439
|
</div>
|
568
440
|
|
569
|
-
|
570
441
|
<div id="method-i-change_horizontal_alignment" class="method-detail ">
|
571
|
-
|
572
442
|
<div class="method-heading">
|
573
443
|
<span class="method-name">change_horizontal_alignment</span><span
|
574
|
-
class="method-args">(alignment =
|
575
|
-
|
444
|
+
class="method-args">(alignment = 'center')</span>
|
576
445
|
<span class="method-click-advice">click to toggle source</span>
|
577
|
-
|
578
446
|
</div>
|
579
|
-
|
580
447
|
|
581
448
|
<div class="method-description">
|
582
449
|
|
583
|
-
|
584
|
-
|
585
|
-
|
586
450
|
|
587
|
-
|
588
451
|
<div class="method-source-code" id="change_horizontal_alignment-source">
|
589
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
590
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_horizontal_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
452
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 41</span>
|
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>)
|
591
454
|
<span class="ruby-identifier">validate_worksheet</span>
|
592
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> }
|
593
456
|
<span class="ruby-keyword">end</span></pre>
|
594
457
|
</div>
|
458
|
+
</div>
|
459
|
+
|
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">
|
595
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
|
+
|
483
|
+
</div>
|
484
|
+
|
485
|
+
<div id="method-i-change_text_indent" class="method-detail ">
|
486
|
+
<div class="method-heading">
|
487
|
+
<span class="method-name">change_text_indent</span><span
|
488
|
+
class="method-args">(indent)</span>
|
489
|
+
<span class="method-click-advice">click to toggle source</span>
|
490
|
+
</div>
|
491
|
+
|
492
|
+
<div class="method-description">
|
493
|
+
|
494
|
+
|
495
|
+
<div class="method-source-code" id="change_text_indent-source">
|
496
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 66</span>
|
497
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_indent</span>(<span class="ruby-identifier">indent</span>)
|
498
|
+
<span class="ruby-identifier">validate_worksheet</span>
|
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> }
|
500
|
+
<span class="ruby-keyword">end</span></pre>
|
501
|
+
</div>
|
502
|
+
</div>
|
503
|
+
|
504
|
+
|
505
|
+
</div>
|
506
|
+
|
507
|
+
<div id="method-i-change_text_rotation" class="method-detail ">
|
508
|
+
<div class="method-heading">
|
509
|
+
<span class="method-name">change_text_rotation</span><span
|
510
|
+
class="method-args">(rot)</span>
|
511
|
+
<span class="method-click-advice">click to toggle source</span>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
<div class="method-description">
|
515
|
+
|
516
|
+
|
517
|
+
<div class="method-source-code" id="change_text_rotation-source">
|
518
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 61</span>
|
519
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_rotation</span>(<span class="ruby-identifier">rot</span>)
|
520
|
+
<span class="ruby-identifier">validate_worksheet</span>
|
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> }
|
522
|
+
<span class="ruby-keyword">end</span></pre>
|
523
|
+
</div>
|
596
524
|
</div>
|
597
525
|
|
598
|
-
|
599
526
|
|
600
|
-
|
601
527
|
</div>
|
602
528
|
|
603
|
-
|
604
529
|
<div id="method-i-change_text_wrap" class="method-detail ">
|
605
|
-
|
606
530
|
<div class="method-heading">
|
607
531
|
<span class="method-name">change_text_wrap</span><span
|
608
532
|
class="method-args">(wrap = false)</span>
|
609
|
-
|
610
533
|
<span class="method-click-advice">click to toggle source</span>
|
611
|
-
|
612
534
|
</div>
|
613
|
-
|
614
535
|
|
615
536
|
<div class="method-description">
|
616
537
|
|
617
|
-
|
618
|
-
|
619
|
-
|
620
538
|
|
621
|
-
|
622
539
|
<div class="method-source-code" id="change_text_wrap-source">
|
623
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
624
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_text_wrap</span>(<span class="ruby-identifier">wrap</span> = <span class="ruby-keyword">false</span>)
|
540
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 51</span>
|
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>)
|
625
542
|
<span class="ruby-identifier">validate_worksheet</span>
|
626
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> }
|
627
544
|
<span class="ruby-keyword">end</span></pre>
|
628
545
|
</div>
|
629
|
-
|
630
546
|
</div>
|
631
547
|
|
632
|
-
|
633
548
|
|
634
|
-
|
635
549
|
</div>
|
636
550
|
|
637
|
-
|
638
551
|
<div id="method-i-change_vertical_alignment" class="method-detail ">
|
639
|
-
|
640
552
|
<div class="method-heading">
|
641
553
|
<span class="method-name">change_vertical_alignment</span><span
|
642
|
-
class="method-args">(alignment =
|
643
|
-
|
554
|
+
class="method-args">(alignment = 'center')</span>
|
644
555
|
<span class="method-click-advice">click to toggle source</span>
|
645
|
-
|
646
556
|
</div>
|
647
|
-
|
648
557
|
|
649
558
|
<div class="method-description">
|
650
559
|
|
651
|
-
|
652
|
-
|
653
|
-
|
654
560
|
|
655
|
-
|
656
561
|
<div class="method-source-code" id="change_vertical_alignment-source">
|
657
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
658
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_vertical_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
562
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 46</span>
|
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>)
|
659
564
|
<span class="ruby-identifier">validate_worksheet</span>
|
660
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> }
|
661
566
|
<span class="ruby-keyword">end</span></pre>
|
662
567
|
</div>
|
663
|
-
|
664
568
|
</div>
|
665
569
|
|
666
|
-
|
667
570
|
|
668
|
-
|
669
571
|
</div>
|
670
572
|
|
671
|
-
|
672
573
|
<div id="method-i-fill_color" class="method-detail ">
|
673
|
-
|
674
574
|
<div class="method-heading">
|
675
575
|
<span class="method-name">fill_color</span><span
|
676
576
|
class="method-args">()</span>
|
677
|
-
|
678
577
|
<span class="method-click-advice">click to toggle source</span>
|
679
|
-
|
680
578
|
</div>
|
681
|
-
|
682
579
|
|
683
580
|
<div class="method-description">
|
684
581
|
|
685
|
-
|
686
|
-
|
687
|
-
|
688
582
|
|
689
|
-
|
690
583
|
<div class="method-source-code" id="fill_color-source">
|
691
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
692
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fill_color</span>
|
584
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 117</span>
|
585
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fill_color</span>
|
693
586
|
<span class="ruby-identifier">validate_worksheet</span>
|
694
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>)
|
695
588
|
<span class="ruby-keyword">end</span></pre>
|
696
589
|
</div>
|
697
|
-
|
698
590
|
</div>
|
699
591
|
|
700
|
-
|
701
592
|
|
702
|
-
|
703
593
|
</div>
|
704
594
|
|
705
|
-
|
706
595
|
<div id="method-i-font_color" class="method-detail ">
|
707
|
-
|
708
596
|
<div class="method-heading">
|
709
597
|
<span class="method-name">font_color</span><span
|
710
598
|
class="method-args">()</span>
|
711
|
-
|
712
599
|
<span class="method-click-advice">click to toggle source</span>
|
713
|
-
|
714
600
|
</div>
|
715
|
-
|
716
601
|
|
717
602
|
<div class="method-description">
|
718
603
|
|
719
|
-
|
720
|
-
|
721
|
-
|
722
604
|
|
723
|
-
|
724
605
|
<div class="method-source-code" id="font_color-source">
|
725
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
726
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">font_color</span>
|
606
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 112</span>
|
607
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_color</span>
|
727
608
|
<span class="ruby-identifier">validate_worksheet</span>
|
728
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>
|
729
610
|
<span class="ruby-keyword">end</span></pre>
|
730
611
|
</div>
|
731
|
-
|
732
612
|
</div>
|
733
613
|
|
734
|
-
|
735
614
|
|
736
|
-
|
737
615
|
</div>
|
738
616
|
|
739
|
-
|
740
617
|
<div id="method-i-font_name" class="method-detail ">
|
741
|
-
|
742
618
|
<div class="method-heading">
|
743
619
|
<span class="method-name">font_name</span><span
|
744
620
|
class="method-args">()</span>
|
745
|
-
|
746
621
|
<span class="method-click-advice">click to toggle source</span>
|
747
|
-
|
748
622
|
</div>
|
749
|
-
|
750
623
|
|
751
624
|
<div class="method-description">
|
752
625
|
|
753
|
-
|
754
|
-
|
755
|
-
|
756
626
|
|
757
|
-
|
758
627
|
<div class="method-source-code" id="font_name-source">
|
759
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
760
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">font_name</span>
|
628
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 102</span>
|
629
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_name</span>
|
761
630
|
<span class="ruby-identifier">validate_worksheet</span>
|
762
631
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_name</span>
|
763
632
|
<span class="ruby-keyword">end</span></pre>
|
764
633
|
</div>
|
765
|
-
|
766
634
|
</div>
|
767
635
|
|
768
|
-
|
769
636
|
|
770
|
-
|
771
637
|
</div>
|
772
638
|
|
773
|
-
|
774
639
|
<div id="method-i-font_size" class="method-detail ">
|
775
|
-
|
776
640
|
<div class="method-heading">
|
777
641
|
<span class="method-name">font_size</span><span
|
778
642
|
class="method-args">()</span>
|
779
|
-
|
780
643
|
<span class="method-click-advice">click to toggle source</span>
|
781
|
-
|
782
644
|
</div>
|
783
|
-
|
784
645
|
|
785
646
|
<div class="method-description">
|
786
647
|
|
787
|
-
|
788
|
-
|
789
|
-
|
790
648
|
|
791
|
-
|
792
649
|
<div class="method-source-code" id="font_size-source">
|
793
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
794
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">font_size</span>
|
650
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 107</span>
|
651
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_size</span>
|
795
652
|
<span class="ruby-identifier">validate_worksheet</span>
|
796
653
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_size</span>
|
797
654
|
<span class="ruby-keyword">end</span></pre>
|
798
655
|
</div>
|
799
|
-
|
800
656
|
</div>
|
801
657
|
|
802
|
-
|
803
658
|
|
804
|
-
|
805
659
|
</div>
|
806
660
|
|
807
|
-
|
808
661
|
<div id="method-i-font_switch" class="method-detail ">
|
809
|
-
|
810
662
|
<div class="method-heading">
|
811
663
|
<span class="method-name">font_switch</span><span
|
812
664
|
class="method-args">(change_type, arg)</span>
|
813
|
-
|
814
665
|
<span class="method-click-advice">click to toggle source</span>
|
815
|
-
|
816
666
|
</div>
|
817
|
-
|
818
667
|
|
819
668
|
<div class="method-description">
|
820
|
-
|
821
|
-
<p>Performs correct modification based on what type of change_type is
|
822
|
-
specified</p>
|
823
|
-
|
824
|
-
|
669
|
+
<p>Performs correct modification based on what type of change_type is specified</p>
|
825
670
|
|
826
|
-
|
827
671
|
<div class="method-source-code" id="font_switch-source">
|
828
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
829
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">font_switch</span>(<span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>)
|
672
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 243</span>
|
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>)
|
830
674
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">change_type</span>
|
831
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>)
|
832
676
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">SIZE</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_size</span>(<span class="ruby-identifier">arg</span>)
|
@@ -839,372 +683,323 @@ specified</p>
|
|
839
683
|
<span class="ruby-keyword">end</span>
|
840
684
|
<span class="ruby-keyword">end</span></pre>
|
841
685
|
</div>
|
842
|
-
|
843
686
|
</div>
|
844
687
|
|
845
|
-
|
846
688
|
|
847
|
-
|
848
689
|
</div>
|
849
690
|
|
850
|
-
|
851
691
|
<div id="method-i-get_border" class="method-detail ">
|
852
|
-
|
853
692
|
<div class="method-heading">
|
854
693
|
<span class="method-name">get_border</span><span
|
855
694
|
class="method-args">(direction)</span>
|
856
|
-
|
857
695
|
<span class="method-click-advice">click to toggle source</span>
|
858
|
-
|
859
696
|
</div>
|
860
|
-
|
861
697
|
|
862
698
|
<div class="method-description">
|
863
699
|
|
864
|
-
|
865
|
-
|
866
|
-
|
867
700
|
|
868
|
-
|
869
701
|
<div class="method-source-code" id="get_border-source">
|
870
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
871
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_border</span>(<span class="ruby-identifier">direction</span>)
|
702
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 31</span>
|
703
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border</span>(<span class="ruby-identifier">direction</span>)
|
872
704
|
<span class="ruby-identifier">validate_worksheet</span>
|
873
705
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
|
874
706
|
<span class="ruby-keyword">end</span></pre>
|
875
707
|
</div>
|
876
|
-
|
877
708
|
</div>
|
878
709
|
|
879
|
-
|
880
710
|
|
881
|
-
|
882
711
|
</div>
|
883
712
|
|
884
|
-
|
885
713
|
<div id="method-i-get_border_color" class="method-detail ">
|
886
|
-
|
887
714
|
<div class="method-heading">
|
888
715
|
<span class="method-name">get_border_color</span><span
|
889
716
|
class="method-args">(direction)</span>
|
890
|
-
|
891
717
|
<span class="method-click-advice">click to toggle source</span>
|
892
|
-
|
893
718
|
</div>
|
894
|
-
|
895
719
|
|
896
720
|
<div class="method-description">
|
897
721
|
|
898
|
-
|
899
|
-
|
900
|
-
|
901
722
|
|
902
|
-
|
903
723
|
<div class="method-source-code" id="get_border_color-source">
|
904
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
905
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_border_color</span>(<span class="ruby-identifier">direction</span>)
|
724
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 36</span>
|
725
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border_color</span>(<span class="ruby-identifier">direction</span>)
|
906
726
|
<span class="ruby-identifier">validate_worksheet</span>
|
907
727
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
|
908
728
|
<span class="ruby-keyword">end</span></pre>
|
909
729
|
</div>
|
910
|
-
|
911
730
|
</div>
|
912
731
|
|
913
|
-
|
914
732
|
|
915
|
-
|
916
733
|
</div>
|
917
734
|
|
918
|
-
|
919
735
|
<div id="method-i-horizontal_alignment" class="method-detail ">
|
920
|
-
|
921
736
|
<div class="method-heading">
|
922
737
|
<span class="method-name">horizontal_alignment</span><span
|
923
738
|
class="method-args">()</span>
|
924
|
-
|
925
739
|
<span class="method-click-advice">click to toggle source</span>
|
926
|
-
|
927
740
|
</div>
|
928
|
-
|
929
741
|
|
930
742
|
<div class="method-description">
|
931
743
|
|
932
|
-
|
933
|
-
|
934
|
-
|
935
744
|
|
936
|
-
|
937
745
|
<div class="method-source-code" id="horizontal_alignment-source">
|
938
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
939
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">horizontal_alignment</span>
|
746
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 122</span>
|
747
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">horizontal_alignment</span>
|
940
748
|
<span class="ruby-identifier">validate_worksheet</span>
|
941
749
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
942
750
|
<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>
|
943
751
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">horizontal</span>
|
944
752
|
<span class="ruby-keyword">end</span></pre>
|
945
753
|
</div>
|
946
|
-
|
947
754
|
</div>
|
948
755
|
|
949
|
-
|
950
756
|
|
951
|
-
|
952
757
|
</div>
|
953
758
|
|
954
|
-
|
955
759
|
<div id="method-i-is_bolded" class="method-detail ">
|
956
|
-
|
957
760
|
<div class="method-heading">
|
958
761
|
<span class="method-name">is_bolded</span><span
|
959
762
|
class="method-args">()</span>
|
960
|
-
|
961
763
|
<span class="method-click-advice">click to toggle source</span>
|
962
|
-
|
963
764
|
</div>
|
964
|
-
|
965
765
|
|
966
766
|
<div class="method-description">
|
967
767
|
|
968
|
-
|
969
|
-
|
970
|
-
|
971
768
|
|
972
|
-
|
973
769
|
<div class="method-source-code" id="is_bolded-source">
|
974
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
975
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_bolded</span>
|
770
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 87</span>
|
771
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_bolded</span>
|
976
772
|
<span class="ruby-identifier">validate_worksheet</span>
|
977
773
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_bold</span>
|
978
774
|
<span class="ruby-keyword">end</span></pre>
|
979
775
|
</div>
|
980
|
-
|
981
776
|
</div>
|
982
777
|
|
983
|
-
|
984
778
|
|
985
|
-
|
986
779
|
</div>
|
987
780
|
|
988
|
-
|
989
781
|
<div id="method-i-is_italicized" class="method-detail ">
|
990
|
-
|
991
782
|
<div class="method-heading">
|
992
783
|
<span class="method-name">is_italicized</span><span
|
993
784
|
class="method-args">()</span>
|
994
|
-
|
995
785
|
<span class="method-click-advice">click to toggle source</span>
|
996
|
-
|
997
786
|
</div>
|
998
|
-
|
999
787
|
|
1000
788
|
<div class="method-description">
|
1001
789
|
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
790
|
|
1006
|
-
|
1007
791
|
<div class="method-source-code" id="is_italicized-source">
|
1008
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1009
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_italicized</span>
|
792
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 82</span>
|
793
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_italicized</span>
|
1010
794
|
<span class="ruby-identifier">validate_worksheet</span>
|
1011
795
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_italic</span>
|
1012
796
|
<span class="ruby-keyword">end</span></pre>
|
1013
797
|
</div>
|
1014
|
-
|
1015
798
|
</div>
|
1016
799
|
|
1017
|
-
|
1018
800
|
|
1019
|
-
|
1020
801
|
</div>
|
1021
802
|
|
1022
|
-
|
1023
803
|
<div id="method-i-is_struckthrough" class="method-detail ">
|
1024
|
-
|
1025
804
|
<div class="method-heading">
|
1026
805
|
<span class="method-name">is_struckthrough</span><span
|
1027
806
|
class="method-args">()</span>
|
1028
|
-
|
1029
807
|
<span class="method-click-advice">click to toggle source</span>
|
1030
|
-
|
1031
808
|
</div>
|
1032
|
-
|
1033
809
|
|
1034
810
|
<div class="method-description">
|
1035
811
|
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
812
|
|
1040
|
-
|
1041
813
|
<div class="method-source-code" id="is_struckthrough-source">
|
1042
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1043
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_struckthrough</span>
|
814
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 97</span>
|
815
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_struckthrough</span>
|
1044
816
|
<span class="ruby-identifier">validate_worksheet</span>
|
1045
817
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
1046
818
|
<span class="ruby-keyword">end</span></pre>
|
1047
819
|
</div>
|
1048
|
-
|
1049
820
|
</div>
|
1050
821
|
|
1051
|
-
|
1052
822
|
|
1053
|
-
|
1054
823
|
</div>
|
1055
824
|
|
1056
|
-
|
1057
825
|
<div id="method-i-is_underlined" class="method-detail ">
|
1058
|
-
|
1059
826
|
<div class="method-heading">
|
1060
827
|
<span class="method-name">is_underlined</span><span
|
1061
828
|
class="method-args">()</span>
|
1062
|
-
|
1063
829
|
<span class="method-click-advice">click to toggle source</span>
|
1064
|
-
|
1065
830
|
</div>
|
1066
|
-
|
1067
831
|
|
1068
832
|
<div class="method-description">
|
1069
833
|
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
834
|
|
1074
|
-
|
1075
835
|
<div class="method-source-code" id="is_underlined-source">
|
1076
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1077
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_underlined</span>
|
836
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 92</span>
|
837
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_underlined</span>
|
1078
838
|
<span class="ruby-identifier">validate_worksheet</span>
|
1079
839
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_underlined</span>
|
1080
840
|
<span class="ruby-keyword">end</span></pre>
|
1081
841
|
</div>
|
842
|
+
</div>
|
843
|
+
|
844
|
+
|
845
|
+
</div>
|
846
|
+
|
847
|
+
<div id="method-i-remove_formula" class="method-detail ">
|
848
|
+
<div class="method-heading">
|
849
|
+
<span class="method-name">remove_formula</span><span
|
850
|
+
class="method-args">()</span>
|
851
|
+
<span class="method-click-advice">click to toggle source</span>
|
852
|
+
</div>
|
853
|
+
|
854
|
+
<div class="method-description">
|
1082
855
|
|
856
|
+
|
857
|
+
<div class="method-source-code" id="remove_formula-source">
|
858
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 21</span>
|
859
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remove_formula</span>
|
860
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>
|
861
|
+
|
862
|
+
<span class="ruby-identifier">calculation_chain</span> = <span class="ruby-identifier">workbook</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">calculation_chain</span>
|
863
|
+
<span class="ruby-identifier">calculation_cells</span> = <span class="ruby-identifier">calculation_chain</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">calculation_chain</span>.<span class="ruby-identifier">cells</span>
|
864
|
+
<span class="ruby-identifier">calculation_cells</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">calculation_cells</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
865
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">column</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">begin</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">row</span>
|
866
|
+
}
|
867
|
+
<span class="ruby-keyword">end</span></pre>
|
868
|
+
</div>
|
1083
869
|
</div>
|
1084
870
|
|
1085
|
-
|
1086
871
|
|
1087
|
-
|
1088
872
|
</div>
|
1089
873
|
|
1090
|
-
|
1091
874
|
<div id="method-i-set_number_format" class="method-detail ">
|
1092
|
-
|
1093
875
|
<div class="method-heading">
|
1094
876
|
<span class="method-name">set_number_format</span><span
|
1095
877
|
class="method-args">(format_code)</span>
|
1096
|
-
|
1097
878
|
<span class="method-click-advice">click to toggle source</span>
|
1098
|
-
|
1099
879
|
</div>
|
1100
|
-
|
1101
880
|
|
1102
881
|
<div class="method-description">
|
1103
882
|
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
883
|
|
1108
|
-
|
1109
884
|
<div class="method-source-code" id="set_number_format-source">
|
1110
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1111
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
885
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 157</span>
|
886
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
1112
887
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">dup</span>
|
1113
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>)
|
1114
889
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_number_format</span> = <span class="ruby-keyword">true</span>
|
1115
890
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1116
891
|
<span class="ruby-keyword">end</span></pre>
|
1117
892
|
</div>
|
893
|
+
</div>
|
894
|
+
|
895
|
+
|
896
|
+
</div>
|
897
|
+
|
898
|
+
<div id="method-i-text_indent" class="method-detail ">
|
899
|
+
<div class="method-heading">
|
900
|
+
<span class="method-name">text_indent</span><span
|
901
|
+
class="method-args">()</span>
|
902
|
+
<span class="method-click-advice">click to toggle source</span>
|
903
|
+
</div>
|
904
|
+
|
905
|
+
<div class="method-description">
|
1118
906
|
|
907
|
+
|
908
|
+
<div class="method-source-code" id="text_indent-source">
|
909
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 150</span>
|
910
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_indent</span>
|
911
|
+
<span class="ruby-identifier">validate_worksheet</span>
|
912
|
+
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
913
|
+
<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>
|
914
|
+
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">indent</span>
|
915
|
+
<span class="ruby-keyword">end</span></pre>
|
916
|
+
</div>
|
917
|
+
</div>
|
918
|
+
|
919
|
+
|
920
|
+
</div>
|
921
|
+
|
922
|
+
<div id="method-i-text_rotation" class="method-detail ">
|
923
|
+
<div class="method-heading">
|
924
|
+
<span class="method-name">text_rotation</span><span
|
925
|
+
class="method-args">()</span>
|
926
|
+
<span class="method-click-advice">click to toggle source</span>
|
927
|
+
</div>
|
928
|
+
|
929
|
+
<div class="method-description">
|
930
|
+
|
931
|
+
|
932
|
+
<div class="method-source-code" id="text_rotation-source">
|
933
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 143</span>
|
934
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_rotation</span>
|
935
|
+
<span class="ruby-identifier">validate_worksheet</span>
|
936
|
+
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
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>
|
938
|
+
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">text_rotation</span>
|
939
|
+
<span class="ruby-keyword">end</span></pre>
|
940
|
+
</div>
|
1119
941
|
</div>
|
1120
942
|
|
1121
|
-
|
1122
943
|
|
1123
|
-
|
1124
944
|
</div>
|
1125
945
|
|
1126
|
-
|
1127
946
|
<div id="method-i-text_wrap" class="method-detail ">
|
1128
|
-
|
1129
947
|
<div class="method-heading">
|
1130
948
|
<span class="method-name">text_wrap</span><span
|
1131
949
|
class="method-args">()</span>
|
1132
|
-
|
1133
950
|
<span class="method-click-advice">click to toggle source</span>
|
1134
|
-
|
1135
951
|
</div>
|
1136
|
-
|
1137
952
|
|
1138
953
|
<div class="method-description">
|
1139
954
|
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
955
|
|
1144
|
-
|
1145
956
|
<div class="method-source-code" id="text_wrap-source">
|
1146
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1147
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">text_wrap</span>
|
957
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 136</span>
|
958
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_wrap</span>
|
1148
959
|
<span class="ruby-identifier">validate_worksheet</span>
|
1149
960
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
1150
961
|
<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>
|
1151
962
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">wrap_text</span>
|
1152
963
|
<span class="ruby-keyword">end</span></pre>
|
1153
964
|
</div>
|
1154
|
-
|
1155
965
|
</div>
|
1156
966
|
|
1157
|
-
|
1158
967
|
|
1159
|
-
|
1160
968
|
</div>
|
1161
969
|
|
1162
|
-
|
1163
970
|
<div id="method-i-vertical_alignment" class="method-detail ">
|
1164
|
-
|
1165
971
|
<div class="method-heading">
|
1166
972
|
<span class="method-name">vertical_alignment</span><span
|
1167
973
|
class="method-args">()</span>
|
1168
|
-
|
1169
974
|
<span class="method-click-advice">click to toggle source</span>
|
1170
|
-
|
1171
975
|
</div>
|
1172
|
-
|
1173
976
|
|
1174
977
|
<div class="method-description">
|
1175
978
|
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
979
|
|
1180
|
-
|
1181
980
|
<div class="method-source-code" id="vertical_alignment-source">
|
1182
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1183
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">vertical_alignment</span>
|
981
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 129</span>
|
982
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">vertical_alignment</span>
|
1184
983
|
<span class="ruby-identifier">validate_worksheet</span>
|
1185
984
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
1186
985
|
<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>
|
1187
986
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">vertical</span>
|
1188
987
|
<span class="ruby-keyword">end</span></pre>
|
1189
988
|
</div>
|
1190
|
-
|
1191
989
|
</div>
|
1192
990
|
|
1193
|
-
|
1194
991
|
|
1195
|
-
|
1196
992
|
</div>
|
1197
993
|
|
1198
|
-
|
1199
994
|
</section>
|
1200
|
-
|
995
|
+
|
1201
996
|
</section>
|
1202
997
|
</main>
|
1203
998
|
|
1204
999
|
|
1205
1000
|
<footer id="validator-badges" role="contentinfo">
|
1206
|
-
<p><a href="
|
1207
|
-
<p>Generated by <a href="
|
1001
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
1002
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.
|
1208
1003
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
1209
1004
|
</footer>
|
1210
1005
|
|