rubyXL 2.4.4 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +7 -6
- data/VERSION +1 -1
- data/lib/rubyXL/objects/simple_types.rb +91 -1
- data/lib/rubyXL/objects/theme.rb +894 -90
- data/lib/rubyXL/workbook.rb +1 -1
- data/rdoc/README_rdoc.html +27 -27
- data/rdoc/RubyXL.html +176 -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/{ObjectDefaults.html → BodyProperties.html} +4 -4
- 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 +105 -0
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +105 -0
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +105 -0
- data/rdoc/RubyXL/{ColorScheme.html → CT_Backdrop.html} +4 -4
- data/rdoc/RubyXL/{HSLColor.html → CT_Bevel.html} +4 -4
- data/rdoc/RubyXL/CT_BiLevelEffect.html +105 -0
- data/rdoc/RubyXL/CT_BlendEffect.html +105 -0
- data/rdoc/RubyXL/{PresetColor.html → CT_Blip.html} +4 -4
- data/rdoc/RubyXL/CT_BlipFillProperties.html +105 -0
- data/rdoc/RubyXL/{TwoDTransform.html → CT_BlurEffect.html} +4 -4
- data/rdoc/RubyXL/{SchemeColor.html → CT_Camera.html} +4 -4
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +105 -0
- data/rdoc/RubyXL/CT_ColorMapping.html +105 -0
- data/rdoc/RubyXL/CT_ColorScheme.html +105 -0
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +105 -0
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +105 -0
- data/rdoc/RubyXL/CT_DashStopList.html +105 -0
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +105 -0
- data/rdoc/RubyXL/CT_DuotoneEffect.html +105 -0
- data/rdoc/RubyXL/CT_EffectContainer.html +105 -0
- data/rdoc/RubyXL/CT_EffectList.html +105 -0
- data/rdoc/RubyXL/CT_EffectReference.html +105 -0
- data/rdoc/RubyXL/CT_EffectStyleItem.html +105 -0
- data/rdoc/RubyXL/CT_EffectStyleList.html +105 -0
- data/rdoc/RubyXL/{RGBColorModelPercentage.html → CT_EmbeddedWAVAudioFile.html} +4 -4
- data/rdoc/RubyXL/CT_FillEffect.html +105 -0
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +105 -0
- data/rdoc/RubyXL/CT_FillStyleList.html +105 -0
- data/rdoc/RubyXL/CT_FlatText.html +105 -0
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/{ExtraColorScheme.html → CT_FontReference.html} +4 -4
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +105 -0
- data/rdoc/RubyXL/CT_GradientFillProperties.html +105 -0
- data/rdoc/RubyXL/CT_GradientStop.html +105 -0
- data/rdoc/RubyXL/CT_GradientStopList.html +105 -0
- data/rdoc/RubyXL/{FormatScheme.html → CT_HSLEffect.html} +4 -4
- data/rdoc/RubyXL/CT_HslColor.html +105 -0
- data/rdoc/RubyXL/CT_Hyperlink.html +105 -0
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +105 -0
- data/rdoc/RubyXL/CT_LightRig.html +105 -0
- data/rdoc/RubyXL/CT_LineEndProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineProperties.html +105 -0
- data/rdoc/RubyXL/CT_LineStyleList.html +105 -0
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +105 -0
- data/rdoc/RubyXL/CT_LuminanceEffect.html +105 -0
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +105 -0
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +105 -0
- 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 +105 -0
- data/rdoc/RubyXL/CT_PatternFillProperties.html +105 -0
- data/rdoc/RubyXL/CT_Point3D.html +105 -0
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +105 -0
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +105 -0
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +105 -0
- data/rdoc/RubyXL/CT_PresetTextShape.html +105 -0
- data/rdoc/RubyXL/CT_ReflectionEffect.html +105 -0
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +105 -0
- data/rdoc/RubyXL/CT_RelativeRect.html +105 -0
- data/rdoc/RubyXL/CT_SRgbColor.html +105 -0
- data/rdoc/RubyXL/CT_ScRgbColor.html +105 -0
- data/rdoc/RubyXL/CT_Scene3D.html +105 -0
- data/rdoc/RubyXL/CT_SchemeColor.html +105 -0
- data/rdoc/RubyXL/CT_Shape3D.html +105 -0
- data/rdoc/RubyXL/CT_ShapeStyle.html +105 -0
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +105 -0
- data/rdoc/RubyXL/CT_SphereCoords.html +105 -0
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +105 -0
- data/rdoc/RubyXL/CT_StyleMatrix.html +105 -0
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +105 -0
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +105 -0
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextBlipBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextCharBullet.html +105 -0
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +105 -0
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +105 -0
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +105 -0
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +105 -0
- data/rdoc/RubyXL/CT_TextSpacing.html +105 -0
- data/rdoc/RubyXL/CT_TextTabStop.html +105 -0
- data/rdoc/RubyXL/CT_TextTabStopList.html +105 -0
- data/rdoc/RubyXL/CT_TileInfoProperties.html +105 -0
- data/rdoc/RubyXL/CT_TintEffect.html +105 -0
- data/rdoc/RubyXL/CT_Transform2D.html +105 -0
- data/rdoc/RubyXL/CT_TransformEffect.html +105 -0
- data/rdoc/RubyXL/CT_Vector3D.html +105 -0
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +3 -3
- 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 +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/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 +17 -17
- 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/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 +7 -7
- 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 +8 -6
- 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 +23 -23
- data/rdoc/RubyXL/LegacyWorkbook.html +23 -23
- data/rdoc/RubyXL/LegacyWorksheet.html +29 -29
- 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 +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 +12 -12
- 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 +9 -8
- 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 +5 -5
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +35 -35
- 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 +93 -17
- metadata +179 -92
- data/rdoc/RubyXL/RGBColorModelHex.html +0 -105
- data/rdoc/RubyXL/ShapeDefault.html +0 -105
- data/rdoc/RubyXL/SystemColor.html +0 -105
data/lib/rubyXL/workbook.rb
CHANGED
@@ -42,7 +42,7 @@ module RubyXL
|
|
42
42
|
@macros = RubyXL::GenericStorage.new('xl').binary
|
43
43
|
@thumbnail = RubyXL::GenericStorage.new('docProps').binary
|
44
44
|
|
45
|
-
@theme = RubyXL::Theme.
|
45
|
+
@theme = RubyXL::Theme.defaults
|
46
46
|
@shared_strings_container = RubyXL::SharedStringsTable.new
|
47
47
|
@stylesheet = RubyXL::Stylesheet.default
|
48
48
|
@document_properties = RubyXL::DocumentProperties.new
|
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 2.
|
7
|
+
<title>README - rubyXL 2.5.0</title>
|
8
8
|
|
9
9
|
<link href="./fonts.css" rel="stylesheet">
|
10
10
|
<link href="./rdoc.css" rel="stylesheet">
|
@@ -124,7 +124,7 @@
|
|
124
124
|
|
125
125
|
<h2 id="label-To+Use%3A">To Use:<span><a href="#label-To+Use%3A">¶</a> <a href="#documentation">↑</a></span></h2>
|
126
126
|
|
127
|
-
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string"
|
127
|
+
<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>
|
128
128
|
</pre>
|
129
129
|
|
130
130
|
<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>
|
@@ -141,7 +141,7 @@
|
|
141
141
|
|
142
142
|
<pre>workbook.worksheets[0] # Returns first worksheet
|
143
143
|
workbook[0] # Returns first worksheet
|
144
|
-
workbook[
|
144
|
+
workbook['Sheet1'] # Finds and returns worksheet titled "Sheet1"</pre>
|
145
145
|
|
146
146
|
<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>
|
147
147
|
|
@@ -225,12 +225,12 @@ worksheet.get_column_border_right(0)</pre>
|
|
225
225
|
|
226
226
|
<h4 id="label-Adding+Worksheets">Adding Worksheets<span><a href="#label-Adding+Worksheets">¶</a> <a href="#documentation">↑</a></span></h4>
|
227
227
|
|
228
|
-
<pre>worksheet = workbook.add_worksheet(
|
228
|
+
<pre>worksheet = workbook.add_worksheet('Sheet2')</pre>
|
229
229
|
|
230
230
|
<h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">¶</a> <a href="#documentation">↑</a></span></h4>
|
231
231
|
|
232
|
-
<pre>worksheet.add_cell(0, 0,
|
233
|
-
worksheet.add_cell(0, 1,
|
232
|
+
<pre>worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string "A1"
|
233
|
+
worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
|
234
234
|
|
235
235
|
<h4 id="label-Changing+Cells">Changing Cells<span><a href="#label-Changing+Cells">¶</a> <a href="#documentation">↑</a></span></h4>
|
236
236
|
|
@@ -240,21 +240,21 @@ worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'</pre>
|
|
240
240
|
|
241
241
|
<pre>worksheet.sheet_data[0][0].change_font_bold(true) # Makes A1 bold
|
242
242
|
worksheet.change_row_italics(0,true) # Makes first row italicized
|
243
|
-
worksheet.change_column_font_name(0,
|
243
|
+
worksheet.change_column_font_name(0, 'Courier') # Makes first column have font Courier</pre>
|
244
244
|
|
245
245
|
<h4 id="label-Changing+Fills+++++">Changing Fills <span><a href="#label-Changing+Fills+++++">¶</a> <a href="#documentation">↑</a></span></h4>
|
246
246
|
|
247
|
-
<pre>worksheet.sheet_data[0][0].change_fill(
|
248
|
-
worksheet.change_row_fill(0,
|
249
|
-
worksheet.change_column_fill(0,
|
247
|
+
<pre>worksheet.sheet_data[0][0].change_fill('0ba53d') # Sets A1 to have fill #0ba53d
|
248
|
+
worksheet.change_row_fill(0, '0ba53d') # Sets first row to have fill #0ba53d
|
249
|
+
worksheet.change_column_fill(0, '0ba53d') # Sets first column to have fill #0ba53d</pre>
|
250
250
|
|
251
251
|
<h4 id="label-Changing+Borders">Changing Borders<span><a href="#label-Changing+Borders">¶</a> <a href="#documentation">↑</a></span></h4>
|
252
252
|
|
253
253
|
<pre># Possible weights: hairline, thin, medium, thick
|
254
254
|
# Possible "directions": top, bottom, left, right, diagonal
|
255
|
-
worksheet.sheet_data[0][0].change_border_top(
|
256
|
-
worksheet.change_row_border_left(0,
|
257
|
-
worksheet.change_column_border_diagonal(0,
|
255
|
+
worksheet.sheet_data[0][0].change_border_top('thin') # Sets A1 to have a top, thin border
|
256
|
+
worksheet.change_row_border_left(0, 'hairline') # Sets first row to have a left, hairline border
|
257
|
+
worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have diagonal, medium border</pre>
|
258
258
|
|
259
259
|
<h4 id="label-Changing+Alignment">Changing Alignment<span><a href="#label-Changing+Alignment">¶</a> <a href="#documentation">↑</a></span></h4>
|
260
260
|
|
@@ -262,17 +262,17 @@ worksheet.change_column_border_diagonal(0, 'medium') # Sets first column to have
|
|
262
262
|
|
263
263
|
<p>center, distributed, justify, left, right</p>
|
264
264
|
|
265
|
-
<pre>worksheet.sheet_data[0][0].change_horizontal_alignment(
|
266
|
-
worksheet.change_row_horizontal_alignment(0,
|
267
|
-
worksheet.change_column_horizontal_alignment(0,
|
265
|
+
<pre>worksheet.sheet_data[0][0].change_horizontal_alignment('center') # Sets A1 to be centered
|
266
|
+
worksheet.change_row_horizontal_alignment(0, 'justify') # Sets first row to be justified
|
267
|
+
worksheet.change_column_horizontal_alignment(0, 'right') # Sets first column to be right-aligned</pre>
|
268
268
|
|
269
269
|
<h5 id="label-Vertical">Vertical<span><a href="#label-Vertical">¶</a> <a href="#documentation">↑</a></span></h5>
|
270
270
|
|
271
271
|
<p>bottom, center, distributed, top</p>
|
272
272
|
|
273
|
-
<pre>worksheet.sheet_data[0][0].change_vertical_alignment(
|
274
|
-
worksheet.change_row_vertical_alignment(0,
|
275
|
-
worksheet.change_column_vertical_alignment(0,
|
273
|
+
<pre>worksheet.sheet_data[0][0].change_vertical_alignment('bottom') # Sets A1 to be bottom aligned
|
274
|
+
worksheet.change_row_vertical_alignment(0, 'distributed') # Sets first row to be distributed vertically
|
275
|
+
worksheet.change_column_vertical_alignment(0, 'top') # Sets first column to be top aligned</pre>
|
276
276
|
|
277
277
|
<h4 id="label-Changing+Row+Height">Changing Row Height<span><a href="#label-Changing+Row+Height">¶</a> <a href="#documentation">↑</a></span></h4>
|
278
278
|
|
@@ -359,8 +359,8 @@ worksheet.delete_cell(0, 0) # Deletes A1, does not shift cells</pre>
|
|
359
359
|
|
360
360
|
<h3 id="label-Miscellaneous">Miscellaneous<span><a href="#label-Miscellaneous">¶</a> <a href="#documentation">↑</a></span></h3>
|
361
361
|
|
362
|
-
<pre>Reference.ind2ref(0,0) ==
|
363
|
-
Reference.ref2ind(
|
362
|
+
<pre>Reference.ind2ref(0,0) == 'A1' # Converts row and column index to Excel-style cell reference
|
363
|
+
Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row and column index</pre>
|
364
364
|
|
365
365
|
<h2 id="label-For+more+information">For more information<span><a href="#label-For+more+information">¶</a> <a href="#documentation">↑</a></span></h2>
|
366
366
|
|
@@ -368,11 +368,11 @@ Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row a
|
|
368
368
|
|
369
369
|
<h2 id="label-Contributing+to+rubyXL">Contributing to rubyXL<span><a href="#label-Contributing+to+rubyXL">¶</a> <a href="#documentation">↑</a></span></h2>
|
370
370
|
<ul><li>
|
371
|
-
<p>Check out the latest master to make sure the feature hasn
|
372
|
-
implemented or the bug hasn
|
371
|
+
<p>Check out the latest master to make sure the feature hasn't been
|
372
|
+
implemented or the bug hasn't been fixed yet</p>
|
373
373
|
</li><li>
|
374
|
-
<p>Check out the issue tracker to make sure someone already hasn
|
375
|
-
it and/or contributed it</p>
|
374
|
+
<p>Check out the issue tracker to make sure someone already hasn't
|
375
|
+
requested it and/or contributed it</p>
|
376
376
|
</li><li>
|
377
377
|
<p>Fork the project</p>
|
378
378
|
</li><li>
|
@@ -380,8 +380,8 @@ it and/or contributed it</p>
|
|
380
380
|
</li><li>
|
381
381
|
<p>Commit and push until you are happy with your contribution</p>
|
382
382
|
</li><li>
|
383
|
-
<p>Make sure to add tests for it. This is important so I don
|
384
|
-
future version unintentionally.</p>
|
383
|
+
<p>Make sure to add tests for it. This is important so I don't break it in
|
384
|
+
a future version unintentionally.</p>
|
385
385
|
</li><li>
|
386
386
|
<p>Please try not to mess with the Rakefile, version, or history. If you want
|
387
387
|
to have your own version, or is otherwise necessary, that is fine, but
|
data/rdoc/RubyXL.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL - rubyXL 2.
|
7
|
+
<title>module RubyXL - rubyXL 2.5.0</title>
|
8
8
|
|
9
9
|
<link href="./fonts.css" rel="stylesheet">
|
10
10
|
<link href="./rdoc.css" rel="stylesheet">
|
@@ -93,11 +93,26 @@
|
|
93
93
|
<dd>
|
94
94
|
|
95
95
|
|
96
|
+
<dt id="ST_BevelPresetType">ST_BevelPresetType
|
97
|
+
|
98
|
+
<dd>
|
99
|
+
|
100
|
+
|
96
101
|
<dt id="ST_BlackWhiteMode">ST_BlackWhiteMode
|
97
102
|
|
98
103
|
<dd>
|
99
104
|
|
100
105
|
|
106
|
+
<dt id="ST_BlendMode">ST_BlendMode
|
107
|
+
|
108
|
+
<dd>
|
109
|
+
|
110
|
+
|
111
|
+
<dt id="ST_BlipCompression">ST_BlipCompression
|
112
|
+
|
113
|
+
<dd>
|
114
|
+
|
115
|
+
|
101
116
|
<dt id="ST_BorderStyle">ST_BorderStyle
|
102
117
|
|
103
118
|
<dd>
|
@@ -138,11 +153,21 @@
|
|
138
153
|
<dd>
|
139
154
|
|
140
155
|
|
156
|
+
<dt id="ST_ColorSchemeIndex">ST_ColorSchemeIndex
|
157
|
+
|
158
|
+
<dd>
|
159
|
+
|
160
|
+
|
141
161
|
<dt id="ST_Comments">ST_Comments
|
142
162
|
|
143
163
|
<dd>
|
144
164
|
|
145
165
|
|
166
|
+
<dt id="ST_CompoundLine">ST_CompoundLine
|
167
|
+
|
168
|
+
<dd>
|
169
|
+
|
170
|
+
|
146
171
|
<dt id="ST_ConditionalFormattingOperator">ST_ConditionalFormattingOperator
|
147
172
|
|
148
173
|
<dd>
|
@@ -188,11 +213,21 @@
|
|
188
213
|
<dd>
|
189
214
|
|
190
215
|
|
216
|
+
<dt id="ST_EffectContainerType">ST_EffectContainerType
|
217
|
+
|
218
|
+
<dd>
|
219
|
+
|
220
|
+
|
191
221
|
<dt id="ST_FilterOperator">ST_FilterOperator
|
192
222
|
|
193
223
|
<dd>
|
194
224
|
|
195
225
|
|
226
|
+
<dt id="ST_FontCollectionIndex">ST_FontCollectionIndex
|
227
|
+
|
228
|
+
<dd>
|
229
|
+
|
230
|
+
|
196
231
|
<dt id="ST_GradientType">ST_GradientType
|
197
232
|
|
198
233
|
<dd>
|
@@ -208,6 +243,36 @@
|
|
208
243
|
<dd>
|
209
244
|
|
210
245
|
|
246
|
+
<dt id="ST_LightRigDirection">ST_LightRigDirection
|
247
|
+
|
248
|
+
<dd>
|
249
|
+
|
250
|
+
|
251
|
+
<dt id="ST_LightRigType">ST_LightRigType
|
252
|
+
|
253
|
+
<dd>
|
254
|
+
|
255
|
+
|
256
|
+
<dt id="ST_LineCap">ST_LineCap
|
257
|
+
|
258
|
+
<dd>
|
259
|
+
|
260
|
+
|
261
|
+
<dt id="ST_LineEndLength">ST_LineEndLength
|
262
|
+
|
263
|
+
<dd>
|
264
|
+
|
265
|
+
|
266
|
+
<dt id="ST_LineEndType">ST_LineEndType
|
267
|
+
|
268
|
+
<dd>
|
269
|
+
|
270
|
+
|
271
|
+
<dt id="ST_LineEndWidth">ST_LineEndWidth
|
272
|
+
|
273
|
+
<dd>
|
274
|
+
|
275
|
+
|
211
276
|
<dt id="ST_Objects">ST_Objects
|
212
277
|
|
213
278
|
<dd>
|
@@ -243,11 +308,21 @@
|
|
243
308
|
<dd>
|
244
309
|
|
245
310
|
|
311
|
+
<dt id="ST_PathShadeType">ST_PathShadeType
|
312
|
+
|
313
|
+
<dd>
|
314
|
+
|
315
|
+
|
246
316
|
<dt id="ST_PatternType">ST_PatternType
|
247
317
|
|
248
318
|
<dd>
|
249
319
|
|
250
320
|
|
321
|
+
<dt id="ST_PenAlignment">ST_PenAlignment
|
322
|
+
|
323
|
+
<dd>
|
324
|
+
|
325
|
+
|
251
326
|
<dt id="ST_PhoneticAlignment">ST_PhoneticAlignment
|
252
327
|
|
253
328
|
<dd>
|
@@ -263,16 +338,46 @@
|
|
263
338
|
<dd>
|
264
339
|
|
265
340
|
|
341
|
+
<dt id="ST_PresetCameraType">ST_PresetCameraType
|
342
|
+
|
343
|
+
<dd>
|
344
|
+
|
345
|
+
|
266
346
|
<dt id="ST_PresetColorVal">ST_PresetColorVal
|
267
347
|
|
268
348
|
<dd>
|
269
349
|
|
270
350
|
|
351
|
+
<dt id="ST_PresetLineDashVal">ST_PresetLineDashVal
|
352
|
+
|
353
|
+
<dd>
|
354
|
+
|
355
|
+
|
356
|
+
<dt id="ST_PresetMaterialType">ST_PresetMaterialType
|
357
|
+
|
358
|
+
<dd>
|
359
|
+
|
360
|
+
|
361
|
+
<dt id="ST_PresetPatternVal">ST_PresetPatternVal
|
362
|
+
|
363
|
+
<dd>
|
364
|
+
|
365
|
+
|
366
|
+
<dt id="ST_PresetShadowVal">ST_PresetShadowVal
|
367
|
+
|
368
|
+
<dd>
|
369
|
+
|
370
|
+
|
271
371
|
<dt id="ST_PrintError">ST_PrintError
|
272
372
|
|
273
373
|
<dd>
|
274
374
|
|
275
375
|
|
376
|
+
<dt id="ST_RectAlignment">ST_RectAlignment
|
377
|
+
|
378
|
+
<dd>
|
379
|
+
|
380
|
+
|
276
381
|
<dt id="ST_RefMode">ST_RefMode
|
277
382
|
|
278
383
|
<dd>
|
@@ -318,6 +423,76 @@
|
|
318
423
|
<dd>
|
319
424
|
|
320
425
|
|
426
|
+
<dt id="ST_TextAlignType">ST_TextAlignType
|
427
|
+
|
428
|
+
<dd>
|
429
|
+
|
430
|
+
|
431
|
+
<dt id="ST_TextAnchoringType">ST_TextAnchoringType
|
432
|
+
|
433
|
+
<dd>
|
434
|
+
|
435
|
+
|
436
|
+
<dt id="ST_TextAutonumberScheme">ST_TextAutonumberScheme
|
437
|
+
|
438
|
+
<dd>
|
439
|
+
|
440
|
+
|
441
|
+
<dt id="ST_TextCapsType">ST_TextCapsType
|
442
|
+
|
443
|
+
<dd>
|
444
|
+
|
445
|
+
|
446
|
+
<dt id="ST_TextFontAlignType">ST_TextFontAlignType
|
447
|
+
|
448
|
+
<dd>
|
449
|
+
|
450
|
+
|
451
|
+
<dt id="ST_TextHorzOverflowType">ST_TextHorzOverflowType
|
452
|
+
|
453
|
+
<dd>
|
454
|
+
|
455
|
+
|
456
|
+
<dt id="ST_TextShapeType">ST_TextShapeType
|
457
|
+
|
458
|
+
<dd>
|
459
|
+
|
460
|
+
|
461
|
+
<dt id="ST_TextStrikeType">ST_TextStrikeType
|
462
|
+
|
463
|
+
<dd>
|
464
|
+
|
465
|
+
|
466
|
+
<dt id="ST_TextTabAlignType">ST_TextTabAlignType
|
467
|
+
|
468
|
+
<dd>
|
469
|
+
|
470
|
+
|
471
|
+
<dt id="ST_TextUnderlineType">ST_TextUnderlineType
|
472
|
+
|
473
|
+
<dd>
|
474
|
+
|
475
|
+
|
476
|
+
<dt id="ST_TextVertOverflowType">ST_TextVertOverflowType
|
477
|
+
|
478
|
+
<dd>
|
479
|
+
|
480
|
+
|
481
|
+
<dt id="ST_TextVerticalType">ST_TextVerticalType
|
482
|
+
|
483
|
+
<dd>
|
484
|
+
|
485
|
+
|
486
|
+
<dt id="ST_TextWrappingType">ST_TextWrappingType
|
487
|
+
|
488
|
+
<dd>
|
489
|
+
|
490
|
+
|
491
|
+
<dt id="ST_TileFlipMode">ST_TileFlipMode
|
492
|
+
|
493
|
+
<dd>
|
494
|
+
|
495
|
+
|
321
496
|
<dt id="ST_TimePeriod">ST_TimePeriod
|
322
497
|
|
323
498
|
<dd>
|
data/rdoc/RubyXL/AExtension.html
CHANGED
data/rdoc/RubyXL/Alignment.html
CHANGED
data/rdoc/RubyXL/AutoFilter.html
CHANGED