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