rubyXL 3.3.29 → 3.3.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +12 -0
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +179 -1
- data/lib/rubyXL/objects/cell_style.rb +3 -3
- data/lib/rubyXL/objects/color.rb +3 -1
- data/lib/rubyXL/objects/simple_types.rb +3 -1
- data/lib/rubyXL/objects/theme.rb +19 -0
- data/lib/rubyXL/objects/workbook.rb +1 -1
- data/lib/rubyXL/objects/worksheet.rb +1 -1
- data/rdoc/README_rdoc.html +23 -1
- data/rdoc/RubyXL.html +19 -2
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/ActiveX.html +1 -1
- data/rdoc/RubyXL/ActiveXBinary.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 +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/CellConvenienceMethods.html +178 -30
- data/rdoc/RubyXL/CellExt.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/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.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 +13 -2
- data/rdoc/RubyXL/ColorConvenienceClasses.html +96 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +289 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +339 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +156 -0
- 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 +1 -1
- 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/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
- data/rdoc/RubyXL/DrawingFile.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/ExternalBook.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 +1 -1
- data/rdoc/RubyXL/FontConvenienceMethods.html +15 -15
- 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 +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/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 +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- 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 +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjectFile.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/OOXMLIgnored.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 +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/PivotCacheRecordsFile.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 +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
- data/rdoc/RubyXL/RevisionPointer.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RowExt.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/SheetDataExt.html +1 -1
- data/rdoc/RubyXL/SheetDataSet.html +1 -1
- data/rdoc/RubyXL/SheetName.html +1 -1
- data/rdoc/RubyXL/SheetNames.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 +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/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 +1 -1
- data/rdoc/RubyXL/Theme.html +52 -2
- 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/WorkbookConvenienceMethods.html +11 -10
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.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/WorksheetConvenienceMethods.html +69 -69
- 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 +9 -9
- data/rdoc/index.html +10 -2
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +70 -2
- data/rubyXL.gemspec +41 -37
- data/spec/lib/cell_spec.rb +24 -0
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b03457172d474572306d0c12f04040aa71fd850651c24883f4cb9d547767f94f
|
4
|
+
data.tar.gz: eb2262738f31511cf674abfc0486849fd607434c007a0b6c810094f8da308ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8076ff24b3353c04316da91192f457b5ed9c3cd373cf8721b71ffdb57487482793c5fa05fe9a1a485d2dc5081dfae1eba62cf3cf7d276be14bb87ab85975fde
|
7
|
+
data.tar.gz: d36b10b4be0a669363bec0cb405a4c83a2be2a8346155ad6fd67cd014b38331c4bce2eca048c1a591e186ebfa7460a364fbc9df3ef0a41fec9daa1bac5849f0d
|
data/README.rdoc
CHANGED
@@ -53,6 +53,7 @@ Please note that row is a _sparse_ array of cells. Your code *must* expect that
|
|
53
53
|
cell.vertical_alignment
|
54
54
|
cell.get_border(:top)
|
55
55
|
cell.get_border_color(:top)
|
56
|
+
cell.text_rotation
|
56
57
|
|
57
58
|
==== Wrappers for accessing Row properties
|
58
59
|
Please note: these methods are being phased out in favor of the OOXML object model.
|
@@ -140,6 +141,15 @@ bottom, center, distributed, top
|
|
140
141
|
worksheet.sheet_data[0][0].change_vertical_alignment('bottom') # Sets A1 to be bottom aligned
|
141
142
|
worksheet.change_row_vertical_alignment(0, 'distributed') # Sets first row to be distributed vertically
|
142
143
|
worksheet.change_column_vertical_alignment(0, 'top') # Sets first column to be top aligned
|
144
|
+
|
145
|
+
===== Rotation
|
146
|
+
worksheet.sheet_data[0][0].change_text_rotation(90) # Sets A1 to be rotated by 90 degrees
|
147
|
+
|
148
|
+
Values:
|
149
|
+
* 0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;
|
150
|
+
* 91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;
|
151
|
+
* 180-254 - degrees clockwise, around the bottom LEFT corner of the cell, text becomes progressively invisible
|
152
|
+
* 255 - text is in normal rotation but displayed vertically (one letter under another), line feed starts new line to the right of the previous.
|
143
153
|
|
144
154
|
==== Changing Row Height
|
145
155
|
worksheet.change_row_height(0, 30) # Sets first row height to 30
|
@@ -193,6 +203,8 @@ WARNING: Use of this method WILL break formulas referencing cells which have bee
|
|
193
203
|
==== Modifying Cell Format
|
194
204
|
cell = worksheet[0][0]
|
195
205
|
cell.set_number_format '0.0000%' # For formats, see https://support.office.com/en-us/article/5026bbd6-04bc-48cd-bf33-80f18b4eae68
|
206
|
+
cell.change_text_wrap(true) # Makes the text in the cell to wrap.
|
207
|
+
cell.change_text_indent(1) # Indents the text in the cell by 1 level
|
196
208
|
|
197
209
|
== I/O
|
198
210
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.30
|
@@ -120,7 +120,8 @@ module RubyXL
|
|
120
120
|
fill = fills[xf.fill_id]
|
121
121
|
pattern = fill && fill.pattern_fill
|
122
122
|
color = pattern && pattern.fg_color
|
123
|
-
color && color.
|
123
|
+
color = color && color.get_rgb(self)
|
124
|
+
color && color.to_s || 'ffffff'
|
124
125
|
end
|
125
126
|
|
126
127
|
def register_new_fill(new_fill, old_xf)
|
@@ -869,6 +870,16 @@ module RubyXL
|
|
869
870
|
self.style_index = workbook.modify_alignment(self.style_index) { |a| a.wrap_text = wrap }
|
870
871
|
end
|
871
872
|
|
873
|
+
def change_text_rotation(rot)
|
874
|
+
validate_worksheet
|
875
|
+
self.style_index = workbook.modify_alignment(self.style_index) { |a| a.text_rotation = rot }
|
876
|
+
end
|
877
|
+
|
878
|
+
def change_text_indent(indent)
|
879
|
+
validate_worksheet
|
880
|
+
self.style_index = workbook.modify_alignment(self.style_index) { |a| a.indent = indent }
|
881
|
+
end
|
882
|
+
|
872
883
|
def change_border(direction, weight)
|
873
884
|
validate_worksheet
|
874
885
|
self.style_index = workbook.modify_border(self.style_index, direction, weight)
|
@@ -940,6 +951,20 @@ module RubyXL
|
|
940
951
|
return nil if xf_obj.alignment.nil?
|
941
952
|
xf_obj.alignment.wrap_text
|
942
953
|
end
|
954
|
+
|
955
|
+
def text_rotation
|
956
|
+
validate_worksheet
|
957
|
+
xf_obj = get_cell_xf
|
958
|
+
return nil if xf_obj.alignment.nil?
|
959
|
+
xf_obj.alignment.text_rotation
|
960
|
+
end
|
961
|
+
|
962
|
+
def text_indent()
|
963
|
+
validate_worksheet
|
964
|
+
xf_obj = get_cell_xf
|
965
|
+
return nil if xf_obj.alignment.nil?
|
966
|
+
xf_obj.alignment.indent
|
967
|
+
end
|
943
968
|
|
944
969
|
def set_number_format(format_code)
|
945
970
|
new_xf = get_cell_xf.dup
|
@@ -1119,4 +1144,157 @@ module RubyXL
|
|
1119
1144
|
end
|
1120
1145
|
end
|
1121
1146
|
|
1147
|
+
module ColorConvenienceMethods
|
1148
|
+
|
1149
|
+
def get_rgb(workbook)
|
1150
|
+
if rgb then
|
1151
|
+
return rgb
|
1152
|
+
elsif theme then
|
1153
|
+
theme_color = workbook.theme.get_theme_color(theme)
|
1154
|
+
rgb_color = theme_color && theme_color.a_srgb_clr
|
1155
|
+
color_value = rgb_color && rgb_color.val
|
1156
|
+
return nil if color_value.nil?
|
1157
|
+
|
1158
|
+
RubyXL::RgbColor.parse(color_value).to_hls.apply_tint(tint).to_rgb.to_s
|
1159
|
+
end
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
module ColorConvenienceClasses
|
1165
|
+
# https://ciintelligence.blogspot.com/2012/02/converting-excel-theme-color-and-tint.html
|
1166
|
+
class RgbColor
|
1167
|
+
attr_accessor :r, :g, :b, :a
|
1168
|
+
|
1169
|
+
def to_hls
|
1170
|
+
hls_color = HlsColor.new
|
1171
|
+
|
1172
|
+
# Note that we are overriding accessors with local vars here:
|
1173
|
+
r = self.r / 255.0
|
1174
|
+
g = self.g / 255.0
|
1175
|
+
b = self.b / 255.0
|
1176
|
+
|
1177
|
+
hls_color.a = (self.a || 0) / 255.0
|
1178
|
+
|
1179
|
+
min = [r, g, b].min
|
1180
|
+
max = [r, g, b].max
|
1181
|
+
delta = max - min
|
1182
|
+
|
1183
|
+
if (max == min) then
|
1184
|
+
hls_color.h = hls_color.s = 0
|
1185
|
+
hls_color.l = max
|
1186
|
+
return hls_color
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
hls_color.l = (min + max) / 2
|
1190
|
+
|
1191
|
+
if (hls_color.l < 0.5) then
|
1192
|
+
hls_color.s = delta / (max + min);
|
1193
|
+
else
|
1194
|
+
hls_color.s = delta / (2.0 - max - min);
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
hls_color.h = (g - b) / delta if (r == max)
|
1198
|
+
hls_color.h = 2.0 + (b - r) / delta if (g == max)
|
1199
|
+
hls_color.h = 4.0 + (r - g) / delta if (b == max)
|
1200
|
+
|
1201
|
+
hls_color.h *= 60;
|
1202
|
+
hls_color.h += 360 if hls_color.h < 0
|
1203
|
+
|
1204
|
+
hls_color
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
def self.parse(str)
|
1208
|
+
r, g, b, a = str.unpack("A2A2A2A2")
|
1209
|
+
|
1210
|
+
rgb_color = RgbColor.new
|
1211
|
+
rgb_color.r = r && r.to_i(16)
|
1212
|
+
rgb_color.g = g && g.to_i(16)
|
1213
|
+
rgb_color.b = b && b.to_i(16)
|
1214
|
+
rgb_color.a = a && a.to_i(16)
|
1215
|
+
|
1216
|
+
rgb_color
|
1217
|
+
end
|
1218
|
+
|
1219
|
+
def to_s
|
1220
|
+
str = r.to_s(16) + g.to_s(16) + b.to_s(16)
|
1221
|
+
str += a.to_s(16) if a && a != 0
|
1222
|
+
str
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
class HlsColor
|
1228
|
+
attr_accessor :h, :l, :s, :a
|
1229
|
+
|
1230
|
+
def to_rgb
|
1231
|
+
rgb_color = RgbColor.new
|
1232
|
+
|
1233
|
+
r = g = b = l
|
1234
|
+
|
1235
|
+
if s != 0 then
|
1236
|
+
t1 = nil
|
1237
|
+
|
1238
|
+
if l < 0.5 then
|
1239
|
+
t1 = l * (1.0 + s)
|
1240
|
+
else
|
1241
|
+
t1 = l + s - (l * s)
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
t2 = 2.0 * l - t1;
|
1245
|
+
h = self.h / 360.0
|
1246
|
+
|
1247
|
+
t_r = h + (1.0 / 3.0)
|
1248
|
+
r = set_color(t1, t2, t_r)
|
1249
|
+
|
1250
|
+
t_g = h;
|
1251
|
+
g = set_color(t1, t2, t_g)
|
1252
|
+
|
1253
|
+
t_b = h - (1.0 / 3.0);
|
1254
|
+
b = set_color(t1, t2, t_b)
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
rgb_color.r = (r * 255).round(0).to_i
|
1258
|
+
rgb_color.g = (g * 255).round(0).to_i
|
1259
|
+
rgb_color.b = (b * 255).round(0).to_i
|
1260
|
+
|
1261
|
+
rgb_color.a = (a * 255).round(0).to_i
|
1262
|
+
|
1263
|
+
rgb_color
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
private def set_color(t1, t2, t3)
|
1267
|
+
color = 0
|
1268
|
+
|
1269
|
+
t3 += 1.0 if (t3 < 0)
|
1270
|
+
t3 -= 1.0 if (t3 > 1)
|
1271
|
+
|
1272
|
+
if (6.0 * t3 < 1) then
|
1273
|
+
color = t2 + (t1 - t2) * 6.0 * t3;
|
1274
|
+
elsif (2.0 * t3 < 1) then
|
1275
|
+
color = t1;
|
1276
|
+
elsif (3.0 * t3 < 2) then
|
1277
|
+
color = t2 + (t1 - t2) * ((2.0 / 3.0) - t3) * 6.0;
|
1278
|
+
else
|
1279
|
+
color = t2;
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
color
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
def apply_tint(tint)
|
1286
|
+
return self if tint.nil? || tint == 0
|
1287
|
+
|
1288
|
+
if tint < 0 then
|
1289
|
+
self.l = l * (1.0 + tint);
|
1290
|
+
else
|
1291
|
+
self.l = l * (1.0 - tint) + tint;
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
self
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
end
|
1298
|
+
end
|
1299
|
+
|
1122
1300
|
end
|
@@ -18,13 +18,13 @@ module RubyXL
|
|
18
18
|
class Alignment < OOXMLObject
|
19
19
|
define_attribute(:horizontal, RubyXL::ST_HorizontalAlignment)
|
20
20
|
define_attribute(:vertical, RubyXL::ST_VerticalAlignment)
|
21
|
-
define_attribute(:textRotation, :
|
21
|
+
define_attribute(:textRotation, :uint)
|
22
22
|
define_attribute(:wrapText, :bool)
|
23
|
-
define_attribute(:indent, :
|
23
|
+
define_attribute(:indent, :uint)
|
24
24
|
define_attribute(:relativeIndent, :int)
|
25
25
|
define_attribute(:justifyLastLine, :bool)
|
26
26
|
define_attribute(:shrinkToFit, :bool)
|
27
|
-
define_attribute(:readingOrder, :
|
27
|
+
define_attribute(:readingOrder, :uint)
|
28
28
|
define_element_name 'alignment'
|
29
29
|
end
|
30
30
|
|
data/lib/rubyXL/objects/color.rb
CHANGED
@@ -8,7 +8,7 @@ module RubyXL
|
|
8
8
|
|
9
9
|
define_attribute(:auto, :bool)
|
10
10
|
define_attribute(:indexed, :uint)
|
11
|
-
define_attribute(:rgb,
|
11
|
+
define_attribute(:rgb, ST_UnsignedIntHex)
|
12
12
|
define_attribute(:theme, :uint)
|
13
13
|
define_attribute(:tint, :double, :default => 0.0)
|
14
14
|
define_element_name 'color'
|
@@ -22,6 +22,8 @@ module RubyXL
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
include ColorConvenienceMethods
|
25
26
|
end
|
26
27
|
|
28
|
+
include ColorConvenienceClasses
|
27
29
|
end
|
@@ -226,7 +226,9 @@ module RubyXL
|
|
226
226
|
ST_TextStrikeType = %w{ noStrike sngStrike dblStrike }
|
227
227
|
ST_TextCapsType = %w{ none small all }
|
228
228
|
|
229
|
+
# TODO: http://www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedIntHex.html
|
230
|
+
ST_UnsignedIntHex = :string # length = 4
|
229
231
|
# TODO: http://www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedShortHex.html
|
230
|
-
ST_UnsignedShortHex = :string
|
232
|
+
ST_UnsignedShortHex = :string # length = 2
|
231
233
|
|
232
234
|
end
|
data/lib/rubyXL/objects/theme.rb
CHANGED
@@ -1391,6 +1391,25 @@ module RubyXL
|
|
1391
1391
|
ROOT.join('xl', 'theme', 'theme1.xml')
|
1392
1392
|
end
|
1393
1393
|
|
1394
|
+
def get_theme_color(idx)
|
1395
|
+
color_scheme = a_theme_elements && a_theme_elements.a_clr_scheme
|
1396
|
+
|
1397
|
+
if color_scheme then
|
1398
|
+
case idx
|
1399
|
+
when 0 then color_scheme.a_lt1
|
1400
|
+
when 1 then color_scheme.a_dk1
|
1401
|
+
when 2 then color_scheme.a_lt2
|
1402
|
+
when 3 then color_scheme.a_dk2
|
1403
|
+
when 4 then color_scheme.a_accent1
|
1404
|
+
when 5 then color_scheme.a_accent2
|
1405
|
+
when 6 then color_scheme.a_accent3
|
1406
|
+
when 7 then color_scheme.a_accent4
|
1407
|
+
when 8 then color_scheme.a_accent5
|
1408
|
+
when 9 then color_scheme.a_accent6
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
|
1394
1413
|
def self.default
|
1395
1414
|
default_theme = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
1396
1415
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
|
@@ -1,5 +1,6 @@
|
|
1
1
|
#require 'tmpdir'
|
2
2
|
require 'date'
|
3
|
+
require 'rubyXL/convenience_methods'
|
3
4
|
require 'rubyXL/objects/ooxml_object'
|
4
5
|
require 'rubyXL/objects/shared_strings'
|
5
6
|
require 'rubyXL/objects/stylesheet'
|
@@ -11,7 +12,6 @@ require 'rubyXL/objects/relationships'
|
|
11
12
|
require 'rubyXL/objects/simple_types'
|
12
13
|
require 'rubyXL/objects/extensions'
|
13
14
|
require 'rubyXL/objects/external_links'
|
14
|
-
require 'rubyXL/convenience_methods'
|
15
15
|
|
16
16
|
module RubyXL
|
17
17
|
|
@@ -362,7 +362,7 @@ module RubyXL
|
|
362
362
|
class Pane < OOXMLObject
|
363
363
|
define_attribute(:xSplit, :double)
|
364
364
|
define_attribute(:ySplit, :double)
|
365
|
-
define_attribute(:topLeftCell, :
|
365
|
+
define_attribute(:topLeftCell, :ref)
|
366
366
|
define_attribute(:activePane, RubyXL::ST_Pane, :default => 'topLeft')
|
367
367
|
define_attribute(:state, RubyXL::ST_PaneState, :default => 'split')
|
368
368
|
define_element_name 'pane'
|
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.3.
|
7
|
+
<title>README - rubyXL 3.3.30</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
@@ -80,6 +80,7 @@
|
|
80
80
|
<li><a href="#label-Changing+Alignment">Changing Alignment</a>
|
81
81
|
<li><a href="#label-Horizontal">Horizontal</a>
|
82
82
|
<li><a href="#label-Vertical">Vertical</a>
|
83
|
+
<li><a href="#label-Rotation">Rotation</a>
|
83
84
|
<li><a href="#label-Changing+Row+Height">Changing Row Height</a>
|
84
85
|
<li><a href="#label-Changing+Column+Width">Changing Column Width</a>
|
85
86
|
<li><a href="#label-Merging+Cells">Merging Cells</a>
|
@@ -195,6 +196,7 @@ preserving as much of the structure as possible.</p>
|
|
195
196
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">vertical_alignment</span>
|
196
197
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border</span>(:<span class="ruby-identifier">top</span>)
|
197
198
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border_color</span>(:<span class="ruby-identifier">top</span>)
|
199
|
+
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">text_rotation</span>
|
198
200
|
</pre>
|
199
201
|
|
200
202
|
<h4 id="label-Wrappers+for+accessing+Row+properties+">Wrappers for accessing Row properties <span><a href="#label-Wrappers+for+accessing+Row+properties+">¶</a> <a href="#top">↑</a></span></h4>
|
@@ -317,6 +319,24 @@ You should access and iterate through rows and cells directly:</p>
|
|
317
319
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_vertical_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-string">'top'</span>) <span class="ruby-comment"># Sets first column to be top aligned</span>
|
318
320
|
</pre>
|
319
321
|
|
322
|
+
<h5 id="label-Rotation">Rotation<span><a href="#label-Rotation">¶</a> <a href="#top">↑</a></span></h5>
|
323
|
+
|
324
|
+
<pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_text_rotation</span>(<span class="ruby-value">90</span>) <span class="ruby-comment"># Sets A1 to be rotated by 90 degrees</span>
|
325
|
+
</pre>
|
326
|
+
|
327
|
+
<p>Values:</p>
|
328
|
+
<ul><li>
|
329
|
+
<p>0-90 - degrees counterclockwise, around the bottom LEFT corner of the cell;</p>
|
330
|
+
</li><li>
|
331
|
+
<p>91-179 - degrees clockwise, around the bottom RIGHT corner of the cell;</p>
|
332
|
+
</li><li>
|
333
|
+
<p>180-254 - degrees clockwise, around the bottom LEFT corner of the cell,
|
334
|
+
text becomes progressively invisible</p>
|
335
|
+
</li><li>
|
336
|
+
<p>255 - text is in normal rotation but displayed vertically (one letter under
|
337
|
+
another), line feed starts new line to the right of the previous.</p>
|
338
|
+
</li></ul>
|
339
|
+
|
320
340
|
<h4 id="label-Changing+Row+Height">Changing Row Height<span><a href="#label-Changing+Row+Height">¶</a> <a href="#top">↑</a></span></h4>
|
321
341
|
|
322
342
|
<pre class="ruby"><span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_height</span>(<span class="ruby-value">0</span>, <span class="ruby-value">30</span>) <span class="ruby-comment"># Sets first row height to 30</span>
|
@@ -409,6 +429,8 @@ have been moved, as the formulas do not adapt to the shifted cells</p>
|
|
409
429
|
|
410
430
|
<pre class="ruby"><span class="ruby-identifier">cell</span> = <span class="ruby-identifier">worksheet</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
|
411
431
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">set_number_format</span> <span class="ruby-string">'0.0000%'</span> <span class="ruby-comment"># For formats, see https://support.office.com/en-us/article/5026bbd6-04bc-48cd-bf33-80f18b4eae68</span>
|
432
|
+
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">change_text_wrap</span>(<span class="ruby-keyword">true</span>) <span class="ruby-comment"># Makes the text in the cell to wrap.</span>
|
433
|
+
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">change_text_indent</span>(<span class="ruby-value">1</span>) <span class="ruby-comment"># Indents the text in the cell by 1 level</span>
|
412
434
|
</pre>
|
413
435
|
|
414
436
|
<h2 id="label-I-2FO">I/O<span><a href="#label-I-2FO">¶</a> <a href="#top">↑</a></span></h2>
|
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 3.3.
|
7
|
+
<title>module RubyXL - rubyXL 3.3.30</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
@@ -56,7 +56,18 @@
|
|
56
56
|
<div id="class-metadata">
|
57
57
|
|
58
58
|
|
59
|
-
|
59
|
+
<div id="includes-section" class="nav-section">
|
60
|
+
<h3>Included Modules</h3>
|
61
|
+
|
62
|
+
<ul class="link-list">
|
63
|
+
|
64
|
+
|
65
|
+
<li><a class="include" href="RubyXL/ColorConvenienceClasses.html">RubyXL::ColorConvenienceClasses</a>
|
66
|
+
|
67
|
+
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
60
71
|
|
61
72
|
<!-- Method Quickref -->
|
62
73
|
<div id="method-list-section" class="nav-section">
|
@@ -506,6 +517,12 @@
|
|
506
517
|
<dd>
|
507
518
|
|
508
519
|
|
520
|
+
<dt id="ST_UnsignedIntHex">ST_UnsignedIntHex
|
521
|
+
|
522
|
+
<dd><p>TODO: <a
|
523
|
+
href="http://www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedIntHex.html">www.datypic.com/sc/ooxml/t-ssml_ST_UnsignedIntHex.html</a></p>
|
524
|
+
|
525
|
+
|
509
526
|
<dt id="ST_UnsignedShortHex">ST_UnsignedShortHex
|
510
527
|
|
511
528
|
<dd><p>TODO: <a
|