rubyXL 3.3.25 → 3.3.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +60 -0
- data/lib/rubyXL/objects/border.rb +2 -2
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +5 -5
- data/lib/rubyXL/objects/chartsheet.rb +6 -6
- data/lib/rubyXL/objects/color.rb +1 -1
- data/lib/rubyXL/objects/column_range.rb +10 -10
- data/lib/rubyXL/objects/comments.rb +4 -4
- data/lib/rubyXL/objects/container_nodes.rb +2 -2
- data/lib/rubyXL/objects/content_types.rb +2 -2
- data/lib/rubyXL/objects/data_validation.rb +2 -2
- data/lib/rubyXL/objects/document_properties.rb +1 -1
- data/lib/rubyXL/objects/extensions.rb +3 -3
- data/lib/rubyXL/objects/fill.rb +4 -4
- data/lib/rubyXL/objects/filters.rb +12 -12
- data/lib/rubyXL/objects/font.rb +4 -59
- data/lib/rubyXL/objects/formula.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +2 -2
- data/lib/rubyXL/objects/shared_strings.rb +1 -1
- data/lib/rubyXL/objects/sheet_common.rb +4 -4
- data/lib/rubyXL/objects/sheet_data.rb +4 -4
- data/lib/rubyXL/objects/stylesheet.rb +14 -14
- data/lib/rubyXL/objects/text.rb +6 -6
- data/lib/rubyXL/objects/theme.rb +118 -118
- data/lib/rubyXL/objects/workbook.rb +28 -28
- data/lib/rubyXL/objects/worksheet.rb +52 -52
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/Alignment.html +2 -2
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/Authors.html +2 -2
- data/rdoc/RubyXL/AutoFilter.html +2 -2
- data/rdoc/RubyXL/AutoFilterColumn.html +2 -2
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +2 -2
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +2 -2
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +2 -2
- data/rdoc/RubyXL/Break.html +2 -2
- data/rdoc/RubyXL/BreakList.html +2 -2
- data/rdoc/RubyXL/CT_AdjPoint2D.html +2 -2
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +2 -2
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +2 -2
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +2 -2
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +2 -2
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +2 -2
- data/rdoc/RubyXL/CT_Backdrop.html +2 -2
- data/rdoc/RubyXL/CT_Bevel.html +2 -2
- data/rdoc/RubyXL/CT_BiLevelEffect.html +2 -2
- data/rdoc/RubyXL/CT_BlendEffect.html +2 -2
- data/rdoc/RubyXL/CT_Blip.html +2 -2
- data/rdoc/RubyXL/CT_BlipFillProperties.html +2 -2
- data/rdoc/RubyXL/CT_BlurEffect.html +2 -2
- data/rdoc/RubyXL/CT_Camera.html +2 -2
- data/rdoc/RubyXL/CT_Color.html +2 -2
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +2 -2
- data/rdoc/RubyXL/CT_ColorMapping.html +2 -2
- data/rdoc/RubyXL/CT_ColorScheme.html +2 -2
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +2 -2
- data/rdoc/RubyXL/CT_ConnectionSite.html +2 -2
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +2 -2
- data/rdoc/RubyXL/CT_DashStop.html +2 -2
- data/rdoc/RubyXL/CT_DashStopList.html +2 -2
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +2 -2
- data/rdoc/RubyXL/CT_DuotoneEffect.html +2 -2
- data/rdoc/RubyXL/CT_EffectContainer.html +2 -2
- data/rdoc/RubyXL/CT_EffectList.html +2 -2
- data/rdoc/RubyXL/CT_EffectReference.html +2 -2
- data/rdoc/RubyXL/CT_EffectStyleItem.html +2 -2
- data/rdoc/RubyXL/CT_EffectStyleList.html +2 -2
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +2 -2
- data/rdoc/RubyXL/CT_FillEffect.html +2 -2
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +2 -2
- data/rdoc/RubyXL/CT_FillStyleList.html +2 -2
- data/rdoc/RubyXL/CT_FlatText.html +2 -2
- data/rdoc/RubyXL/CT_FontCollection.html +2 -2
- data/rdoc/RubyXL/CT_FontReference.html +2 -2
- data/rdoc/RubyXL/CT_GeomGuideList.html +2 -2
- data/rdoc/RubyXL/CT_GlowEffect.html +2 -2
- data/rdoc/RubyXL/CT_GradientFillProperties.html +2 -2
- data/rdoc/RubyXL/CT_GradientStop.html +2 -2
- data/rdoc/RubyXL/CT_GradientStopList.html +2 -2
- data/rdoc/RubyXL/CT_HSLEffect.html +2 -2
- data/rdoc/RubyXL/CT_HslColor.html +2 -2
- data/rdoc/RubyXL/CT_Hyperlink.html +2 -2
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +2 -2
- data/rdoc/RubyXL/CT_LightRig.html +2 -2
- data/rdoc/RubyXL/CT_LineEndProperties.html +2 -2
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +2 -2
- data/rdoc/RubyXL/CT_LineProperties.html +2 -2
- data/rdoc/RubyXL/CT_LineStyleList.html +2 -2
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +2 -2
- data/rdoc/RubyXL/CT_LuminanceEffect.html +2 -2
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +2 -2
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +2 -2
- data/rdoc/RubyXL/CT_Path2D.html +2 -2
- data/rdoc/RubyXL/CT_Path2DArcTo.html +2 -2
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +2 -2
- data/rdoc/RubyXL/CT_Path2DList.html +2 -2
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +2 -2
- data/rdoc/RubyXL/CT_Path2DTo.html +2 -2
- data/rdoc/RubyXL/CT_PathShadeProperties.html +2 -2
- data/rdoc/RubyXL/CT_PatternFillProperties.html +2 -2
- data/rdoc/RubyXL/CT_Point3D.html +2 -2
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +2 -2
- data/rdoc/RubyXL/CT_PresetColor.html +2 -2
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +2 -2
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +2 -2
- data/rdoc/RubyXL/CT_PresetTextShape.html +2 -2
- data/rdoc/RubyXL/CT_ReflectionEffect.html +2 -2
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +2 -2
- data/rdoc/RubyXL/CT_RelativeRect.html +2 -2
- data/rdoc/RubyXL/CT_SRgbColor.html +2 -2
- data/rdoc/RubyXL/CT_ScRgbColor.html +2 -2
- data/rdoc/RubyXL/CT_Scene3D.html +2 -2
- data/rdoc/RubyXL/CT_SchemeColor.html +2 -2
- data/rdoc/RubyXL/CT_Shape3D.html +2 -2
- data/rdoc/RubyXL/CT_ShapeStyle.html +2 -2
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +2 -2
- data/rdoc/RubyXL/CT_SphereCoords.html +2 -2
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +2 -2
- data/rdoc/RubyXL/CT_StyleMatrix.html +2 -2
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +2 -2
- data/rdoc/RubyXL/CT_SupplementalFont.html +2 -2
- data/rdoc/RubyXL/CT_SystemColor.html +2 -2
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +2 -2
- data/rdoc/RubyXL/CT_TextBlipBullet.html +2 -2
- data/rdoc/RubyXL/CT_TextCharBullet.html +2 -2
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +2 -2
- data/rdoc/RubyXL/CT_TextFont.html +2 -2
- data/rdoc/RubyXL/CT_TextListStyle.html +2 -2
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +2 -2
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +2 -2
- data/rdoc/RubyXL/CT_TextSpacing.html +2 -2
- data/rdoc/RubyXL/CT_TextTabStop.html +2 -2
- data/rdoc/RubyXL/CT_TextTabStopList.html +2 -2
- data/rdoc/RubyXL/CT_TileInfoProperties.html +2 -2
- data/rdoc/RubyXL/CT_TintEffect.html +2 -2
- data/rdoc/RubyXL/CT_Transform2D.html +2 -2
- data/rdoc/RubyXL/CT_TransformEffect.html +2 -2
- data/rdoc/RubyXL/CT_Vector3D.html +2 -2
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +2 -2
- data/rdoc/RubyXL/CalculationChain.html +2 -2
- data/rdoc/RubyXL/CalculationChainCell.html +2 -2
- data/rdoc/RubyXL/CalculationProperties.html +2 -2
- data/rdoc/RubyXL/Cell.html +2 -2
- data/rdoc/RubyXL/CellConvenienceMethods.html +1 -1
- data/rdoc/RubyXL/CellExt.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +2 -2
- data/rdoc/RubyXL/CellSmartTagProperty.html +2 -2
- data/rdoc/RubyXL/CellSmartTags.html +2 -2
- data/rdoc/RubyXL/CellStyle.html +2 -2
- data/rdoc/RubyXL/CellStyleXFs.html +2 -2
- data/rdoc/RubyXL/CellStyles.html +2 -2
- data/rdoc/RubyXL/CellValue.html +2 -2
- data/rdoc/RubyXL/CellWatch.html +2 -2
- data/rdoc/RubyXL/CellWatches.html +2 -2
- data/rdoc/RubyXL/CellXFs.html +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/ChartsheetPageSetup.html +2 -2
- data/rdoc/RubyXL/ChartsheetProperties.html +2 -2
- data/rdoc/RubyXL/ChartsheetProtection.html +2 -2
- data/rdoc/RubyXL/ChartsheetView.html +2 -2
- data/rdoc/RubyXL/ChartsheetViews.html +2 -2
- data/rdoc/RubyXL/Color.html +2 -2
- data/rdoc/RubyXL/ColorFilter.html +2 -2
- data/rdoc/RubyXL/ColorScale.html +2 -2
- data/rdoc/RubyXL/ColorSet.html +2 -2
- data/rdoc/RubyXL/Colors.html +2 -2
- data/rdoc/RubyXL/ColumnRange.html +2 -2
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/Comment.html +2 -2
- data/rdoc/RubyXL/CommentList.html +2 -2
- data/rdoc/RubyXL/CommentsFile.html +2 -2
- data/rdoc/RubyXL/ConditionalFormatValue.html +2 -2
- data/rdoc/RubyXL/ConditionalFormatting.html +2 -2
- data/rdoc/RubyXL/ConditionalFormattingRule.html +2 -2
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +3 -3
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +2 -2
- data/rdoc/RubyXL/CustomColorList.html +2 -2
- data/rdoc/RubyXL/CustomFilter.html +2 -2
- data/rdoc/RubyXL/CustomFilters.html +2 -2
- data/rdoc/RubyXL/CustomGeometry.html +2 -2
- data/rdoc/RubyXL/CustomProperties.html +2 -2
- data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +2 -2
- data/rdoc/RubyXL/CustomSheetView.html +2 -2
- data/rdoc/RubyXL/CustomSheetViews.html +2 -2
- data/rdoc/RubyXL/CustomWorkbookView.html +2 -2
- data/rdoc/RubyXL/CustomWorkbookViews.html +2 -2
- data/rdoc/RubyXL/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +2 -2
- data/rdoc/RubyXL/DXFs.html +2 -2
- data/rdoc/RubyXL/DataBar.html +2 -2
- data/rdoc/RubyXL/DataConsolidate.html +2 -2
- data/rdoc/RubyXL/DataConsolidationReference.html +2 -2
- data/rdoc/RubyXL/DataConsolidationReferences.html +2 -2
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +2 -2
- data/rdoc/RubyXL/DataValidations.html +2 -2
- data/rdoc/RubyXL/DateGroupItem.html +2 -2
- data/rdoc/RubyXL/DefinedName.html +2 -2
- data/rdoc/RubyXL/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +2 -2
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +2 -2
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +2 -2
- data/rdoc/RubyXL/EmbeddedControl.html +2 -2
- data/rdoc/RubyXL/EmbeddedControls.html +2 -2
- data/rdoc/RubyXL/Extension.html +2 -2
- data/rdoc/RubyXL/ExtensionStorageArea.html +2 -2
- data/rdoc/RubyXL/Extents.html +2 -2
- data/rdoc/RubyXL/ExternalBook.html +1 -1
- data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +2 -2
- data/rdoc/RubyXL/ExternalReferences.html +2 -2
- data/rdoc/RubyXL/ExtraColorSchemeList.html +2 -2
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +2 -2
- data/rdoc/RubyXL/FileSharing.html +2 -2
- data/rdoc/RubyXL/FileVersion.html +2 -2
- data/rdoc/RubyXL/Fill.html +2 -2
- data/rdoc/RubyXL/Fills.html +2 -2
- data/rdoc/RubyXL/FilterContainer.html +2 -2
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +15 -502
- data/rdoc/RubyXL/FontConvenienceMethods.html +603 -0
- data/rdoc/RubyXL/FontScheme.html +2 -2
- data/rdoc/RubyXL/Fonts.html +3 -3
- data/rdoc/RubyXL/Formula.html +2 -2
- data/rdoc/RubyXL/FunctionGroup.html +2 -2
- data/rdoc/RubyXL/FunctionGroups.html +2 -2
- data/rdoc/RubyXL/GenericStorageObject.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +2 -2
- data/rdoc/RubyXL/HeaderFooterSettings.html +2 -2
- data/rdoc/RubyXL/Hyperlink.html +2 -2
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +2 -2
- data/rdoc/RubyXL/IconFilter.html +2 -2
- data/rdoc/RubyXL/IconSet.html +2 -2
- data/rdoc/RubyXL/IgnoredError.html +2 -2
- data/rdoc/RubyXL/IgnoredErrors.html +2 -2
- data/rdoc/RubyXL/IndexedColors.html +2 -2
- data/rdoc/RubyXL/InputCells.html +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +2 -2
- data/rdoc/RubyXL/MergedCells.html +2 -2
- data/rdoc/RubyXL/NumFmt.html +2 -2
- data/rdoc/RubyXL/NumberFormat.html +2 -2
- data/rdoc/RubyXL/NumberFormats.html +2 -2
- data/rdoc/RubyXL/OLEObject.html +2 -2
- data/rdoc/RubyXL/OLEObjectFile.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +2 -2
- data/rdoc/RubyXL/OLESize.html +2 -2
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +2 -2
- data/rdoc/RubyXL/OutlineProperties.html +2 -2
- data/rdoc/RubyXL/PageMargins.html +2 -2
- data/rdoc/RubyXL/PageSetup.html +2 -2
- data/rdoc/RubyXL/PageSetupProperties.html +2 -2
- data/rdoc/RubyXL/Pane.html +2 -2
- data/rdoc/RubyXL/Parser.html +1 -1
- data/rdoc/RubyXL/PatternFill.html +2 -2
- data/rdoc/RubyXL/PhoneticProperties.html +2 -2
- data/rdoc/RubyXL/PhoneticRun.html +2 -2
- data/rdoc/RubyXL/PivotArea.html +2 -2
- data/rdoc/RubyXL/PivotCache.html +2 -2
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +2 -2
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +2 -2
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +2 -2
- data/rdoc/RubyXL/PresetGeometry.html +2 -2
- data/rdoc/RubyXL/PrintOptions.html +2 -2
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +2 -2
- data/rdoc/RubyXL/ProtectedRanges.html +2 -2
- data/rdoc/RubyXL/Protection.html +2 -2
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +2 -2
- 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/RichText.html +2 -2
- data/rdoc/RubyXL/RichTextRun.html +2 -2
- data/rdoc/RubyXL/Row.html +2 -2
- data/rdoc/RubyXL/RowExt.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +2 -2
- data/rdoc/RubyXL/Scenario.html +2 -2
- data/rdoc/RubyXL/Scenarios.html +2 -2
- data/rdoc/RubyXL/Selection.html +2 -2
- data/rdoc/RubyXL/ShapeGuide.html +2 -2
- data/rdoc/RubyXL/ShapeTextRectangle.html +2 -2
- data/rdoc/RubyXL/SharedStringsTable.html +2 -2
- data/rdoc/RubyXL/Sheet.html +2 -2
- data/rdoc/RubyXL/SheetCalculationProperties.html +2 -2
- data/rdoc/RubyXL/SheetData.html +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +2 -2
- data/rdoc/RubyXL/SmartTagType.html +2 -2
- data/rdoc/RubyXL/SmartTagTypes.html +2 -2
- data/rdoc/RubyXL/SmartTags.html +2 -2
- data/rdoc/RubyXL/SortCondition.html +2 -2
- data/rdoc/RubyXL/SortState.html +2 -2
- 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 +2 -2
- data/rdoc/RubyXL/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +2 -2
- data/rdoc/RubyXL/TableStyles.html +2 -2
- data/rdoc/RubyXL/Text.html +2 -2
- data/rdoc/RubyXL/Theme.html +2 -2
- data/rdoc/RubyXL/ThemeElements.html +2 -2
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +2 -2
- data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
- data/rdoc/RubyXL/Variant.html +2 -2
- data/rdoc/RubyXL/Vector.html +2 -2
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +2 -2
- data/rdoc/RubyXL/WebPublishObject.html +2 -2
- data/rdoc/RubyXL/WebPublishObjects.html +2 -2
- data/rdoc/RubyXL/WebPublishingItem.html +2 -2
- data/rdoc/RubyXL/WebPublishingItems.html +2 -2
- data/rdoc/RubyXL/WebPublishingProperties.html +2 -2
- data/rdoc/RubyXL/Workbook.html +2 -2
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +2 -2
- data/rdoc/RubyXL/WorkbookProtection.html +2 -2
- data/rdoc/RubyXL/WorkbookRoot.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +2 -2
- data/rdoc/RubyXL/WorkbookViews.html +2 -2
- data/rdoc/RubyXL/Worksheet.html +2 -2
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +1 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +2 -2
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +2 -2
- data/rdoc/RubyXL/WorksheetProtection.html +2 -2
- data/rdoc/RubyXL/WorksheetView.html +2 -2
- data/rdoc/RubyXL/WorksheetViews.html +2 -2
- data/rdoc/RubyXL/XF.html +2 -2
- data/rdoc/created.rid +38 -38
- data/rdoc/index.html +4 -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 +35 -32
- data/rubyXL.gemspec +3 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8fa540c61ad0cc0f3d680e6c60fd0b11893d25
|
4
|
+
data.tar.gz: 7c8477f3b10319ce5b20fadf1acb0cb17a21dd1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff2856c3a2ab5e3631372bd61395d38aa237f457093cc591fa613519b3eb543fc5a81b093ed2c089bf0bd308385e4ae117665fa3ea566abd079a9a1c8f0a421
|
7
|
+
data.tar.gz: 53cb9b4f2a51f90adac6f48451a37848c8f0f843da6ccbb045c348e0824559c92ffbe9c33c891f82a047966422397878dd062cebaa3a6f97028da49a57451f8f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.26
|
@@ -1046,4 +1046,64 @@ module RubyXL
|
|
1046
1046
|
|
1047
1047
|
end
|
1048
1048
|
|
1049
|
+
module FontConvenienceMethods
|
1050
|
+
# Funny enough, but presence of <i> without value (equivalent to `val == nul`) means "italic = true"!
|
1051
|
+
# Same is true for bold, strikethrough, etc
|
1052
|
+
def is_italic
|
1053
|
+
i && (i.val != false)
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
def is_bold
|
1057
|
+
b && (b.val != false)
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
def is_underlined
|
1061
|
+
u && (u.val != false)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
def is_strikethrough
|
1065
|
+
strike && (strike.val != false)
|
1066
|
+
end
|
1067
|
+
|
1068
|
+
def get_name
|
1069
|
+
name && name.val
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
def get_size
|
1073
|
+
sz && sz.val
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
def get_rgb_color
|
1077
|
+
color && color.rgb
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
def set_italic(val)
|
1081
|
+
self.i = RubyXL::BooleanValue.new(:val => val)
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
def set_bold(val)
|
1085
|
+
self.b = RubyXL::BooleanValue.new(:val => val)
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
def set_underline(val)
|
1089
|
+
self.u = RubyXL::BooleanValue.new(:val => val)
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
def set_strikethrough(val)
|
1093
|
+
self.strike = RubyXL::BooleanValue.new(:val => val)
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
def set_name(val)
|
1097
|
+
self.name = RubyXL::StringValue.new(:val => val)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
def set_size(val)
|
1101
|
+
self.sz = RubyXL::FloatValue.new(:val => val)
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
def set_rgb_color(font_color)
|
1105
|
+
self.color = RubyXL::Color.new(:rgb => font_color.to_s)
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1049
1109
|
end
|
@@ -16,7 +16,7 @@ module RubyXL
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
# http://www.
|
19
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_border-2.html
|
20
20
|
class Border < OOXMLObject
|
21
21
|
define_attribute(:diagonalUp, :bool)
|
22
22
|
define_attribute(:diagonalDown, :bool)
|
@@ -60,7 +60,7 @@ module RubyXL
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
# http://www.
|
63
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_borders-1.html
|
64
64
|
class Borders < OOXMLContainerObject
|
65
65
|
define_child_node(RubyXL::Border, :collection => :with_count)
|
66
66
|
define_element_name 'borders'
|
@@ -2,7 +2,7 @@ require 'rubyXL/objects/ooxml_object'
|
|
2
2
|
require 'rubyXL/objects/extensions'
|
3
3
|
|
4
4
|
module RubyXL
|
5
|
-
# http://www.
|
5
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_c-1.html
|
6
6
|
class CalculationChainCell < OOXMLObject
|
7
7
|
define_attribute(:r, :ref, :accessor => :ref)
|
8
8
|
define_attribute(:i, :int, :accessor => :sheet_id, :default => 0)
|
@@ -13,7 +13,7 @@ module RubyXL
|
|
13
13
|
define_element_name 'c'
|
14
14
|
end
|
15
15
|
|
16
|
-
# http://www.
|
16
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_calcChain.html
|
17
17
|
class CalculationChain < OOXMLTopLevelObject
|
18
18
|
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml'
|
19
19
|
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain'
|
@@ -3,7 +3,7 @@ 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_cellStyle-1.html
|
7
7
|
class CellStyle < OOXMLObject
|
8
8
|
define_attribute(:name, :string)
|
9
9
|
define_attribute(:xfId, :int, :required => true)
|
@@ -14,7 +14,7 @@ module RubyXL
|
|
14
14
|
define_element_name 'cellStyle'
|
15
15
|
end
|
16
16
|
|
17
|
-
# http://www.
|
17
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_alignment-1.html
|
18
18
|
class Alignment < OOXMLObject
|
19
19
|
define_attribute(:horizontal, RubyXL::ST_HorizontalAlignment)
|
20
20
|
define_attribute(:vertical, RubyXL::ST_VerticalAlignment)
|
@@ -28,14 +28,14 @@ module RubyXL
|
|
28
28
|
define_element_name 'alignment'
|
29
29
|
end
|
30
30
|
|
31
|
-
# http://www.
|
31
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_protection-1.html
|
32
32
|
class Protection < OOXMLObject
|
33
33
|
define_attribute(:locked, :bool)
|
34
34
|
define_attribute(:hidden, :bool)
|
35
35
|
define_element_name 'protection'
|
36
36
|
end
|
37
37
|
|
38
|
-
# http://www.
|
38
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_xf-1.html
|
39
39
|
class XF < OOXMLObject
|
40
40
|
define_attribute(:numFmtId, :int)
|
41
41
|
define_attribute(:fontId, :int)
|
@@ -55,7 +55,7 @@ module RubyXL
|
|
55
55
|
define_element_name 'xf'
|
56
56
|
end
|
57
57
|
|
58
|
-
# http://www.
|
58
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_numFmt-1.html
|
59
59
|
class NumFmt < OOXMLObject
|
60
60
|
define_attribute(:numFmtId, :int, :required => true)
|
61
61
|
define_attribute(:formatCode, :string, :required => true)
|
@@ -6,7 +6,7 @@ require 'rubyXL/objects/sheet_common'
|
|
6
6
|
|
7
7
|
module RubyXL
|
8
8
|
|
9
|
-
# http://www.
|
9
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sheetProtection-4.html
|
10
10
|
class ChartsheetProtection < OOXMLObject
|
11
11
|
define_attribute(:password, :string)
|
12
12
|
define_attribute(:content, :bool, :default => false)
|
@@ -14,7 +14,7 @@ module RubyXL
|
|
14
14
|
define_element_name 'sheetProtection'
|
15
15
|
end
|
16
16
|
|
17
|
-
# http://www.
|
17
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sheetPr-4.html
|
18
18
|
class ChartsheetProperties < OOXMLObject
|
19
19
|
define_attribute(:published, :bool, :default => true)
|
20
20
|
define_attribute(:codeName, :string)
|
@@ -22,7 +22,7 @@ module RubyXL
|
|
22
22
|
define_element_name 'sheetPr'
|
23
23
|
end
|
24
24
|
|
25
|
-
# http://www.
|
25
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_pageSetup-5.html
|
26
26
|
class ChartsheetPageSetup < OOXMLObject
|
27
27
|
define_attribute(:paperSize, :int, :default => 1)
|
28
28
|
define_attribute(:firstPageNumber, :int, :default => 1)
|
@@ -38,7 +38,7 @@ module RubyXL
|
|
38
38
|
define_element_name 'pageSetup'
|
39
39
|
end
|
40
40
|
|
41
|
-
# http://www.
|
41
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sheetView-2.html
|
42
42
|
class ChartsheetView < OOXMLObject
|
43
43
|
define_attribute(:tabSelected, :bool, :default => false)
|
44
44
|
define_attribute(:zoomScale, :int, :default => 100)
|
@@ -48,14 +48,14 @@ module RubyXL
|
|
48
48
|
define_element_name 'sheetView'
|
49
49
|
end
|
50
50
|
|
51
|
-
# http://www.
|
51
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sheetViews-4.html
|
52
52
|
class ChartsheetViews < OOXMLObject
|
53
53
|
define_child_node(RubyXL::ChartsheetView, :collection => true)
|
54
54
|
define_child_node(RubyXL::ExtensionStorageArea)
|
55
55
|
define_element_name 'sheetViews'
|
56
56
|
end
|
57
57
|
|
58
|
-
# http://www.
|
58
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_chartsheet.html
|
59
59
|
class Chartsheet < OOXMLTopLevelObject
|
60
60
|
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml'
|
61
61
|
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet'
|
data/lib/rubyXL/objects/color.rb
CHANGED
@@ -2,18 +2,18 @@ require 'rubyXL/objects/ooxml_object'
|
|
2
2
|
|
3
3
|
module RubyXL
|
4
4
|
|
5
|
-
# http://www.
|
5
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_col-1.html
|
6
6
|
class ColumnRange < OOXMLObject
|
7
|
-
define_attribute(:min, :uint,
|
8
|
-
define_attribute(:max, :uint,
|
7
|
+
define_attribute(:min, :uint, :required => true)
|
8
|
+
define_attribute(:max, :uint, :required => true)
|
9
9
|
define_attribute(:width, :double)
|
10
|
-
define_attribute(:style, :uint,
|
11
|
-
define_attribute(:hidden, :bool,
|
12
|
-
define_attribute(:bestFit, :bool,
|
13
|
-
define_attribute(:customWidth, :bool,
|
14
|
-
define_attribute(:phonetic, :bool,
|
15
|
-
define_attribute(:outlineLevel, :int,
|
16
|
-
define_attribute(:collapsed, :bool,
|
10
|
+
define_attribute(:style, :uint, :default => 0, :accessor => :style_index)
|
11
|
+
define_attribute(:hidden, :bool, :default => false)
|
12
|
+
define_attribute(:bestFit, :bool, :default => false)
|
13
|
+
define_attribute(:customWidth, :bool, :default => false)
|
14
|
+
define_attribute(:phonetic, :bool, :default => false)
|
15
|
+
define_attribute(:outlineLevel, :int, :default => 0)
|
16
|
+
define_attribute(:collapsed, :bool, :default => false)
|
17
17
|
define_element_name 'col'
|
18
18
|
|
19
19
|
def delete_column(col_index)
|
@@ -3,7 +3,7 @@ require 'rubyXL/objects/extensions'
|
|
3
3
|
|
4
4
|
module RubyXL
|
5
5
|
|
6
|
-
# http://www.
|
6
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_comment-1.html
|
7
7
|
class Comment < OOXMLObject
|
8
8
|
define_child_node(RubyXL::RichText, :node_name => 'text')
|
9
9
|
define_child_node(RubyXL::AlternateContent)
|
@@ -13,19 +13,19 @@ module RubyXL
|
|
13
13
|
define_element_name 'comment'
|
14
14
|
end
|
15
15
|
|
16
|
-
# http://www.
|
16
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_authors-1.html
|
17
17
|
class CommentList < OOXMLContainerObject
|
18
18
|
define_child_node(RubyXL::Comment, :collection => [0..-1])
|
19
19
|
define_element_name 'commentList'
|
20
20
|
end
|
21
21
|
|
22
|
-
# http://www.
|
22
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_authors-1.html
|
23
23
|
class Authors < OOXMLContainerObject
|
24
24
|
define_child_node(RubyXL::StringNode, :node_name => :author, :collection => [0..-1])
|
25
25
|
define_element_name 'authors'
|
26
26
|
end
|
27
27
|
|
28
|
-
# http://www.
|
28
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_comments.html
|
29
29
|
class CommentsFile < OOXMLTopLevelObject
|
30
30
|
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml'
|
31
31
|
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments'
|
@@ -49,7 +49,7 @@ module RubyXL
|
|
49
49
|
|
50
50
|
end
|
51
51
|
|
52
|
-
# http://www.
|
52
|
+
# http://www.datypic.com/sc/ooxml/e-docPropsVTypes_variant.html
|
53
53
|
class Variant < OOXMLObject
|
54
54
|
define_child_node(RubyXL::Variant, :node_name => 'vt:variant')
|
55
55
|
|
@@ -91,7 +91,7 @@ module RubyXL
|
|
91
91
|
define_element_name 'vt:vector'
|
92
92
|
end
|
93
93
|
|
94
|
-
# http://www.
|
94
|
+
# http://www.datypic.com/sc/ooxml/e-docPropsVTypes_vector.html
|
95
95
|
class Vector < OOXMLObject
|
96
96
|
define_attribute(:baseType, RubyXL::ST_VectorBaseType, :required => true)
|
97
97
|
define_attribute(:size, :int, :required => true)
|
@@ -38,7 +38,7 @@ module RubyXL
|
|
38
38
|
ext = obj.xlsx_path.extname[1..-1]
|
39
39
|
next if ext.nil?
|
40
40
|
content_types_by_ext[ext] ||= []
|
41
|
-
content_types_by_ext[ext] << klass::CONTENT_TYPE
|
41
|
+
content_types_by_ext[ext] << klass::CONTENT_TYPE
|
42
42
|
}
|
43
43
|
}
|
44
44
|
|
@@ -46,7 +46,7 @@ module RubyXL
|
|
46
46
|
|
47
47
|
# Determine which content types are used most often, and add them to the list of defaults
|
48
48
|
content_types_by_ext.each_pair { |ext, content_types_arr|
|
49
|
-
next if ext.nil? || defaults.any? { |d| d.extension == ext }
|
49
|
+
next if ext.nil? || defaults.any? { |d| d.extension == ext }
|
50
50
|
most_frequent_ct = content_types_arr.group_by { |ct| ct }.values.max_by(&:size).first
|
51
51
|
defaults << RubyXL::ContentTypeDefault.new(:extension => ext, :content_type => most_frequent_ct )
|
52
52
|
}
|
@@ -4,7 +4,7 @@ require 'rubyXL/objects/formula'
|
|
4
4
|
|
5
5
|
module RubyXL
|
6
6
|
|
7
|
-
# http://www.
|
7
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_dataValidation-1.html
|
8
8
|
class DataValidation < OOXMLObject
|
9
9
|
define_attribute(:type, RubyXL::ST_DataValidationType, :default => 'none')
|
10
10
|
define_attribute(:errorStyle, RubyXL::ST_DataValidationErrorStyle, :default => 'stop')
|
@@ -25,7 +25,7 @@ module RubyXL
|
|
25
25
|
define_element_name 'dataValidation'
|
26
26
|
end
|
27
27
|
|
28
|
-
# http://www.
|
28
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_dataValidations-1.html
|
29
29
|
class DataValidations < OOXMLContainerObject
|
30
30
|
define_attribute(:disablePrompts, :bool, :default => false)
|
31
31
|
define_attribute(:xWindow, :int)
|
@@ -4,7 +4,7 @@ require 'time'
|
|
4
4
|
|
5
5
|
module RubyXL
|
6
6
|
|
7
|
-
# http://www.
|
7
|
+
# http://www.datypic.com/sc/ooxml/e-extended-properties_Properties.html
|
8
8
|
class DocumentPropertiesFile < OOXMLTopLevelObject
|
9
9
|
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.extended-properties+xml'
|
10
10
|
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties'
|
@@ -2,7 +2,7 @@ require 'rubyXL/objects/ooxml_object'
|
|
2
2
|
|
3
3
|
module RubyXL
|
4
4
|
|
5
|
-
# http://www.
|
5
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_ext-1.html
|
6
6
|
class RawOOXML < OOXMLObject
|
7
7
|
attr_accessor :raw_xml
|
8
8
|
|
@@ -17,13 +17,13 @@ module RubyXL
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
# http://www.
|
20
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_ext-1.html
|
21
21
|
class Extension < RawOOXML
|
22
22
|
define_attribute(:uri, :string)
|
23
23
|
define_element_name 'ext'
|
24
24
|
end
|
25
25
|
|
26
|
-
# http://www.
|
26
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_extLst-1.html
|
27
27
|
class ExtensionStorageArea < OOXMLObject
|
28
28
|
define_child_node(RubyXL::Extension, :collection => true)
|
29
29
|
define_element_name 'extLst'
|
data/lib/rubyXL/objects/fill.rb
CHANGED
@@ -10,7 +10,7 @@ module RubyXL
|
|
10
10
|
define_element_name 'stop'
|
11
11
|
end
|
12
12
|
|
13
|
-
# http://www.
|
13
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_patternFill-1.html
|
14
14
|
class PatternFill < OOXMLObject
|
15
15
|
define_attribute(:patternType, RubyXL::ST_PatternType)
|
16
16
|
define_child_node(RubyXL::Color, :node_name => :fgColor )
|
@@ -18,7 +18,7 @@ module RubyXL
|
|
18
18
|
define_element_name 'patternFill'
|
19
19
|
end
|
20
20
|
|
21
|
-
# http://www.
|
21
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_gradientFill-1.html
|
22
22
|
class GradientFill < OOXMLObject
|
23
23
|
define_attribute(:type, RubyXL::ST_GradientType, :default => 'linear')
|
24
24
|
define_attribute(:degree, :double, :default => 0)
|
@@ -30,7 +30,7 @@ module RubyXL
|
|
30
30
|
define_element_name 'gradientFill'
|
31
31
|
end
|
32
32
|
|
33
|
-
# http://www.
|
33
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_fill-1.html
|
34
34
|
class Fill < OOXMLObject
|
35
35
|
define_child_node(RubyXL::PatternFill)
|
36
36
|
define_child_node(RubyXL::GradientFill)
|
@@ -42,7 +42,7 @@ module RubyXL
|
|
42
42
|
|
43
43
|
end
|
44
44
|
|
45
|
-
# http://www.
|
45
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_fills-1.html
|
46
46
|
class Fills < OOXMLContainerObject
|
47
47
|
define_child_node(RubyXL::Fill, :collection => :with_count)
|
48
48
|
define_element_name 'fills'
|
@@ -4,7 +4,7 @@ require 'rubyXL/objects/extensions'
|
|
4
4
|
|
5
5
|
module RubyXL
|
6
6
|
|
7
|
-
# http://www.
|
7
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_dateGroupItem-1.html
|
8
8
|
class DateGroupItem < OOXMLObject
|
9
9
|
define_attribute(:year, :int, :required => true)
|
10
10
|
define_attribute(:month, :int)
|
@@ -16,7 +16,7 @@ module RubyXL
|
|
16
16
|
define_element_name 'dateGroupItem'
|
17
17
|
end
|
18
18
|
|
19
|
-
# http://www.
|
19
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_filters-1.html
|
20
20
|
class FilterContainer < OOXMLObject
|
21
21
|
define_attribute(:blank, :bool, :default => false)
|
22
22
|
define_attribute(:calendarType, RubyXL::ST_CalendarType, :default => 'none')
|
@@ -25,7 +25,7 @@ module RubyXL
|
|
25
25
|
define_element_name 'filters'
|
26
26
|
end
|
27
27
|
|
28
|
-
# http://www.
|
28
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_top10-1.html
|
29
29
|
class Top10 < OOXMLObject
|
30
30
|
define_attribute(:top, :bool, :default => true)
|
31
31
|
define_attribute(:percent, :bool, :default => false)
|
@@ -34,21 +34,21 @@ module RubyXL
|
|
34
34
|
define_element_name 'top10'
|
35
35
|
end
|
36
36
|
|
37
|
-
# http://www.
|
37
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_customFilter-1.html
|
38
38
|
class CustomFilter < OOXMLObject
|
39
39
|
define_attribute(:operator, RubyXL::ST_FilterOperator, :default => 'equal')
|
40
40
|
define_attribute(:val, :string)
|
41
41
|
define_element_name 'customFilter'
|
42
42
|
end
|
43
43
|
|
44
|
-
# http://www.
|
44
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_customFilters-1.html
|
45
45
|
class CustomFilters < OOXMLContainerObject
|
46
46
|
define_attribute(:and, :bool, :default => false)
|
47
47
|
define_child_node(RubyXL::CustomFilter, :collection => true)
|
48
48
|
define_element_name 'customFilters'
|
49
49
|
end
|
50
50
|
|
51
|
-
# http://www.
|
51
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_dynamicFilter-1.html
|
52
52
|
class DynamicFilter < OOXMLObject
|
53
53
|
define_attribute(:type, RubyXL::ST_DynamicFilterType, :required => true)
|
54
54
|
define_attribute(:val, :double)
|
@@ -56,21 +56,21 @@ module RubyXL
|
|
56
56
|
define_element_name 'dynamicFilter'
|
57
57
|
end
|
58
58
|
|
59
|
-
# http://www.
|
59
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_colorFilter-1.html
|
60
60
|
class ColorFilter < OOXMLObject
|
61
61
|
define_attribute(:dxfId, :string)
|
62
62
|
define_attribute(:cellColor, :bool)
|
63
63
|
define_element_name 'colorFilter'
|
64
64
|
end
|
65
65
|
|
66
|
-
# http://www.
|
66
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_iconFilter-1.html
|
67
67
|
class IconFilter < OOXMLObject
|
68
68
|
define_attribute(:iconSet, RubyXL::ST_IconSetType)
|
69
69
|
define_attribute(:iconId, :int)
|
70
70
|
define_element_name 'iconFilter'
|
71
71
|
end
|
72
72
|
|
73
|
-
# http://www.
|
73
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_filterColumn-1.html
|
74
74
|
class AutoFilterColumn < OOXMLObject
|
75
75
|
define_attribute(:colId, :int, :required => true)
|
76
76
|
define_attribute(:hiddenButton, :bool, :default => false)
|
@@ -85,7 +85,7 @@ module RubyXL
|
|
85
85
|
define_element_name 'filterColumn'
|
86
86
|
end
|
87
87
|
|
88
|
-
# http://www.
|
88
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sortCondition-1.html
|
89
89
|
class SortCondition < OOXMLObject
|
90
90
|
define_attribute(:descending, :bool, :default => false)
|
91
91
|
define_attribute(:sortBy, RubyXL::ST_SortBy, :default => 'value')
|
@@ -97,7 +97,7 @@ module RubyXL
|
|
97
97
|
define_element_name 'sortCondition'
|
98
98
|
end
|
99
99
|
|
100
|
-
# http://www.
|
100
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_sortState-2.html
|
101
101
|
class SortState < OOXMLObject
|
102
102
|
define_attribute(:columnSort, :bool, :default => false)
|
103
103
|
define_attribute(:caseSensitive, :bool, :default => false)
|
@@ -108,7 +108,7 @@ module RubyXL
|
|
108
108
|
define_element_name 'sortState'
|
109
109
|
end
|
110
110
|
|
111
|
-
# http://www.
|
111
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_autoFilter-2.html
|
112
112
|
class AutoFilter < OOXMLObject
|
113
113
|
define_attribute(:ref, :ref)
|
114
114
|
define_child_node(RubyXL::AutoFilterColumn)
|