axlsx 1.0.9 → 1.0.10
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.
- data/Gemfile +7 -0
- data/Gemfile.lock +20 -0
- data/README.md +46 -3
- data/axlsx.gemspec +10 -10
- data/doc/Axlsx/App.html +111 -86
- data/doc/Axlsx/Ar/ClassMethods.html +188 -0
- data/doc/Axlsx/Ar/InstanceMethods.html +108 -0
- data/doc/Axlsx/Ar/SingletonMethods.html +312 -0
- data/doc/Axlsx/Ar.html +196 -0
- data/doc/Axlsx/Axis.html +57 -48
- data/doc/Axlsx/Bar3DChart.html +64 -54
- data/doc/Axlsx/BarSeries.html +29 -24
- data/doc/Axlsx/Border.html +45 -38
- data/doc/Axlsx/BorderPr.html +51 -44
- data/doc/Axlsx/CatAxis.html +32 -26
- data/doc/Axlsx/CatAxisData.html +25 -23
- data/doc/Axlsx/Cell.html +486 -65
- data/doc/Axlsx/CellAlignment.html +63 -50
- data/doc/Axlsx/CellProtection.html +20 -16
- data/doc/Axlsx/CellStyle.html +36 -28
- data/doc/Axlsx/Chart.html +102 -86
- data/doc/Axlsx/Color.html +27 -21
- data/doc/Axlsx/ContentType.html +15 -13
- data/doc/Axlsx/Core.html +27 -24
- data/doc/Axlsx/DataTypeValidator.html +13 -12
- data/doc/Axlsx/Default.html +21 -17
- data/doc/Axlsx/Drawing.html +82 -68
- data/doc/Axlsx/Fill.html +14 -11
- data/doc/Axlsx/Font.html +98 -82
- data/doc/Axlsx/GradientFill.html +47 -37
- data/doc/Axlsx/GradientStop.html +17 -13
- data/doc/Axlsx/GraphicFrame.html +39 -34
- data/doc/Axlsx/Line3DChart.html +64 -55
- data/doc/Axlsx/LineSeries.html +24 -20
- data/doc/Axlsx/Marker.html +40 -33
- data/doc/Axlsx/NumFmt.html +52 -47
- data/doc/Axlsx/OneCellAnchor.html +49 -41
- data/doc/Axlsx/Override.html +21 -17
- data/doc/Axlsx/Package.html +186 -77
- data/doc/Axlsx/PatternFill.html +47 -41
- data/doc/Axlsx/Pic.html +99 -83
- data/doc/Axlsx/Pie3DChart.html +17 -15
- data/doc/Axlsx/PieSeries.html +29 -24
- data/doc/Axlsx/RegexValidator.html +6 -5
- data/doc/Axlsx/Relationship.html +21 -17
- data/doc/Axlsx/Relationships.html +15 -13
- data/doc/Axlsx/RestrictionValidator.html +7 -6
- data/doc/Axlsx/Row.html +187 -33
- data/doc/Axlsx/Scaling.html +35 -29
- data/doc/Axlsx/SerAxis.html +23 -19
- data/doc/Axlsx/Series.html +140 -28
- data/doc/Axlsx/SeriesTitle.html +16 -15
- data/doc/Axlsx/Styles.html +179 -164
- data/doc/Axlsx/TableStyle.html +28 -23
- data/doc/Axlsx/TableStyleElement.html +53 -47
- data/doc/Axlsx/TableStyles.html +26 -22
- data/doc/Axlsx/Title.html +32 -28
- data/doc/Axlsx/TwoCellAnchor.html +50 -42
- data/doc/Axlsx/ValAxis.html +18 -15
- data/doc/Axlsx/ValAxisData.html +20 -19
- data/doc/Axlsx/View3D.html +48 -38
- data/doc/Axlsx/Workbook.html +225 -201
- data/doc/Axlsx/Worksheet.html +869 -184
- data/doc/Axlsx/Xf.html +75 -58
- data/doc/Axlsx.html +207 -124
- data/doc/_index.html +2 -2
- data/doc/css/style.css +1 -1
- data/doc/file.LICENSE.html +11 -10
- data/doc/file.README.html +142 -93
- data/doc/index.html +142 -93
- data/doc/js/app.js +4 -4
- data/doc/method_list.html +460 -364
- data/doc/top-level-namespace.html +2 -2
- data/examples/example.rb +71 -14
- data/lib/axlsx/package.rb +8 -1
- data/lib/axlsx/stylesheet/styles.rb +1 -1
- data/lib/axlsx/util/simple_typed_list.rb +5 -0
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +4 -2
- data/lib/axlsx/workbook/worksheet/cell.rb +8 -13
- data/lib/axlsx/workbook/worksheet/row.rb +15 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +44 -1
- data/lib/axlsx.rb +3 -5
- data/test/rels/tc_relationships.rb +2 -6
- data/test/workbook/worksheet/tc_row.rb +6 -0
- data/test/workbook/worksheet/tc_worksheet.rb +36 -0
- metadata +139 -55
data/doc/Axlsx/Drawing.html
CHANGED
|
@@ -258,7 +258,7 @@ in this version.</p>
|
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
<span class="summary_desc"><div class='inline'>
|
|
261
|
-
<p>An array of charts that are associated with this drawing
|
|
261
|
+
<p>An array of charts that are associated with this drawing’s anchors.</p>
|
|
262
262
|
</div></span>
|
|
263
263
|
|
|
264
264
|
</li>
|
|
@@ -281,7 +281,8 @@ in this version.</p>
|
|
|
281
281
|
|
|
282
282
|
|
|
283
283
|
<span class="summary_desc"><div class='inline'>
|
|
284
|
-
<p>An array of image objects that are associated with this drawing
|
|
284
|
+
<p>An array of image objects that are associated with this drawing’s
|
|
285
|
+
anchors.</p>
|
|
285
286
|
</div></span>
|
|
286
287
|
|
|
287
288
|
</li>
|
|
@@ -304,7 +305,7 @@ in this version.</p>
|
|
|
304
305
|
|
|
305
306
|
|
|
306
307
|
<span class="summary_desc"><div class='inline'>
|
|
307
|
-
<p>The index of this drawing in the owning workbooks
|
|
308
|
+
<p>The index of this drawing in the owning workbooks’s drawings collection.</p>
|
|
308
309
|
</div></span>
|
|
309
310
|
|
|
310
311
|
</li>
|
|
@@ -375,7 +376,7 @@ in this version.</p>
|
|
|
375
376
|
|
|
376
377
|
|
|
377
378
|
<span class="summary_desc"><div class='inline'>
|
|
378
|
-
<p>The drawing
|
|
379
|
+
<p>The drawing’s relationships.</p>
|
|
379
380
|
</div></span>
|
|
380
381
|
|
|
381
382
|
</li>
|
|
@@ -510,12 +511,13 @@ in this version.</p>
|
|
|
510
511
|
<td>
|
|
511
512
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 52</span>
|
|
512
513
|
|
|
513
|
-
<span class='kw'>def</span> <span class='id
|
|
514
|
-
<span class='
|
|
515
|
-
<span class='ivar'>@worksheet</span> <span class='
|
|
516
|
-
<span class='ivar'>@worksheet</span><span class='
|
|
517
|
-
<span class='ivar'>@anchors</span> <span class='
|
|
518
|
-
<span class='kw'>end</span
|
|
514
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='worksheet identifier id'>worksheet</span><span class='rparen token'>)</span>
|
|
515
|
+
<span class='DataTypeValidator constant id'>DataTypeValidator</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span> <span class='string val'>"Drawing.worksheet"</span><span class='comma token'>,</span> <span class='Worksheet constant id'>Worksheet</span><span class='comma token'>,</span> <span class='worksheet identifier id'>worksheet</span>
|
|
516
|
+
<span class='@worksheet ivar id'>@worksheet</span> <span class='assign token'>=</span> <span class='worksheet identifier id'>worksheet</span>
|
|
517
|
+
<span class='@worksheet ivar id'>@worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='drawings identifier id'>drawings</span> <span class='lshft op'><<</span> <span class='self self kw'>self</span>
|
|
518
|
+
<span class='@anchors ivar id'>@anchors</span> <span class='assign token'>=</span> <span class='SimpleTypedList constant id'>SimpleTypedList</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='lbrack token'>[</span><span class='TwoCellAnchor constant id'>TwoCellAnchor</span><span class='comma token'>,</span> <span class='OneCellAnchor constant id'>OneCellAnchor</span><span class='rbrack token'>]</span>
|
|
519
|
+
<span class='end end kw'>end</span>
|
|
520
|
+
</pre>
|
|
519
521
|
</td>
|
|
520
522
|
</tr>
|
|
521
523
|
</table>
|
|
@@ -574,9 +576,10 @@ in this version</p>
|
|
|
574
576
|
<td>
|
|
575
577
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 48</span>
|
|
576
578
|
|
|
577
|
-
<span class='kw'>def</span> <span class='id
|
|
578
|
-
<span class='ivar'>@anchors</span>
|
|
579
|
-
<span class='kw'>end</span
|
|
579
|
+
<span class='def def kw'>def</span> <span class='anchors identifier id'>anchors</span>
|
|
580
|
+
<span class='@anchors ivar id'>@anchors</span>
|
|
581
|
+
<span class='end end kw'>end</span>
|
|
582
|
+
</pre>
|
|
580
583
|
</td>
|
|
581
584
|
</tr>
|
|
582
585
|
</table>
|
|
@@ -629,9 +632,10 @@ in this version</p>
|
|
|
629
632
|
<td>
|
|
630
633
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 43</span>
|
|
631
634
|
|
|
632
|
-
<span class='kw'>def</span> <span class='id
|
|
633
|
-
<span class='ivar'>@worksheet</span>
|
|
634
|
-
<span class='kw'>end</span
|
|
635
|
+
<span class='def def kw'>def</span> <span class='worksheet identifier id'>worksheet</span>
|
|
636
|
+
<span class='@worksheet ivar id'>@worksheet</span>
|
|
637
|
+
<span class='end end kw'>end</span>
|
|
638
|
+
</pre>
|
|
635
639
|
</td>
|
|
636
640
|
</tr>
|
|
637
641
|
</table>
|
|
@@ -692,10 +696,11 @@ refer to that method for documentation.</p>
|
|
|
692
696
|
<td>
|
|
693
697
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 70</span>
|
|
694
698
|
|
|
695
|
-
<span class='kw'>def</span> <span class='id
|
|
696
|
-
<span class='
|
|
697
|
-
<span class='ivar'>@anchors</span><span class='
|
|
698
|
-
<span class='kw'>end</span
|
|
699
|
+
<span class='def def kw'>def</span> <span class='add_chart identifier id'>add_chart</span><span class='lparen token'>(</span><span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
|
700
|
+
<span class='TwoCellAnchor constant id'>TwoCellAnchor</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
701
|
+
<span class='@anchors ivar id'>@anchors</span><span class='dot token'>.</span><span class='last identifier id'>last</span><span class='dot token'>.</span><span class='add_chart identifier id'>add_chart</span><span class='lparen token'>(</span><span class='chart_type identifier id'>chart_type</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
702
|
+
<span class='end end kw'>end</span>
|
|
703
|
+
</pre>
|
|
699
704
|
</td>
|
|
700
705
|
</tr>
|
|
701
706
|
</table>
|
|
@@ -749,10 +754,11 @@ refer to that method for documentation.</p>
|
|
|
749
754
|
<td>
|
|
750
755
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 62</span>
|
|
751
756
|
|
|
752
|
-
<span class='kw'>def</span> <span class='id
|
|
753
|
-
<span class='
|
|
754
|
-
<span class='ivar'>@anchors</span><span class='
|
|
755
|
-
<span class='kw'>end</span
|
|
757
|
+
<span class='def def kw'>def</span> <span class='add_image identifier id'>add_image</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
|
758
|
+
<span class='OneCellAnchor constant id'>OneCellAnchor</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='rparen token'>)</span>
|
|
759
|
+
<span class='@anchors ivar id'>@anchors</span><span class='dot token'>.</span><span class='last identifier id'>last</span><span class='dot token'>.</span><span class='object identifier id'>object</span>
|
|
760
|
+
<span class='end end kw'>end</span>
|
|
761
|
+
</pre>
|
|
756
762
|
</td>
|
|
757
763
|
</tr>
|
|
758
764
|
</table>
|
|
@@ -768,7 +774,7 @@ refer to that method for documentation.</p>
|
|
|
768
774
|
</p><div class="docstring">
|
|
769
775
|
<div class="discussion">
|
|
770
776
|
|
|
771
|
-
<p>An array of charts that are associated with this drawing
|
|
777
|
+
<p>An array of charts that are associated with this drawing’s anchors</p>
|
|
772
778
|
|
|
773
779
|
|
|
774
780
|
</div>
|
|
@@ -803,10 +809,11 @@ refer to that method for documentation.</p>
|
|
|
803
809
|
<td>
|
|
804
810
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 77</span>
|
|
805
811
|
|
|
806
|
-
<span class='kw'>def</span> <span class='id
|
|
807
|
-
<span class='id
|
|
808
|
-
<span class='id
|
|
809
|
-
<span class='kw'>end</span
|
|
812
|
+
<span class='def def kw'>def</span> <span class='charts identifier id'>charts</span>
|
|
813
|
+
<span class='charts identifier id'>charts</span> <span class='assign token'>=</span> <span class='@anchors ivar id'>@anchors</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='a identifier id'>a</span><span class='bitor op'>|</span> <span class='a identifier id'>a</span><span class='dot token'>.</span><span class='object identifier id'>object</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='GraphicFrame constant id'>GraphicFrame</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
|
814
|
+
<span class='charts identifier id'>charts</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='a identifier id'>a</span><span class='bitor op'>|</span> <span class='a identifier id'>a</span><span class='dot token'>.</span><span class='object identifier id'>object</span><span class='dot token'>.</span><span class='chart identifier id'>chart</span> <span class='rbrace token'>}</span>
|
|
815
|
+
<span class='end end kw'>end</span>
|
|
816
|
+
</pre>
|
|
810
817
|
</td>
|
|
811
818
|
</tr>
|
|
812
819
|
</table>
|
|
@@ -822,7 +829,7 @@ refer to that method for documentation.</p>
|
|
|
822
829
|
</p><div class="docstring">
|
|
823
830
|
<div class="discussion">
|
|
824
831
|
|
|
825
|
-
<p>An array of image objects that are associated with this drawing
|
|
832
|
+
<p>An array of image objects that are associated with this drawing’s anchors</p>
|
|
826
833
|
|
|
827
834
|
|
|
828
835
|
</div>
|
|
@@ -857,10 +864,11 @@ refer to that method for documentation.</p>
|
|
|
857
864
|
<td>
|
|
858
865
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 84</span>
|
|
859
866
|
|
|
860
|
-
<span class='kw'>def</span> <span class='id
|
|
861
|
-
<span class='id
|
|
862
|
-
<span class='id
|
|
863
|
-
<span class='kw'>end</span
|
|
867
|
+
<span class='def def kw'>def</span> <span class='images identifier id'>images</span>
|
|
868
|
+
<span class='images identifier id'>images</span> <span class='assign token'>=</span> <span class='@anchors ivar id'>@anchors</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='a identifier id'>a</span><span class='bitor op'>|</span> <span class='a identifier id'>a</span><span class='dot token'>.</span><span class='object identifier id'>object</span><span class='dot token'>.</span><span class='is_a? fid id'>is_a?</span><span class='lparen token'>(</span><span class='Pic constant id'>Pic</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
|
869
|
+
<span class='images identifier id'>images</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='a identifier id'>a</span><span class='bitor op'>|</span> <span class='a identifier id'>a</span><span class='dot token'>.</span><span class='object identifier id'>object</span> <span class='rbrace token'>}</span>
|
|
870
|
+
<span class='end end kw'>end</span>
|
|
871
|
+
</pre>
|
|
864
872
|
</td>
|
|
865
873
|
</tr>
|
|
866
874
|
</table>
|
|
@@ -876,7 +884,7 @@ refer to that method for documentation.</p>
|
|
|
876
884
|
</p><div class="docstring">
|
|
877
885
|
<div class="discussion">
|
|
878
886
|
|
|
879
|
-
<p>The index of this drawing in the owning workbooks
|
|
887
|
+
<p>The index of this drawing in the owning workbooks’s drawings collection.</p>
|
|
880
888
|
|
|
881
889
|
|
|
882
890
|
</div>
|
|
@@ -910,9 +918,10 @@ refer to that method for documentation.</p>
|
|
|
910
918
|
<td>
|
|
911
919
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 91</span>
|
|
912
920
|
|
|
913
|
-
<span class='kw'>def</span> <span class='id
|
|
914
|
-
<span class='ivar'>@worksheet</span><span class='
|
|
915
|
-
<span class='kw'>end</span
|
|
921
|
+
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
|
922
|
+
<span class='@worksheet ivar id'>@worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='drawings identifier id'>drawings</span><span class='dot token'>.</span><span class='index identifier id'>index</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='rparen token'>)</span>
|
|
923
|
+
<span class='end end kw'>end</span>
|
|
924
|
+
</pre>
|
|
916
925
|
</td>
|
|
917
926
|
</tr>
|
|
918
927
|
</table>
|
|
@@ -962,9 +971,10 @@ refer to that method for documentation.</p>
|
|
|
962
971
|
<td>
|
|
963
972
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 103</span>
|
|
964
973
|
|
|
965
|
-
<span class='kw'>def</span> <span class='id
|
|
966
|
-
<span class='
|
|
967
|
-
<span class='kw'>end</span
|
|
974
|
+
<span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
|
|
975
|
+
<span class='dstring node'>"#{DRAWING_PN % (index+1)}"</span>
|
|
976
|
+
<span class='end end kw'>end</span>
|
|
977
|
+
</pre>
|
|
968
978
|
</td>
|
|
969
979
|
</tr>
|
|
970
980
|
</table>
|
|
@@ -980,7 +990,7 @@ refer to that method for documentation.</p>
|
|
|
980
990
|
</p><div class="docstring">
|
|
981
991
|
<div class="discussion">
|
|
982
992
|
|
|
983
|
-
<p>The drawing
|
|
993
|
+
<p>The drawing’s relationships.</p>
|
|
984
994
|
|
|
985
995
|
|
|
986
996
|
</div>
|
|
@@ -1021,16 +1031,17 @@ refer to that method for documentation.</p>
|
|
|
1021
1031
|
<td>
|
|
1022
1032
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 115</span>
|
|
1023
1033
|
|
|
1024
|
-
<span class='kw'>def</span> <span class='id
|
|
1025
|
-
<span class='id
|
|
1026
|
-
<span class='id
|
|
1027
|
-
<span class='id
|
|
1028
|
-
<span class='kw'>end</span>
|
|
1029
|
-
<span class='id
|
|
1030
|
-
<span class='id
|
|
1031
|
-
<span class='kw'>end</span>
|
|
1032
|
-
<span class='id
|
|
1033
|
-
<span class='kw'>end</span
|
|
1034
|
+
<span class='def def kw'>def</span> <span class='relationships identifier id'>relationships</span>
|
|
1035
|
+
<span class='r identifier id'>r</span> <span class='assign token'>=</span> <span class='Relationships constant id'>Relationships</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
|
1036
|
+
<span class='charts identifier id'>charts</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='chart identifier id'>chart</span><span class='bitor op'>|</span>
|
|
1037
|
+
<span class='r identifier id'>r</span> <span class='lshft op'><<</span> <span class='Relationship constant id'>Relationship</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='CHART_R constant id'>CHART_R</span><span class='comma token'>,</span> <span class='dstring node'>"../#{chart.pn}"</span><span class='rparen token'>)</span>
|
|
1038
|
+
<span class='end end kw'>end</span>
|
|
1039
|
+
<span class='images identifier id'>images</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='image identifier id'>image</span><span class='bitor op'>|</span>
|
|
1040
|
+
<span class='r identifier id'>r</span> <span class='lshft op'><<</span> <span class='Relationship constant id'>Relationship</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='IMAGE_R constant id'>IMAGE_R</span><span class='comma token'>,</span> <span class='dstring node'>"../#{image.pn}"</span><span class='rparen token'>)</span>
|
|
1041
|
+
<span class='end end kw'>end</span>
|
|
1042
|
+
<span class='r identifier id'>r</span>
|
|
1043
|
+
<span class='end end kw'>end</span>
|
|
1044
|
+
</pre>
|
|
1034
1045
|
</td>
|
|
1035
1046
|
</tr>
|
|
1036
1047
|
</table>
|
|
@@ -1080,9 +1091,10 @@ refer to that method for documentation.</p>
|
|
|
1080
1091
|
<td>
|
|
1081
1092
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 109</span>
|
|
1082
1093
|
|
|
1083
|
-
<span class='kw'>def</span> <span class='id
|
|
1084
|
-
<span class='
|
|
1085
|
-
<span class='kw'>end</span
|
|
1094
|
+
<span class='def def kw'>def</span> <span class='rels_pn identifier id'>rels_pn</span>
|
|
1095
|
+
<span class='dstring node'>"#{DRAWING_RELS_PN % (index+1)}"</span>
|
|
1096
|
+
<span class='end end kw'>end</span>
|
|
1097
|
+
</pre>
|
|
1086
1098
|
</td>
|
|
1087
1099
|
</tr>
|
|
1088
1100
|
</table>
|
|
@@ -1132,9 +1144,10 @@ refer to that method for documentation.</p>
|
|
|
1132
1144
|
<td>
|
|
1133
1145
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 97</span>
|
|
1134
1146
|
|
|
1135
|
-
<span class='kw'>def</span> <span class='id
|
|
1136
|
-
<span class='
|
|
1137
|
-
<span class='kw'>end</span
|
|
1147
|
+
<span class='def def kw'>def</span> <span class='rId identifier id'>rId</span>
|
|
1148
|
+
<span class='dstring node'>"rId#{index+1}"</span>
|
|
1149
|
+
<span class='end end kw'>end</span>
|
|
1150
|
+
</pre>
|
|
1138
1151
|
</td>
|
|
1139
1152
|
</tr>
|
|
1140
1153
|
</table>
|
|
@@ -1189,14 +1202,15 @@ refer to that method for documentation.</p>
|
|
|
1189
1202
|
<td>
|
|
1190
1203
|
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/drawing.rb', line 128</span>
|
|
1191
1204
|
|
|
1192
|
-
<span class='kw'>def</span> <span class='id
|
|
1193
|
-
<span class='id
|
|
1194
|
-
<span class='id
|
|
1195
|
-
<span class='id
|
|
1196
|
-
<span class='rbrace'>}</span>
|
|
1197
|
-
<span class='kw'>end</span>
|
|
1198
|
-
<span class='id
|
|
1199
|
-
<span class='kw'>end</span
|
|
1205
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span>
|
|
1206
|
+
<span class='builder identifier id'>builder</span> <span class='assign token'>=</span> <span class='Nokogiri constant id'>Nokogiri</span><span class='colon2 op'>::</span><span class='XML constant id'>XML</span><span class='colon2 op'>::</span><span class='Builder constant id'>Builder</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:encoding</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ENCODING constant id'>ENCODING</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='xml identifier id'>xml</span><span class='bitor op'>|</span>
|
|
1207
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='string val'>'xdr:wsDr'</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:xdr'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='XML_NS_XDR constant id'>XML_NS_XDR</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:a'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='XML_NS_A constant id'>XML_NS_A</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
|
1208
|
+
<span class='anchors identifier id'>anchors</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='anchor identifier id'>anchor</span><span class='bitor op'>|</span> <span class='anchor identifier id'>anchor</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
|
1209
|
+
<span class='rbrace token'>}</span>
|
|
1210
|
+
<span class='end end kw'>end</span>
|
|
1211
|
+
<span class='builder identifier id'>builder</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span>
|
|
1212
|
+
<span class='end end kw'>end</span>
|
|
1213
|
+
</pre>
|
|
1200
1214
|
</td>
|
|
1201
1215
|
</tr>
|
|
1202
1216
|
</table>
|
|
@@ -1207,9 +1221,9 @@ refer to that method for documentation.</p>
|
|
|
1207
1221
|
</div>
|
|
1208
1222
|
|
|
1209
1223
|
<div id="footer">
|
|
1210
|
-
Generated on
|
|
1224
|
+
Generated on Wed Nov 30 08:53:37 2011 by
|
|
1211
1225
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1212
|
-
0.7.3 (ruby-1.
|
|
1226
|
+
0.7.3 (ruby-1.8.7).
|
|
1213
1227
|
</div>
|
|
1214
1228
|
|
|
1215
1229
|
</body>
|
data/doc/Axlsx/Fill.html
CHANGED
|
@@ -286,9 +286,10 @@ pattern for cells.</p>
|
|
|
286
286
|
<td>
|
|
287
287
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 16</span>
|
|
288
288
|
|
|
289
|
-
<span class='kw'>def</span> <span class='id
|
|
290
|
-
<span class='kw'>self</span><span class='
|
|
291
|
-
<span class='kw'>end</span
|
|
289
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='fill_type identifier id'>fill_type</span><span class='rparen token'>)</span>
|
|
290
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='fill_type identifier id'>fill_type</span> <span class='assign token'>=</span> <span class='fill_type identifier id'>fill_type</span>
|
|
291
|
+
<span class='end end kw'>end</span>
|
|
292
|
+
</pre>
|
|
292
293
|
</td>
|
|
293
294
|
</tr>
|
|
294
295
|
</table>
|
|
@@ -346,9 +347,10 @@ pattern for cells.</p>
|
|
|
346
347
|
<td>
|
|
347
348
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 11</span>
|
|
348
349
|
|
|
349
|
-
<span class='kw'>def</span> <span class='id
|
|
350
|
-
<span class='ivar'>@fill_type</span>
|
|
351
|
-
<span class='kw'>end</span
|
|
350
|
+
<span class='def def kw'>def</span> <span class='fill_type identifier id'>fill_type</span>
|
|
351
|
+
<span class='@fill_type ivar id'>@fill_type</span>
|
|
352
|
+
<span class='end end kw'>end</span>
|
|
353
|
+
</pre>
|
|
352
354
|
</td>
|
|
353
355
|
</tr>
|
|
354
356
|
</table>
|
|
@@ -425,9 +427,10 @@ pattern for cells.</p>
|
|
|
425
427
|
<td>
|
|
426
428
|
<pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/fill.rb', line 23</span>
|
|
427
429
|
|
|
428
|
-
<span class='kw'>def</span> <span class='id
|
|
429
|
-
<span class='id
|
|
430
|
-
<span class='kw'>end</span
|
|
430
|
+
<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span>
|
|
431
|
+
<span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='fill identifier id'>fill</span> <span class='lbrace token'>{</span> <span class='@fill_type ivar id'>@fill_type</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
|
432
|
+
<span class='end end kw'>end</span>
|
|
433
|
+
</pre>
|
|
431
434
|
</td>
|
|
432
435
|
</tr>
|
|
433
436
|
</table>
|
|
@@ -438,9 +441,9 @@ pattern for cells.</p>
|
|
|
438
441
|
</div>
|
|
439
442
|
|
|
440
443
|
<div id="footer">
|
|
441
|
-
Generated on
|
|
444
|
+
Generated on Wed Nov 30 08:53:49 2011 by
|
|
442
445
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
443
|
-
0.7.3 (ruby-1.
|
|
446
|
+
0.7.3 (ruby-1.8.7).
|
|
444
447
|
</div>
|
|
445
448
|
|
|
446
449
|
</body>
|