rubyXL 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/rubyXL/objects/content_types.rb +2 -0
- data/lib/rubyXL/objects/relationships.rb +1 -0
- data/lib/rubyXL/objects/simple_types.rb +2 -0
- data/lib/rubyXL/objects/theme.rb +146 -17
- data/lib/rubyXL/objects/worksheet.rb +1 -1
- data/lib/rubyXL/parser.rb +1 -0
- data/lib/rubyXL/workbook.rb +4 -3
- data/lib/rubyXL/worksheet.rb +2 -2
- data/rdoc/README_rdoc.html +2 -2
- data/rdoc/RubyXL.html +6 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +105 -0
- 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/CT_AdjPoint2D.html +105 -0
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +105 -0
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +105 -0
- data/rdoc/RubyXL/CT_FontCollection.html +105 -0
- data/rdoc/RubyXL/CT_GeomGuideList.html +105 -0
- data/rdoc/RubyXL/CT_Path2D.html +105 -0
- data/rdoc/RubyXL/CT_Path2DArcTo.html +105 -0
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +105 -0
- data/rdoc/RubyXL/{AdjustValueList.html → CT_Path2DList.html} +4 -4
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +105 -0
- data/rdoc/RubyXL/CT_Path2DTo.html +105 -0
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +105 -0
- data/rdoc/RubyXL/CT_SupplementalFont.html +105 -0
- data/rdoc/RubyXL/CT_TextFont.html +105 -0
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +105 -0
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- 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 +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +3 -1
- data/rdoc/RubyXL/CoreProperties.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- 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 +1 -1
- 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 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorScheme.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- 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/HSLColor.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 +35 -21
- data/rdoc/RubyXL/LegacyWorksheet.html +3 -3
- 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 +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/ObjectDefaults.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- 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 +2 -1
- 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/PresetColor.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- 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/RGBColorModelHex.html +1 -1
- data/rdoc/RubyXL/RGBColorModelPercentage.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/SchemeColor.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeDefault.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- 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/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/SystemColor.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 +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/TwoDTransform.html +1 -1
- 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 +1 -1
- 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 +13 -13
- data/rdoc/index.html +2 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +2 -2
- data/rubyXL.gemspec +19 -4
- data/spec/lib/worksheet_spec.rb +6 -6
- metadata +18 -3
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.4.
|
7
|
+
<title>module RubyXL::LegacyWorkbook - rubyXL 2.4.2</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -428,6 +428,19 @@
|
|
428
428
|
|
429
429
|
|
430
430
|
|
431
|
+
</div>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
<div id="attribute-i-thumbnail" class="method-detail">
|
435
|
+
<div class="method-heading attribute-method-heading">
|
436
|
+
<span class="method-name">thumbnail</span><span
|
437
|
+
class="attribute-access-type">[RW]</span>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
<div class="method-description">
|
441
|
+
|
442
|
+
|
443
|
+
|
431
444
|
</div>
|
432
445
|
</div>
|
433
446
|
|
@@ -517,6 +530,7 @@
|
|
517
530
|
<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>))
|
518
531
|
<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>
|
519
532
|
<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>
|
533
|
+
<span class="ruby-ivar">@thumbnail</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">'docProps'</span>).<span class="ruby-identifier">binary</span>
|
520
534
|
|
521
535
|
<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>
|
522
536
|
<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>
|
@@ -576,7 +590,7 @@
|
|
576
590
|
|
577
591
|
|
578
592
|
<div class="method-source-code" id="5B-5D-source">
|
579
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
593
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 68</span>
|
580
594
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">ind</span>)
|
581
595
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">ind</span>
|
582
596
|
<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>]
|
@@ -614,7 +628,7 @@
|
|
614
628
|
|
615
629
|
|
616
630
|
<div class="method-source-code" id="add_worksheet-source">
|
617
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
631
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 78</span>
|
618
632
|
<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>)
|
619
633
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-keyword">then</span>
|
620
634
|
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
@@ -657,7 +671,7 @@
|
|
657
671
|
|
658
672
|
|
659
673
|
<div class="method-source-code" id="borders-source">
|
660
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
674
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 259</span>
|
661
675
|
<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>
|
662
676
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
|
663
677
|
<span class="ruby-keyword">end</span></pre>
|
@@ -690,7 +704,7 @@
|
|
690
704
|
|
691
705
|
|
692
706
|
<div class="method-source-code" id="cell_xfs-source">
|
693
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
707
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 247</span>
|
694
708
|
<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>
|
695
709
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
|
696
710
|
<span class="ruby-keyword">end</span></pre>
|
@@ -723,7 +737,7 @@
|
|
723
737
|
|
724
738
|
|
725
739
|
<div class="method-source-code" id="date_to_num-source">
|
726
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
740
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 145</span>
|
727
741
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">date</span>)
|
728
742
|
<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>
|
729
743
|
<span class="ruby-keyword">end</span></pre>
|
@@ -756,7 +770,7 @@
|
|
756
770
|
|
757
771
|
|
758
772
|
<div class="method-source-code" id="each-source">
|
759
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
773
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 92</span>
|
760
774
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
|
761
775
|
<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>}
|
762
776
|
<span class="ruby-keyword">end</span></pre>
|
@@ -789,7 +803,7 @@
|
|
789
803
|
|
790
804
|
|
791
805
|
<div class="method-source-code" id="fills-source">
|
792
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
806
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 255</span>
|
793
807
|
<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>
|
794
808
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fills</span>
|
795
809
|
<span class="ruby-keyword">end</span></pre>
|
@@ -822,7 +836,7 @@
|
|
822
836
|
|
823
837
|
|
824
838
|
<div class="method-source-code" id="fonts-source">
|
825
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
839
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 251</span>
|
826
840
|
<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>
|
827
841
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>
|
828
842
|
<span class="ruby-keyword">end</span></pre>
|
@@ -855,7 +869,7 @@
|
|
855
869
|
|
856
870
|
|
857
871
|
<div class="method-source-code" id="get_fill_color-source">
|
858
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
872
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 153</span>
|
859
873
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
|
860
874
|
<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>]
|
861
875
|
<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>
|
@@ -891,7 +905,7 @@
|
|
891
905
|
|
892
906
|
|
893
907
|
<div class="method-source-code" id="modify_alignment-source">
|
894
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
908
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 209</span>
|
895
909
|
<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>)
|
896
910
|
<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>
|
897
911
|
<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>,
|
@@ -928,7 +942,7 @@
|
|
928
942
|
|
929
943
|
|
930
944
|
<div class="method-source-code" id="modify_border-source">
|
931
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
945
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 226</span>
|
932
946
|
<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>)
|
933
947
|
<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>
|
934
948
|
<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>
|
@@ -978,7 +992,7 @@
|
|
978
992
|
|
979
993
|
|
980
994
|
<div class="method-source-code" id="modify_fill-source">
|
981
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
995
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 217</span>
|
982
996
|
<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>)
|
983
997
|
<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>
|
984
998
|
<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>
|
@@ -1016,7 +1030,7 @@
|
|
1016
1030
|
|
1017
1031
|
|
1018
1032
|
<div class="method-source-code" id="modify_text_wrap-source">
|
1019
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1033
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 203</span>
|
1020
1034
|
<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>)
|
1021
1035
|
<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>
|
1022
1036
|
<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>)
|
@@ -1051,7 +1065,7 @@
|
|
1051
1065
|
|
1052
1066
|
|
1053
1067
|
<div class="method-source-code" id="num_to_date-source">
|
1054
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1068
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 149</span>
|
1055
1069
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
|
1056
1070
|
<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>)
|
1057
1071
|
<span class="ruby-keyword">end</span></pre>
|
@@ -1084,7 +1098,7 @@
|
|
1084
1098
|
|
1085
1099
|
|
1086
1100
|
<div class="method-source-code" id="register_new_fill-source">
|
1087
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1101
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 160</span>
|
1088
1102
|
<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>)
|
1089
1103
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1090
1104
|
|
@@ -1129,7 +1143,7 @@
|
|
1129
1143
|
|
1130
1144
|
|
1131
1145
|
<div class="method-source-code" id="register_new_font-source">
|
1132
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1146
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 176</span>
|
1133
1147
|
<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>)
|
1134
1148
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1135
1149
|
|
@@ -1174,7 +1188,7 @@
|
|
1174
1188
|
|
1175
1189
|
|
1176
1190
|
<div class="method-source-code" id="register_new_xf-source">
|
1177
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1191
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 192</span>
|
1178
1192
|
<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>)
|
1179
1193
|
<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>
|
1180
1194
|
<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>
|
@@ -1214,7 +1228,7 @@
|
|
1214
1228
|
|
1215
1229
|
|
1216
1230
|
<div class="method-source-code" id="write-source">
|
1217
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line
|
1231
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 97</span>
|
1218
1232
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@filepath</span>)
|
1219
1233
|
<span class="ruby-identifier">extension</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">extname</span>(<span class="ruby-identifier">filepath</span>)
|
1220
1234
|
<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>)
|
@@ -1234,7 +1248,7 @@
|
|
1234
1248
|
<span class="ruby-identifier">core_properties</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
1235
1249
|
<span class="ruby-identifier">content_types</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
|
1236
1250
|
<span class="ruby-identifier">content_types</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
1237
|
-
<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
|
1251
|
+
<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-identifier">root_relationship_container</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
|
1238
1252
|
<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
1239
1253
|
<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
1240
1254
|
<span class="ruby-identifier">root_relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
|
@@ -1242,7 +1256,7 @@
|
|
1242
1256
|
|
1243
1257
|
[ <span class="ruby-ivar">@media</span>, <span class="ruby-ivar">@external_links</span>, <span class="ruby-ivar">@external_links_rels</span>,
|
1244
1258
|
<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>,
|
1245
|
-
<span class="ruby-ivar">@printer_settings</span>, <span class="ruby-ivar">@worksheet_rels</span>, <span class="ruby-ivar">@chartsheet_rels</span>, <span class="ruby-ivar">@macros</span> ].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>) }
|
1259
|
+
<span class="ruby-ivar">@printer_settings</span>, <span class="ruby-ivar">@worksheet_rels</span>, <span class="ruby-ivar">@chartsheet_rels</span>, <span class="ruby-ivar">@macros</span>, <span class="ruby-ivar">@thumbnail</span> ].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>) }
|
1246
1260
|
|
1247
1261
|
<span class="ruby-ivar">@worksheets</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">sheet</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sheet</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>) }
|
1248
1262
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::LegacyWorksheet - rubyXL 2.4.
|
7
|
+
<title>module RubyXL::LegacyWorksheet - rubyXL 2.4.2</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -475,8 +475,8 @@
|
|
475
475
|
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">column</span> = <span class="ruby-identifier">column</span>
|
476
476
|
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
|
477
477
|
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">datatype</span> = (<span class="ruby-identifier">formula</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Numeric</span>)) <span class="ruby-operator">?</span> <span class="ruby-string">''</span> <span class="ruby-operator">:</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Cell</span><span class="ruby-operator">::</span><span class="ruby-constant">RAW_STRING</span>
|
478
|
-
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-identifier">formula</span>
|
479
|
-
|
478
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Formula</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:expression</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">formula</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">formula</span>
|
479
|
+
|
480
480
|
<span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">column</span>)
|
481
481
|
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">range</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
482
482
|
|
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
data/rdoc/RubyXL/OLESize.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 2.4.
|
7
|
+
<title>module RubyXL::OOXMLObjectClassMethods - rubyXL 2.4.2</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL 2.4.
|
7
|
+
<title>module RubyXL::OOXMLObjectInstanceMethods - rubyXL 2.4.2</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL 2.4.
|
7
|
+
<title>class RubyXL::OOXMLRelationshipsFile - rubyXL 2.4.2</title>
|
8
8
|
|
9
9
|
<link href="../fonts.css" rel="stylesheet">
|
10
10
|
<link href="../rdoc.css" rel="stylesheet">
|