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