rubyXL 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +5 -10
- data/lib/rubyXL/objects/color.rb +3 -3
- data/lib/rubyXL/objects/column_range.rb +4 -4
- data/lib/rubyXL/objects/container_nodes.rb +2 -2
- data/lib/rubyXL/objects/fill.rb +7 -7
- data/lib/rubyXL/objects/filters.rb +4 -4
- data/lib/rubyXL/objects/ooxml_object.rb +12 -7
- data/lib/rubyXL/objects/sheet_common.rb +6 -6
- data/lib/rubyXL/objects/sheet_data.rb +9 -9
- data/lib/rubyXL/objects/theme.rb +2 -0
- data/lib/rubyXL/objects/workbook.rb +1 -1
- data/lib/rubyXL/objects/worksheet.rb +11 -11
- data/lib/rubyXL/worksheet.rb +2 -18
- data/rdoc/README_rdoc.html +31 -28
- 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/Authors.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +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 +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +1 -1
- data/rdoc/RubyXL/ChartRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.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 +3 -3
- 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/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.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 +12 -12
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.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/CustomPropertiesFile.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/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +6 -6
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DrawingRelationshipsFile.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/ExternalLinksFile.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 +3 -3
- 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/GenericStorageObject.html +3 -3
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +67 -31
- data/rdoc/RubyXL/LegacyWorkbook.html +9 -9
- data/rdoc/RubyXL/LegacyWorksheet.html +29 -29
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +2 -2
- 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 +21 -19
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +7 -7
- 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 +1 -1
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +5 -5
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.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 +2 -2
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/SheetRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +2 -2
- data/rdoc/RubyXL/Stop.html +2 -2
- 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/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +2 -2
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +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/WorkbookRoot.html +2 -2
- 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 +37 -37
- data/rdoc/index.html +2 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +68 -63
- data/rubyXL.gemspec +6 -5
- data/spec/lib/worksheet_spec.rb +31 -3
- metadata +92 -80
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7a54bc20d6cdffb9452628d880575ec195885077
|
4
|
+
data.tar.gz: 0c2421c0e01f4c35c4e9aa93ff9c11268e8da399
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 579c2a42754270f6c796647e1d46bd282a9806ca21056ae194929dab205aaf6571505289038e67e4d3befed6492d8514f170fb5cff941e1a2b9dbe5a4d38b58f
|
7
|
+
data.tar.gz: 28261b6ba4913eec6b9bba20c8a21875d35489581791845ce70869f3e9346395f9badadec97e037e29c97880d912febf9d90d7ce88b78412a8b9f0b9cdd04219
|
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.2
|
data/lib/rubyXL/cell.rb
CHANGED
@@ -114,27 +114,27 @@ module RubyXL
|
|
114
114
|
self.style_index = workbook.modify_text_wrap(self.style_index, wrap)
|
115
115
|
end
|
116
116
|
|
117
|
-
|
117
|
+
def change_border(direction, weight)
|
118
|
+
validate_worksheet
|
119
|
+
self.style_index = workbook.modify_border(self.style_index, direction, weight)
|
120
|
+
end
|
121
|
+
|
118
122
|
def change_border_top(weight = 'thin')
|
119
123
|
change_border(:top, weight)
|
120
124
|
end
|
121
125
|
|
122
|
-
# changes left border of cell
|
123
126
|
def change_border_left(weight = 'thin')
|
124
127
|
change_border(:left, weight)
|
125
128
|
end
|
126
129
|
|
127
|
-
# changes right border of cell
|
128
130
|
def change_border_right(weight = 'thin')
|
129
131
|
change_border(:right, weight)
|
130
132
|
end
|
131
133
|
|
132
|
-
# changes bottom border of cell
|
133
134
|
def change_border_bottom(weight = 'thin')
|
134
135
|
change_border(:bottom, weight)
|
135
136
|
end
|
136
137
|
|
137
|
-
# changes diagonal border of cell
|
138
138
|
def change_border_diagonal(weight = 'thin')
|
139
139
|
change_border(:diagonal, weight)
|
140
140
|
end
|
@@ -258,11 +258,6 @@ module RubyXL
|
|
258
258
|
|
259
259
|
private
|
260
260
|
|
261
|
-
def change_border(direction, weight)
|
262
|
-
validate_worksheet
|
263
|
-
self.style_index = workbook.modify_border(self.style_index, direction, weight)
|
264
|
-
end
|
265
|
-
|
266
261
|
def get_border(direction)
|
267
262
|
validate_worksheet
|
268
263
|
get_cell_border.get_edge_style(direction)
|
data/lib/rubyXL/objects/color.rb
CHANGED
@@ -5,10 +5,10 @@ module RubyXL
|
|
5
5
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_color-4.html
|
6
6
|
class Color < OOXMLObject
|
7
7
|
define_attribute(:auto, :bool)
|
8
|
-
define_attribute(:indexed, :
|
8
|
+
define_attribute(:indexed, :uint)
|
9
9
|
define_attribute(:rgb, :string)
|
10
|
-
define_attribute(:theme, :
|
11
|
-
define_attribute(:tint, :
|
10
|
+
define_attribute(:theme, :uint)
|
11
|
+
define_attribute(:tint, :double, :default => 0.0)
|
12
12
|
define_element_name 'color'
|
13
13
|
|
14
14
|
#validates hex color code, no '#' allowed
|
@@ -4,10 +4,10 @@ module RubyXL
|
|
4
4
|
|
5
5
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_col-1.html
|
6
6
|
class ColumnRange < OOXMLObject
|
7
|
-
define_attribute(:min, :
|
8
|
-
define_attribute(:max, :
|
9
|
-
define_attribute(:width, :
|
10
|
-
define_attribute(:style, :
|
7
|
+
define_attribute(:min, :uint, :required => true)
|
8
|
+
define_attribute(:max, :uint, :required => true)
|
9
|
+
define_attribute(:width, :double)
|
10
|
+
define_attribute(:style, :uint, :default => 0, :accessor => :style_index)
|
11
11
|
define_attribute(:hidden, :bool, :default => false)
|
12
12
|
define_attribute(:bestFit, :bool, :default => false)
|
13
13
|
define_attribute(:customWidth, :bool, :default => false)
|
@@ -16,7 +16,7 @@ module RubyXL
|
|
16
16
|
end
|
17
17
|
|
18
18
|
class FloatValue < OOXMLObject
|
19
|
-
define_attribute(:val, :
|
19
|
+
define_attribute(:val, :double, :required => true)
|
20
20
|
end
|
21
21
|
|
22
22
|
class BooleanNode < OOXMLObject
|
@@ -32,7 +32,7 @@ module RubyXL
|
|
32
32
|
end
|
33
33
|
|
34
34
|
class FloatNode < OOXMLObject
|
35
|
-
define_attribute(:_, :
|
35
|
+
define_attribute(:_, :double, :accessor => :value)
|
36
36
|
end
|
37
37
|
|
38
38
|
class StringNodeW3C < OOXMLObject
|
data/lib/rubyXL/objects/fill.rb
CHANGED
@@ -3,9 +3,9 @@ require 'rubyXL/objects/simple_types'
|
|
3
3
|
|
4
4
|
module RubyXL
|
5
5
|
|
6
|
-
# http://www.
|
6
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_stop-1.html
|
7
7
|
class Stop < OOXMLObject
|
8
|
-
define_attribute(:position, :
|
8
|
+
define_attribute(:position, :double, :required => true)
|
9
9
|
define_child_node(RubyXL::Color)
|
10
10
|
define_element_name 'stop'
|
11
11
|
end
|
@@ -21,11 +21,11 @@ module RubyXL
|
|
21
21
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_gradientFill-1.html
|
22
22
|
class GradientFill < OOXMLObject
|
23
23
|
define_attribute(:type, RubyXL::ST_GradientType, :default => 'linear')
|
24
|
-
define_attribute(:degree, :
|
25
|
-
define_attribute(:left, :
|
26
|
-
define_attribute(:right, :
|
27
|
-
define_attribute(:top, :
|
28
|
-
define_attribute(:bottom, :
|
24
|
+
define_attribute(:degree, :double, :default => 0)
|
25
|
+
define_attribute(:left, :double, :default => 0)
|
26
|
+
define_attribute(:right, :double, :default => 0)
|
27
|
+
define_attribute(:top, :double, :default => 0)
|
28
|
+
define_attribute(:bottom, :double, :default => 0)
|
29
29
|
define_child_node(RubyXL::Stop, :collection => true)
|
30
30
|
define_element_name 'gradientFill'
|
31
31
|
end
|
@@ -29,8 +29,8 @@ module RubyXL
|
|
29
29
|
class Top10 < OOXMLObject
|
30
30
|
define_attribute(:top, :bool, :default => true)
|
31
31
|
define_attribute(:percent, :bool, :default => false)
|
32
|
-
define_attribute(:val, :
|
33
|
-
define_attribute(:filterVal, :
|
32
|
+
define_attribute(:val, :double, :required => true)
|
33
|
+
define_attribute(:filterVal, :double)
|
34
34
|
define_element_name 'top10'
|
35
35
|
end
|
36
36
|
|
@@ -51,8 +51,8 @@ module RubyXL
|
|
51
51
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_dynamicFilter-1.html
|
52
52
|
class DynamicFilter < OOXMLObject
|
53
53
|
define_attribute(:type, RubyXL::ST_DynamicFilterType, :required => true)
|
54
|
-
define_attribute(:val, :
|
55
|
-
define_attribute(:maxVal, :
|
54
|
+
define_attribute(:val, :double)
|
55
|
+
define_attribute(:maxVal, :double)
|
56
56
|
define_element_name 'dynamicFilter'
|
57
57
|
end
|
58
58
|
|
@@ -24,7 +24,8 @@ module RubyXL
|
|
24
24
|
# * Special attibute name <tt>'_'</tt> (underscore) denotes the value of the element rather than attribute.
|
25
25
|
# * +attribute_type+ - Specifies the conversion type for the attribute when parsing. Available options are:
|
26
26
|
# * +:int+ - <tt>Integer</tt>
|
27
|
-
# * +:
|
27
|
+
# * +:uint+ - Unsigned <tt>Integer</tt>
|
28
|
+
# * +:double+ - <tt>Float</tt></u>
|
28
29
|
# * +:string+ - <tt>String</tt> (no conversion)
|
29
30
|
# * +:sqref+ - RubyXL::Sqref
|
30
31
|
# * +:ref+ - RubyXL::Reference
|
@@ -89,7 +90,7 @@ module RubyXL
|
|
89
90
|
end
|
90
91
|
|
91
92
|
def define_count_attribute
|
92
|
-
define_attribute(:count, :
|
93
|
+
define_attribute(:count, :uint, :required => true)
|
93
94
|
end
|
94
95
|
private :define_count_attribute
|
95
96
|
|
@@ -190,13 +191,17 @@ module RubyXL
|
|
190
191
|
def process_attribute(obj, raw_value, params)
|
191
192
|
val = raw_value &&
|
192
193
|
case params[:attr_type]
|
193
|
-
when :
|
194
|
-
when :float then Float(raw_value)
|
194
|
+
when :double then Float(raw_value) # http://www.datypic.com/sc/xsd/t-xsd_double.html
|
195
195
|
when :string then raw_value
|
196
196
|
when Array then raw_value # Case of Simple Types
|
197
197
|
when :sqref then RubyXL::Sqref.new(raw_value)
|
198
198
|
when :ref then RubyXL::Reference.new(raw_value)
|
199
199
|
when :bool then ['1', 'true'].include?(raw_value)
|
200
|
+
when :int then Integer(raw_value)
|
201
|
+
when :uint then
|
202
|
+
v = Integer(raw_value)
|
203
|
+
raise ArgumentError.new("invalid value for unsigned Integer(): \"#{raw_value}\"") if v < 0
|
204
|
+
v
|
200
205
|
end
|
201
206
|
obj.send("#{params[:accessor]}=", val)
|
202
207
|
end
|
@@ -275,8 +280,8 @@ module RubyXL
|
|
275
280
|
|
276
281
|
val = val &&
|
277
282
|
case v[:attr_type]
|
278
|
-
when :bool
|
279
|
-
when :
|
283
|
+
when :bool then val ? '1' : '0'
|
284
|
+
when :double then val.to_s.gsub(/\.0*\Z/, '') # Trim trailing zeroes
|
280
285
|
else val
|
281
286
|
end
|
282
287
|
|
@@ -385,7 +390,7 @@ module RubyXL
|
|
385
390
|
class << self
|
386
391
|
def define_count_attribute
|
387
392
|
# Count will be inherited from Array. so no need to define it explicitly.
|
388
|
-
define_attribute(:count, :
|
393
|
+
define_attribute(:count, :uint, :required => true, :computed => true)
|
389
394
|
end
|
390
395
|
protected :define_count_attribute
|
391
396
|
end
|
@@ -23,12 +23,12 @@ module RubyXL
|
|
23
23
|
|
24
24
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_pageMargins-1.html
|
25
25
|
class PageMargins < OOXMLObject
|
26
|
-
define_attribute(:left, :
|
27
|
-
define_attribute(:right, :
|
28
|
-
define_attribute(:top, :
|
29
|
-
define_attribute(:bottom, :
|
30
|
-
define_attribute(:header, :
|
31
|
-
define_attribute(:footer, :
|
26
|
+
define_attribute(:left, :double, :required => true)
|
27
|
+
define_attribute(:right, :double, :required => true)
|
28
|
+
define_attribute(:top, :double, :required => true)
|
29
|
+
define_attribute(:bottom, :double, :required => true)
|
30
|
+
define_attribute(:header, :double, :required => true)
|
31
|
+
define_attribute(:footer, :double, :required => true)
|
32
32
|
define_element_name 'pageMargins'
|
33
33
|
end
|
34
34
|
|
@@ -98,7 +98,7 @@ module RubyXL
|
|
98
98
|
define_attribute(:spans, :string)
|
99
99
|
define_attribute(:s, :int, :default => 0, :accessor => :style_index)
|
100
100
|
define_attribute(:customFormat, :bool, :default => false)
|
101
|
-
define_attribute(:ht, :
|
101
|
+
define_attribute(:ht, :double)
|
102
102
|
define_attribute(:hidden, :bool, :default => false)
|
103
103
|
define_attribute(:customHeight, :bool, :default => false)
|
104
104
|
define_attribute(:outlineLevel, :int, :default => 0)
|
@@ -125,21 +125,21 @@ module RubyXL
|
|
125
125
|
|
126
126
|
def insert_cell_shift_right(c, col_index)
|
127
127
|
cells.insert(col_index, c)
|
128
|
-
col_index
|
129
|
-
cell = cells[col]
|
130
|
-
next if cell.nil?
|
131
|
-
cell.column = col
|
132
|
-
}
|
128
|
+
update_cell_coords(col_index)
|
133
129
|
end
|
134
130
|
|
135
131
|
def delete_cell_shift_left(col_index)
|
136
132
|
cells.delete_at(col_index)
|
137
|
-
col_index
|
138
|
-
|
133
|
+
update_cell_coords(col_index)
|
134
|
+
end
|
135
|
+
|
136
|
+
def update_cell_coords(start_from_index)
|
137
|
+
cells.drop(start_from_index).each_with_index { |cell, i|
|
139
138
|
next if cell.nil?
|
140
|
-
cell.column =
|
139
|
+
cell.column = start_from_index + i
|
141
140
|
}
|
142
141
|
end
|
142
|
+
private :update_cell_coords
|
143
143
|
|
144
144
|
def xf
|
145
145
|
@worksheet.workbook.cell_xfs[self.style_index || 0]
|
data/lib/rubyXL/objects/theme.rb
CHANGED
@@ -29,6 +29,7 @@ module RubyXL
|
|
29
29
|
|
30
30
|
# http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
|
31
31
|
class CT_ScRgbColor < OOXMLObject
|
32
|
+
# -- Choice [0..*] (a:EG_ColorTransform)
|
32
33
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
33
34
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
34
35
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
@@ -65,6 +66,7 @@ module RubyXL
|
|
65
66
|
|
66
67
|
# http://www.schemacentral.com/sc/ooxml/e-a_srgbClr-1.html
|
67
68
|
class CT_SRgbColor < OOXMLObject
|
69
|
+
# -- Choice [0..*] (a:EG_ColorTransform)
|
68
70
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:tint')
|
69
71
|
define_child_node(RubyXL::IntegerValue, :node_name => 'a:shade')
|
70
72
|
define_child_node(RubyXL::BooleanValue, :node_name => 'a:comp')
|
@@ -188,7 +188,7 @@ module RubyXL
|
|
188
188
|
define_attribute(:refMode, RubyXL::ST_RefMode, :default => 'A1')
|
189
189
|
define_attribute(:iterate, :bool, :default => false)
|
190
190
|
define_attribute(:iterateCount, :int, :default => 100)
|
191
|
-
define_attribute(:iterateDelta, :
|
191
|
+
define_attribute(:iterateDelta, :double, :default => 0.001)
|
192
192
|
define_attribute(:fullPrecision, :bool, :default => true)
|
193
193
|
define_attribute(:calcCompleted, :bool, :default => true)
|
194
194
|
define_attribute(:calcOnSave, :bool, :default => true)
|
@@ -53,15 +53,15 @@ module RubyXL
|
|
53
53
|
end
|
54
54
|
|
55
55
|
class WorksheetFormatProperties < OOXMLObject
|
56
|
-
define_attribute(:baseColWidth, :int,
|
57
|
-
define_attribute(:defaultColWidth, :
|
58
|
-
define_attribute(:defaultRowHeight, :
|
59
|
-
define_attribute(:customHeight, :bool,
|
60
|
-
define_attribute(:zeroHeight, :bool,
|
61
|
-
define_attribute(:thickTop, :bool,
|
62
|
-
define_attribute(:thickBottom, :bool,
|
63
|
-
define_attribute(:outlineLevelRow, :int,
|
64
|
-
define_attribute(:outlineLevelCol, :int,
|
56
|
+
define_attribute(:baseColWidth, :int, :default => 8)
|
57
|
+
define_attribute(:defaultColWidth, :double)
|
58
|
+
define_attribute(:defaultRowHeight, :double, :required => true)
|
59
|
+
define_attribute(:customHeight, :bool, :default => false)
|
60
|
+
define_attribute(:zeroHeight, :bool, :default => false)
|
61
|
+
define_attribute(:thickTop, :bool, :default => false)
|
62
|
+
define_attribute(:thickBottom, :bool, :default => false)
|
63
|
+
define_attribute(:outlineLevelRow, :int, :default => 0)
|
64
|
+
define_attribute(:outlineLevelCol, :int, :default => 0)
|
65
65
|
define_element_name 'sheetFormatPr'
|
66
66
|
end
|
67
67
|
|
@@ -355,8 +355,8 @@ module RubyXL
|
|
355
355
|
|
356
356
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_pane-1.html
|
357
357
|
class Pane < OOXMLObject
|
358
|
-
define_attribute(:xSplit, :
|
359
|
-
define_attribute(:ySplit, :
|
358
|
+
define_attribute(:xSplit, :double)
|
359
|
+
define_attribute(:ySplit, :double)
|
360
360
|
define_attribute(:topLeftCell, :string)
|
361
361
|
define_attribute(:activePane, RubyXL::ST_Pane, :default => 'topLeft', )
|
362
362
|
define_attribute(:state, RubyXL::ST_PaneState, :default=> 'split')
|
data/lib/rubyXL/worksheet.rb
CHANGED
@@ -900,15 +900,7 @@ module LegacyWorksheet
|
|
900
900
|
sheet_data.rows[row].style_index = @workbook.modify_border(get_row_style(row), direction, weight)
|
901
901
|
|
902
902
|
sheet_data[row].cells.each { |c|
|
903
|
-
|
904
|
-
case direction
|
905
|
-
when :top then c.change_border_top(weight)
|
906
|
-
when :left then c.change_border_left(weight)
|
907
|
-
when :right then c.change_border_right(weight)
|
908
|
-
when :bottom then c.change_border_bottom(weight)
|
909
|
-
when :diagonal then c.change_border_diagonal(weight)
|
910
|
-
else raise 'invalid direction'
|
911
|
-
end
|
903
|
+
c.change_border(direction, weight) unless c.nil?
|
912
904
|
}
|
913
905
|
end
|
914
906
|
|
@@ -920,15 +912,7 @@ module LegacyWorksheet
|
|
920
912
|
|
921
913
|
sheet_data.rows.each { |row|
|
922
914
|
c = row.cells[column_index]
|
923
|
-
|
924
|
-
case direction
|
925
|
-
when :top then c.change_border_top(weight)
|
926
|
-
when :left then c.change_border_left(weight)
|
927
|
-
when :right then c.change_border_right(weight)
|
928
|
-
when :bottom then c.change_border_bottom(weight)
|
929
|
-
when :diagonal then c.change_border_diagonal(weight)
|
930
|
-
else raise 'invalid direction'
|
931
|
-
end
|
915
|
+
c.change_border(direction, weight) unless c.nil?
|
932
916
|
}
|
933
917
|
end
|
934
918
|
|
data/rdoc/README_rdoc.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>README - rubyXL 3.0.
|
7
|
+
<title>README - rubyXL 3.0.2</title>
|
8
8
|
|
9
9
|
<link href="./fonts.css" rel="stylesheet">
|
10
10
|
<link href="./rdoc.css" rel="stylesheet">
|
@@ -119,13 +119,16 @@
|
|
119
119
|
|
120
120
|
<h1 id="label-rubyXL">rubyXL<span><a href="#label-rubyXL">¶</a> <a href="#documentation">↑</a></span></h1>
|
121
121
|
|
122
|
+
<p><a href="https://codeclimate.com/github/weshatheleopard/rubyXL"><img
|
123
|
+
src="https://codeclimate.com/github/weshatheleopard/rubyXL.png"></a></p>
|
124
|
+
|
122
125
|
<h2 id="label-To+Install%3A">To Install:<span><a href="#label-To+Install%3A">¶</a> <a href="#documentation">↑</a></span></h2>
|
123
126
|
|
124
127
|
<pre>gem install rubyXL</pre>
|
125
128
|
|
126
129
|
<h2 id="label-To+Use%3A">To Use:<span><a href="#label-To+Use%3A">¶</a> <a href="#documentation">↑</a></span></h2>
|
127
130
|
|
128
|
-
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string"
|
131
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'rubyXL'</span> <span class="ruby-comment"># Assuming rubygems is already required</span>
|
129
132
|
</pre>
|
130
133
|
|
131
134
|
<h3 id="label-Parsing+an+existing+workbook">Parsing an existing workbook<span><a href="#label-Parsing+an+existing+workbook">¶</a> <a href="#documentation">↑</a></span></h3>
|
@@ -142,7 +145,7 @@
|
|
142
145
|
|
143
146
|
<pre>workbook.worksheets[0] # Returns first worksheet
|
144
147
|
workbook[0] # Returns first worksheet
|
145
|
-
workbook[
|
148
|
+
workbook['Sheet1'] # Finds and returns worksheet titled "Sheet1"</pre>
|
146
149
|
|
147
150
|
<h4 id="label-Accessing+just+the+values">Accessing just the values<span><a href="#label-Accessing+just+the+values">¶</a> <a href="#documentation">↑</a></span></h4>
|
148
151
|
|
@@ -226,16 +229,16 @@ worksheet.get_column_border_right(0)</pre>
|
|
226
229
|
|
227
230
|
<h4 id="label-Adding+Worksheets">Adding Worksheets<span><a href="#label-Adding+Worksheets">¶</a> <a href="#documentation">↑</a></span></h4>
|
228
231
|
|
229
|
-
<pre>worksheet = workbook.add_worksheet(
|
232
|
+
<pre>worksheet = workbook.add_worksheet('Sheet2')</pre>
|
230
233
|
|
231
234
|
<h4 id="label-Renaming+Worksheets">Renaming Worksheets<span><a href="#label-Renaming+Worksheets">¶</a> <a href="#documentation">↑</a></span></h4>
|
232
235
|
|
233
|
-
<pre>worksheet.sheet_name =
|
236
|
+
<pre>worksheet.sheet_name = 'Cool New Name'</pre>
|
234
237
|
|
235
238
|
<h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">¶</a> <a href="#documentation">↑</a></span></h4>
|
236
239
|
|
237
|
-
<pre>worksheet.add_cell(0, 0,
|
238
|
-
worksheet.add_cell(0, 1,
|
240
|
+
<pre>worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string "A1"
|
241
|
+
worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
|
239
242
|
|
240
243
|
<h4 id="label-Changing+Cells">Changing Cells<span><a href="#label-Changing+Cells">¶</a> <a href="#documentation">↑</a></span></h4>
|
241
244
|
|
@@ -245,21 +248,21 @@ worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
|
|
245
248
|
|
246
249
|
<pre>worksheet.sheet_data[0][0].change_font_bold(true) # Makes A1 bold
|
247
250
|
worksheet.change_row_italics(0,true) # Makes first row italicized
|
248
|
-
worksheet.change_column_font_name(0,
|
251
|
+
worksheet.change_column_font_name(0, 'Courier') # Makes first column have font Courier</pre>
|
249
252
|
|
250
253
|
<h4 id="label-Changing+Fills+++++">Changing Fills <span><a href="#label-Changing+Fills+++++">¶</a> <a href="#documentation">↑</a></span></h4>
|
251
254
|
|
252
|
-
<pre>worksheet.sheet_data[0][0].change_fill(
|
253
|
-
worksheet.change_row_fill(0,
|
254
|
-
worksheet.change_column_fill(0,
|
255
|
+
<pre>worksheet.sheet_data[0][0].change_fill('0ba53d') # Sets A1 to have fill #0ba53d
|
256
|
+
worksheet.change_row_fill(0, '0ba53d') # Sets first row to have fill #0ba53d
|
257
|
+
worksheet.change_column_fill(0, '0ba53d') # Sets first column to have fill #0ba53d</pre>
|
255
258
|
|
256
259
|
<h4 id="label-Changing+Borders">Changing Borders<span><a href="#label-Changing+Borders">¶</a> <a href="#documentation">↑</a></span></h4>
|
257
260
|
|
258
261
|
<pre># Possible weights: hairline, thin, medium, thick
|
259
262
|
# Possible "directions": top, bottom, left, right, diagonal
|
260
|
-
worksheet.sheet_data[0][0].change_border_top(
|
261
|
-
worksheet.change_row_border_left(0,
|
262
|
-
worksheet.change_column_border_diagonal(0,
|
263
|
+
worksheet.sheet_data[0][0].change_border_top('thin') # Sets A1 to have a top, thin border
|
264
|
+
worksheet.change_row_border_left(0, 'hairline') # Sets first row to have a left, hairline border
|
265
|
+
worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have diagonal, medium border</pre>
|
263
266
|
|
264
267
|
<h4 id="label-Changing+Alignment">Changing Alignment<span><a href="#label-Changing+Alignment">¶</a> <a href="#documentation">↑</a></span></h4>
|
265
268
|
|
@@ -267,17 +270,17 @@ worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have
|
|
267
270
|
|
268
271
|
<p>center, distributed, justify, left, right</p>
|
269
272
|
|
270
|
-
<pre>worksheet.sheet_data[0][0].change_horizontal_alignment(
|
271
|
-
worksheet.change_row_horizontal_alignment(0,
|
272
|
-
worksheet.change_column_horizontal_alignment(0,
|
273
|
+
<pre>worksheet.sheet_data[0][0].change_horizontal_alignment('center') # Sets A1 to be centered
|
274
|
+
worksheet.change_row_horizontal_alignment(0, 'justify') # Sets first row to be justified
|
275
|
+
worksheet.change_column_horizontal_alignment(0, 'right') # Sets first column to be right-aligned</pre>
|
273
276
|
|
274
277
|
<h5 id="label-Vertical">Vertical<span><a href="#label-Vertical">¶</a> <a href="#documentation">↑</a></span></h5>
|
275
278
|
|
276
279
|
<p>bottom, center, distributed, top</p>
|
277
280
|
|
278
|
-
<pre>worksheet.sheet_data[0][0].change_vertical_alignment(
|
279
|
-
worksheet.change_row_vertical_alignment(0,
|
280
|
-
worksheet.change_column_vertical_alignment(0,
|
281
|
+
<pre>worksheet.sheet_data[0][0].change_vertical_alignment('bottom') # Sets A1 to be bottom aligned
|
282
|
+
worksheet.change_row_vertical_alignment(0, 'distributed') # Sets first row to be distributed vertically
|
283
|
+
worksheet.change_column_vertical_alignment(0, 'top') # Sets first column to be top aligned</pre>
|
281
284
|
|
282
285
|
<h4 id="label-Changing+Row+Height">Changing Row Height<span><a href="#label-Changing+Row+Height">¶</a> <a href="#documentation">↑</a></span></h4>
|
283
286
|
|
@@ -364,8 +367,8 @@ worksheet.delete_cell(0, 0) # Deletes A1, does not shift cells</pre>
|
|
364
367
|
|
365
368
|
<h3 id="label-Miscellaneous">Miscellaneous<span><a href="#label-Miscellaneous">¶</a> <a href="#documentation">↑</a></span></h3>
|
366
369
|
|
367
|
-
<pre>Reference.ind2ref(0,0) ==
|
368
|
-
Reference.ref2ind(
|
370
|
+
<pre>Reference.ind2ref(0,0) == 'A1' # Converts row and column index to Excel-style cell reference
|
371
|
+
Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row and column index</pre>
|
369
372
|
|
370
373
|
<h2 id="label-For+more+information">For more information<span><a href="#label-For+more+information">¶</a> <a href="#documentation">↑</a></span></h2>
|
371
374
|
|
@@ -373,11 +376,11 @@ Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row a
|
|
373
376
|
|
374
377
|
<h2 id="label-Contributing+to+rubyXL">Contributing to rubyXL<span><a href="#label-Contributing+to+rubyXL">¶</a> <a href="#documentation">↑</a></span></h2>
|
375
378
|
<ul><li>
|
376
|
-
<p>Check out the latest master to make sure the feature hasn
|
377
|
-
implemented or the bug hasn
|
379
|
+
<p>Check out the latest master to make sure the feature hasn't been
|
380
|
+
implemented or the bug hasn't been fixed yet</p>
|
378
381
|
</li><li>
|
379
|
-
<p>Check out the issue tracker to make sure someone already hasn
|
380
|
-
it and/or contributed it</p>
|
382
|
+
<p>Check out the issue tracker to make sure someone already hasn't
|
383
|
+
requested it and/or contributed it</p>
|
381
384
|
</li><li>
|
382
385
|
<p>Fork the project</p>
|
383
386
|
</li><li>
|
@@ -385,8 +388,8 @@ it and/or contributed it</p>
|
|
385
388
|
</li><li>
|
386
389
|
<p>Commit and push until you are happy with your contribution</p>
|
387
390
|
</li><li>
|
388
|
-
<p>Make sure to add tests for it. This is important so I don
|
389
|
-
future version unintentionally.</p>
|
391
|
+
<p>Make sure to add tests for it. This is important so I don't break it in
|
392
|
+
a future version unintentionally.</p>
|
390
393
|
</li><li>
|
391
394
|
<p>Please try not to mess with the Rakefile, version, or history. If you want
|
392
395
|
to have your own version, or is otherwise necessary, that is fine, but
|