rubyXL 3.3.21 → 3.4.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/Gemfile +3 -2
- data/Gemfile.lock +96 -0
- data/LICENSE.txt +1 -1
- data/README.rdoc +47 -16
- data/Rakefile +3 -2
- data/VERSION +1 -1
- data/lib/rubyXL.rb +1 -0
- data/lib/rubyXL/cell.rb +1 -26
- data/lib/rubyXL/convenience_methods.rb +5 -982
- data/lib/rubyXL/convenience_methods/cell.rb +272 -0
- data/lib/rubyXL/convenience_methods/color.rb +160 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +136 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +710 -0
- data/lib/rubyXL/objects/border.rb +31 -3
- data/lib/rubyXL/objects/calculation_chain.rb +2 -2
- data/lib/rubyXL/objects/cell_style.rb +8 -8
- data/lib/rubyXL/objects/chartsheet.rb +10 -10
- data/lib/rubyXL/objects/color.rb +6 -4
- data/lib/rubyXL/objects/column_range.rb +10 -10
- data/lib/rubyXL/objects/comments.rb +6 -6
- data/lib/rubyXL/objects/connection.rb +175 -0
- 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 +4 -2
- data/lib/rubyXL/objects/document_properties.rb +3 -3
- data/lib/rubyXL/objects/extensions.rb +20 -3
- data/lib/rubyXL/objects/external_links.rb +26 -2
- data/lib/rubyXL/objects/fill.rb +4 -4
- data/lib/rubyXL/objects/filters.rb +12 -12
- data/lib/rubyXL/objects/font.rb +2 -60
- data/lib/rubyXL/objects/formula.rb +1 -1
- data/lib/rubyXL/objects/ooxml_object.rb +15 -3
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/relationships.rb +8 -3
- 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 +48 -11
- data/lib/rubyXL/objects/simple_types.rb +18 -0
- data/lib/rubyXL/objects/storage.rb +25 -1
- data/lib/rubyXL/objects/stylesheet.rb +14 -14
- data/lib/rubyXL/objects/text.rb +8 -8
- data/lib/rubyXL/objects/theme.rb +138 -119
- data/lib/rubyXL/objects/workbook.rb +153 -43
- data/lib/rubyXL/objects/worksheet.rb +118 -107
- data/lib/rubyXL/worksheet.rb +19 -13
- data/rdoc/README_rdoc.html +109 -103
- data/rdoc/RubyXL.html +39 -296
- data/rdoc/RubyXL/AExtension.html +21 -60
- data/rdoc/RubyXL/AExtensionStorageArea.html +12 -17
- data/rdoc/RubyXL/ActiveX.html +154 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +13 -19
- data/rdoc/RubyXL/Alignment.html +13 -19
- data/rdoc/RubyXL/AlternateContent.html +12 -17
- data/rdoc/RubyXL/Authors.html +13 -19
- data/rdoc/RubyXL/AutoFilter.html +13 -19
- data/rdoc/RubyXL/AutoFilterColumn.html +13 -19
- data/rdoc/RubyXL/BinaryImageFile.html +12 -25
- data/rdoc/RubyXL/BodyProperties.html +13 -19
- data/rdoc/RubyXL/BooleanNode.html +12 -17
- data/rdoc/RubyXL/BooleanValue.html +12 -17
- data/rdoc/RubyXL/Border.html +76 -53
- data/rdoc/RubyXL/BorderEdge.html +71 -17
- data/rdoc/RubyXL/Borders.html +19 -39
- data/rdoc/RubyXL/Break.html +13 -19
- data/rdoc/RubyXL/BreakList.html +13 -19
- data/rdoc/RubyXL/CT_AdjPoint2D.html +13 -19
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +13 -19
- data/rdoc/RubyXL/CT_Backdrop.html +13 -19
- data/rdoc/RubyXL/CT_Bevel.html +13 -19
- data/rdoc/RubyXL/CT_BiLevelEffect.html +13 -19
- data/rdoc/RubyXL/CT_BlendEffect.html +13 -19
- data/rdoc/RubyXL/CT_Blip.html +13 -19
- data/rdoc/RubyXL/CT_BlipFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_BlurEffect.html +13 -19
- data/rdoc/RubyXL/CT_Camera.html +13 -19
- data/rdoc/RubyXL/CT_Color.html +13 -19
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +13 -19
- data/rdoc/RubyXL/CT_ColorMapping.html +13 -19
- data/rdoc/RubyXL/CT_ColorScheme.html +13 -19
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSite.html +13 -19
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +13 -19
- data/rdoc/RubyXL/CT_DashStop.html +13 -19
- data/rdoc/RubyXL/CT_DashStopList.html +13 -19
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +13 -19
- data/rdoc/RubyXL/CT_DuotoneEffect.html +13 -19
- data/rdoc/RubyXL/CT_EffectContainer.html +13 -19
- data/rdoc/RubyXL/CT_EffectList.html +13 -19
- data/rdoc/RubyXL/CT_EffectReference.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleItem.html +13 -19
- data/rdoc/RubyXL/CT_EffectStyleList.html +13 -19
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +13 -19
- data/rdoc/RubyXL/CT_FillEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +13 -19
- data/rdoc/RubyXL/CT_FillStyleList.html +13 -19
- data/rdoc/RubyXL/CT_FlatText.html +13 -19
- data/rdoc/RubyXL/CT_FontCollection.html +13 -19
- data/rdoc/RubyXL/CT_FontReference.html +13 -19
- data/rdoc/RubyXL/CT_GeomGuideList.html +13 -19
- data/rdoc/RubyXL/CT_GlowEffect.html +13 -19
- data/rdoc/RubyXL/CT_GradientFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_GradientStop.html +13 -19
- data/rdoc/RubyXL/CT_GradientStopList.html +13 -19
- data/rdoc/RubyXL/CT_HSLEffect.html +13 -19
- data/rdoc/RubyXL/CT_HslColor.html +13 -19
- data/rdoc/RubyXL/CT_Hyperlink.html +13 -19
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_LightRig.html +13 -19
- data/rdoc/RubyXL/CT_LineEndProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineProperties.html +13 -19
- data/rdoc/RubyXL/CT_LineStyleList.html +13 -19
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_LuminanceEffect.html +13 -19
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +13 -19
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_Path2D.html +13 -19
- data/rdoc/RubyXL/CT_Path2DArcTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DList.html +13 -19
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +13 -19
- data/rdoc/RubyXL/CT_Path2DTo.html +13 -19
- data/rdoc/RubyXL/CT_PathShadeProperties.html +13 -19
- data/rdoc/RubyXL/CT_PatternFillProperties.html +13 -19
- data/rdoc/RubyXL/CT_Point3D.html +13 -19
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CT_PresetColor.html +13 -19
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +13 -19
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +13 -19
- data/rdoc/RubyXL/CT_PresetTextShape.html +13 -19
- data/rdoc/RubyXL/CT_ReflectionEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +13 -19
- data/rdoc/RubyXL/CT_RelativeRect.html +13 -19
- data/rdoc/RubyXL/CT_SRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_ScRgbColor.html +13 -19
- data/rdoc/RubyXL/CT_Scene3D.html +13 -19
- data/rdoc/RubyXL/CT_SchemeColor.html +13 -19
- data/rdoc/RubyXL/CT_Shape3D.html +13 -19
- data/rdoc/RubyXL/CT_ShapeStyle.html +13 -19
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +13 -19
- data/rdoc/RubyXL/CT_SphereCoords.html +13 -19
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrix.html +13 -19
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +13 -19
- data/rdoc/RubyXL/CT_SupplementalFont.html +13 -19
- data/rdoc/RubyXL/CT_SystemColor.html +13 -19
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextBlipBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharBullet.html +13 -19
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextFont.html +13 -19
- data/rdoc/RubyXL/CT_TextListStyle.html +13 -19
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +13 -19
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +13 -19
- data/rdoc/RubyXL/CT_TextSpacing.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStop.html +13 -19
- data/rdoc/RubyXL/CT_TextTabStopList.html +13 -19
- data/rdoc/RubyXL/CT_TileInfoProperties.html +13 -19
- data/rdoc/RubyXL/CT_TintEffect.html +13 -19
- data/rdoc/RubyXL/CT_Transform2D.html +13 -19
- data/rdoc/RubyXL/CT_TransformEffect.html +13 -19
- data/rdoc/RubyXL/CT_Vector3D.html +13 -19
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +13 -19
- data/rdoc/RubyXL/CalculationChain.html +17 -45
- data/rdoc/RubyXL/CalculationChainCell.html +13 -19
- data/rdoc/RubyXL/CalculationProperties.html +13 -19
- data/rdoc/RubyXL/Cell.html +144 -204
- data/rdoc/RubyXL/CellConvenienceMethods.html +240 -426
- data/rdoc/RubyXL/CellExt.html +13 -19
- data/rdoc/RubyXL/CellSmartTag.html +13 -19
- data/rdoc/RubyXL/CellSmartTagProperty.html +13 -19
- data/rdoc/RubyXL/CellSmartTags.html +13 -19
- data/rdoc/RubyXL/CellStyle.html +13 -19
- data/rdoc/RubyXL/CellStyleXFs.html +18 -38
- data/rdoc/RubyXL/CellStyles.html +18 -38
- data/rdoc/RubyXL/CellValue.html +18 -38
- data/rdoc/RubyXL/CellWatch.html +13 -19
- data/rdoc/RubyXL/CellWatches.html +13 -19
- data/rdoc/RubyXL/CellXFs.html +19 -39
- data/rdoc/RubyXL/ChartColorsFile.html +12 -25
- data/rdoc/RubyXL/ChartFile.html +19 -49
- data/rdoc/RubyXL/ChartStyleFile.html +12 -25
- data/rdoc/RubyXL/ChartUserShapesFile.html +12 -25
- data/rdoc/RubyXL/Chartsheet.html +19 -67
- data/rdoc/RubyXL/ChartsheetPageSetup.html +13 -19
- data/rdoc/RubyXL/ChartsheetProperties.html +13 -19
- data/rdoc/RubyXL/ChartsheetProtection.html +13 -19
- data/rdoc/RubyXL/ChartsheetView.html +13 -19
- data/rdoc/RubyXL/ChartsheetViews.html +13 -19
- data/rdoc/RubyXL/Color.html +28 -39
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +242 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +279 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +137 -0
- data/rdoc/RubyXL/ColorFilter.html +13 -19
- data/rdoc/RubyXL/ColorScale.html +13 -19
- data/rdoc/RubyXL/ColorSet.html +13 -19
- data/rdoc/RubyXL/Colors.html +13 -19
- data/rdoc/RubyXL/ColumnRange.html +20 -71
- data/rdoc/RubyXL/ColumnRanges.html +20 -79
- data/rdoc/RubyXL/Comment.html +13 -19
- data/rdoc/RubyXL/CommentList.html +13 -19
- data/rdoc/RubyXL/CommentsFile.html +17 -50
- data/rdoc/RubyXL/ConditionalFormatValue.html +13 -19
- data/rdoc/RubyXL/ConditionalFormatting.html +13 -19
- data/rdoc/RubyXL/ConditionalFormattingRule.html +13 -19
- data/rdoc/RubyXL/Connection.html +99 -0
- data/rdoc/RubyXL/ConnectionTable.html +99 -0
- data/rdoc/RubyXL/ConnectionTables.html +99 -0
- data/rdoc/RubyXL/ConnectionTextField.html +99 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +99 -0
- data/rdoc/RubyXL/Connections.html +147 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +12 -17
- data/rdoc/RubyXL/ContentTypeOverride.html +12 -17
- data/rdoc/RubyXL/ContentTypes.html +23 -63
- data/rdoc/RubyXL/ControlPropertiesFile.html +14 -22
- data/rdoc/RubyXL/CorePropertiesFile.html +26 -162
- data/rdoc/RubyXL/CustomColor.html +13 -19
- data/rdoc/RubyXL/CustomColorList.html +13 -19
- data/rdoc/RubyXL/CustomFilter.html +13 -19
- data/rdoc/RubyXL/CustomFilters.html +13 -19
- data/rdoc/RubyXL/CustomGeometry.html +13 -19
- data/rdoc/RubyXL/CustomProperties.html +13 -19
- data/rdoc/RubyXL/CustomPropertiesFile.html +12 -25
- data/rdoc/RubyXL/CustomProperty.html +13 -19
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +13 -19
- data/rdoc/RubyXL/CustomSheetViews.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookView.html +13 -19
- data/rdoc/RubyXL/CustomWorkbookViews.html +13 -19
- data/rdoc/RubyXL/CustomXMLFile.html +12 -22
- data/rdoc/RubyXL/DXF.html +13 -19
- data/rdoc/RubyXL/DXFs.html +13 -19
- data/rdoc/RubyXL/DataBar.html +13 -19
- data/rdoc/RubyXL/DataConsolidate.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReference.html +13 -19
- data/rdoc/RubyXL/DataConsolidationReferences.html +13 -19
- data/rdoc/RubyXL/DataType.html +11 -39
- data/rdoc/RubyXL/DataValidation.html +13 -19
- data/rdoc/RubyXL/DataValidations.html +13 -19
- data/rdoc/RubyXL/DateGroupItem.html +13 -19
- data/rdoc/RubyXL/DefinedName.html +13 -19
- data/rdoc/RubyXL/DefinedNameExt.html +13 -19
- data/rdoc/RubyXL/DefinedNames.html +13 -19
- data/rdoc/RubyXL/DefinedNamesExt.html +13 -19
- data/rdoc/RubyXL/DocumentPropertiesFile.html +20 -66
- data/rdoc/RubyXL/DrawingFile.html +19 -49
- data/rdoc/RubyXL/DynamicFilter.html +13 -19
- data/rdoc/RubyXL/EmbeddedControl.html +13 -19
- data/rdoc/RubyXL/EmbeddedControls.html +13 -19
- data/rdoc/RubyXL/Extension.html +13 -19
- data/rdoc/RubyXL/ExtensionStorageArea.html +13 -19
- data/rdoc/RubyXL/Extents.html +13 -19
- data/rdoc/RubyXL/ExternalBook.html +13 -19
- data/rdoc/RubyXL/ExternalLinksFile.html +19 -49
- data/rdoc/RubyXL/ExternalReference.html +13 -19
- data/rdoc/RubyXL/ExternalReferences.html +13 -19
- data/rdoc/RubyXL/ExtraColorSchemeList.html +13 -19
- data/rdoc/RubyXL/FieldItem.html +13 -19
- data/rdoc/RubyXL/FileRecoveryProperties.html +13 -19
- data/rdoc/RubyXL/FileSharing.html +13 -19
- data/rdoc/RubyXL/FileVersion.html +13 -19
- data/rdoc/RubyXL/Fill.html +18 -38
- data/rdoc/RubyXL/Fills.html +18 -38
- data/rdoc/RubyXL/FilterContainer.html +13 -19
- data/rdoc/RubyXL/FloatNode.html +12 -17
- data/rdoc/RubyXL/FloatValue.html +12 -17
- data/rdoc/RubyXL/Font.html +20 -544
- data/rdoc/RubyXL/FontConvenienceMethods.html +414 -0
- data/rdoc/RubyXL/FontScheme.html +13 -19
- data/rdoc/RubyXL/Fonts.html +19 -39
- data/rdoc/RubyXL/Formula.html +13 -19
- data/rdoc/RubyXL/FunctionGroup.html +13 -19
- data/rdoc/RubyXL/FunctionGroups.html +13 -19
- data/rdoc/RubyXL/GenericStorageObject.html +19 -81
- data/rdoc/RubyXL/GradientFill.html +13 -19
- data/rdoc/RubyXL/HeaderFooterSettings.html +13 -19
- data/rdoc/RubyXL/Hyperlink.html +13 -19
- data/rdoc/RubyXL/HyperlinkRelFile.html +12 -22
- data/rdoc/RubyXL/Hyperlinks.html +13 -19
- data/rdoc/RubyXL/IconFilter.html +13 -19
- data/rdoc/RubyXL/IconSet.html +13 -19
- data/rdoc/RubyXL/IgnoredError.html +13 -19
- data/rdoc/RubyXL/IgnoredErrors.html +13 -19
- data/rdoc/RubyXL/IndexedColors.html +13 -19
- data/rdoc/RubyXL/InputCells.html +13 -19
- data/rdoc/RubyXL/IntegerNode.html +12 -17
- data/rdoc/RubyXL/IntegerValue.html +12 -17
- data/rdoc/RubyXL/LegacyCell.html +14 -66
- data/rdoc/RubyXL/LegacyWorksheet.html +40 -100
- data/rdoc/RubyXL/MRUColors.html +13 -19
- data/rdoc/RubyXL/MacrosFile.html +12 -25
- data/rdoc/RubyXL/MergedCell.html +13 -19
- data/rdoc/RubyXL/MergedCells.html +13 -19
- data/rdoc/RubyXL/NumFmt.html +13 -19
- data/rdoc/RubyXL/NumberFormat.html +18 -38
- data/rdoc/RubyXL/NumberFormats.html +18 -44
- data/rdoc/RubyXL/OLEObject.html +13 -19
- data/rdoc/RubyXL/OLEObjectFile.html +12 -25
- data/rdoc/RubyXL/OLEObjects.html +13 -19
- data/rdoc/RubyXL/OLESize.html +13 -19
- data/rdoc/RubyXL/OOXMLContainerObject.html +36 -132
- data/rdoc/RubyXL/OOXMLIgnored.html +163 -0
- data/rdoc/RubyXL/OOXMLObject.html +15 -25
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +88 -179
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +47 -183
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +42 -194
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +37 -133
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +13 -19
- data/rdoc/RubyXL/OlapProperties.html +99 -0
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +13 -19
- data/rdoc/RubyXL/PageMargins.html +13 -19
- data/rdoc/RubyXL/PageSetup.html +13 -19
- data/rdoc/RubyXL/PageSetupProperties.html +13 -19
- data/rdoc/RubyXL/Pane.html +13 -19
- data/rdoc/RubyXL/Parser.html +20 -53
- data/rdoc/RubyXL/PatternFill.html +13 -19
- data/rdoc/RubyXL/PhoneticProperties.html +13 -19
- data/rdoc/RubyXL/PhoneticRun.html +13 -19
- data/rdoc/RubyXL/PivotArea.html +13 -19
- data/rdoc/RubyXL/PivotCache.html +13 -19
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +14 -30
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +12 -25
- data/rdoc/RubyXL/PivotCaches.html +13 -19
- data/rdoc/RubyXL/PivotReference.html +13 -19
- data/rdoc/RubyXL/PivotReferences.html +13 -19
- data/rdoc/RubyXL/PivotTableFile.html +14 -30
- data/rdoc/RubyXL/PivotTableSelection.html +13 -19
- data/rdoc/RubyXL/PresetGeometry.html +13 -19
- data/rdoc/RubyXL/PrintOptions.html +13 -19
- data/rdoc/RubyXL/PrinterSettingsFile.html +12 -25
- data/rdoc/RubyXL/ProtectedRange.html +13 -19
- data/rdoc/RubyXL/ProtectedRanges.html +13 -19
- data/rdoc/RubyXL/Protection.html +13 -19
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +155 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +99 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +99 -0
- data/rdoc/RubyXL/QueryTableField.html +99 -0
- data/rdoc/RubyXL/QueryTableFields.html +99 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +99 -0
- data/rdoc/RubyXL/RID.html +12 -17
- data/rdoc/RubyXL/RawOOXML.html +19 -58
- data/rdoc/RubyXL/Reference.html +31 -215
- data/rdoc/RubyXL/Relationship.html +12 -17
- data/rdoc/RubyXL/RelationshipSupport.html +32 -126
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +15 -33
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +18 -38
- data/rdoc/RubyXL/RichTextRun.html +17 -37
- data/rdoc/RubyXL/Row.html +53 -152
- data/rdoc/RubyXL/RowExt.html +13 -19
- data/rdoc/RubyXL/RunProperties.html +13 -19
- data/rdoc/RubyXL/Scenario.html +13 -19
- data/rdoc/RubyXL/Scenarios.html +13 -19
- data/rdoc/RubyXL/Selection.html +20 -40
- data/rdoc/RubyXL/ShapeGuide.html +13 -19
- data/rdoc/RubyXL/ShapeTextRectangle.html +13 -19
- data/rdoc/RubyXL/SharedStringsTable.html +31 -140
- data/rdoc/RubyXL/Sheet.html +13 -19
- data/rdoc/RubyXL/SheetCalculationProperties.html +13 -19
- data/rdoc/RubyXL/SheetData.html +20 -53
- data/rdoc/RubyXL/SheetDataExt.html +13 -19
- data/rdoc/RubyXL/SheetDataSet.html +13 -19
- data/rdoc/RubyXL/SheetName.html +13 -19
- data/rdoc/RubyXL/SheetNames.html +13 -19
- data/rdoc/RubyXL/Sheets.html +13 -19
- data/rdoc/RubyXL/SlicerCacheFile.html +12 -25
- data/rdoc/RubyXL/SlicerFile.html +12 -25
- data/rdoc/RubyXL/SmartTagProperties.html +13 -19
- data/rdoc/RubyXL/SmartTagType.html +13 -19
- data/rdoc/RubyXL/SmartTagTypes.html +13 -19
- data/rdoc/RubyXL/SmartTags.html +13 -19
- data/rdoc/RubyXL/SortCondition.html +13 -19
- data/rdoc/RubyXL/SortState.html +13 -19
- data/rdoc/RubyXL/Sqref.html +18 -51
- data/rdoc/RubyXL/Stop.html +13 -19
- data/rdoc/RubyXL/StringNode.html +12 -17
- data/rdoc/RubyXL/StringNodeW3C.html +19 -52
- data/rdoc/RubyXL/StringValue.html +12 -17
- data/rdoc/RubyXL/Stylesheet.html +30 -112
- data/rdoc/RubyXL/TableFile.html +12 -25
- data/rdoc/RubyXL/TableParts.html +12 -17
- data/rdoc/RubyXL/TableStyle.html +13 -19
- data/rdoc/RubyXL/TableStyles.html +13 -19
- data/rdoc/RubyXL/Text.html +19 -63
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +58 -63
- data/rdoc/RubyXL/ThemeElements.html +13 -19
- data/rdoc/RubyXL/ThumbnailFile.html +12 -25
- data/rdoc/RubyXL/Top10.html +13 -19
- data/rdoc/RubyXL/VMLDrawingFile.html +15 -32
- data/rdoc/RubyXL/Variant.html +13 -19
- data/rdoc/RubyXL/Vector.html +17 -37
- data/rdoc/RubyXL/VectorValue.html +12 -17
- data/rdoc/RubyXL/VisualProperties.html +13 -19
- data/rdoc/RubyXL/WebPublishObject.html +13 -19
- data/rdoc/RubyXL/WebPublishObjects.html +13 -19
- data/rdoc/RubyXL/WebPublishingItem.html +13 -19
- data/rdoc/RubyXL/WebPublishingItems.html +13 -19
- data/rdoc/RubyXL/WebPublishingProperties.html +13 -19
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +483 -226
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +149 -857
- data/rdoc/RubyXL/WorkbookProperties.html +13 -19
- data/rdoc/RubyXL/WorkbookProtection.html +13 -19
- data/rdoc/RubyXL/WorkbookRoot.html +23 -109
- data/rdoc/RubyXL/WorkbookView.html +13 -19
- data/rdoc/RubyXL/WorkbookViews.html +13 -19
- data/rdoc/RubyXL/Worksheet.html +70 -122
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +398 -1049
- data/rdoc/RubyXL/WorksheetDimensions.html +13 -19
- data/rdoc/RubyXL/WorksheetFormatProperties.html +12 -17
- data/rdoc/RubyXL/WorksheetProperties.html +13 -19
- data/rdoc/RubyXL/WorksheetProtection.html +13 -19
- data/rdoc/RubyXL/WorksheetView.html +13 -19
- data/rdoc/RubyXL/WorksheetViews.html +13 -19
- data/rdoc/RubyXL/XF.html +13 -19
- data/rdoc/created.rid +45 -38
- data/rdoc/css/fonts.css +6 -6
- data/rdoc/css/rdoc.css +35 -6
- data/rdoc/index.html +43 -363
- data/rdoc/js/darkfish.js +23 -100
- data/rdoc/js/navigation.js +4 -41
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +7 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +368 -75
- data/rubyXL.gemspec +60 -26
- data/spec/lib/cell_spec.rb +147 -2
- data/spec/lib/color_spec.rb +1 -0
- data/spec/lib/parser_spec.rb +1 -1
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/text_spec.rb +8 -0
- data/spec/lib/workbook_spec.rb +12 -1
- data/spec/lib/worksheet_spec.rb +353 -37
- data/test/test_parse_write.rb +15 -15
- metadata +63 -9
- data/rdoc/js/jquery.js +0 -4
@@ -6,9 +6,17 @@ module RubyXL
|
|
6
6
|
class BorderEdge < OOXMLObject
|
7
7
|
define_attribute(:style, RubyXL::ST_BorderStyle, :default => 'none')
|
8
8
|
define_child_node(RubyXL::Color)
|
9
|
+
|
10
|
+
def set_rgb_color(font_color)
|
11
|
+
self.color = RubyXL::Color.new(:rgb => font_color.to_s)
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_rgb_color
|
15
|
+
color && color.rgb
|
16
|
+
end
|
9
17
|
end
|
10
18
|
|
11
|
-
# http://www.
|
19
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_border-2.html
|
12
20
|
class Border < OOXMLObject
|
13
21
|
define_attribute(:diagonalUp, :bool)
|
14
22
|
define_attribute(:diagonalDown, :bool)
|
@@ -28,11 +36,31 @@ module RubyXL
|
|
28
36
|
end
|
29
37
|
|
30
38
|
def set_edge_style(direction, style)
|
31
|
-
self.send(
|
39
|
+
edge = self.send(direction)
|
40
|
+
if edge
|
41
|
+
edge.style = style
|
42
|
+
else
|
43
|
+
self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def get_edge_color(direction)
|
48
|
+
edge = self.send(direction)
|
49
|
+
edge && edge.get_rgb_color
|
50
|
+
end
|
51
|
+
|
52
|
+
def set_edge_color(direction, color)
|
53
|
+
edge = self.send(direction)
|
54
|
+
if edge
|
55
|
+
edge.set_rgb_color(color)
|
56
|
+
else
|
57
|
+
self.send("#{direction}=", RubyXL::BorderEdge.new)
|
58
|
+
self.send(direction).set_rgb_color(color)
|
59
|
+
end
|
32
60
|
end
|
33
61
|
end
|
34
62
|
|
35
|
-
# http://www.
|
63
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_borders-1.html
|
36
64
|
class Borders < OOXMLContainerObject
|
37
65
|
define_child_node(RubyXL::Border, :collection => :with_count)
|
38
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,28 +14,28 @@ 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)
|
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
|
|
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,23 +6,23 @@ 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
|
-
define_attribute(:password,
|
11
|
+
define_attribute(:password, RubyXL::ST_UnsignedShortHex)
|
12
12
|
define_attribute(:content, :bool, :default => false)
|
13
13
|
define_attribute(:objects, :bool, :default => false)
|
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
|
-
define_attribute(:published,
|
20
|
-
define_attribute(:codeName,
|
19
|
+
define_attribute(:published, :bool, :default => true)
|
20
|
+
define_attribute(:codeName, :string)
|
21
21
|
define_child_node(RubyXL::Color, :node_name => :tabColor)
|
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)
|
@@ -34,11 +34,11 @@ module RubyXL
|
|
34
34
|
define_attribute(:horizontalDpi, :int, :default => 600)
|
35
35
|
define_attribute(:verticalDpi, :int, :default => 600)
|
36
36
|
define_attribute(:copies, :int, :default => 1)
|
37
|
-
|
37
|
+
define_relationship
|
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
@@ -1,25 +1,27 @@
|
|
1
1
|
require 'rubyXL/objects/ooxml_object'
|
2
|
+
require 'rubyXL/objects/simple_types'
|
2
3
|
|
3
4
|
module RubyXL
|
4
5
|
|
5
|
-
# http://www.
|
6
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_color-4.html
|
6
7
|
class Color < OOXMLObject
|
8
|
+
COLOR_REGEXP = /\A([a-f]|[A-F]|[0-9]){6}\Z/
|
9
|
+
|
7
10
|
define_attribute(:auto, :bool)
|
8
11
|
define_attribute(:indexed, :uint)
|
9
|
-
define_attribute(:rgb,
|
12
|
+
define_attribute(:rgb, RubyXL::ST_UnsignedIntHex)
|
10
13
|
define_attribute(:theme, :uint)
|
11
14
|
define_attribute(:tint, :double, :default => 0.0)
|
12
15
|
define_element_name 'color'
|
13
16
|
|
14
17
|
#validates hex color code, no '#' allowed
|
15
18
|
def self.validate_color(color)
|
16
|
-
if color =~
|
19
|
+
if color =~ COLOR_REGEXP
|
17
20
|
return true
|
18
21
|
else
|
19
22
|
raise 'invalid color'
|
20
23
|
end
|
21
24
|
end
|
22
|
-
|
23
25
|
end
|
24
26
|
|
25
27
|
end
|
@@ -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
|
-
define_child_node(RubyXL::Comment, :collection =>
|
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
|
-
define_child_node(RubyXL::StringNode, :node_name => :author, :collection =>
|
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'
|
@@ -0,0 +1,175 @@
|
|
1
|
+
require 'rubyXL/objects/ooxml_object'
|
2
|
+
require 'rubyXL/objects/simple_types'
|
3
|
+
require 'rubyXL/objects/extensions'
|
4
|
+
|
5
|
+
# Connections
|
6
|
+
# https://msdn.microsoft.com/en-us/library/dd908547(v=office.12).aspx
|
7
|
+
# http://www.datypic.com/sc/ooxml/s-sml-externalConnections.xsd.html
|
8
|
+
|
9
|
+
module RubyXL
|
10
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_dbPr-1.html
|
11
|
+
class OdbcOleDbProperties < OOXMLObject
|
12
|
+
define_attribute(:connection, RubyXL::ST_Xstring, :required => true)
|
13
|
+
define_attribute(:command, RubyXL::ST_Xstring)
|
14
|
+
define_attribute(:serverCommand, RubyXL::ST_Xstring)
|
15
|
+
define_attribute(:commandType, :uint, :default => 2)
|
16
|
+
|
17
|
+
define_element_name 'dbPr'
|
18
|
+
end
|
19
|
+
|
20
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_olapPr-1.html
|
21
|
+
class OlapProperties < OOXMLObject
|
22
|
+
define_attribute(:local, :bool, :default => false)
|
23
|
+
define_attribute(:localConnection, RubyXL::ST_Xstring)
|
24
|
+
define_attribute(:localRefresh, :bool, :default => true)
|
25
|
+
define_attribute(:sendLocale, :bool, :default => false)
|
26
|
+
define_attribute(:rowDrillCount, :uint)
|
27
|
+
define_attribute(:serverFill, :bool, :default => true)
|
28
|
+
define_attribute(:serverNumberFormat, :bool, :default => true)
|
29
|
+
define_attribute(:serverFont, :bool, :default => true)
|
30
|
+
define_attribute(:serverFontColor, :bool, :default => true)
|
31
|
+
|
32
|
+
define_element_name 'olapPr'
|
33
|
+
end
|
34
|
+
|
35
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_s-1.html
|
36
|
+
# TODO: ssml:m & ssml:x... but how?
|
37
|
+
class ConnectionTable < OOXMLObject
|
38
|
+
define_attribute(:v, RubyXL::ST_Xstring, :required => true)
|
39
|
+
|
40
|
+
define_element_name 's'
|
41
|
+
end
|
42
|
+
|
43
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_tables-1.html
|
44
|
+
class ConnectionTables < OOXMLObject
|
45
|
+
define_child_node(RubyXL::ConnectionTable, :collection => :with_count, :accessor => :tables, :node_name => :table)
|
46
|
+
define_element_name 'tables'
|
47
|
+
end
|
48
|
+
|
49
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_webPr-1.html
|
50
|
+
class WebQueryProperties < OOXMLObject
|
51
|
+
define_attribute(:xml, :bool, :default => false)
|
52
|
+
define_attribute(:sourceData, :bool, :default => false)
|
53
|
+
define_attribute(:parsePre, :bool, :default => false)
|
54
|
+
define_attribute(:consecutive, :bool, :default => false)
|
55
|
+
define_attribute(:firstRow, :bool, :default => false)
|
56
|
+
define_attribute(:xl97, :bool, :default => false)
|
57
|
+
define_attribute(:textDates, :bool, :default => false)
|
58
|
+
define_attribute(:xl2000, :bool, :default => false)
|
59
|
+
define_attribute(:url, RubyXL::ST_Xstring)
|
60
|
+
define_attribute(:post, RubyXL::ST_Xstring)
|
61
|
+
define_attribute(:htmlTables, :bool, :default => false)
|
62
|
+
define_attribute(:htmlFormat, ssml:ST_HtmlFmt, :default => "none")
|
63
|
+
define_attribute(:editPage, RubyXL::ST_Xstring)
|
64
|
+
|
65
|
+
define_child_node(RubyXL::ConnectionTables)
|
66
|
+
|
67
|
+
define_element_name 'webPr'
|
68
|
+
end
|
69
|
+
|
70
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_textField-1.html
|
71
|
+
class ConnectionTextField < OOXMLObject
|
72
|
+
define_attribute(:type, RubyXL::ST_ExternalConnectionType, :default => "general")
|
73
|
+
define_attribute(:position, :uint, :default => 0)
|
74
|
+
end
|
75
|
+
|
76
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_textFields-1.html
|
77
|
+
class ConnectionTextFields < OOXMLObject
|
78
|
+
define_child_node(RubyXL::ConnectionTextField, :collection => :with_count, :accessor => :text_fields, :node_name => :textField)
|
79
|
+
|
80
|
+
define_element_name 'textFields'
|
81
|
+
end
|
82
|
+
|
83
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_textPr-1.html
|
84
|
+
class TextImportSettings < OOXMLObject
|
85
|
+
define_attribute(:prompt, :bool, :default => true)
|
86
|
+
define_attribute(:fileType, RubyXL::ST_FileType, :default => "win")
|
87
|
+
define_attribute(:codePage, :uint, :default => 1252)
|
88
|
+
define_attribute(:firstRow, :uint, :default => 1)
|
89
|
+
define_attribute(:sourceFile, RubyXL::ST_Xstring, :default => "")
|
90
|
+
define_attribute(:delimited, :bool, :default => true)
|
91
|
+
define_attribute(:decimal, RubyXL::ST_Xstring, :default => ".")
|
92
|
+
define_attribute(:thousands, RubyXL::ST_Xstring, :default => ",")
|
93
|
+
define_attribute(:tab, :bool, :default => true)
|
94
|
+
define_attribute(:space, :bool, :default => false)
|
95
|
+
define_attribute(:comma, :bool, :default => false)
|
96
|
+
define_attribute(:semicolon, :bool, :default => false)
|
97
|
+
define_attribute(:consecutive, :bool, :default => false)
|
98
|
+
define_attribute(:qualifier, ssml:ST_Qualifier, :default => "doubleQuote")
|
99
|
+
define_attribute(:delimiter, RubyXL::ST_Xstring)
|
100
|
+
|
101
|
+
define_child_node(RubyXL::ConnectionTextFields)
|
102
|
+
|
103
|
+
define_element_name 'textPr'
|
104
|
+
end
|
105
|
+
|
106
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_parameter-1.html
|
107
|
+
class QueryParameter < OOXMLObject
|
108
|
+
define_attribute(:name, RubyXL::ST_Xstring)
|
109
|
+
define_attribute(:sqlType, :int, :default => 0)
|
110
|
+
define_attribute(:parameterType, RubyXL::ST_ParameterType, :default => "prompt")
|
111
|
+
define_attribute(:refreshOnChange, :bool, :default => false)
|
112
|
+
define_attribute(:prompt, RubyXL::ST_Xstring)
|
113
|
+
define_attribute(:boolean, :bool)
|
114
|
+
define_attribute(:double, :double)
|
115
|
+
define_attribute(:integer, :int)
|
116
|
+
define_attribute(:string, RubyXL::ST_Xstring)
|
117
|
+
define_attribute(:cell, RubyXL::ST_Xstring)
|
118
|
+
define_element_name 'parameter'
|
119
|
+
end
|
120
|
+
|
121
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_parameters-1.html
|
122
|
+
class QueryParameters < OOXMLObject
|
123
|
+
define_child_node(RubyXL::QueryParameter, :collection => :with_count, :accessor => :parameters, :node_name => :parameter)
|
124
|
+
define_element_name 'parameters'
|
125
|
+
end
|
126
|
+
|
127
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_connection-1.html
|
128
|
+
class Connection < OOXMLObject
|
129
|
+
define_attribute(:id, :uint, :required => true)
|
130
|
+
define_attribute(:sourceFile, RubyXL::ST_Xstring)
|
131
|
+
define_attribute(:odcFile, RubyXL::ST_Xstring)
|
132
|
+
define_attribute(:keepAlive, :bool, :default => false)
|
133
|
+
define_attribute(:interval, :uint, :default => 0)
|
134
|
+
define_attribute(:name, RubyXL::ST_Xstring)
|
135
|
+
define_attribute(:description, RubyXL::ST_Xstring)
|
136
|
+
define_attribute(:type, :uint)
|
137
|
+
define_attribute(:reconnectionMethod, :uint, :default => 1)
|
138
|
+
define_attribute(:refreshedVersion, :uint, :required => true)
|
139
|
+
define_attribute(:minRefreshableVersion, :uint, :default => 0)
|
140
|
+
define_attribute(:savePassword, :bool, :default => false)
|
141
|
+
define_attribute(:new, :bool, :default => false)
|
142
|
+
define_attribute(:deleted, :bool, :default => false)
|
143
|
+
define_attribute(:onlyUseConnectionFile, :bool, :default => false)
|
144
|
+
define_attribute(:background, :bool, :default => false)
|
145
|
+
define_attribute(:refreshOnLoad, :bool, :default => false)
|
146
|
+
define_attribute(:saveData, :bool, :default => false)
|
147
|
+
define_attribute(:credentials, RubyXL::ST_CredMethod, :default => "integrated")
|
148
|
+
define_attribute(:singleSignOnId, RubyXL::ST_Xstring)
|
149
|
+
|
150
|
+
define_child_node(RubyXL::OdbcOleDbProperties)
|
151
|
+
define_child_node(RubyXL::OlapProperties)
|
152
|
+
define_child_node(RubyXL::WebQueryProperties)
|
153
|
+
define_child_node(RubyXL::TextImportSettings)
|
154
|
+
define_child_node(RubyXL::QueryParameters)
|
155
|
+
define_child_node(RubyXL::ExtensionStorageArea)
|
156
|
+
|
157
|
+
define_element_name 'connection'
|
158
|
+
end
|
159
|
+
|
160
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_connections.html
|
161
|
+
class Connections < OOXMLTopLevelObject
|
162
|
+
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml'
|
163
|
+
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections'
|
164
|
+
|
165
|
+
define_child_node(RubyXL::Connection, :collection => true, :accessor => :connections)
|
166
|
+
|
167
|
+
define_element_name 'connections'
|
168
|
+
|
169
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => nil)
|
170
|
+
|
171
|
+
def xlsx_path
|
172
|
+
ROOT.join('xl', 'connections.xml')
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|