rubyXL 2.3.4 → 2.4.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/rubyXL.rb +2 -0
- data/lib/rubyXL/objects/calculation_chain.rb +6 -1
- data/lib/rubyXL/objects/chartsheet.rb +7 -1
- data/lib/rubyXL/objects/container_nodes.rb +6 -1
- data/lib/rubyXL/objects/content_types.rb +95 -0
- data/lib/rubyXL/objects/document_properties.rb +77 -1
- data/lib/rubyXL/objects/ooxml_object.rb +11 -7
- data/lib/rubyXL/objects/relationships.rb +9 -5
- data/lib/rubyXL/objects/shared_strings.rb +5 -1
- data/lib/rubyXL/objects/simple_types.rb +35 -1
- data/lib/rubyXL/objects/stylesheet.rb +5 -1
- data/lib/rubyXL/objects/theme.rb +471 -6
- data/lib/rubyXL/objects/workbook.rb +52 -1
- data/lib/rubyXL/objects/worksheet.rb +7 -1
- data/lib/rubyXL/parser.rb +9 -14
- data/lib/rubyXL/workbook.rb +11 -13
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +11 -1
- data/rdoc/RubyXL/AExtension.html +225 -0
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +41 -6
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorScheme.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +105 -0
- data/rdoc/RubyXL/ContentTypeOverride.html +105 -0
- data/rdoc/RubyXL/ContentTypes.html +310 -0
- data/rdoc/RubyXL/CoreProperties.html +105 -0
- data/rdoc/RubyXL/CustomColor.html +105 -0
- data/rdoc/RubyXL/CustomColorList.html +105 -0
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +105 -0
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DocumentProperties.html +41 -6
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -121
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +105 -0
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorScheme.html +105 -0
- data/rdoc/RubyXL/ExtraColorSchemeList.html +105 -0
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +1 -1
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/FormatScheme.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorage.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorkbook.html +33 -55
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +36 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/ObjectDefaults.html +105 -0
- data/rdoc/RubyXL/Offset.html +105 -0
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +9 -14
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +105 -0
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/RootRelationships.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeDefault.html +105 -0
- data/rdoc/RubyXL/SharedStringsTable.html +43 -8
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/{Writer.html → StringNodeW3C.html} +13 -6
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +2 -2
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/TwoDTransform.html +105 -0
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +105 -0
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +19 -24
- data/rdoc/index.html +12 -16
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +102 -153
- data/rubyXL.gemspec +22 -16
- data/spec/lib/parser_spec.rb +16 -2
- metadata +21 -15
- data/lib/rubyXL/writer/content_types_writer.rb +0 -113
- data/lib/rubyXL/writer/core_writer.rb +0 -34
- data/lib/rubyXL/writer/generic_writer.rb +0 -43
- data/lib/rubyXL/writer/styles_writer.rb +0 -15
- data/lib/rubyXL/writer/theme_writer.rb +0 -337
- data/lib/rubyXL/writer/workbook_writer.rb +0 -73
- data/rdoc/RubyXL/Writer/ContentTypesWriter.html +0 -289
- data/rdoc/RubyXL/Writer/CoreWriter.html +0 -210
- data/rdoc/RubyXL/Writer/GenericWriter.html +0 -348
- data/rdoc/RubyXL/Writer/StylesWriter.html +0 -191
- data/rdoc/RubyXL/Writer/ThemeWriter.html +0 -511
- data/rdoc/RubyXL/Writer/WorkbookWriter.html +0 -249
data/rdoc/RubyXL/IconFilter.html
CHANGED
data/rdoc/RubyXL/IconSet.html
CHANGED
data/rdoc/RubyXL/InputCells.html
CHANGED
data/rdoc/RubyXL/LegacyCell.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::LegacyWorkbook - rubyXL 2.
|
|
7
|
+
<title>module RubyXL::LegacyWorkbook - rubyXL 2.4.0</title>
|
|
8
8
|
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
|
@@ -223,9 +223,9 @@
|
|
|
223
223
|
</div>
|
|
224
224
|
</div>
|
|
225
225
|
|
|
226
|
-
<div id="attribute-i-
|
|
226
|
+
<div id="attribute-i-content_types" class="method-detail">
|
|
227
227
|
<div class="method-heading attribute-method-heading">
|
|
228
|
-
<span class="method-name">
|
|
228
|
+
<span class="method-name">content_types</span><span
|
|
229
229
|
class="attribute-access-type">[RW]</span>
|
|
230
230
|
</div>
|
|
231
231
|
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
</div>
|
|
237
237
|
</div>
|
|
238
238
|
|
|
239
|
-
<div id="attribute-i-
|
|
239
|
+
<div id="attribute-i-core_properties" class="method-detail">
|
|
240
240
|
<div class="method-heading attribute-method-heading">
|
|
241
|
-
<span class="method-name">
|
|
241
|
+
<span class="method-name">core_properties</span><span
|
|
242
242
|
class="attribute-access-type">[RW]</span>
|
|
243
243
|
</div>
|
|
244
244
|
|
|
@@ -350,32 +350,6 @@
|
|
|
350
350
|
|
|
351
351
|
|
|
352
352
|
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
|
|
356
|
-
<div id="attribute-i-modified_at" class="method-detail">
|
|
357
|
-
<div class="method-heading attribute-method-heading">
|
|
358
|
-
<span class="method-name">modified_at</span><span
|
|
359
|
-
class="attribute-access-type">[RW]</span>
|
|
360
|
-
</div>
|
|
361
|
-
|
|
362
|
-
<div class="method-description">
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
|
|
369
|
-
<div id="attribute-i-modifier" class="method-detail">
|
|
370
|
-
<div class="method-heading attribute-method-heading">
|
|
371
|
-
<span class="method-name">modifier</span><span
|
|
372
|
-
class="attribute-access-type">[RW]</span>
|
|
373
|
-
</div>
|
|
374
|
-
|
|
375
|
-
<div class="method-description">
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
353
|
</div>
|
|
380
354
|
</div>
|
|
381
355
|
|
|
@@ -517,7 +491,7 @@
|
|
|
517
491
|
|
|
518
492
|
|
|
519
493
|
<div class="method-source-code" id="new-source">
|
|
520
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
494
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 18</span>
|
|
521
495
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">worksheets</span>=[], <span class="ruby-identifier">filepath</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">creator</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">modifier</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">created_at</span>=<span class="ruby-keyword">nil</span>,
|
|
522
496
|
<span class="ruby-identifier">company</span>=<span class="ruby-string">''</span>, <span class="ruby-identifier">application</span>=<span class="ruby-constant">APPLICATION</span>,
|
|
523
497
|
<span class="ruby-identifier">appversion</span>=<span class="ruby-constant">APPVERSION</span>, <span class="ruby-identifier">date1904</span>=<span class="ruby-value">0</span>)
|
|
@@ -541,13 +515,15 @@
|
|
|
541
515
|
<span class="ruby-ivar">@chart_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'charts'</span>, <span class="ruby-string">'_rels'</span>))
|
|
542
516
|
<span class="ruby-ivar">@worksheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'worksheets'</span>, <span class="ruby-string">'_rels'</span>))
|
|
543
517
|
<span class="ruby-ivar">@chartsheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'chartsheets'</span>, <span class="ruby-string">'_rels'</span>))
|
|
544
|
-
<span class="ruby-ivar">@theme</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'theme'</span>))
|
|
545
518
|
<span class="ruby-ivar">@printer_settings</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'printerSettings'</span>)).<span class="ruby-identifier">binary</span>
|
|
546
519
|
<span class="ruby-ivar">@macros</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'xl'</span>).<span class="ruby-identifier">binary</span>
|
|
547
520
|
|
|
521
|
+
<span class="ruby-ivar">@theme</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Theme</span>.<span class="ruby-identifier">new</span>
|
|
548
522
|
<span class="ruby-ivar">@shared_strings_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedStringsTable</span>.<span class="ruby-identifier">new</span>
|
|
549
523
|
<span class="ruby-ivar">@stylesheet</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Stylesheet</span>.<span class="ruby-identifier">default</span>
|
|
550
524
|
<span class="ruby-ivar">@document_properties</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DocumentProperties</span>.<span class="ruby-identifier">new</span>
|
|
525
|
+
<span class="ruby-ivar">@core_properties</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">CoreProperties</span>.<span class="ruby-identifier">new</span>
|
|
526
|
+
<span class="ruby-ivar">@content_types</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ContentTypes</span>.<span class="ruby-identifier">new</span>
|
|
551
527
|
<span class="ruby-ivar">@relationship_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookRelationships</span>.<span class="ruby-identifier">new</span>
|
|
552
528
|
<span class="ruby-ivar">@root_relationship_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">RootRelationships</span>.<span class="ruby-identifier">new</span>
|
|
553
529
|
<span class="ruby-ivar">@calculation_chain</span> = <span class="ruby-keyword">nil</span>
|
|
@@ -600,7 +576,7 @@
|
|
|
600
576
|
|
|
601
577
|
|
|
602
578
|
<div class="method-source-code" id="5B-5D-source">
|
|
603
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
579
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 67</span>
|
|
604
580
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">ind</span>)
|
|
605
581
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
|
606
582
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Integer</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">worksheets</span>[<span class="ruby-identifier">ind</span>]
|
|
@@ -638,7 +614,7 @@
|
|
|
638
614
|
|
|
639
615
|
|
|
640
616
|
<div class="method-source-code" id="add_worksheet-source">
|
|
641
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
617
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 77</span>
|
|
642
618
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_worksheet</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword">nil</span>)
|
|
643
619
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
|
644
620
|
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
|
@@ -681,7 +657,7 @@
|
|
|
681
657
|
|
|
682
658
|
|
|
683
659
|
<div class="method-source-code" id="borders-source">
|
|
684
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
660
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 258</span>
|
|
685
661
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">borders</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
|
686
662
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
|
|
687
663
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -714,7 +690,7 @@
|
|
|
714
690
|
|
|
715
691
|
|
|
716
692
|
<div class="method-source-code" id="cell_xfs-source">
|
|
717
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
693
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 246</span>
|
|
718
694
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">cell_xfs</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
|
719
695
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
|
|
720
696
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -747,7 +723,7 @@
|
|
|
747
723
|
|
|
748
724
|
|
|
749
725
|
<div class="method-source-code" id="date_to_num-source">
|
|
750
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
726
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 144</span>
|
|
751
727
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
|
752
728
|
<span class="ruby-identifier">date</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>().<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
|
|
753
729
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -780,7 +756,7 @@
|
|
|
780
756
|
|
|
781
757
|
|
|
782
758
|
<div class="method-source-code" id="each-source">
|
|
783
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
759
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 91</span>
|
|
784
760
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
|
|
785
761
|
<span class="ruby-identifier">worksheets</span>.<span class="ruby-identifier">each</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">i</span>}
|
|
786
762
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -813,7 +789,7 @@
|
|
|
813
789
|
|
|
814
790
|
|
|
815
791
|
<div class="method-source-code" id="fills-source">
|
|
816
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
792
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 254</span>
|
|
817
793
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fills</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
|
818
794
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fills</span>
|
|
819
795
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -846,7 +822,7 @@
|
|
|
846
822
|
|
|
847
823
|
|
|
848
824
|
<div class="method-source-code" id="fonts-source">
|
|
849
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
825
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 250</span>
|
|
850
826
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fonts</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
|
|
851
827
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>
|
|
852
828
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -879,7 +855,7 @@
|
|
|
879
855
|
|
|
880
856
|
|
|
881
857
|
<div class="method-source-code" id="get_fill_color-source">
|
|
882
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
858
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 152</span>
|
|
883
859
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
|
|
884
860
|
<span class="ruby-identifier">fill</span> = <span class="ruby-identifier">fills</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">fill_id</span>]
|
|
885
861
|
<span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">fill</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">fill</span>.<span class="ruby-identifier">pattern_fill</span>
|
|
@@ -915,7 +891,7 @@
|
|
|
915
891
|
|
|
916
892
|
|
|
917
893
|
<div class="method-source-code" id="modify_alignment-source">
|
|
918
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
894
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 208</span>
|
|
919
895
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_alignment</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">is_horizontal</span>, <span class="ruby-identifier">alignment</span>)
|
|
920
896
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
|
921
897
|
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:apply_alignment</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>,
|
|
@@ -952,7 +928,7 @@
|
|
|
952
928
|
|
|
953
929
|
|
|
954
930
|
<div class="method-source-code" id="modify_border-source">
|
|
955
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
931
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 225</span>
|
|
956
932
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
|
957
933
|
<span class="ruby-identifier">old_xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
|
958
934
|
<span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">border_id</span>].<span class="ruby-identifier">dup</span>
|
|
@@ -1002,7 +978,7 @@
|
|
|
1002
978
|
|
|
1003
979
|
|
|
1004
980
|
<div class="method-source-code" id="modify_fill-source">
|
|
1005
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
981
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 216</span>
|
|
1006
982
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_fill</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
|
1007
983
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
|
1008
984
|
<span class="ruby-identifier">new_fill</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Fill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_fill</span> =<span class="ruby-operator">></span>
|
|
@@ -1040,7 +1016,7 @@
|
|
|
1040
1016
|
|
|
1041
1017
|
|
|
1042
1018
|
<div class="method-source-code" id="modify_text_wrap-source">
|
|
1043
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1019
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 202</span>
|
|
1044
1020
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_text_wrap</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">wrap</span> = <span class="ruby-keyword">false</span>)
|
|
1045
1021
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
|
1046
1022
|
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wrap_text</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">wrap</span>, <span class="ruby-value">:apply_alignment</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">true</span>)
|
|
@@ -1075,7 +1051,7 @@
|
|
|
1075
1051
|
|
|
1076
1052
|
|
|
1077
1053
|
<div class="method-source-code" id="num_to_date-source">
|
|
1078
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1054
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 148</span>
|
|
1079
1055
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
|
1080
1056
|
<span class="ruby-identifier">num</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">num</span>)
|
|
1081
1057
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -1108,7 +1084,7 @@
|
|
|
1108
1084
|
|
|
1109
1085
|
|
|
1110
1086
|
<div class="method-source-code" id="register_new_fill-source">
|
|
1111
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1087
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 159</span>
|
|
1112
1088
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">old_xf</span>)
|
|
1113
1089
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
|
1114
1090
|
|
|
@@ -1153,7 +1129,7 @@
|
|
|
1153
1129
|
|
|
1154
1130
|
|
|
1155
1131
|
<div class="method-source-code" id="register_new_font-source">
|
|
1156
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1132
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 175</span>
|
|
1157
1133
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">new_font</span>, <span class="ruby-identifier">old_xf</span>)
|
|
1158
1134
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
|
1159
1135
|
|
|
@@ -1198,7 +1174,7 @@
|
|
|
1198
1174
|
|
|
1199
1175
|
|
|
1200
1176
|
<div class="method-source-code" id="register_new_xf-source">
|
|
1201
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1177
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 191</span>
|
|
1202
1178
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>, <span class="ruby-identifier">old_style_index</span>)
|
|
1203
1179
|
<span class="ruby-identifier">new_xf_id</span> = <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">xf</span><span class="ruby-operator">|</span> <span class="ruby-identifier">xf</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_xf</span> } <span class="ruby-comment"># Use existing XF, if it exists</span>
|
|
1204
1180
|
<span class="ruby-identifier">new_xf_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this XF has never existed before, add it to collection.</span>
|
|
@@ -1238,7 +1214,7 @@
|
|
|
1238
1214
|
|
|
1239
1215
|
|
|
1240
1216
|
<div class="method-source-code" id="write-source">
|
|
1241
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
|
1217
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 96</span>
|
|
1242
1218
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@filepath</span>)
|
|
1243
1219
|
<span class="ruby-identifier">extension</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">filepath</span>)
|
|
1244
1220
|
<span class="ruby-keyword">unless</span> <span class="ruby-node">%w{.xlsx .xlsm}</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">extension</span>)
|
|
@@ -1251,16 +1227,18 @@
|
|
|
1251
1227
|
<span class="ruby-identifier">zippath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">temppath</span>, <span class="ruby-string">'file.zip'</span>)
|
|
1252
1228
|
|
|
1253
1229
|
<span class="ruby-operator">::</span><span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">zippath</span>, <span class="ruby-operator">::</span><span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREATE</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">zipfile</span><span class="ruby-operator">|</span>
|
|
1254
|
-
|
|
1255
|
-
<span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">ThemeWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">StylesWriter</span>
|
|
1256
|
-
].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">writer_class</span><span class="ruby-operator">|</span> <span class="ruby-identifier">writer_class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>).<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>) }
|
|
1257
|
-
|
|
1230
|
+
<span class="ruby-identifier">theme</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">theme</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1258
1231
|
<span class="ruby-identifier">calculation_chain</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">calculation_chain</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1259
1232
|
<span class="ruby-identifier">shared_strings_container</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">shared_strings_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1260
1233
|
<span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1234
|
+
<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1235
|
+
<span class="ruby-identifier">content_types</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
|
|
1236
|
+
<span class="ruby-identifier">content_types</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1261
1237
|
<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
|
|
1262
1238
|
<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1239
|
+
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1263
1240
|
<span class="ruby-identifier">root_relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1241
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
|
1264
1242
|
|
|
1265
1243
|
[ <span class="ruby-ivar">@media</span>, <span class="ruby-ivar">@external_links</span>, <span class="ruby-ivar">@external_links_rels</span>,
|
|
1266
1244
|
<span class="ruby-ivar">@drawings</span>, <span class="ruby-ivar">@drawings_rels</span>, <span class="ruby-ivar">@charts</span>, <span class="ruby-ivar">@chart_rels</span>,
|
data/rdoc/RubyXL/MRUColors.html
CHANGED
data/rdoc/RubyXL/MergedCell.html
CHANGED
data/rdoc/RubyXL/NumFmt.html
CHANGED
data/rdoc/RubyXL/OLEObject.html
CHANGED
data/rdoc/RubyXL/OLEObjects.html
CHANGED