rubyXL 3.4.3 → 3.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +59 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +92 -0
- data/README.rdoc +6 -1
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/rubyXL.rb +1 -0
- data/lib/rubyXL/objects/chartsheet.rb +2 -2
- data/lib/rubyXL/objects/color.rb +2 -1
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/query_table.rb +104 -0
- data/lib/rubyXL/objects/relationships.rb +7 -2
- data/lib/rubyXL/objects/simple_types.rb +13 -0
- data/lib/rubyXL/objects/workbook.rb +2 -0
- data/lib/rubyXL/objects/worksheet.rb +3 -0
- data/rdoc/README_rdoc.html +55 -95
- data/rdoc/RubyXL.html +52 -23
- data/rdoc/RubyXL/AExtension.html +8 -11
- data/rdoc/RubyXL/AExtensionStorageArea.html +3 -5
- data/rdoc/RubyXL/ActiveX.html +4 -6
- data/rdoc/RubyXL/ActiveXBinary.html +3 -5
- data/rdoc/RubyXL/AdjustHandleList.html +4 -7
- data/rdoc/RubyXL/Alignment.html +4 -7
- data/rdoc/RubyXL/AlternateContent.html +3 -5
- data/rdoc/RubyXL/Authors.html +4 -7
- data/rdoc/RubyXL/AutoFilter.html +4 -7
- data/rdoc/RubyXL/AutoFilterColumn.html +4 -7
- data/rdoc/RubyXL/BinaryImageFile.html +3 -5
- data/rdoc/RubyXL/BodyProperties.html +4 -7
- data/rdoc/RubyXL/BooleanNode.html +3 -5
- data/rdoc/RubyXL/BooleanValue.html +3 -5
- data/rdoc/RubyXL/Border.html +9 -12
- data/rdoc/RubyXL/BorderEdge.html +6 -8
- data/rdoc/RubyXL/Borders.html +6 -9
- data/rdoc/RubyXL/Break.html +4 -7
- data/rdoc/RubyXL/BreakList.html +4 -7
- data/rdoc/RubyXL/CT_AdjPoint2D.html +4 -7
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +4 -7
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +4 -7
- data/rdoc/RubyXL/CT_Backdrop.html +4 -7
- data/rdoc/RubyXL/CT_Bevel.html +4 -7
- data/rdoc/RubyXL/CT_BiLevelEffect.html +4 -7
- data/rdoc/RubyXL/CT_BlendEffect.html +4 -7
- data/rdoc/RubyXL/CT_Blip.html +4 -7
- data/rdoc/RubyXL/CT_BlipFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_BlurEffect.html +4 -7
- data/rdoc/RubyXL/CT_Camera.html +4 -7
- data/rdoc/RubyXL/CT_Color.html +4 -7
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +4 -7
- data/rdoc/RubyXL/CT_ColorMapping.html +4 -7
- data/rdoc/RubyXL/CT_ColorScheme.html +4 -7
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +4 -7
- data/rdoc/RubyXL/CT_ConnectionSite.html +4 -7
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +4 -7
- data/rdoc/RubyXL/CT_DashStop.html +4 -7
- data/rdoc/RubyXL/CT_DashStopList.html +4 -7
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +4 -7
- data/rdoc/RubyXL/CT_DuotoneEffect.html +4 -7
- data/rdoc/RubyXL/CT_EffectContainer.html +4 -7
- data/rdoc/RubyXL/CT_EffectList.html +4 -7
- data/rdoc/RubyXL/CT_EffectReference.html +4 -7
- data/rdoc/RubyXL/CT_EffectStyleItem.html +4 -7
- data/rdoc/RubyXL/CT_EffectStyleList.html +4 -7
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +4 -7
- data/rdoc/RubyXL/CT_FillEffect.html +4 -7
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +4 -7
- data/rdoc/RubyXL/CT_FillStyleList.html +4 -7
- data/rdoc/RubyXL/CT_FlatText.html +4 -7
- data/rdoc/RubyXL/CT_FontCollection.html +4 -7
- data/rdoc/RubyXL/CT_FontReference.html +4 -7
- data/rdoc/RubyXL/CT_GeomGuideList.html +4 -7
- data/rdoc/RubyXL/CT_GlowEffect.html +4 -7
- data/rdoc/RubyXL/CT_GradientFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_GradientStop.html +4 -7
- data/rdoc/RubyXL/CT_GradientStopList.html +4 -7
- data/rdoc/RubyXL/CT_HSLEffect.html +4 -7
- data/rdoc/RubyXL/CT_HslColor.html +4 -7
- data/rdoc/RubyXL/CT_Hyperlink.html +4 -7
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_LightRig.html +4 -7
- data/rdoc/RubyXL/CT_LineEndProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineProperties.html +4 -7
- data/rdoc/RubyXL/CT_LineStyleList.html +4 -7
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +4 -7
- data/rdoc/RubyXL/CT_LuminanceEffect.html +4 -7
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +4 -7
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_Path2D.html +4 -7
- data/rdoc/RubyXL/CT_Path2DArcTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DList.html +4 -7
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +4 -7
- data/rdoc/RubyXL/CT_Path2DTo.html +4 -7
- data/rdoc/RubyXL/CT_PathShadeProperties.html +4 -7
- data/rdoc/RubyXL/CT_PatternFillProperties.html +4 -7
- data/rdoc/RubyXL/CT_Point3D.html +4 -7
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +4 -7
- data/rdoc/RubyXL/CT_PresetColor.html +4 -7
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +4 -7
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +4 -7
- data/rdoc/RubyXL/CT_PresetTextShape.html +4 -7
- data/rdoc/RubyXL/CT_ReflectionEffect.html +4 -7
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +4 -7
- data/rdoc/RubyXL/CT_RelativeRect.html +4 -7
- data/rdoc/RubyXL/CT_SRgbColor.html +4 -7
- data/rdoc/RubyXL/CT_ScRgbColor.html +4 -7
- data/rdoc/RubyXL/CT_Scene3D.html +4 -7
- data/rdoc/RubyXL/CT_SchemeColor.html +4 -7
- data/rdoc/RubyXL/CT_Shape3D.html +4 -7
- data/rdoc/RubyXL/CT_ShapeStyle.html +4 -7
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +4 -7
- data/rdoc/RubyXL/CT_SphereCoords.html +4 -7
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +4 -7
- data/rdoc/RubyXL/CT_StyleMatrix.html +4 -7
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +4 -7
- data/rdoc/RubyXL/CT_SupplementalFont.html +4 -7
- data/rdoc/RubyXL/CT_SystemColor.html +4 -7
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextBlipBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextCharBullet.html +4 -7
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +4 -7
- data/rdoc/RubyXL/CT_TextFont.html +4 -7
- data/rdoc/RubyXL/CT_TextListStyle.html +4 -7
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +4 -7
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +4 -7
- data/rdoc/RubyXL/CT_TextSpacing.html +4 -7
- data/rdoc/RubyXL/CT_TextTabStop.html +4 -7
- data/rdoc/RubyXL/CT_TextTabStopList.html +4 -7
- data/rdoc/RubyXL/CT_TileInfoProperties.html +4 -7
- data/rdoc/RubyXL/CT_TintEffect.html +4 -7
- data/rdoc/RubyXL/CT_Transform2D.html +4 -7
- data/rdoc/RubyXL/CT_TransformEffect.html +4 -7
- data/rdoc/RubyXL/CT_Vector3D.html +4 -7
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +4 -7
- data/rdoc/RubyXL/CalculationChain.html +5 -8
- data/rdoc/RubyXL/CalculationChainCell.html +4 -7
- data/rdoc/RubyXL/CalculationProperties.html +4 -7
- data/rdoc/RubyXL/Cell.html +19 -24
- data/rdoc/RubyXL/CellConvenienceMethods.html +43 -46
- data/rdoc/RubyXL/CellExt.html +4 -7
- data/rdoc/RubyXL/CellSmartTag.html +4 -7
- data/rdoc/RubyXL/CellSmartTagProperty.html +4 -7
- data/rdoc/RubyXL/CellSmartTags.html +4 -7
- data/rdoc/RubyXL/CellStyle.html +4 -7
- data/rdoc/RubyXL/CellStyleXFs.html +6 -9
- data/rdoc/RubyXL/CellStyles.html +6 -9
- data/rdoc/RubyXL/CellValue.html +5 -8
- data/rdoc/RubyXL/CellWatch.html +4 -7
- data/rdoc/RubyXL/CellWatches.html +4 -7
- data/rdoc/RubyXL/CellXFs.html +7 -10
- data/rdoc/RubyXL/ChartColorsFile.html +3 -5
- data/rdoc/RubyXL/ChartFile.html +4 -6
- data/rdoc/RubyXL/ChartStyleFile.html +3 -5
- data/rdoc/RubyXL/ChartUserShapesFile.html +3 -5
- data/rdoc/RubyXL/Chartsheet.html +5 -8
- data/rdoc/RubyXL/ChartsheetPageSetup.html +4 -7
- data/rdoc/RubyXL/ChartsheetProperties.html +4 -7
- data/rdoc/RubyXL/ChartsheetProtection.html +4 -7
- data/rdoc/RubyXL/ChartsheetView.html +4 -7
- data/rdoc/RubyXL/ChartsheetViews.html +4 -7
- data/rdoc/RubyXL/Color.html +6 -9
- data/rdoc/RubyXL/ColorConvenienceClasses.html +3 -5
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +5 -7
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +7 -10
- data/rdoc/RubyXL/ColorConvenienceMethods.html +4 -6
- data/rdoc/RubyXL/ColorFilter.html +4 -7
- data/rdoc/RubyXL/ColorScale.html +4 -7
- data/rdoc/RubyXL/ColorSet.html +4 -7
- data/rdoc/RubyXL/Colors.html +4 -7
- data/rdoc/RubyXL/ColumnRange.html +8 -11
- data/rdoc/RubyXL/ColumnRanges.html +8 -11
- data/rdoc/RubyXL/Comment.html +4 -7
- data/rdoc/RubyXL/CommentList.html +4 -7
- data/rdoc/RubyXL/CommentsFile.html +5 -8
- data/rdoc/RubyXL/ConditionalFormatValue.html +4 -7
- data/rdoc/RubyXL/ConditionalFormatting.html +4 -7
- data/rdoc/RubyXL/ConditionalFormattingRule.html +4 -7
- data/rdoc/RubyXL/Connection.html +103 -0
- data/rdoc/RubyXL/ConnectionTable.html +103 -0
- data/rdoc/RubyXL/ConnectionTables.html +103 -0
- data/rdoc/RubyXL/ConnectionTextField.html +103 -0
- data/rdoc/RubyXL/ConnectionTextFields.html +103 -0
- data/rdoc/RubyXL/Connections.html +173 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +3 -5
- data/rdoc/RubyXL/ContentTypeOverride.html +3 -5
- data/rdoc/RubyXL/ContentTypes.html +9 -11
- data/rdoc/RubyXL/ControlPropertiesFile.html +3 -5
- data/rdoc/RubyXL/CorePropertiesFile.html +14 -16
- data/rdoc/RubyXL/CustomColor.html +4 -7
- data/rdoc/RubyXL/CustomColorList.html +4 -7
- data/rdoc/RubyXL/CustomFilter.html +4 -7
- data/rdoc/RubyXL/CustomFilters.html +4 -7
- data/rdoc/RubyXL/CustomGeometry.html +4 -7
- data/rdoc/RubyXL/CustomProperties.html +4 -7
- data/rdoc/RubyXL/CustomPropertiesFile.html +3 -5
- data/rdoc/RubyXL/CustomProperty.html +4 -7
- data/rdoc/RubyXL/CustomPropertyFile.html +3 -5
- data/rdoc/RubyXL/CustomSheetView.html +4 -7
- data/rdoc/RubyXL/CustomSheetViews.html +4 -7
- data/rdoc/RubyXL/CustomWorkbookView.html +4 -7
- data/rdoc/RubyXL/CustomWorkbookViews.html +4 -7
- data/rdoc/RubyXL/CustomXMLFile.html +3 -5
- data/rdoc/RubyXL/DXF.html +4 -7
- data/rdoc/RubyXL/DXFs.html +4 -7
- data/rdoc/RubyXL/DataBar.html +4 -7
- data/rdoc/RubyXL/DataConsolidate.html +4 -7
- data/rdoc/RubyXL/DataConsolidationReference.html +4 -7
- data/rdoc/RubyXL/DataConsolidationReferences.html +4 -7
- data/rdoc/RubyXL/DataType.html +4 -7
- data/rdoc/RubyXL/DataValidation.html +4 -7
- data/rdoc/RubyXL/DataValidations.html +4 -7
- data/rdoc/RubyXL/DateGroupItem.html +4 -7
- data/rdoc/RubyXL/DefinedName.html +4 -7
- data/rdoc/RubyXL/DefinedNameExt.html +4 -7
- data/rdoc/RubyXL/DefinedNames.html +4 -7
- data/rdoc/RubyXL/DefinedNamesExt.html +4 -7
- data/rdoc/RubyXL/DocumentPropertiesFile.html +8 -11
- data/rdoc/RubyXL/DrawingFile.html +4 -6
- data/rdoc/RubyXL/DynamicFilter.html +4 -7
- data/rdoc/RubyXL/EmbeddedControl.html +4 -7
- data/rdoc/RubyXL/EmbeddedControls.html +4 -7
- data/rdoc/RubyXL/Extension.html +4 -7
- data/rdoc/RubyXL/ExtensionStorageArea.html +4 -7
- data/rdoc/RubyXL/Extents.html +4 -7
- data/rdoc/RubyXL/ExternalBook.html +4 -7
- data/rdoc/RubyXL/ExternalLinksFile.html +4 -6
- data/rdoc/RubyXL/ExternalReference.html +4 -7
- data/rdoc/RubyXL/ExternalReferences.html +4 -7
- data/rdoc/RubyXL/ExtraColorSchemeList.html +4 -7
- data/rdoc/RubyXL/FieldItem.html +4 -7
- data/rdoc/RubyXL/FileRecoveryProperties.html +4 -7
- data/rdoc/RubyXL/FileSharing.html +4 -7
- data/rdoc/RubyXL/FileVersion.html +4 -7
- data/rdoc/RubyXL/Fill.html +6 -9
- data/rdoc/RubyXL/Fills.html +6 -9
- data/rdoc/RubyXL/FilterContainer.html +4 -7
- data/rdoc/RubyXL/FloatNode.html +3 -5
- data/rdoc/RubyXL/FloatValue.html +3 -5
- data/rdoc/RubyXL/Font.html +8 -12
- data/rdoc/RubyXL/FontConvenienceMethods.html +25 -28
- data/rdoc/RubyXL/FontScheme.html +4 -7
- data/rdoc/RubyXL/Fonts.html +6 -9
- data/rdoc/RubyXL/Formula.html +4 -7
- data/rdoc/RubyXL/FunctionGroup.html +4 -7
- data/rdoc/RubyXL/FunctionGroups.html +4 -7
- data/rdoc/RubyXL/GenericStorageObject.html +6 -8
- data/rdoc/RubyXL/GradientFill.html +4 -7
- data/rdoc/RubyXL/HeaderFooterSettings.html +4 -7
- data/rdoc/RubyXL/Hyperlink.html +4 -7
- data/rdoc/RubyXL/HyperlinkRelFile.html +3 -5
- data/rdoc/RubyXL/Hyperlinks.html +4 -7
- data/rdoc/RubyXL/IconFilter.html +4 -7
- data/rdoc/RubyXL/IconSet.html +4 -7
- data/rdoc/RubyXL/IgnoredError.html +4 -7
- data/rdoc/RubyXL/IgnoredErrors.html +4 -7
- data/rdoc/RubyXL/IndexedColors.html +4 -7
- data/rdoc/RubyXL/InputCells.html +4 -7
- data/rdoc/RubyXL/IntegerNode.html +3 -5
- data/rdoc/RubyXL/IntegerValue.html +3 -5
- data/rdoc/RubyXL/LegacyCell.html +4 -6
- data/rdoc/RubyXL/LegacyWorksheet.html +10 -12
- data/rdoc/RubyXL/MRUColors.html +4 -7
- data/rdoc/RubyXL/MacrosFile.html +3 -5
- data/rdoc/RubyXL/MergedCell.html +4 -7
- data/rdoc/RubyXL/MergedCells.html +4 -7
- data/rdoc/RubyXL/NumFmt.html +4 -7
- data/rdoc/RubyXL/NumberFormat.html +6 -9
- data/rdoc/RubyXL/NumberFormats.html +6 -10
- data/rdoc/RubyXL/OLEObject.html +4 -7
- data/rdoc/RubyXL/OLEObjectFile.html +3 -5
- data/rdoc/RubyXL/OLEObjects.html +4 -7
- data/rdoc/RubyXL/OLESize.html +4 -7
- data/rdoc/RubyXL/OOXMLContainerObject.html +13 -18
- data/rdoc/RubyXL/OOXMLIgnored.html +5 -7
- data/rdoc/RubyXL/OOXMLObject.html +4 -8
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +49 -96
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +20 -44
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +28 -27
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -32
- data/rdoc/RubyXL/OdbcOleDbProperties.html +103 -0
- data/rdoc/RubyXL/Offset.html +4 -7
- data/rdoc/RubyXL/OlapProperties.html +103 -0
- data/rdoc/RubyXL/OutlineProperties.html +4 -7
- data/rdoc/RubyXL/PageMargins.html +4 -7
- data/rdoc/RubyXL/PageSetup.html +4 -7
- data/rdoc/RubyXL/PageSetupProperties.html +4 -7
- data/rdoc/RubyXL/Pane.html +4 -7
- data/rdoc/RubyXL/Parser.html +8 -11
- data/rdoc/RubyXL/PatternFill.html +4 -7
- data/rdoc/RubyXL/PhoneticProperties.html +4 -7
- data/rdoc/RubyXL/PhoneticRun.html +4 -7
- data/rdoc/RubyXL/PivotArea.html +4 -7
- data/rdoc/RubyXL/PivotCache.html +4 -7
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +3 -5
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +3 -5
- data/rdoc/RubyXL/PivotCaches.html +4 -7
- data/rdoc/RubyXL/PivotReference.html +4 -7
- data/rdoc/RubyXL/PivotReferences.html +4 -7
- data/rdoc/RubyXL/PivotTableFile.html +3 -5
- data/rdoc/RubyXL/PivotTableSelection.html +4 -7
- data/rdoc/RubyXL/PresetGeometry.html +4 -7
- data/rdoc/RubyXL/PrintOptions.html +4 -7
- data/rdoc/RubyXL/PrinterSettingsFile.html +3 -5
- data/rdoc/RubyXL/ProtectedRange.html +4 -7
- data/rdoc/RubyXL/ProtectedRanges.html +4 -7
- data/rdoc/RubyXL/Protection.html +4 -7
- data/rdoc/RubyXL/QueryParameter.html +103 -0
- data/rdoc/RubyXL/QueryParameters.html +103 -0
- data/rdoc/RubyXL/QueryTable.html +184 -0
- data/rdoc/RubyXL/QueryTableDeletedField.html +103 -0
- data/rdoc/RubyXL/QueryTableDeletedFields.html +103 -0
- data/rdoc/RubyXL/QueryTableField.html +103 -0
- data/rdoc/RubyXL/QueryTableFields.html +103 -0
- data/rdoc/RubyXL/QueryTableRefresh.html +103 -0
- data/rdoc/RubyXL/RID.html +3 -5
- data/rdoc/RubyXL/RawOOXML.html +6 -9
- data/rdoc/RubyXL/Reference.html +18 -25
- data/rdoc/RubyXL/Relationship.html +3 -5
- data/rdoc/RubyXL/RelationshipSupport.html +19 -20
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +5 -7
- data/rdoc/RubyXL/RevisionPointer.html +4 -10
- data/rdoc/RubyXL/RichText.html +5 -8
- data/rdoc/RubyXL/RichTextRun.html +5 -8
- data/rdoc/RubyXL/Row.html +13 -16
- data/rdoc/RubyXL/RowExt.html +4 -7
- data/rdoc/RubyXL/RunProperties.html +4 -7
- data/rdoc/RubyXL/Scenario.html +4 -7
- data/rdoc/RubyXL/Scenarios.html +4 -7
- data/rdoc/RubyXL/Selection.html +6 -9
- data/rdoc/RubyXL/ShapeGuide.html +4 -7
- data/rdoc/RubyXL/ShapeTextRectangle.html +4 -7
- data/rdoc/RubyXL/SharedStringsTable.html +18 -21
- data/rdoc/RubyXL/Sheet.html +4 -7
- data/rdoc/RubyXL/SheetCalculationProperties.html +4 -7
- data/rdoc/RubyXL/SheetData.html +6 -9
- data/rdoc/RubyXL/SheetDataExt.html +4 -7
- data/rdoc/RubyXL/SheetDataSet.html +4 -7
- data/rdoc/RubyXL/SheetName.html +4 -7
- data/rdoc/RubyXL/SheetNames.html +4 -7
- data/rdoc/RubyXL/Sheets.html +4 -7
- data/rdoc/RubyXL/SlicerCacheFile.html +3 -5
- data/rdoc/RubyXL/SlicerFile.html +3 -5
- data/rdoc/RubyXL/SmartTagProperties.html +4 -7
- data/rdoc/RubyXL/SmartTagType.html +4 -7
- data/rdoc/RubyXL/SmartTagTypes.html +4 -7
- data/rdoc/RubyXL/SmartTags.html +4 -7
- data/rdoc/RubyXL/SortCondition.html +4 -7
- data/rdoc/RubyXL/SortState.html +4 -7
- data/rdoc/RubyXL/Sqref.html +5 -7
- data/rdoc/RubyXL/Stop.html +4 -7
- data/rdoc/RubyXL/StringNode.html +3 -5
- data/rdoc/RubyXL/StringNodeW3C.html +6 -8
- data/rdoc/RubyXL/StringValue.html +3 -5
- data/rdoc/RubyXL/Stylesheet.html +17 -20
- data/rdoc/RubyXL/TableFile.html +3 -5
- data/rdoc/RubyXL/TableParts.html +3 -5
- data/rdoc/RubyXL/TableStyle.html +4 -7
- data/rdoc/RubyXL/TableStyles.html +4 -7
- data/rdoc/RubyXL/Text.html +7 -13
- data/rdoc/RubyXL/TextImportSettings.html +103 -0
- data/rdoc/RubyXL/Theme.html +10 -13
- data/rdoc/RubyXL/ThemeElements.html +4 -7
- data/rdoc/RubyXL/ThumbnailFile.html +3 -5
- data/rdoc/RubyXL/Top10.html +4 -7
- data/rdoc/RubyXL/VMLDrawingFile.html +4 -7
- data/rdoc/RubyXL/Variant.html +4 -7
- data/rdoc/RubyXL/Vector.html +5 -8
- data/rdoc/RubyXL/VectorValue.html +3 -5
- data/rdoc/RubyXL/VisualProperties.html +4 -7
- data/rdoc/RubyXL/WebPublishObject.html +4 -7
- data/rdoc/RubyXL/WebPublishObjects.html +4 -7
- data/rdoc/RubyXL/WebPublishingItem.html +4 -7
- data/rdoc/RubyXL/WebPublishingItems.html +4 -7
- data/rdoc/RubyXL/WebPublishingProperties.html +4 -7
- data/rdoc/RubyXL/WebQueryProperties.html +103 -0
- data/rdoc/RubyXL/Workbook.html +67 -72
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +24 -28
- data/rdoc/RubyXL/WorkbookProperties.html +4 -7
- data/rdoc/RubyXL/WorkbookProtection.html +4 -7
- data/rdoc/RubyXL/WorkbookRoot.html +8 -10
- data/rdoc/RubyXL/WorkbookView.html +4 -7
- data/rdoc/RubyXL/WorkbookViews.html +4 -7
- data/rdoc/RubyXL/Worksheet.html +16 -19
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +98 -113
- data/rdoc/RubyXL/WorksheetDimensions.html +4 -7
- data/rdoc/RubyXL/WorksheetFormatProperties.html +3 -5
- data/rdoc/RubyXL/WorksheetProperties.html +4 -7
- data/rdoc/RubyXL/WorksheetProtection.html +4 -7
- data/rdoc/RubyXL/WorksheetView.html +4 -7
- data/rdoc/RubyXL/WorksheetViews.html +4 -7
- data/rdoc/RubyXL/XF.html +4 -7
- data/rdoc/created.rid +13 -11
- data/rdoc/index.html +40 -4
- data/rdoc/js/navigation.js +3 -4
- 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 +69 -4
- data/rubyXL.gemspec +29 -4
- data/test/test_parse_write.rb +15 -15
- metadata +39 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 586426c799d24402c0720de16f7f78298bbf0817882fd27f0f06b99ec62bcaa6
|
4
|
+
data.tar.gz: '0913fa39cc7c6654ec57cb7dc57fb887febcba04a5540954c118b4012ebbb7be'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d0a9a6ec7b64d8aee8a7c080ebda36658579a73cf3678e0292ed6dd5f52c61931e3cd4bed1667b155bb1ebc9641aaffbbdf28d0c98cb0c732be40a6f3226e4
|
7
|
+
data.tar.gz: 5f327c3e959e3f1ed3a06cf0222885f9739996aa88abd8e93d0f085b63a9f5fc3637920314b0cc20210f6ec7bc1f0ce75fc93768517914822d173d9e9d98c177
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
docker:
|
9
|
+
# specify the version you desire here
|
10
|
+
- image: circleci/ruby:2.4.1-node-browsers
|
11
|
+
|
12
|
+
# Specify service dependencies here if necessary
|
13
|
+
# CircleCI maintains a library of pre-built images
|
14
|
+
# documented at https://circleci.com/docs/2.0/circleci-images/
|
15
|
+
# - image: circleci/postgres:9.4
|
16
|
+
|
17
|
+
working_directory: ~/repo
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- checkout
|
21
|
+
|
22
|
+
# Download and cache dependencies
|
23
|
+
- restore_cache:
|
24
|
+
keys:
|
25
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
26
|
+
# fallback to using the latest cache if no exact match is found
|
27
|
+
- v1-dependencies-
|
28
|
+
|
29
|
+
- run:
|
30
|
+
name: install dependencies
|
31
|
+
command: |
|
32
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
33
|
+
|
34
|
+
- save_cache:
|
35
|
+
paths:
|
36
|
+
- ./vendor/bundle
|
37
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
38
|
+
|
39
|
+
# run tests!
|
40
|
+
- run:
|
41
|
+
name: run tests
|
42
|
+
command: |
|
43
|
+
mkdir /tmp/test-results
|
44
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
45
|
+
circleci tests split --split-by=timings)"
|
46
|
+
|
47
|
+
bundle exec rspec \
|
48
|
+
--format progress \
|
49
|
+
--format RspecJunitFormatter \
|
50
|
+
--out /tmp/test-results/rspec.xml \
|
51
|
+
--format progress \
|
52
|
+
$TEST_FILES
|
53
|
+
|
54
|
+
# collect reports
|
55
|
+
- store_test_results:
|
56
|
+
path: /tmp/test-results
|
57
|
+
- store_artifacts:
|
58
|
+
path: /tmp/test-results
|
59
|
+
destination: test-results
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.4.0)
|
5
|
+
builder (3.2.3)
|
6
|
+
descendants_tracker (0.0.4)
|
7
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
8
|
+
diff-lcs (1.3)
|
9
|
+
docile (1.3.1)
|
10
|
+
faraday (0.9.2)
|
11
|
+
multipart-post (>= 1.2, < 3)
|
12
|
+
git (1.5.0)
|
13
|
+
github_api (0.16.0)
|
14
|
+
addressable (~> 2.4.0)
|
15
|
+
descendants_tracker (~> 0.0.4)
|
16
|
+
faraday (~> 0.8, < 0.10)
|
17
|
+
hashie (>= 3.4)
|
18
|
+
mime-types (>= 1.16, < 3.0)
|
19
|
+
oauth2 (~> 1.0)
|
20
|
+
hashie (3.6.0)
|
21
|
+
highline (2.0.2)
|
22
|
+
jeweler (2.3.9)
|
23
|
+
builder
|
24
|
+
bundler
|
25
|
+
git (>= 1.2.5)
|
26
|
+
github_api (~> 0.16.0)
|
27
|
+
highline (>= 1.6.15)
|
28
|
+
nokogiri (>= 1.5.10)
|
29
|
+
psych
|
30
|
+
rake
|
31
|
+
rdoc
|
32
|
+
semver2
|
33
|
+
json (2.2.0)
|
34
|
+
jwt (2.2.1)
|
35
|
+
mime-types (2.99.3)
|
36
|
+
mini_portile2 (2.4.0)
|
37
|
+
multi_json (1.13.1)
|
38
|
+
multi_xml (0.6.0)
|
39
|
+
multipart-post (2.1.1)
|
40
|
+
nokogiri (1.10.3)
|
41
|
+
mini_portile2 (~> 2.4.0)
|
42
|
+
oauth2 (1.4.1)
|
43
|
+
faraday (>= 0.8, < 0.16.0)
|
44
|
+
jwt (>= 1.0, < 3.0)
|
45
|
+
multi_json (~> 1.3)
|
46
|
+
multi_xml (~> 0.5)
|
47
|
+
rack (>= 1.2, < 3)
|
48
|
+
psych (3.1.0)
|
49
|
+
rack (2.0.7)
|
50
|
+
rake (12.3.2)
|
51
|
+
rdoc (6.1.1)
|
52
|
+
rspec (3.8.0)
|
53
|
+
rspec-core (~> 3.8.0)
|
54
|
+
rspec-expectations (~> 3.8.0)
|
55
|
+
rspec-mocks (~> 3.8.0)
|
56
|
+
rspec-core (3.8.0)
|
57
|
+
rspec-support (~> 3.8.0)
|
58
|
+
rspec-expectations (3.8.4)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.8.0)
|
61
|
+
rspec-mocks (3.8.0)
|
62
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
63
|
+
rspec-support (~> 3.8.0)
|
64
|
+
rspec-support (3.8.2)
|
65
|
+
rspec_junit_formatter (0.4.1)
|
66
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
67
|
+
ruby-prof (0.18.0)
|
68
|
+
rubyzip (1.2.3)
|
69
|
+
semver2 (3.4.2)
|
70
|
+
simplecov (0.16.1)
|
71
|
+
docile (~> 1.1)
|
72
|
+
json (>= 1.8, < 3)
|
73
|
+
simplecov-html (~> 0.10.0)
|
74
|
+
simplecov-html (0.10.2)
|
75
|
+
thread_safe (0.3.6)
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
bundler
|
82
|
+
jeweler
|
83
|
+
nokogiri (>= 1.4.4)
|
84
|
+
rake
|
85
|
+
rspec
|
86
|
+
rspec_junit_formatter
|
87
|
+
ruby-prof
|
88
|
+
rubyzip (>= 1.1.6)
|
89
|
+
simplecov
|
90
|
+
|
91
|
+
BUNDLED WITH
|
92
|
+
1.17.3
|
data/README.rdoc
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
= rubyXL
|
2
2
|
{<img src="https://badge.fury.io/rb/rubyXL.svg" alt="Gem Version" />}[http://badge.fury.io/rb/rubyXL]
|
3
3
|
{<img src="https://codeclimate.com/github/weshatheleopard/rubyXL.png" alt="Code Climate" />}[https://codeclimate.com/github/weshatheleopard/rubyXL]
|
4
|
+
{<img src="https://circleci.com/gh/weshatheleopard/rubyXL.svg?style=svg" alt="CircleCI" />}[https://circleci.com/gh/weshatheleopard/rubyXL]
|
4
5
|
|
5
6
|
This gem supports operating on +xlsx+ files (Open XML format). While it is capable
|
6
7
|
of properly parsing the entire OOXML structure, its current main emphasis is on
|
7
8
|
reading files produced by MS Excel, making minor modifications to them and saving
|
8
9
|
them to be opened again, while preserving as much of the structure as possible.
|
9
10
|
|
10
|
-
Please note that proprietary binary +xls+ format is *not* supported.
|
11
|
+
Please note that proprietary binary +xls+ format is *not* supported by this gem. If you need to parse those files, try {spreadsheet}[https://github.com/zdavatz/spreadsheet] gem.
|
11
12
|
|
12
13
|
== To Install:
|
13
14
|
gem install rubyXL
|
@@ -224,6 +225,10 @@ It can also operate on +StringIO+ objects, thus eliminating the need to save the
|
|
224
225
|
RubyXL::Reference.ind2ref(0,0) == 'A1' # Converts row and column index to Excel-style cell reference
|
225
226
|
RubyXL::Reference.ref2ind('A1') == [0, 0] # Converts Excel-style cell reference to row and column index
|
226
227
|
|
228
|
+
=== Suppress warnings about malformed input files
|
229
|
+
|
230
|
+
RubyXL.class_variable_set(:@@suppress_warnings, true)
|
231
|
+
|
227
232
|
== For more information
|
228
233
|
Take a look at the files in spec/lib/ for rspecs on most methods
|
229
234
|
|
data/Rakefile
CHANGED
@@ -34,8 +34,8 @@ Rake::TestTask.new(:test) do |test|
|
|
34
34
|
end
|
35
35
|
|
36
36
|
require 'rspec/core/rake_task'
|
37
|
-
RSpec::Core::RakeTask.new(:
|
38
|
-
task :default => :
|
37
|
+
RSpec::Core::RakeTask.new(:rspec)
|
38
|
+
task :default => :rspec
|
39
39
|
|
40
40
|
require 'rdoc/task'
|
41
41
|
Rake::RDocTask.new do |rdoc|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.4.
|
1
|
+
3.4.4
|
data/lib/rubyXL.rb
CHANGED
@@ -16,8 +16,8 @@ module RubyXL
|
|
16
16
|
|
17
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
|
data/lib/rubyXL/objects/color.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rubyXL/objects/ooxml_object'
|
2
|
+
require 'rubyXL/objects/simple_types'
|
2
3
|
|
3
4
|
module RubyXL
|
4
5
|
|
@@ -8,7 +9,7 @@ module RubyXL
|
|
8
9
|
|
9
10
|
define_attribute(:auto, :bool)
|
10
11
|
define_attribute(:indexed, :uint)
|
11
|
-
define_attribute(:rgb, ST_UnsignedIntHex)
|
12
|
+
define_attribute(:rgb, RubyXL::ST_UnsignedIntHex)
|
12
13
|
define_attribute(:theme, :uint)
|
13
14
|
define_attribute(:tint, :double, :default => 0.0)
|
14
15
|
define_element_name 'color'
|
@@ -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
|
@@ -0,0 +1,104 @@
|
|
1
|
+
require 'rubyXL/objects/ooxml_object'
|
2
|
+
require 'rubyXL/objects/simple_types'
|
3
|
+
require 'rubyXL/objects/extensions'
|
4
|
+
require 'rubyXL/objects/relationships'
|
5
|
+
require 'rubyXL/objects/sheet_common'
|
6
|
+
|
7
|
+
# Query Tables
|
8
|
+
# https://msdn.microsoft.com/en-us/library/hh643563(v=office.12).aspx
|
9
|
+
|
10
|
+
module RubyXL
|
11
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_queryTableField-1.html
|
12
|
+
class QueryTableField < OOXMLObject
|
13
|
+
define_attribute(:id, :uint, :required => true)
|
14
|
+
define_attribute(:name, RubyXL::ST_Xstring)
|
15
|
+
define_attribute(:dataBound, :bool, :default => true)
|
16
|
+
define_attribute(:rowNumbers, :bool, :default => false)
|
17
|
+
define_attribute(:fillFormulas, :bool, :default => false)
|
18
|
+
define_attribute(:clipped, :bool, :default => false)
|
19
|
+
define_attribute(:tableColumnId, :uint, :default => 0)
|
20
|
+
|
21
|
+
define_child_node(RubyXL::ExtensionStorageArea)
|
22
|
+
|
23
|
+
define_element_name 'queryTableField'
|
24
|
+
end
|
25
|
+
|
26
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_queryTableFields-1.html
|
27
|
+
class QueryTableFields < OOXMLObject
|
28
|
+
define_child_node(RubyXL::QueryTableField, :collection => :with_count, :accessor => :fields, :node_name => :queryTableField)
|
29
|
+
define_element_name 'queryTableFields'
|
30
|
+
end
|
31
|
+
|
32
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_deletedField-1.html
|
33
|
+
class QueryTableDeletedField < OOXMLObject
|
34
|
+
define_attribute(:name, RubyXL::ST_Xstring, :required => true)
|
35
|
+
|
36
|
+
define_element_name 'deletedField'
|
37
|
+
end
|
38
|
+
|
39
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_queryTableDeletedFields-1.html
|
40
|
+
class QueryTableDeletedFields < OOXMLObject
|
41
|
+
define_child_node(RubyXL::QueryTableDeletedField, :collection => :with_count, :accessor => :deleted_fields, :node_name => :deletedField)
|
42
|
+
define_element_name 'queryTableDeletedFields'
|
43
|
+
end
|
44
|
+
|
45
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_queryTableRefresh-1.html
|
46
|
+
class QueryTableRefresh < OOXMLObject
|
47
|
+
define_attribute(:preserveSortFilterLayout, :bool, :default => true)
|
48
|
+
define_attribute(:fieldIdWrapped, :bool, :default => false)
|
49
|
+
define_attribute(:headersInLastRefresh, :bool, :default => true)
|
50
|
+
define_attribute(:minimumVersion, :uint, :default => 0)
|
51
|
+
define_attribute(:nextId, :uint, :default => 1)
|
52
|
+
define_attribute(:unboundColumnsLeft, :uint, :default => 0)
|
53
|
+
define_attribute(:unboundColumnsRight, :uint, :default => 0)
|
54
|
+
|
55
|
+
define_child_node(RubyXL::QueryTableFields) # [1..1]
|
56
|
+
define_child_node(RubyXL::QueryTableDeletedFields)
|
57
|
+
define_child_node(RubyXL::SortState)
|
58
|
+
define_child_node(RubyXL::ExtensionStorageArea)
|
59
|
+
|
60
|
+
define_element_name 'queryTableRefresh'
|
61
|
+
end
|
62
|
+
|
63
|
+
# http://www.datypic.com/sc/ooxml/e-ssml_queryTable.html
|
64
|
+
class QueryTable < OOXMLTopLevelObject
|
65
|
+
CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml'
|
66
|
+
REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/queryTable'
|
67
|
+
|
68
|
+
include RubyXL::RelationshipSupport
|
69
|
+
|
70
|
+
define_attribute(:name, RubyXL::ST_Xstring, :required => true)
|
71
|
+
define_attribute(:headers, :bool, :default => true)
|
72
|
+
define_attribute(:rowNumbers, :bool, :default => false)
|
73
|
+
define_attribute(:disableRefresh, :bool, :default => false)
|
74
|
+
define_attribute(:backgroundRefresh, :bool, :default => true)
|
75
|
+
define_attribute(:firstBackgroundRefresh, :bool, :default => false)
|
76
|
+
define_attribute(:refreshOnLoad, :bool, :default => false)
|
77
|
+
define_attribute(:growShrinkType, RubyXL::ST_GrowShrinkType, :default => 'insertDelete')
|
78
|
+
define_attribute(:fillFormulas, :bool, :default => false)
|
79
|
+
define_attribute(:removeDataOnSave, :bool, :default => false)
|
80
|
+
define_attribute(:disableEdit, :bool, :default => false)
|
81
|
+
define_attribute(:preserveFormatting, :bool, :default => true)
|
82
|
+
define_attribute(:adjustColumnWidth, :bool, :default => true)
|
83
|
+
define_attribute(:intermediate, :bool, :default => false)
|
84
|
+
define_attribute(:connectionId, :uint, :required => true)
|
85
|
+
define_attribute(:autoFormatId, :uint)
|
86
|
+
define_attribute(:applyNumberFormats, :bool)
|
87
|
+
define_attribute(:applyBorderFormats, :bool)
|
88
|
+
define_attribute(:applyFontFormats, :bool)
|
89
|
+
define_attribute(:applyPatternFormats, :bool)
|
90
|
+
define_attribute(:applyAlignmentFormats, :bool)
|
91
|
+
define_attribute(:applyWidthHeightFormats, :bool)
|
92
|
+
|
93
|
+
define_child_node(RubyXL::QueryTableRefresh)
|
94
|
+
define_child_node(RubyXL::ExtensionStorageArea)
|
95
|
+
|
96
|
+
define_element_name 'queryTable'
|
97
|
+
set_namespaces('http://schemas.openxmlformats.org/spreadsheetml/2006/main' => nil,
|
98
|
+
'http://schemas.openxmlformats.org/officeDocument/2006/relationships' => 'r')
|
99
|
+
|
100
|
+
def xlsx_path
|
101
|
+
ROOT.join('xl', 'queryTables', "queryTable#{file_index}.xml")
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|