rubyXL 2.5.5 → 2.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubyXL/parser.rb +84 -77
- data/lib/rubyXL/worksheet.rb +22 -18
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +1 -1
- data/rdoc/RubyXL/CoreProperties.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DocumentProperties.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +1 -1
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorage.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorkbook.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +62 -59
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +90 -83
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/RootRelationships.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +20 -20
- data/rdoc/index.html +2 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +2 -2
- data/rubyXL.gemspec +3 -3
- data/spec/lib/worksheet_spec.rb +13 -0
- data/test/test_parse_write.rb +1 -1
- metadata +2 -2
data/rdoc/RubyXL/Hyperlink.html
CHANGED
data/rdoc/RubyXL/Hyperlinks.html
CHANGED
data/rdoc/RubyXL/IconFilter.html
CHANGED
data/rdoc/RubyXL/IconSet.html
CHANGED
data/rdoc/RubyXL/InputCells.html
CHANGED
data/rdoc/RubyXL/LegacyCell.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::LegacyWorksheet - rubyXL 2.5.
|
|
7
|
+
<title>module RubyXL::LegacyWorksheet - rubyXL 2.5.6</title>
|
|
8
8
|
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
|
@@ -1677,7 +1677,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
|
1677
1677
|
|
|
1678
1678
|
|
|
1679
1679
|
<div class="method-source-code" id="delete_cell-source">
|
|
1680
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1680
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 475</span>
|
|
1681
1681
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_cell</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">shift</span>=<span class="ruby-keyword">nil</span>)
|
|
1682
1682
|
<span class="ruby-identifier">validate_workbook</span>
|
|
1683
1683
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
|
@@ -1732,20 +1732,19 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
|
1732
1732
|
|
|
1733
1733
|
|
|
1734
1734
|
<div class="method-source-code" id="delete_column-source">
|
|
1735
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1735
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 405</span>
|
|
1736
1736
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
|
1737
1737
|
<span class="ruby-identifier">validate_workbook</span>
|
|
1738
1738
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
|
1739
1739
|
|
|
1740
1740
|
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">column_exists</span>(<span class="ruby-identifier">column_index</span>)
|
|
1741
1741
|
|
|
1742
|
-
<span class="ruby-comment">#delete column</span>
|
|
1743
1742
|
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-identifier">column_index</span>) }
|
|
1744
1743
|
|
|
1745
|
-
<span class="ruby-comment">#
|
|
1744
|
+
<span class="ruby-comment"># Change column numbers for cells to the right of the deleted column</span>
|
|
1746
1745
|
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span>, <span class="ruby-identifier">row_index</span><span class="ruby-operator">|</span>
|
|
1747
1746
|
<span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">column_index</span><span class="ruby-operator">|</span>
|
|
1748
|
-
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span>
|
|
1747
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span> = <span class="ruby-identifier">column_index</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Cell</span>)
|
|
1749
1748
|
}
|
|
1750
1749
|
}
|
|
1751
1750
|
|
|
@@ -1862,7 +1861,7 @@ information)</p>
|
|
|
1862
1861
|
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 24</span>
|
|
1863
1862
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">extract_data</span>(<span class="ruby-identifier">args</span> = {})
|
|
1864
1863
|
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
|
|
1865
|
-
<span class="ruby-identifier">row</span
|
|
1864
|
+
<span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">value</span>(<span class="ruby-identifier">args</span>) } <span class="ruby-keyword">unless</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">nil?</span>
|
|
1866
1865
|
}
|
|
1867
1866
|
<span class="ruby-keyword">end</span></pre>
|
|
1868
1867
|
</div>
|
|
@@ -1894,7 +1893,7 @@ information)</p>
|
|
|
1894
1893
|
|
|
1895
1894
|
|
|
1896
1895
|
<div class="method-source-code" id="get_column_border_bottom-source">
|
|
1897
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1896
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 652</span>
|
|
1898
1897
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_bottom</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
1899
1898
|
<span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:bottom</span>)
|
|
1900
1899
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1927,7 +1926,7 @@ information)</p>
|
|
|
1927
1926
|
|
|
1928
1927
|
|
|
1929
1928
|
<div class="method-source-code" id="get_column_border_diagonal-source">
|
|
1930
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1929
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 656</span>
|
|
1931
1930
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_diagonal</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
1932
1931
|
<span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:diagonal</span>)
|
|
1933
1932
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1960,7 +1959,7 @@ information)</p>
|
|
|
1960
1959
|
|
|
1961
1960
|
|
|
1962
1961
|
<div class="method-source-code" id="get_column_border_left-source">
|
|
1963
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1962
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 644</span>
|
|
1964
1963
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_left</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
1965
1964
|
<span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:left</span>)
|
|
1966
1965
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1993,7 +1992,7 @@ information)</p>
|
|
|
1993
1992
|
|
|
1994
1993
|
|
|
1995
1994
|
<div class="method-source-code" id="get_column_border_right-source">
|
|
1996
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
1995
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 648</span>
|
|
1997
1996
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_right</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
1998
1997
|
<span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:right</span>)
|
|
1999
1998
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2026,7 +2025,7 @@ information)</p>
|
|
|
2026
2025
|
|
|
2027
2026
|
|
|
2028
2027
|
<div class="method-source-code" id="get_column_border_top-source">
|
|
2029
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2028
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 640</span>
|
|
2030
2029
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_top</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
2031
2030
|
<span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:top</span>)
|
|
2032
2031
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2059,7 +2058,7 @@ information)</p>
|
|
|
2059
2058
|
|
|
2060
2059
|
|
|
2061
2060
|
<div class="method-source-code" id="get_column_fill-source">
|
|
2062
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2061
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 624</span>
|
|
2063
2062
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
2064
2063
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2065
2064
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
|
|
@@ -2096,7 +2095,7 @@ information)</p>
|
|
|
2096
2095
|
|
|
2097
2096
|
|
|
2098
2097
|
<div class="method-source-code" id="get_column_font_color-source">
|
|
2099
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2098
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 581</span>
|
|
2100
2099
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
2101
2100
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
2102
2101
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">'000000'</span>)
|
|
@@ -2130,7 +2129,7 @@ information)</p>
|
|
|
2130
2129
|
|
|
2131
2130
|
|
|
2132
2131
|
<div class="method-source-code" id="get_column_font_name-source">
|
|
2133
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2132
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 571</span>
|
|
2134
2133
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
2135
2134
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
2136
2135
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
|
|
@@ -2164,7 +2163,7 @@ information)</p>
|
|
|
2164
2163
|
|
|
2165
2164
|
|
|
2166
2165
|
<div class="method-source-code" id="get_column_font_size-source">
|
|
2167
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2166
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 576</span>
|
|
2168
2167
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
2169
2168
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
2170
2169
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
|
|
@@ -2198,7 +2197,7 @@ information)</p>
|
|
|
2198
2197
|
|
|
2199
2198
|
|
|
2200
2199
|
<div class="method-source-code" id="get_column_horizontal_alignment-source">
|
|
2201
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2200
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 632</span>
|
|
2202
2201
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_horizontal_alignment</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
2203
2202
|
<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:horizontal</span>)
|
|
2204
2203
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2231,7 +2230,7 @@ information)</p>
|
|
|
2231
2230
|
|
|
2232
2231
|
|
|
2233
2232
|
<div class="method-source-code" id="get_column_vertical_alignment-source">
|
|
2234
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2233
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 636</span>
|
|
2235
2234
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_vertical_alignment</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
|
2236
2235
|
<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-value">:vertical</span>)
|
|
2237
2236
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2265,7 +2264,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2265
2264
|
|
|
2266
2265
|
|
|
2267
2266
|
<div class="method-source-code" id="get_column_width-source">
|
|
2268
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2267
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 618</span>
|
|
2269
2268
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
|
2270
2269
|
<span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
|
|
2271
2270
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span>
|
|
@@ -2300,7 +2299,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2300
2299
|
|
|
2301
2300
|
|
|
2302
2301
|
<div class="method-source-code" id="get_column_width_raw-source">
|
|
2303
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2302
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 607</span>
|
|
2304
2303
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
|
2305
2304
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2306
2305
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
|
@@ -2338,7 +2337,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2338
2337
|
|
|
2339
2338
|
|
|
2340
2339
|
<div class="method-source-code" id="get_row_border_bottom-source">
|
|
2341
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2340
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 563</span>
|
|
2342
2341
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_bottom</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2343
2342
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-value">:bottom</span>)
|
|
2344
2343
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2371,7 +2370,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2371
2370
|
|
|
2372
2371
|
|
|
2373
2372
|
<div class="method-source-code" id="get_row_border_diagonal-source">
|
|
2374
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2373
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 567</span>
|
|
2375
2374
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_diagonal</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2376
2375
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-value">:diagonal</span>)
|
|
2377
2376
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2404,7 +2403,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2404
2403
|
|
|
2405
2404
|
|
|
2406
2405
|
<div class="method-source-code" id="get_row_border_left-source">
|
|
2407
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2406
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 555</span>
|
|
2408
2407
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_left</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2409
2408
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-value">:left</span>)
|
|
2410
2409
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2437,7 +2436,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2437
2436
|
|
|
2438
2437
|
|
|
2439
2438
|
<div class="method-source-code" id="get_row_border_right-source">
|
|
2440
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2439
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 559</span>
|
|
2441
2440
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_right</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2442
2441
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-value">:right</span>)
|
|
2443
2442
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2470,7 +2469,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2470
2469
|
|
|
2471
2470
|
|
|
2472
2471
|
<div class="method-source-code" id="get_row_border_top-source">
|
|
2473
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2472
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 551</span>
|
|
2474
2473
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_top</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2475
2474
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-value">:top</span>)
|
|
2476
2475
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2503,7 +2502,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2503
2502
|
|
|
2504
2503
|
|
|
2505
2504
|
<div class="method-source-code" id="get_row_fill-source">
|
|
2506
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2505
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 501</span>
|
|
2507
2506
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2508
2507
|
(<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&&</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_fill_color</span>
|
|
2509
2508
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2536,7 +2535,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2536
2535
|
|
|
2537
2536
|
|
|
2538
2537
|
<div class="method-source-code" id="get_row_font_color-source">
|
|
2539
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2538
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 513</span>
|
|
2540
2539
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2541
2540
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
|
|
2542
2541
|
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">color</span>
|
|
@@ -2571,7 +2570,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2571
2570
|
|
|
2572
2571
|
|
|
2573
2572
|
<div class="method-source-code" id="get_row_font_name-source">
|
|
2574
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2573
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 505</span>
|
|
2575
2574
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2576
2575
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
|
|
2577
2576
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2604,7 +2603,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2604
2603
|
|
|
2605
2604
|
|
|
2606
2605
|
<div class="method-source-code" id="get_row_font_size-source">
|
|
2607
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2606
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 509</span>
|
|
2608
2607
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2609
2608
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
|
|
2610
2609
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2637,7 +2636,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2637
2636
|
|
|
2638
2637
|
|
|
2639
2638
|
<div class="method-source-code" id="get_row_height-source">
|
|
2640
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2639
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 535</span>
|
|
2641
2640
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2642
2641
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2643
2642
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
|
@@ -2674,7 +2673,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2674
2673
|
|
|
2675
2674
|
|
|
2676
2675
|
<div class="method-source-code" id="get_row_horizontal_alignment-source">
|
|
2677
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2676
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 543</span>
|
|
2678
2677
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2679
2678
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">true</span>)
|
|
2680
2679
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2707,7 +2706,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2707
2706
|
|
|
2708
2707
|
|
|
2709
2708
|
<div class="method-source-code" id="get_row_vertical_alignment-source">
|
|
2710
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2709
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 547</span>
|
|
2711
2710
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
2712
2711
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">false</span>)
|
|
2713
2712
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -2821,7 +2820,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2821
2820
|
|
|
2822
2821
|
|
|
2823
2822
|
<div class="method-source-code" id="insert_cell-source">
|
|
2824
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2823
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 452</span>
|
|
2825
2824
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_cell</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">data</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">shift</span> = <span class="ruby-keyword">nil</span>)
|
|
2826
2825
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2827
2826
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
|
|
@@ -2864,15 +2863,15 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
|
2864
2863
|
|
|
2865
2864
|
<div class="method-description">
|
|
2866
2865
|
|
|
2867
|
-
<p>
|
|
2868
|
-
styles from column to left
|
|
2869
|
-
reference cells which are being “pushed
|
|
2866
|
+
<p>Inserts column at <code>column_index</code>, pushes everything right, takes
|
|
2867
|
+
styles from column to left NOTE: use of this method will break formulas
|
|
2868
|
+
which reference cells which are being “pushed right”</p>
|
|
2870
2869
|
|
|
2871
2870
|
|
|
2872
2871
|
|
|
2873
2872
|
|
|
2874
2873
|
<div class="method-source-code" id="insert_column-source">
|
|
2875
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2874
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 425</span>
|
|
2876
2875
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
|
2877
2876
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2878
2877
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
|
@@ -2922,10 +2921,9 @@ reference cells which are being “pushed down”</p>
|
|
|
2922
2921
|
|
|
2923
2922
|
<div class="method-description">
|
|
2924
2923
|
|
|
2925
|
-
<
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
being “pushed down”</p>
|
|
2924
|
+
<p>Inserts row at row_index, pushes down, copies style from the row above
|
|
2925
|
+
(that's what Excel 2013 does!) NOTE: use of this method will break
|
|
2926
|
+
formulas which reference cells which are being “pushed down”</p>
|
|
2929
2927
|
|
|
2930
2928
|
|
|
2931
2929
|
|
|
@@ -2936,23 +2934,28 @@ being “pushed down”</p>
|
|
|
2936
2934
|
<span class="ruby-identifier">validate_workbook</span>
|
|
2937
2935
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
|
2938
2936
|
|
|
2939
|
-
<span class="ruby-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
<span class="ruby-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2937
|
+
<span class="ruby-identifier">old_row</span> = <span class="ruby-identifier">new_cells</span> = <span class="ruby-keyword">nil</span>
|
|
2938
|
+
|
|
2939
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">row_index</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> <span class="ruby-keyword">then</span>
|
|
2940
|
+
<span class="ruby-identifier">old_row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row_index</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>]
|
|
2941
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">old_row</span> <span class="ruby-keyword">then</span>
|
|
2942
|
+
<span class="ruby-identifier">new_cells</span> = <span class="ruby-identifier">old_row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
|
2943
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">nil</span>
|
|
2944
|
+
<span class="ruby-keyword">else</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Cell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">style_index</span>)
|
|
2945
|
+
<span class="ruby-keyword">end</span> }
|
|
2946
|
+
<span class="ruby-keyword">end</span>
|
|
2948
2947
|
<span class="ruby-keyword">end</span>
|
|
2949
2948
|
|
|
2949
|
+
<span class="ruby-identifier">row0</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-value">0</span>]
|
|
2950
|
+
<span class="ruby-identifier">new_cells</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>((<span class="ruby-identifier">row0</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">row0</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>)
|
|
2951
|
+
|
|
2950
2952
|
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-keyword">nil</span>)
|
|
2951
2953
|
<span class="ruby-identifier">new_row</span> = <span class="ruby-identifier">add_row</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-value">:cells</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">new_cells</span>, <span class="ruby-value">:style_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">old_row</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">old_row</span>.<span class="ruby-identifier">style_index</span>)
|
|
2952
2954
|
|
|
2953
|
-
<span class="ruby-comment">#
|
|
2955
|
+
<span class="ruby-comment"># Update row values for all rows below</span>
|
|
2954
2956
|
<span class="ruby-identifier">row_index</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
|
2955
2957
|
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">i</span>]
|
|
2958
|
+
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">nil?</span>
|
|
2956
2959
|
<span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">row</span> = <span class="ruby-identifier">i</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span> }
|
|
2957
2960
|
}
|
|
2958
2961
|
|
|
@@ -2987,7 +2990,7 @@ being “pushed down”</p>
|
|
|
2987
2990
|
|
|
2988
2991
|
|
|
2989
2992
|
<div class="method-source-code" id="is_column_bolded-source">
|
|
2990
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
2993
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 591</span>
|
|
2991
2994
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
2992
2995
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
2993
2996
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
|
|
@@ -3021,7 +3024,7 @@ being “pushed down”</p>
|
|
|
3021
3024
|
|
|
3022
3025
|
|
|
3023
3026
|
<div class="method-source-code" id="is_column_italicized-source">
|
|
3024
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3027
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 586</span>
|
|
3025
3028
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
3026
3029
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
3027
3030
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
|
|
@@ -3055,7 +3058,7 @@ being “pushed down”</p>
|
|
|
3055
3058
|
|
|
3056
3059
|
|
|
3057
3060
|
<div class="method-source-code" id="is_column_struckthrough-source">
|
|
3058
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3061
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 601</span>
|
|
3059
3062
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
3060
3063
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
3061
3064
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
|
@@ -3089,7 +3092,7 @@ being “pushed down”</p>
|
|
|
3089
3092
|
|
|
3090
3093
|
|
|
3091
3094
|
<div class="method-source-code" id="is_column_underlined-source">
|
|
3092
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3095
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 596</span>
|
|
3093
3096
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
|
3094
3097
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
|
3095
3098
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
|
|
@@ -3123,7 +3126,7 @@ being “pushed down”</p>
|
|
|
3123
3126
|
|
|
3124
3127
|
|
|
3125
3128
|
<div class="method-source-code" id="is_row_bolded-source">
|
|
3126
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3129
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 523</span>
|
|
3127
3130
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
3128
3131
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
|
|
3129
3132
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -3156,7 +3159,7 @@ being “pushed down”</p>
|
|
|
3156
3159
|
|
|
3157
3160
|
|
|
3158
3161
|
<div class="method-source-code" id="is_row_italicized-source">
|
|
3159
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3162
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 519</span>
|
|
3160
3163
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
3161
3164
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
|
|
3162
3165
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -3189,7 +3192,7 @@ being “pushed down”</p>
|
|
|
3189
3192
|
|
|
3190
3193
|
|
|
3191
3194
|
<div class="method-source-code" id="is_row_struckthrough-source">
|
|
3192
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3195
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 531</span>
|
|
3193
3196
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
3194
3197
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
|
3195
3198
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -3222,7 +3225,7 @@ being “pushed down”</p>
|
|
|
3222
3225
|
|
|
3223
3226
|
|
|
3224
3227
|
<div class="method-source-code" id="is_row_underlined-source">
|
|
3225
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line
|
|
3228
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/worksheet.rb, line 527</span>
|
|
3226
3229
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
|
3227
3230
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
|
|
3228
3231
|
<span class="ruby-keyword">end</span></pre>
|