rubyXL 1.2.10 → 3.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.circleci/config.yml +60 -0
- data/.codeclimate.yml +3 -0
- data/.rubocop.yml +124 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +18 -14
- data/LICENSE.txt +1 -1
- data/README.rdoc +170 -100
- data/Rakefile +76 -26
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +13 -447
- data/lib/rubyXL/convenience_methods/cell.rb +276 -0
- data/lib/rubyXL/convenience_methods/color.rb +156 -0
- data/lib/rubyXL/convenience_methods/font.rb +63 -0
- data/lib/rubyXL/convenience_methods/workbook.rb +137 -0
- data/lib/rubyXL/convenience_methods/worksheet.rb +734 -0
- data/lib/rubyXL/convenience_methods.rb +5 -0
- data/lib/rubyXL/objects/border.rb +71 -0
- data/lib/rubyXL/objects/calculation_chain.rb +31 -0
- data/lib/rubyXL/objects/cell_style.rb +63 -0
- data/lib/rubyXL/objects/chartsheet.rb +88 -0
- data/lib/rubyXL/objects/color.rb +25 -0
- data/lib/rubyXL/objects/column_range.rb +93 -0
- data/lib/rubyXL/objects/comments.rb +44 -0
- data/lib/rubyXL/objects/connection.rb +175 -0
- data/lib/rubyXL/objects/container_nodes.rb +131 -0
- data/lib/rubyXL/objects/content_types.rb +74 -0
- data/lib/rubyXL/objects/data_validation.rb +37 -0
- data/lib/rubyXL/objects/document_properties.rb +156 -0
- data/lib/rubyXL/objects/extensions.rb +51 -0
- data/lib/rubyXL/objects/external_links.rb +115 -0
- data/lib/rubyXL/objects/fill.rb +52 -0
- data/lib/rubyXL/objects/filters.rb +118 -0
- data/lib/rubyXL/objects/font.rb +43 -0
- data/lib/rubyXL/objects/formula.rb +22 -0
- data/lib/rubyXL/objects/ooxml_object.rb +469 -0
- data/lib/rubyXL/objects/query_table.rb +106 -0
- data/lib/rubyXL/objects/reference.rb +119 -0
- data/lib/rubyXL/objects/relationships.rb +213 -0
- data/lib/rubyXL/objects/root.rb +84 -0
- data/lib/rubyXL/objects/shared_strings.rb +67 -0
- data/lib/rubyXL/objects/sheet_common.rb +49 -0
- data/lib/rubyXL/objects/sheet_data.rb +219 -0
- data/lib/rubyXL/objects/simple_types.rb +249 -0
- data/lib/rubyXL/objects/storage.rb +193 -0
- data/lib/rubyXL/objects/stylesheet.rb +224 -0
- data/lib/rubyXL/objects/text.rb +92 -0
- data/lib/rubyXL/objects/theme.rb +1730 -0
- data/lib/rubyXL/objects/workbook.rb +572 -0
- data/lib/rubyXL/objects/worksheet.rb +762 -0
- data/lib/rubyXL/parser.rb +18 -459
- data/lib/rubyXL/worksheet.rb +73 -1461
- data/lib/rubyXL.rb +9 -7
- data/rdoc/README_rdoc.html +534 -0
- data/rdoc/RubyXL/AExtension.html +187 -0
- data/rdoc/RubyXL/AExtensionStorageArea.html +97 -0
- data/rdoc/RubyXL/ActiveX.html +156 -0
- data/rdoc/RubyXL/ActiveXBinary.html +106 -0
- data/rdoc/RubyXL/AdjustHandleList.html +99 -0
- data/rdoc/RubyXL/Alignment.html +99 -0
- data/rdoc/RubyXL/AlternateContent.html +97 -0
- data/rdoc/RubyXL/AlternateUrls.html +99 -0
- data/rdoc/RubyXL/Authors.html +99 -0
- data/rdoc/RubyXL/AutoFilter.html +99 -0
- data/rdoc/RubyXL/AutoFilterColumn.html +99 -0
- data/rdoc/RubyXL/BinaryImageFile.html +108 -0
- data/rdoc/RubyXL/BodyProperties.html +99 -0
- data/rdoc/RubyXL/BooleanNode.html +97 -0
- data/rdoc/RubyXL/BooleanValue.html +97 -0
- data/rdoc/RubyXL/Border.html +223 -0
- data/rdoc/RubyXL/BorderEdge.html +160 -0
- data/rdoc/RubyXL/Borders.html +138 -0
- data/rdoc/RubyXL/Break.html +99 -0
- data/rdoc/RubyXL/BreakList.html +99 -0
- data/rdoc/RubyXL/CT_AdjPoint2D.html +99 -0
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +99 -0
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +99 -0
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +99 -0
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +99 -0
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +99 -0
- data/rdoc/RubyXL/CT_Backdrop.html +99 -0
- data/rdoc/RubyXL/CT_Bevel.html +99 -0
- data/rdoc/RubyXL/CT_BiLevelEffect.html +99 -0
- data/rdoc/RubyXL/CT_BlendEffect.html +99 -0
- data/rdoc/RubyXL/CT_Blip.html +99 -0
- data/rdoc/RubyXL/CT_BlipFillProperties.html +99 -0
- data/rdoc/RubyXL/CT_BlurEffect.html +99 -0
- data/rdoc/RubyXL/CT_Camera.html +99 -0
- data/rdoc/RubyXL/CT_Color.html +99 -0
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +99 -0
- data/rdoc/RubyXL/CT_ColorMapping.html +99 -0
- data/rdoc/RubyXL/CT_ColorScheme.html +99 -0
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +99 -0
- data/rdoc/RubyXL/CT_ConnectionSite.html +99 -0
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +99 -0
- data/rdoc/RubyXL/CT_DashStop.html +99 -0
- data/rdoc/RubyXL/CT_DashStopList.html +99 -0
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +99 -0
- data/rdoc/RubyXL/CT_DuotoneEffect.html +99 -0
- data/rdoc/RubyXL/CT_EffectContainer.html +99 -0
- data/rdoc/RubyXL/CT_EffectList.html +99 -0
- data/rdoc/RubyXL/CT_EffectReference.html +99 -0
- data/rdoc/RubyXL/CT_EffectStyleItem.html +99 -0
- data/rdoc/RubyXL/CT_EffectStyleList.html +99 -0
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +99 -0
- data/rdoc/RubyXL/CT_FillEffect.html +99 -0
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +99 -0
- data/rdoc/RubyXL/CT_FillStyleList.html +99 -0
- data/rdoc/RubyXL/CT_FlatText.html +99 -0
- data/rdoc/RubyXL/CT_FontCollection.html +99 -0
- data/rdoc/RubyXL/CT_FontReference.html +99 -0
- data/rdoc/RubyXL/CT_GeomGuideList.html +99 -0
- data/rdoc/RubyXL/CT_GlowEffect.html +99 -0
- data/rdoc/RubyXL/CT_GradientFillProperties.html +99 -0
- data/rdoc/RubyXL/CT_GradientStop.html +99 -0
- data/rdoc/RubyXL/CT_GradientStopList.html +99 -0
- data/rdoc/RubyXL/CT_HSLEffect.html +99 -0
- data/rdoc/RubyXL/CT_HslColor.html +99 -0
- data/rdoc/RubyXL/CT_Hyperlink.html +99 -0
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +99 -0
- data/rdoc/RubyXL/CT_LightRig.html +99 -0
- data/rdoc/RubyXL/CT_LineEndProperties.html +99 -0
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +99 -0
- data/rdoc/RubyXL/CT_LineProperties.html +99 -0
- data/rdoc/RubyXL/CT_LineStyleList.html +99 -0
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +99 -0
- data/rdoc/RubyXL/CT_LuminanceEffect.html +99 -0
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +99 -0
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +99 -0
- data/rdoc/RubyXL/CT_Path2D.html +99 -0
- data/rdoc/RubyXL/CT_Path2DArcTo.html +99 -0
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +99 -0
- data/rdoc/RubyXL/CT_Path2DList.html +99 -0
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +99 -0
- data/rdoc/RubyXL/CT_Path2DTo.html +99 -0
- data/rdoc/RubyXL/CT_PathShadeProperties.html +99 -0
- data/rdoc/RubyXL/CT_PatternFillProperties.html +99 -0
- data/rdoc/RubyXL/CT_Point3D.html +99 -0
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +99 -0
- data/rdoc/RubyXL/CT_PresetColor.html +99 -0
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +99 -0
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +99 -0
- data/rdoc/RubyXL/CT_PresetTextShape.html +99 -0
- data/rdoc/RubyXL/CT_ReflectionEffect.html +99 -0
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +99 -0
- data/rdoc/RubyXL/CT_RelativeRect.html +99 -0
- data/rdoc/RubyXL/CT_SRgbColor.html +99 -0
- data/rdoc/RubyXL/CT_ScRgbColor.html +99 -0
- data/rdoc/RubyXL/CT_Scene3D.html +99 -0
- data/rdoc/RubyXL/CT_SchemeColor.html +99 -0
- data/rdoc/RubyXL/CT_Shape3D.html +99 -0
- data/rdoc/RubyXL/CT_ShapeStyle.html +99 -0
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +99 -0
- data/rdoc/RubyXL/CT_SphereCoords.html +99 -0
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +99 -0
- data/rdoc/RubyXL/CT_StyleMatrix.html +99 -0
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +99 -0
- data/rdoc/RubyXL/CT_SupplementalFont.html +99 -0
- data/rdoc/RubyXL/CT_SystemColor.html +99 -0
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +99 -0
- data/rdoc/RubyXL/CT_TextBlipBullet.html +99 -0
- data/rdoc/RubyXL/CT_TextCharBullet.html +99 -0
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +99 -0
- data/rdoc/RubyXL/CT_TextFont.html +99 -0
- data/rdoc/RubyXL/CT_TextListStyle.html +99 -0
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +99 -0
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +99 -0
- data/rdoc/RubyXL/CT_TextSpacing.html +99 -0
- data/rdoc/RubyXL/CT_TextTabStop.html +99 -0
- data/rdoc/RubyXL/CT_TextTabStopList.html +99 -0
- data/rdoc/RubyXL/CT_TileInfoProperties.html +99 -0
- data/rdoc/RubyXL/CT_TintEffect.html +99 -0
- data/rdoc/RubyXL/CT_Transform2D.html +99 -0
- data/rdoc/RubyXL/CT_TransformEffect.html +99 -0
- data/rdoc/RubyXL/CT_Vector3D.html +99 -0
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +99 -0
- data/rdoc/RubyXL/CalculationChain.html +149 -0
- data/rdoc/RubyXL/CalculationChainCell.html +99 -0
- data/rdoc/RubyXL/CalculationProperties.html +99 -0
- data/rdoc/RubyXL/Cell.html +510 -0
- data/rdoc/RubyXL/CellConvenienceMethods.html +1077 -0
- data/rdoc/RubyXL/CellExt.html +99 -0
- data/rdoc/RubyXL/CellSmartTag.html +99 -0
- data/rdoc/RubyXL/CellSmartTagProperty.html +99 -0
- data/rdoc/RubyXL/CellSmartTags.html +99 -0
- data/rdoc/RubyXL/CellStyle.html +99 -0
- data/rdoc/RubyXL/CellStyleXFs.html +138 -0
- data/rdoc/RubyXL/CellStyles.html +138 -0
- data/rdoc/RubyXL/CellValue.html +139 -0
- data/rdoc/RubyXL/CellWatch.html +99 -0
- data/rdoc/RubyXL/CellWatches.html +99 -0
- data/rdoc/RubyXL/CellXFs.html +139 -0
- data/rdoc/RubyXL/ChartColorsFile.html +108 -0
- data/rdoc/RubyXL/ChartFile.html +160 -0
- data/rdoc/RubyXL/ChartStyleFile.html +108 -0
- data/rdoc/RubyXL/ChartUserShapesFile.html +108 -0
- data/rdoc/RubyXL/Chartsheet.html +213 -0
- data/rdoc/RubyXL/ChartsheetPageSetup.html +99 -0
- data/rdoc/RubyXL/ChartsheetProperties.html +99 -0
- data/rdoc/RubyXL/ChartsheetProtection.html +99 -0
- data/rdoc/RubyXL/ChartsheetView.html +99 -0
- data/rdoc/RubyXL/ChartsheetViews.html +99 -0
- data/rdoc/RubyXL/Color.html +151 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +246 -0
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +285 -0
- data/rdoc/RubyXL/ColorConvenienceClasses.html +91 -0
- data/rdoc/RubyXL/ColorConvenienceMethods.html +139 -0
- data/rdoc/RubyXL/ColorFilter.html +99 -0
- data/rdoc/RubyXL/ColorScale.html +99 -0
- data/rdoc/RubyXL/ColorSet.html +99 -0
- data/rdoc/RubyXL/Colors.html +99 -0
- data/rdoc/RubyXL/ColumnRange.html +230 -0
- data/rdoc/RubyXL/ColumnRanges.html +237 -0
- data/rdoc/RubyXL/Comment.html +99 -0
- data/rdoc/RubyXL/CommentList.html +99 -0
- data/rdoc/RubyXL/CommentsFile.html +165 -0
- data/rdoc/RubyXL/ConditionalFormatValue.html +99 -0
- data/rdoc/RubyXL/ConditionalFormatting.html +99 -0
- data/rdoc/RubyXL/ConditionalFormattingRule.html +99 -0
- 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 +149 -0
- data/rdoc/RubyXL/ContentTypeDefault.html +97 -0
- data/rdoc/RubyXL/ContentTypeOverride.html +97 -0
- data/rdoc/RubyXL/ContentTypes.html +211 -0
- data/rdoc/RubyXL/ControlPropertiesFile.html +108 -0
- data/rdoc/RubyXL/CorePropertiesFile.html +355 -0
- data/rdoc/RubyXL/CustomColor.html +99 -0
- data/rdoc/RubyXL/CustomColorList.html +99 -0
- data/rdoc/RubyXL/CustomFilter.html +99 -0
- data/rdoc/RubyXL/CustomFilters.html +99 -0
- data/rdoc/RubyXL/CustomGeometry.html +99 -0
- data/rdoc/RubyXL/CustomProperties.html +99 -0
- data/rdoc/RubyXL/CustomPropertiesFile.html +108 -0
- data/rdoc/RubyXL/CustomProperty.html +99 -0
- data/rdoc/RubyXL/CustomPropertyFile.html +108 -0
- data/rdoc/RubyXL/CustomSheetView.html +99 -0
- data/rdoc/RubyXL/CustomSheetViews.html +99 -0
- data/rdoc/RubyXL/CustomWorkbookView.html +99 -0
- data/rdoc/RubyXL/CustomWorkbookViews.html +99 -0
- data/rdoc/RubyXL/CustomXMLFile.html +106 -0
- data/rdoc/RubyXL/DXF.html +99 -0
- data/rdoc/RubyXL/DXFs.html +99 -0
- data/rdoc/RubyXL/DataBar.html +99 -0
- data/rdoc/RubyXL/DataConsolidate.html +99 -0
- data/rdoc/RubyXL/DataConsolidationReference.html +99 -0
- data/rdoc/RubyXL/DataConsolidationReferences.html +99 -0
- data/rdoc/RubyXL/DataType.html +114 -0
- data/rdoc/RubyXL/DataValidation.html +99 -0
- data/rdoc/RubyXL/DataValidations.html +99 -0
- data/rdoc/RubyXL/DateGroupItem.html +99 -0
- data/rdoc/RubyXL/DefinedName.html +99 -0
- data/rdoc/RubyXL/DefinedNameExt.html +99 -0
- data/rdoc/RubyXL/DefinedNames.html +99 -0
- data/rdoc/RubyXL/DefinedNamesExt.html +99 -0
- data/rdoc/RubyXL/DocumentPropertiesFile.html +213 -0
- data/rdoc/RubyXL/DrawingFile.html +159 -0
- data/rdoc/RubyXL/DynamicFilter.html +99 -0
- data/rdoc/RubyXL/EmbeddedControl.html +99 -0
- data/rdoc/RubyXL/EmbeddedControls.html +99 -0
- data/rdoc/RubyXL/Extension.html +99 -0
- data/rdoc/RubyXL/ExtensionStorageArea.html +99 -0
- data/rdoc/RubyXL/Extents.html +99 -0
- data/rdoc/RubyXL/ExternalBook.html +99 -0
- data/rdoc/RubyXL/ExternalLinksFile.html +155 -0
- data/rdoc/RubyXL/ExternalReference.html +99 -0
- data/rdoc/RubyXL/ExternalReferences.html +99 -0
- data/rdoc/RubyXL/ExtraColorSchemeList.html +99 -0
- data/rdoc/RubyXL/FieldItem.html +99 -0
- data/rdoc/RubyXL/FileRecoveryProperties.html +99 -0
- data/rdoc/RubyXL/FileSharing.html +99 -0
- data/rdoc/RubyXL/FileVersion.html +99 -0
- data/rdoc/RubyXL/Fill.html +138 -0
- data/rdoc/RubyXL/Fills.html +138 -0
- data/rdoc/RubyXL/FilterContainer.html +99 -0
- data/rdoc/RubyXL/FloatNode.html +97 -0
- data/rdoc/RubyXL/FloatValue.html +97 -0
- data/rdoc/RubyXL/Font.html +148 -0
- data/rdoc/RubyXL/FontConvenienceMethods.html +442 -0
- data/rdoc/RubyXL/FontScheme.html +99 -0
- data/rdoc/RubyXL/Fonts.html +138 -0
- data/rdoc/RubyXL/Formula.html +99 -0
- data/rdoc/RubyXL/FunctionGroup.html +99 -0
- data/rdoc/RubyXL/FunctionGroups.html +99 -0
- data/rdoc/RubyXL/GenericStorageObject.html +241 -0
- data/rdoc/RubyXL/GradientFill.html +99 -0
- data/rdoc/RubyXL/HeaderFooterSettings.html +99 -0
- data/rdoc/RubyXL/Hyperlink.html +99 -0
- data/rdoc/RubyXL/HyperlinkRelFile.html +106 -0
- data/rdoc/RubyXL/Hyperlinks.html +99 -0
- data/rdoc/RubyXL/IconFilter.html +99 -0
- data/rdoc/RubyXL/IconSet.html +99 -0
- data/rdoc/RubyXL/IgnoredError.html +99 -0
- data/rdoc/RubyXL/IgnoredErrors.html +99 -0
- data/rdoc/RubyXL/IndexedColors.html +99 -0
- data/rdoc/RubyXL/InputCells.html +99 -0
- data/rdoc/RubyXL/IntegerNode.html +97 -0
- data/rdoc/RubyXL/IntegerValue.html +97 -0
- data/rdoc/RubyXL/LegacyCell.html +130 -0
- data/rdoc/RubyXL/LegacyWorksheet.html +306 -0
- data/rdoc/RubyXL/MRUColors.html +99 -0
- data/rdoc/RubyXL/MacrosFile.html +108 -0
- data/rdoc/RubyXL/MergedCell.html +99 -0
- data/rdoc/RubyXL/MergedCells.html +99 -0
- data/rdoc/RubyXL/NumFmt.html +99 -0
- data/rdoc/RubyXL/NumberFormat.html +139 -0
- data/rdoc/RubyXL/NumberFormats.html +147 -0
- data/rdoc/RubyXL/OLEObject.html +99 -0
- data/rdoc/RubyXL/OLEObjectFile.html +108 -0
- data/rdoc/RubyXL/OLEObjects.html +99 -0
- data/rdoc/RubyXL/OLESize.html +99 -0
- data/rdoc/RubyXL/OOXMLContainerObject.html +309 -0
- data/rdoc/RubyXL/OOXMLIgnored.html +167 -0
- data/rdoc/RubyXL/OOXMLObject.html +107 -0
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +455 -0
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +442 -0
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +470 -0
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +297 -0
- data/rdoc/RubyXL/OdbcOleDbProperties.html +99 -0
- data/rdoc/RubyXL/Offset.html +99 -0
- 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 +99 -0
- data/rdoc/RubyXL/PageMargins.html +99 -0
- data/rdoc/RubyXL/PageSetup.html +99 -0
- data/rdoc/RubyXL/PageSetupProperties.html +99 -0
- data/rdoc/RubyXL/Pane.html +99 -0
- data/rdoc/RubyXL/Parser.html +174 -0
- data/rdoc/RubyXL/PatternFill.html +99 -0
- data/rdoc/RubyXL/PersonMetadata.html +108 -0
- data/rdoc/RubyXL/PhoneticProperties.html +99 -0
- data/rdoc/RubyXL/PhoneticRun.html +99 -0
- data/rdoc/RubyXL/PivotArea.html +99 -0
- data/rdoc/RubyXL/PivotCache.html +99 -0
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +116 -0
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +108 -0
- data/rdoc/RubyXL/PivotCaches.html +99 -0
- data/rdoc/RubyXL/PivotReference.html +99 -0
- data/rdoc/RubyXL/PivotReferences.html +99 -0
- data/rdoc/RubyXL/PivotTableFile.html +116 -0
- data/rdoc/RubyXL/PivotTableSelection.html +99 -0
- data/rdoc/RubyXL/PresetGeometry.html +99 -0
- data/rdoc/RubyXL/PrintOptions.html +99 -0
- data/rdoc/RubyXL/PrinterSettingsFile.html +108 -0
- data/rdoc/RubyXL/ProtectedRange.html +99 -0
- data/rdoc/RubyXL/ProtectedRanges.html +99 -0
- data/rdoc/RubyXL/Protection.html +99 -0
- data/rdoc/RubyXL/QueryParameter.html +99 -0
- data/rdoc/RubyXL/QueryParameters.html +99 -0
- data/rdoc/RubyXL/QueryTable.html +157 -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 +97 -0
- data/rdoc/RubyXL/RawOOXML.html +187 -0
- data/rdoc/RubyXL/Reference.html +510 -0
- data/rdoc/RubyXL/Relationship.html +97 -0
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +131 -0
- data/rdoc/RubyXL/RelationshipSupport.html +336 -0
- data/rdoc/RubyXL/RevisionPointer.html +99 -0
- data/rdoc/RubyXL/RichText.html +141 -0
- data/rdoc/RubyXL/RichTextRun.html +138 -0
- data/rdoc/RubyXL/Row.html +357 -0
- data/rdoc/RubyXL/RowExt.html +99 -0
- data/rdoc/RubyXL/RunProperties.html +99 -0
- data/rdoc/RubyXL/Scenario.html +99 -0
- data/rdoc/RubyXL/Scenarios.html +99 -0
- data/rdoc/RubyXL/Selection.html +146 -0
- data/rdoc/RubyXL/ShapeGuide.html +99 -0
- data/rdoc/RubyXL/ShapeTextRectangle.html +99 -0
- data/rdoc/RubyXL/SharedStringsTable.html +328 -0
- data/rdoc/RubyXL/Sheet.html +99 -0
- data/rdoc/RubyXL/SheetCalculationProperties.html +99 -0
- data/rdoc/RubyXL/SheetData.html +162 -0
- data/rdoc/RubyXL/SheetDataExt.html +99 -0
- data/rdoc/RubyXL/SheetDataSet.html +99 -0
- data/rdoc/RubyXL/SheetMetadata.html +108 -0
- data/rdoc/RubyXL/SheetName.html +99 -0
- data/rdoc/RubyXL/SheetNames.html +99 -0
- data/rdoc/RubyXL/Sheets.html +99 -0
- data/rdoc/RubyXL/SlicerCacheFile.html +108 -0
- data/rdoc/RubyXL/SlicerFile.html +108 -0
- data/rdoc/RubyXL/SmartTagProperties.html +99 -0
- data/rdoc/RubyXL/SmartTagType.html +99 -0
- data/rdoc/RubyXL/SmartTagTypes.html +99 -0
- data/rdoc/RubyXL/SmartTags.html +99 -0
- data/rdoc/RubyXL/SortCondition.html +99 -0
- data/rdoc/RubyXL/SortState.html +99 -0
- data/rdoc/RubyXL/Sqref.html +167 -0
- data/rdoc/RubyXL/Stop.html +99 -0
- data/rdoc/RubyXL/StringNode.html +97 -0
- data/rdoc/RubyXL/StringNodeW3C.html +167 -0
- data/rdoc/RubyXL/StringValue.html +97 -0
- data/rdoc/RubyXL/Stylesheet.html +281 -0
- data/rdoc/RubyXL/TableFile.html +108 -0
- data/rdoc/RubyXL/TableParts.html +97 -0
- data/rdoc/RubyXL/TableStyle.html +99 -0
- data/rdoc/RubyXL/TableStyles.html +99 -0
- data/rdoc/RubyXL/Text.html +175 -0
- data/rdoc/RubyXL/TextImportSettings.html +99 -0
- data/rdoc/RubyXL/Theme.html +535 -0
- data/rdoc/RubyXL/ThemeElements.html +99 -0
- data/rdoc/RubyXL/ThumbnailFile.html +108 -0
- data/rdoc/RubyXL/Top10.html +99 -0
- data/rdoc/RubyXL/VMLDrawingFile.html +116 -0
- data/rdoc/RubyXL/Variant.html +99 -0
- data/rdoc/RubyXL/Vector.html +142 -0
- data/rdoc/RubyXL/VectorValue.html +97 -0
- data/rdoc/RubyXL/VisualProperties.html +99 -0
- data/rdoc/RubyXL/WebPublishObject.html +99 -0
- data/rdoc/RubyXL/WebPublishObjects.html +99 -0
- data/rdoc/RubyXL/WebPublishingItem.html +99 -0
- data/rdoc/RubyXL/WebPublishingItems.html +99 -0
- data/rdoc/RubyXL/WebPublishingProperties.html +99 -0
- data/rdoc/RubyXL/WebQueryProperties.html +99 -0
- data/rdoc/RubyXL/Workbook.html +948 -0
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +596 -0
- data/rdoc/RubyXL/WorkbookProperties.html +99 -0
- data/rdoc/RubyXL/WorkbookProtection.html +99 -0
- data/rdoc/RubyXL/WorkbookRoot.html +325 -0
- data/rdoc/RubyXL/WorkbookView.html +99 -0
- data/rdoc/RubyXL/WorkbookViews.html +99 -0
- data/rdoc/RubyXL/Worksheet.html +418 -0
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +2205 -0
- data/rdoc/RubyXL/WorksheetDimensions.html +99 -0
- data/rdoc/RubyXL/WorksheetFormatProperties.html +97 -0
- data/rdoc/RubyXL/WorksheetProperties.html +99 -0
- data/rdoc/RubyXL/WorksheetProtection.html +99 -0
- data/rdoc/RubyXL/WorksheetView.html +99 -0
- data/rdoc/RubyXL/WorksheetViews.html +99 -0
- data/rdoc/RubyXL/XF.html +99 -0
- data/rdoc/RubyXL.html +338 -0
- data/rdoc/created.rid +45 -0
- data/rdoc/css/fonts.css +167 -0
- data/rdoc/css/rdoc.css +687 -0
- data/rdoc/fonts/Lato-Light.ttf +0 -0
- data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/rdoc/fonts/Lato-Regular.ttf +0 -0
- data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +477 -0
- data/rdoc/js/darkfish.js +97 -0
- data/rdoc/js/navigation.js +105 -0
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +110 -0
- data/rdoc/js/search_index.js +1 -0
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +229 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +3021 -0
- data/rubyXL.gemspec +521 -60
- data/spec/lib/cell_spec.rb +386 -143
- data/spec/lib/color_spec.rb +11 -4
- data/spec/lib/parser_spec.rb +90 -38
- data/spec/lib/reference_spec.rb +64 -0
- data/spec/lib/rgb_color_spec.rb +29 -0
- data/spec/lib/stylesheet_spec.rb +27 -0
- data/spec/lib/text_spec.rb +27 -0
- data/spec/lib/workbook_spec.rb +168 -22
- data/spec/lib/worksheet_spec.rb +1207 -1220
- data/spec/spec_helper.rb +13 -0
- data/test/input/.gitkeep +0 -0
- data/test/output/.gitkeep +0 -0
- data/test/test_parse_write.rb +15 -0
- data/tmp/.gitignore +1 -0
- metadata +634 -168
- data/Gemfile.lock +0 -34
- data/lib/.DS_Store +0 -0
- data/lib/rubyXL/Hash.rb +0 -60
- data/lib/rubyXL/color.rb +0 -14
- data/lib/rubyXL/private_class.rb +0 -265
- data/lib/rubyXL/workbook.rb +0 -450
- data/lib/rubyXL/writer/app_writer.rb +0 -62
- data/lib/rubyXL/writer/calc_chain_writer.rb +0 -33
- data/lib/rubyXL/writer/content_types_writer.rb +0 -77
- data/lib/rubyXL/writer/core_writer.rb +0 -51
- data/lib/rubyXL/writer/root_rels_writer.rb +0 -25
- data/lib/rubyXL/writer/shared_strings_writer.rb +0 -30
- data/lib/rubyXL/writer/styles_writer.rb +0 -407
- data/lib/rubyXL/writer/theme_writer.rb +0 -343
- data/lib/rubyXL/writer/workbook_rels_writer.rb +0 -59
- data/lib/rubyXL/writer/workbook_writer.rb +0 -77
- data/lib/rubyXL/writer/worksheet_writer.rb +0 -230
- data/lib/rubyXL/zip.rb +0 -20
- data/spec/lib/hash_spec.rb +0 -28
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
require 'rubygems'
|
|
3
|
-
require 'nokogiri'
|
|
4
|
-
|
|
5
|
-
module RubyXL
|
|
6
|
-
module Writer
|
|
7
|
-
class ThemeWriter
|
|
8
|
-
attr_accessor :dirpath, :filepath, :workbook
|
|
9
|
-
|
|
10
|
-
def initialize(dirpath, wb)
|
|
11
|
-
@dirpath = dirpath
|
|
12
|
-
@workbook = wb
|
|
13
|
-
@filepath = dirpath + '/xl/theme/theme1.xml'
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
def write()
|
|
17
|
-
|
|
18
|
-
contents = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
19
|
-
|
|
20
|
-
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">
|
|
21
|
-
<a:themeElements>
|
|
22
|
-
<a:clrScheme name="Office">
|
|
23
|
-
<a:dk1>
|
|
24
|
-
<a:sysClr val="windowText" lastClr="000000"/>
|
|
25
|
-
</a:dk1>
|
|
26
|
-
<a:lt1>
|
|
27
|
-
<a:sysClr val="window" lastClr="FFFFFF"/>
|
|
28
|
-
</a:lt1>
|
|
29
|
-
<a:dk2>
|
|
30
|
-
<a:srgbClr val="1F497D"/>
|
|
31
|
-
</a:dk2>
|
|
32
|
-
<a:lt2>
|
|
33
|
-
<a:srgbClr val="EEECE1"/>
|
|
34
|
-
</a:lt2>
|
|
35
|
-
<a:accent1>
|
|
36
|
-
<a:srgbClr val="4F81BD"/>
|
|
37
|
-
</a:accent1>
|
|
38
|
-
<a:accent2>
|
|
39
|
-
<a:srgbClr val="C0504D"/>
|
|
40
|
-
</a:accent2>
|
|
41
|
-
<a:accent3>
|
|
42
|
-
<a:srgbClr val="9BBB59"/>
|
|
43
|
-
</a:accent3>
|
|
44
|
-
<a:accent4>
|
|
45
|
-
<a:srgbClr val="8064A2"/>
|
|
46
|
-
</a:accent4>
|
|
47
|
-
<a:accent5>
|
|
48
|
-
<a:srgbClr val="4BACC6"/>
|
|
49
|
-
</a:accent5>
|
|
50
|
-
<a:accent6>
|
|
51
|
-
<a:srgbClr val="F79646"/>
|
|
52
|
-
</a:accent6>
|
|
53
|
-
<a:hlink>
|
|
54
|
-
<a:srgbClr val="0000FF"/>
|
|
55
|
-
</a:hlink>
|
|
56
|
-
<a:folHlink>
|
|
57
|
-
<a:srgbClr val="800080"/>
|
|
58
|
-
</a:folHlink>
|
|
59
|
-
</a:clrScheme>
|
|
60
|
-
<a:fontScheme name="Office">
|
|
61
|
-
<a:majorFont>
|
|
62
|
-
<a:latin typeface="Cambria"/>
|
|
63
|
-
<a:ea typeface=""/>
|
|
64
|
-
<a:cs typeface=""/>
|
|
65
|
-
<a:font script="Jpan" typeface="MS Pゴシック"/>
|
|
66
|
-
<a:font script="Hang" typeface="맑은 고딕"/>
|
|
67
|
-
<a:font script="Hans" typeface="宋体"/>
|
|
68
|
-
<a:font script="Hant" typeface="新細明體"/>
|
|
69
|
-
<a:font script="Arab" typeface="Times New Roman"/>
|
|
70
|
-
<a:font script="Hebr" typeface="Times New Roman"/>
|
|
71
|
-
<a:font script="Thai" typeface="Tahoma"/>
|
|
72
|
-
<a:font script="Ethi" typeface="Nyala"/>
|
|
73
|
-
<a:font script="Beng" typeface="Vrinda"/>
|
|
74
|
-
<a:font script="Gujr" typeface="Shruti"/>
|
|
75
|
-
<a:font script="Khmr" typeface="MoolBoran"/>
|
|
76
|
-
<a:font script="Knda" typeface="Tunga"/>
|
|
77
|
-
<a:font script="Guru" typeface="Raavi"/>
|
|
78
|
-
<a:font script="Cans" typeface="Euphemia"/>
|
|
79
|
-
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
|
80
|
-
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
|
81
|
-
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
|
82
|
-
<a:font script="Thaa" typeface="MV Boli"/>
|
|
83
|
-
<a:font script="Deva" typeface="Mangal"/>
|
|
84
|
-
<a:font script="Telu" typeface="Gautami"/>
|
|
85
|
-
<a:font script="Taml" typeface="Latha"/>
|
|
86
|
-
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
|
87
|
-
<a:font script="Orya" typeface="Kalinga"/>
|
|
88
|
-
<a:font script="Mlym" typeface="Kartika"/>
|
|
89
|
-
<a:font script="Laoo" typeface="DokChampa"/>
|
|
90
|
-
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
|
91
|
-
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
|
92
|
-
<a:font script="Viet" typeface="Times New Roman"/>
|
|
93
|
-
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
|
94
|
-
</a:majorFont>
|
|
95
|
-
<a:minorFont>
|
|
96
|
-
<a:latin typeface="Calibri"/>
|
|
97
|
-
<a:ea typeface=""/>
|
|
98
|
-
<a:cs typeface=""/>
|
|
99
|
-
<a:font script="Jpan" typeface="MS Pゴシック"/>
|
|
100
|
-
<a:font script="Hang" typeface="맑은 고딕"/>
|
|
101
|
-
<a:font script="Hans" typeface="宋体"/>
|
|
102
|
-
<a:font script="Hant" typeface="新細明體"/>
|
|
103
|
-
<a:font script="Arab" typeface="Arial"/>
|
|
104
|
-
<a:font script="Hebr" typeface="Arial"/>
|
|
105
|
-
<a:font script="Thai" typeface="Tahoma"/>
|
|
106
|
-
<a:font script="Ethi" typeface="Nyala"/>
|
|
107
|
-
<a:font script="Beng" typeface="Vrinda"/>
|
|
108
|
-
<a:font script="Gujr" typeface="Shruti"/>
|
|
109
|
-
<a:font script="Khmr" typeface="DaunPenh"/>
|
|
110
|
-
<a:font script="Knda" typeface="Tunga"/>
|
|
111
|
-
<a:font script="Guru" typeface="Raavi"/>
|
|
112
|
-
<a:font script="Cans" typeface="Euphemia"/>
|
|
113
|
-
<a:font script="Cher" typeface="Plantagenet Cherokee"/>
|
|
114
|
-
<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>
|
|
115
|
-
<a:font script="Tibt" typeface="Microsoft Himalaya"/>
|
|
116
|
-
<a:font script="Thaa" typeface="MV Boli"/>
|
|
117
|
-
<a:font script="Deva" typeface="Mangal"/>
|
|
118
|
-
<a:font script="Telu" typeface="Gautami"/>
|
|
119
|
-
<a:font script="Taml" typeface="Latha"/>
|
|
120
|
-
<a:font script="Syrc" typeface="Estrangelo Edessa"/>
|
|
121
|
-
<a:font script="Orya" typeface="Kalinga"/>
|
|
122
|
-
<a:font script="Mlym" typeface="Kartika"/>
|
|
123
|
-
<a:font script="Laoo" typeface="DokChampa"/>
|
|
124
|
-
<a:font script="Sinh" typeface="Iskoola Pota"/>
|
|
125
|
-
<a:font script="Mong" typeface="Mongolian Baiti"/>
|
|
126
|
-
<a:font script="Viet" typeface="Arial"/>
|
|
127
|
-
<a:font script="Uigh" typeface="Microsoft Uighur"/>
|
|
128
|
-
</a:minorFont>
|
|
129
|
-
</a:fontScheme>
|
|
130
|
-
<a:fmtScheme name="Office">
|
|
131
|
-
<a:fillStyleLst>
|
|
132
|
-
<a:solidFill>
|
|
133
|
-
<a:schemeClr val="phClr"/>
|
|
134
|
-
</a:solidFill>
|
|
135
|
-
<a:gradFill rotWithShape="1">
|
|
136
|
-
<a:gsLst>
|
|
137
|
-
<a:gs pos="0">
|
|
138
|
-
<a:schemeClr val="phClr">
|
|
139
|
-
<a:tint val="50000"/>
|
|
140
|
-
<a:satMod val="300000"/>
|
|
141
|
-
</a:schemeClr>
|
|
142
|
-
</a:gs>
|
|
143
|
-
<a:gs pos="35000">
|
|
144
|
-
<a:schemeClr val="phClr">
|
|
145
|
-
<a:tint val="37000"/>
|
|
146
|
-
<a:satMod val="300000"/>
|
|
147
|
-
</a:schemeClr>
|
|
148
|
-
</a:gs>
|
|
149
|
-
<a:gs pos="100000">
|
|
150
|
-
<a:schemeClr val="phClr">
|
|
151
|
-
<a:tint val="15000"/>
|
|
152
|
-
<a:satMod val="350000"/>
|
|
153
|
-
</a:schemeClr>
|
|
154
|
-
</a:gs>
|
|
155
|
-
</a:gsLst>
|
|
156
|
-
<a:lin ang="16200000" scaled="1"/>
|
|
157
|
-
</a:gradFill>
|
|
158
|
-
<a:gradFill rotWithShape="1">
|
|
159
|
-
<a:gsLst>
|
|
160
|
-
<a:gs pos="0">
|
|
161
|
-
<a:schemeClr val="phClr">
|
|
162
|
-
<a:tint val="100000"/>
|
|
163
|
-
<a:shade val="100000"/>
|
|
164
|
-
<a:satMod val="130000"/>
|
|
165
|
-
</a:schemeClr>
|
|
166
|
-
</a:gs>
|
|
167
|
-
<a:gs pos="100000">
|
|
168
|
-
<a:schemeClr val="phClr">
|
|
169
|
-
<a:tint val="50000"/>
|
|
170
|
-
<a:shade val="100000"/>
|
|
171
|
-
<a:satMod val="350000"/>
|
|
172
|
-
</a:schemeClr>
|
|
173
|
-
</a:gs>
|
|
174
|
-
</a:gsLst>
|
|
175
|
-
<a:lin ang="16200000" scaled="0"/>
|
|
176
|
-
</a:gradFill>
|
|
177
|
-
</a:fillStyleLst>
|
|
178
|
-
<a:lnStyleLst>
|
|
179
|
-
<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr">
|
|
180
|
-
<a:solidFill>
|
|
181
|
-
<a:schemeClr val="phClr">
|
|
182
|
-
<a:shade val="95000"/>
|
|
183
|
-
<a:satMod val="105000"/>
|
|
184
|
-
</a:schemeClr>
|
|
185
|
-
</a:solidFill>
|
|
186
|
-
<a:prstDash val="solid"/>
|
|
187
|
-
</a:ln>
|
|
188
|
-
<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr">
|
|
189
|
-
<a:solidFill>
|
|
190
|
-
<a:schemeClr val="phClr"/>
|
|
191
|
-
</a:solidFill>
|
|
192
|
-
<a:prstDash val="solid"/>
|
|
193
|
-
</a:ln>
|
|
194
|
-
<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr">
|
|
195
|
-
<a:solidFill>
|
|
196
|
-
<a:schemeClr val="phClr"/>
|
|
197
|
-
</a:solidFill>
|
|
198
|
-
<a:prstDash val="solid"/>
|
|
199
|
-
</a:ln>
|
|
200
|
-
</a:lnStyleLst>
|
|
201
|
-
<a:effectStyleLst>
|
|
202
|
-
<a:effectStyle>
|
|
203
|
-
<a:effectLst>
|
|
204
|
-
<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0">
|
|
205
|
-
<a:srgbClr val="000000">
|
|
206
|
-
<a:alpha val="38000"/>
|
|
207
|
-
</a:srgbClr>
|
|
208
|
-
</a:outerShdw>
|
|
209
|
-
</a:effectLst>
|
|
210
|
-
</a:effectStyle>
|
|
211
|
-
<a:effectStyle>
|
|
212
|
-
<a:effectLst>
|
|
213
|
-
<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">
|
|
214
|
-
<a:srgbClr val="000000">
|
|
215
|
-
<a:alpha val="35000"/>
|
|
216
|
-
</a:srgbClr>
|
|
217
|
-
</a:outerShdw>
|
|
218
|
-
</a:effectLst>
|
|
219
|
-
</a:effectStyle>
|
|
220
|
-
<a:effectStyle>
|
|
221
|
-
<a:effectLst>
|
|
222
|
-
<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0">
|
|
223
|
-
<a:srgbClr val="000000">
|
|
224
|
-
<a:alpha val="35000"/>
|
|
225
|
-
</a:srgbClr>
|
|
226
|
-
</a:outerShdw>
|
|
227
|
-
</a:effectLst>
|
|
228
|
-
<a:scene3d>
|
|
229
|
-
<a:camera prst="orthographicFront">
|
|
230
|
-
<a:rot lat="0" lon="0" rev="0"/>
|
|
231
|
-
</a:camera>
|
|
232
|
-
<a:lightRig rig="threePt" dir="t">
|
|
233
|
-
<a:rot lat="0" lon="0" rev="1200000"/>
|
|
234
|
-
</a:lightRig>
|
|
235
|
-
</a:scene3d>
|
|
236
|
-
<a:sp3d>
|
|
237
|
-
<a:bevelT w="63500" h="25400"/>
|
|
238
|
-
</a:sp3d>
|
|
239
|
-
</a:effectStyle>
|
|
240
|
-
</a:effectStyleLst>
|
|
241
|
-
<a:bgFillStyleLst>
|
|
242
|
-
<a:solidFill>
|
|
243
|
-
<a:schemeClr val="phClr"/>
|
|
244
|
-
</a:solidFill>
|
|
245
|
-
<a:gradFill rotWithShape="1">
|
|
246
|
-
<a:gsLst>
|
|
247
|
-
<a:gs pos="0">
|
|
248
|
-
<a:schemeClr val="phClr">
|
|
249
|
-
<a:tint val="40000"/>
|
|
250
|
-
<a:satMod val="350000"/>
|
|
251
|
-
</a:schemeClr>
|
|
252
|
-
</a:gs>
|
|
253
|
-
<a:gs pos="40000">
|
|
254
|
-
<a:schemeClr val="phClr">
|
|
255
|
-
<a:tint val="45000"/>
|
|
256
|
-
<a:shade val="99000"/>
|
|
257
|
-
<a:satMod val="350000"/>
|
|
258
|
-
</a:schemeClr>
|
|
259
|
-
</a:gs>
|
|
260
|
-
<a:gs pos="100000">
|
|
261
|
-
<a:schemeClr val="phClr">
|
|
262
|
-
<a:shade val="20000"/>
|
|
263
|
-
<a:satMod val="255000"/>
|
|
264
|
-
</a:schemeClr>
|
|
265
|
-
</a:gs>
|
|
266
|
-
</a:gsLst>
|
|
267
|
-
<a:path path="circle">
|
|
268
|
-
<a:fillToRect l="50000" t="-80000" r="50000" b="180000"/>
|
|
269
|
-
</a:path>
|
|
270
|
-
</a:gradFill>
|
|
271
|
-
<a:gradFill rotWithShape="1">
|
|
272
|
-
<a:gsLst>
|
|
273
|
-
<a:gs pos="0">
|
|
274
|
-
<a:schemeClr val="phClr">
|
|
275
|
-
<a:tint val="80000"/>
|
|
276
|
-
<a:satMod val="300000"/>
|
|
277
|
-
</a:schemeClr>
|
|
278
|
-
</a:gs>
|
|
279
|
-
<a:gs pos="100000">
|
|
280
|
-
<a:schemeClr val="phClr">
|
|
281
|
-
<a:shade val="30000"/>
|
|
282
|
-
<a:satMod val="200000"/>
|
|
283
|
-
</a:schemeClr>
|
|
284
|
-
</a:gs>
|
|
285
|
-
</a:gsLst>
|
|
286
|
-
<a:path path="circle">
|
|
287
|
-
<a:fillToRect l="50000" t="50000" r="50000" b="50000"/>
|
|
288
|
-
</a:path>
|
|
289
|
-
</a:gradFill>
|
|
290
|
-
</a:bgFillStyleLst>
|
|
291
|
-
</a:fmtScheme>
|
|
292
|
-
</a:themeElements>
|
|
293
|
-
<a:objectDefaults>
|
|
294
|
-
<a:spDef>
|
|
295
|
-
<a:spPr/>
|
|
296
|
-
<a:bodyPr/>
|
|
297
|
-
<a:lstStyle/>
|
|
298
|
-
<a:style>
|
|
299
|
-
<a:lnRef idx="1">
|
|
300
|
-
<a:schemeClr val="accent1"/>
|
|
301
|
-
</a:lnRef>
|
|
302
|
-
<a:fillRef idx="3">
|
|
303
|
-
<a:schemeClr val="accent1"/>
|
|
304
|
-
</a:fillRef>
|
|
305
|
-
<a:effectRef idx="2">
|
|
306
|
-
<a:schemeClr val="accent1"/>
|
|
307
|
-
</a:effectRef>
|
|
308
|
-
<a:fontRef idx="minor">
|
|
309
|
-
<a:schemeClr val="lt1"/>
|
|
310
|
-
</a:fontRef>
|
|
311
|
-
</a:style>
|
|
312
|
-
</a:spDef>
|
|
313
|
-
<a:lnDef>
|
|
314
|
-
<a:spPr/>
|
|
315
|
-
<a:bodyPr/>
|
|
316
|
-
<a:lstStyle/>
|
|
317
|
-
<a:style>
|
|
318
|
-
<a:lnRef idx="2">
|
|
319
|
-
<a:schemeClr val="accent1"/>
|
|
320
|
-
</a:lnRef>
|
|
321
|
-
<a:fillRef idx="0">
|
|
322
|
-
<a:schemeClr val="accent1"/>
|
|
323
|
-
</a:fillRef>
|
|
324
|
-
<a:effectRef idx="1">
|
|
325
|
-
<a:schemeClr val="accent1"/>
|
|
326
|
-
</a:effectRef>
|
|
327
|
-
<a:fontRef idx="minor">
|
|
328
|
-
<a:schemeClr val="tx1"/>
|
|
329
|
-
</a:fontRef>
|
|
330
|
-
</a:style>
|
|
331
|
-
</a:lnDef>
|
|
332
|
-
</a:objectDefaults>
|
|
333
|
-
<a:extraClrSchemeLst/>
|
|
334
|
-
</a:theme>'
|
|
335
|
-
|
|
336
|
-
# file = File.new(@filepath, 'w+')
|
|
337
|
-
# file.write(contents)
|
|
338
|
-
# file.close
|
|
339
|
-
contents
|
|
340
|
-
end
|
|
341
|
-
end
|
|
342
|
-
end
|
|
343
|
-
end
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'workbook'))
|
|
2
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'worksheet'))
|
|
3
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'cell'))
|
|
4
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'color'))
|
|
5
|
-
require 'rubygems'
|
|
6
|
-
require 'nokogiri'
|
|
7
|
-
|
|
8
|
-
module RubyXL
|
|
9
|
-
module Writer
|
|
10
|
-
class WorkbookRelsWriter
|
|
11
|
-
attr_accessor :dirpath, :filepath, :workbook
|
|
12
|
-
|
|
13
|
-
def initialize(dirpath, wb)
|
|
14
|
-
@dirpath = dirpath
|
|
15
|
-
@workbook = wb
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
#all attributes out of order
|
|
19
|
-
def write()
|
|
20
|
-
builder = Nokogiri::XML::Builder.new do |xml|
|
|
21
|
-
xml.Relationships('xmlns'=>'http://schemas.openxmlformats.org/package/2006/relationships') {
|
|
22
|
-
i = 1
|
|
23
|
-
@workbook.worksheets.each do |sheet|
|
|
24
|
-
xml.Relationship('Id'=>'rId'+i.to_s,
|
|
25
|
-
'Type'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",
|
|
26
|
-
'Target'=>'worksheets/sheet'+i.to_s+'.xml')
|
|
27
|
-
i += 1
|
|
28
|
-
end
|
|
29
|
-
unless @workbook.external_links.nil?
|
|
30
|
-
1.upto(@workbook.external_links.size-1) do |link|
|
|
31
|
-
xml.Relationship('Id'=>'rId'+i.to_s,
|
|
32
|
-
'Type'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",
|
|
33
|
-
'Target'=>"externalLinks/externalLink#{link}.xml"
|
|
34
|
-
)
|
|
35
|
-
i+=1
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
xml.Relationship('Id'=>'rId'+i.to_s,
|
|
39
|
-
'Type'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",
|
|
40
|
-
'Target'=>'theme/theme1.xml')
|
|
41
|
-
i += 1
|
|
42
|
-
xml.Relationship('Id'=>'rId'+i.to_s,
|
|
43
|
-
'Type'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",
|
|
44
|
-
'Target'=>'styles.xml')
|
|
45
|
-
i+=1
|
|
46
|
-
xml.Relationship('Id'=>'rId'+i.to_s,
|
|
47
|
-
'Type'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",
|
|
48
|
-
'Target'=>'sharedStrings.xml')
|
|
49
|
-
}
|
|
50
|
-
end
|
|
51
|
-
contents = builder.to_xml
|
|
52
|
-
contents = contents.gsub(/\n/,'')
|
|
53
|
-
contents = contents.gsub(/>(\s)+</,'><')
|
|
54
|
-
contents = contents.sub(/<\?xml version=\"1.0\"\?>/,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+"\n")
|
|
55
|
-
contents
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'workbook'))
|
|
2
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'worksheet'))
|
|
3
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'cell'))
|
|
4
|
-
# require File.expand_path(File.join(File.dirname(__FILE__),'color'))
|
|
5
|
-
require 'rubygems'
|
|
6
|
-
require 'nokogiri'
|
|
7
|
-
|
|
8
|
-
module RubyXL
|
|
9
|
-
module Writer
|
|
10
|
-
class WorkbookWriter
|
|
11
|
-
attr_accessor :dirpath, :filepath, :workbook
|
|
12
|
-
|
|
13
|
-
def initialize(dirpath, wb)
|
|
14
|
-
@dirpath = dirpath
|
|
15
|
-
@workbook = wb
|
|
16
|
-
@filepath = dirpath + '/xl/workbook.xml'
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def write()
|
|
20
|
-
builder = Nokogiri::XML::Builder.new do |xml|
|
|
21
|
-
xml.workbook('xmlns'=>"http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
22
|
-
'xmlns:r'=>"http://schemas.openxmlformats.org/officeDocument/2006/relationships") {
|
|
23
|
-
#attributes out of order here
|
|
24
|
-
xml.fileVersion('appName'=>'xl', 'lastEdited'=>'4','lowestEdited'=>'4','rupBuild'=>'4505')
|
|
25
|
-
#TODO following line - date 1904? check if mac only
|
|
26
|
-
if @workbook.date1904.nil? || @workbook.date1904.to_s == ''
|
|
27
|
-
xml.workbookPr('showInkAnnotation'=>'0', 'autoCompressPictures'=>'0')
|
|
28
|
-
else
|
|
29
|
-
xml.workbookPr('date1904'=>@workbook.date1904.to_s, 'showInkAnnotation'=>'0', 'autoCompressPictures'=>'0')
|
|
30
|
-
end
|
|
31
|
-
xml.bookViews {
|
|
32
|
-
#attributes out of order here
|
|
33
|
-
xml.workbookView('xWindow'=>'-20', 'yWindow'=>'-20',
|
|
34
|
-
'windowWidth'=>'21600','windowHeight'=>'13340','tabRatio'=>'500')
|
|
35
|
-
}
|
|
36
|
-
index = 0
|
|
37
|
-
xml.sheets {
|
|
38
|
-
@workbook.worksheets.each_with_index do |sheet,i|
|
|
39
|
-
xml.sheet('name'=>sheet.sheet_name, 'sheetId'=>(i+1).to_s(),
|
|
40
|
-
'r:id'=>'rId'+(i+1).to_s())
|
|
41
|
-
index = i+1
|
|
42
|
-
end
|
|
43
|
-
}
|
|
44
|
-
unless @workbook.external_links.nil?
|
|
45
|
-
xml.externalReferences {
|
|
46
|
-
index.upto(@workbook.external_links.size-1) do |id|
|
|
47
|
-
xml.externalReference('r:id'=>"rId#{id+index}")
|
|
48
|
-
end
|
|
49
|
-
}
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
# nokogiri builder creates CDATA tag around content,
|
|
53
|
-
# using .text creates "html safe" < and > in place of < and >
|
|
54
|
-
# xml to hash method does not seem to function well for this particular piece of xml
|
|
55
|
-
xml.cdata @workbook.defined_names.to_s
|
|
56
|
-
|
|
57
|
-
#TODO see if this changes with formulas
|
|
58
|
-
#attributes out of order here
|
|
59
|
-
xml.calcPr('calcId'=>'130407', 'concurrentCalc'=>'0')
|
|
60
|
-
xml.extLst {
|
|
61
|
-
xml.ext('xmlns:mx'=>"http://schemas.microsoft.com/office/mac/excel/2008/main",
|
|
62
|
-
'uri'=>"http://schemas.microsoft.com/office/mac/excel/2008/main") {
|
|
63
|
-
xml['mx'].ArchID('Flags'=>'2')
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
end
|
|
68
|
-
contents = builder.to_xml
|
|
69
|
-
contents = contents.gsub(/\n/,'')
|
|
70
|
-
contents = contents.gsub(/>(\s)+</,'><')
|
|
71
|
-
contents = contents.gsub(/<!\[CDATA\[(.*)\]\]>/,'\1')
|
|
72
|
-
contents = contents.sub(/<\?xml version=\"1.0\"\?>/,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+"\n")
|
|
73
|
-
contents
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
end
|