axlsx 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -3
- data/doc/Axlsx.html +150 -6
- data/doc/Axlsx/App.html +1 -1
- data/doc/Axlsx/Axis.html +1 -1
- data/doc/Axlsx/Bar3DChart.html +1 -1
- data/doc/Axlsx/BarSeries.html +1 -1
- data/doc/Axlsx/Border.html +1 -1
- data/doc/Axlsx/BorderPr.html +1 -1
- data/doc/Axlsx/CatAxis.html +1 -1
- data/doc/Axlsx/CatAxisData.html +7 -5
- data/doc/Axlsx/Cell.html +1 -1
- data/doc/Axlsx/CellAlignment.html +1 -1
- data/doc/Axlsx/CellProtection.html +1 -1
- data/doc/Axlsx/CellStyle.html +1 -1
- data/doc/Axlsx/Chart.html +16 -16
- data/doc/Axlsx/Color.html +1 -1
- data/doc/Axlsx/ContentType.html +1 -1
- data/doc/Axlsx/Core.html +1 -1
- data/doc/Axlsx/DataTypeValidator.html +1 -1
- data/doc/Axlsx/Default.html +1 -1
- data/doc/Axlsx/Drawing.html +243 -65
- data/doc/Axlsx/Fill.html +1 -1
- data/doc/Axlsx/Font.html +1 -1
- data/doc/Axlsx/GradientFill.html +1 -1
- data/doc/Axlsx/GradientStop.html +1 -1
- data/doc/Axlsx/GraphicFrame.html +21 -21
- data/doc/Axlsx/Line3DChart.html +1 -1
- data/doc/Axlsx/LineSeries.html +6 -8
- data/doc/Axlsx/Marker.html +1 -1
- data/doc/Axlsx/NumFmt.html +1 -1
- data/doc/Axlsx/OneCellAnchor.html +988 -0
- data/doc/Axlsx/Override.html +1 -1
- data/doc/Axlsx/Package.html +127 -75
- data/doc/Axlsx/PatternFill.html +1 -1
- data/doc/Axlsx/Pic.html +1532 -0
- data/doc/Axlsx/Pie3DChart.html +5 -7
- data/doc/Axlsx/PieSeries.html +1 -1
- data/doc/Axlsx/RegexValidator.html +1 -1
- data/doc/Axlsx/Relationship.html +6 -6
- data/doc/Axlsx/Relationships.html +1 -1
- data/doc/Axlsx/RestrictionValidator.html +1 -1
- data/doc/Axlsx/Row.html +1 -1
- data/doc/Axlsx/Scaling.html +1 -1
- data/doc/Axlsx/SerAxis.html +1 -1
- data/doc/Axlsx/Series.html +1 -1
- data/doc/Axlsx/SeriesTitle.html +1 -1
- data/doc/Axlsx/SimpleTypedList.html +1 -1
- data/doc/Axlsx/Styles.html +1 -1
- data/doc/Axlsx/TableStyle.html +1 -1
- data/doc/Axlsx/TableStyleElement.html +1 -1
- data/doc/Axlsx/TableStyles.html +1 -1
- data/doc/Axlsx/Title.html +1 -1
- data/doc/Axlsx/TwoCellAnchor.html +165 -61
- data/doc/Axlsx/ValAxis.html +1 -1
- data/doc/Axlsx/ValAxisData.html +1 -1
- data/doc/Axlsx/View3D.html +1 -1
- data/doc/Axlsx/Workbook.html +151 -47
- data/doc/Axlsx/Worksheet.html +172 -35
- data/doc/Axlsx/Xf.html +1 -1
- data/doc/_index.html +15 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +29 -4
- data/doc/index.html +29 -4
- data/doc/method_list.html +571 -363
- data/doc/top-level-namespace.html +1 -1
- data/examples/example.rb +13 -0
- data/examples/image1.gif +0 -0
- data/examples/image1.jpeg +0 -0
- data/examples/image1.jpg +0 -0
- data/examples/image1.png +0 -0
- data/lib/axlsx/drawing/bar_series.rb +0 -1
- data/lib/axlsx/drawing/cat_axis_data.rb +1 -0
- data/lib/axlsx/drawing/chart.rb +0 -1
- data/lib/axlsx/drawing/drawing.rb +31 -7
- data/lib/axlsx/drawing/graphic_frame.rb +0 -2
- data/lib/axlsx/drawing/line_series.rb +0 -1
- data/lib/axlsx/drawing/one_cell_anchor.rb +89 -0
- data/lib/axlsx/drawing/pic.rb +158 -0
- data/lib/axlsx/drawing/pie_3D_chart.rb +0 -1
- data/lib/axlsx/drawing/two_cell_anchor.rb +17 -4
- data/lib/axlsx/package.rb +31 -5
- data/lib/axlsx/rels/relationship.rb +1 -2
- data/lib/axlsx/util/constants.rb +24 -0
- data/lib/axlsx/util/validators.rb +2 -2
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +8 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +10 -1
- data/test/drawing/tc_drawing.rb +10 -1
- data/test/drawing/tc_one_cell_anchor.rb +67 -0
- data/test/drawing/tc_pic.rb +71 -0
- data/test/tc_package.rb +0 -2
- metadata +13 -118
- data/examples/#example.rb# +0 -87
- data/examples/example.rb~ +0 -79
- data/examples/multi_chart.xlsx +0 -0
- data/lib/axlsx.rb~ +0 -67
- data/lib/axlsx/content_type/content_type.rb~ +0 -20
- data/lib/axlsx/content_type/default.rb~ +0 -32
- data/lib/axlsx/content_type/override.rb~ +0 -30
- data/lib/axlsx/doc_props/app.rb~ +0 -127
- data/lib/axlsx/doc_props/core.rb~ +0 -25
- data/lib/axlsx/drawing/#bar_series.rb# +0 -62
- data/lib/axlsx/drawing/axis.rb~ +0 -0
- data/lib/axlsx/drawing/bar_3D_chart.rb~ +0 -64
- data/lib/axlsx/drawing/bar_series.rb~ +0 -92
- data/lib/axlsx/drawing/cat_axis.rb~ +0 -32
- data/lib/axlsx/drawing/cat_axis_data.rb~ +0 -28
- data/lib/axlsx/drawing/chart.rb~ +0 -0
- data/lib/axlsx/drawing/drawing.rb~ +0 -102
- data/lib/axlsx/drawing/graphic_frame.rb~ +0 -40
- data/lib/axlsx/drawing/line_3D_chart.rb~ +0 -138
- data/lib/axlsx/drawing/line_series.rb~ +0 -91
- data/lib/axlsx/drawing/marker.rb~ +0 -50
- data/lib/axlsx/drawing/pie_3D_chart.rb~ +0 -132
- data/lib/axlsx/drawing/pie_series.rb~ +0 -0
- data/lib/axlsx/drawing/scaling.rb~ +0 -0
- data/lib/axlsx/drawing/ser_axis.rb~ +0 -48
- data/lib/axlsx/drawing/series.rb~ +0 -114
- data/lib/axlsx/drawing/series_title.rb~ +0 -18
- data/lib/axlsx/drawing/title.rb~ +0 -69
- data/lib/axlsx/drawing/two_cell_anchor.rb~ +0 -70
- data/lib/axlsx/drawing/val_axis.rb~ +0 -34
- data/lib/axlsx/drawing/val_axis_data.rb~ +0 -29
- data/lib/axlsx/drawing/view_3D.rb~ +0 -21
- data/lib/axlsx/package.rb~ +0 -181
- data/lib/axlsx/rels/relationship.rb~ +0 -18
- data/lib/axlsx/rels/relationships.rb~ +0 -23
- data/lib/axlsx/stylesheet/border.rb~ +0 -24
- data/lib/axlsx/stylesheet/border_pr.rb~ +0 -64
- data/lib/axlsx/stylesheet/cell_alignment.rb~ +0 -93
- data/lib/axlsx/stylesheet/cell_protection.rb~ +0 -16
- data/lib/axlsx/stylesheet/cell_style.rb~ +0 -61
- data/lib/axlsx/stylesheet/color.rb~ +0 -56
- data/lib/axlsx/stylesheet/fill.rb~ +0 -31
- data/lib/axlsx/stylesheet/font.rb~ +0 -33
- data/lib/axlsx/stylesheet/gradient_fill.rb~ +0 -70
- data/lib/axlsx/stylesheet/gradient_stop.rb~ +0 -15
- data/lib/axlsx/stylesheet/num_fmt.rb~ +0 -60
- data/lib/axlsx/stylesheet/pattern_fill.rb~ +0 -63
- data/lib/axlsx/stylesheet/styles.rb~ +0 -279
- data/lib/axlsx/stylesheet/table_style.rb~ +0 -43
- data/lib/axlsx/stylesheet/table_style_element.rb~ +0 -66
- data/lib/axlsx/stylesheet/table_styles.rb~ +0 -36
- data/lib/axlsx/stylesheet/xf.rb~ +0 -37
- data/lib/axlsx/util/constants.rb~ +0 -187
- data/lib/axlsx/util/monkey_patches_for_true_zip_stream.rb~ +0 -61
- data/lib/axlsx/util/simple_typed_list.rb~ +0 -79
- data/lib/axlsx/util/validators.rb~ +0 -132
- data/lib/axlsx/util/xml_escape.rb~ +0 -6
- data/lib/axlsx/workbook/workbook.rb~ +0 -130
- data/lib/axlsx/workbook/worksheet/cell.rb~ +0 -185
- data/lib/axlsx/workbook/worksheet/row.rb~ +0 -92
- data/lib/axlsx/workbook/worksheet/worksheet.rb~ +0 -194
- data/test/content_type/tc_content_type.rb~ +0 -81
- data/test/content_type/tc_default.rb~ +0 -40
- data/test/content_type/tc_override.rb~ +0 -40
- data/test/doc_props/tc_app.rb~ +0 -19
- data/test/drawing/tc_axis.rb~ +0 -0
- data/test/drawing/tc_bar_3D_chart.rb~ +0 -66
- data/test/drawing/tc_bar_series.rb~ +0 -31
- data/test/drawing/tc_cat_axis.rb~ +0 -39
- data/test/drawing/tc_cat_axis_data.rb~ +0 -32
- data/test/drawing/tc_chart.rb~ +0 -59
- data/test/drawing/tc_graphic_frame.rb~ +0 -21
- data/test/drawing/tc_line_3d_chart.rb~ +0 -48
- data/test/drawing/tc_line_series.rb~ +0 -34
- data/test/drawing/tc_marker.rb~ +0 -26
- data/test/drawing/tc_pie_3D_chart.rb~ +0 -33
- data/test/drawing/tc_pie_series.rb~ +0 -26
- data/test/drawing/tc_scaling.rb~ +0 -45
- data/test/drawing/tc_ser_axis.rb~ +0 -20
- data/test/drawing/tc_series.rb~ +0 -31
- data/test/drawing/tc_series_title.rb~ +0 -34
- data/test/drawing/tc_title.rb~ +0 -34
- data/test/drawing/tc_two_cell_anchor.rb~ +0 -37
- data/test/drawing/tc_val_axis.rb~ +0 -32
- data/test/drawing/tc_val_axis_data.rb~ +0 -18
- data/test/drawing/tc_view_3D.rb~ +0 -37
- data/test/rels/tc_relationship.rb~ +0 -39
- data/test/rels/tc_relationships.rb~ +0 -37
- data/test/stylesheet/tc_border.rb~ +0 -31
- data/test/stylesheet/tc_border_pr.rb~ +0 -31
- data/test/stylesheet/tc_cell_alignment.rb~ +0 -38
- data/test/stylesheet/tc_cell_protection.rb~ +0 -77
- data/test/stylesheet/tc_cell_style.rb~ +0 -30
- data/test/stylesheet/tc_color.rb~ +0 -38
- data/test/stylesheet/tc_fill.rb~ +0 -19
- data/test/stylesheet/tc_font.rb~ +0 -19
- data/test/stylesheet/tc_gradient_fill.rb~ +0 -114
- data/test/stylesheet/tc_gradient_stop.rb~ +0 -65
- data/test/stylesheet/tc_num_fmt.rb~ +0 -32
- data/test/stylesheet/tc_pattern_fill.rb~ +0 -31
- data/test/stylesheet/tc_table_style.rb~ +0 -38
- data/test/stylesheet/tc_table_style_element.rb~ +0 -37
- data/test/stylesheet/tc_table_styles.rb~ +0 -37
- data/test/stylesheet/tc_xf.rb~ +0 -30
- data/test/tc_app.rb~ +0 -19
- data/test/tc_border_pr.rb~ +0 -21
- data/test/tc_package.rb~ +0 -64
- data/test/tc_pie_3D_chart.rb~ +0 -66
- data/test/tc_relationships.rb~ +0 -37
- data/test/tc_series.rb~ +0 -31
- data/test/tc_styles.rb~ +0 -64
- data/test/tc_validators.rb~ +0 -77
- data/test/tc_worksheet.rb~ +0 -85
- data/test/workbook/worksheet/tc_row.rb~ +0 -30
- data/test/workbook/worksheet/tc_worksheet.rb~ +0 -85
data/doc/Axlsx/Override.html
CHANGED
@@ -559,7 +559,7 @@ The document builder instance this objects xml will be added to.
|
|
559
559
|
</div>
|
560
560
|
|
561
561
|
<div id="footer">
|
562
|
-
Generated on Wed Nov 23
|
562
|
+
Generated on Wed Nov 23 21:47:59 2011 by
|
563
563
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
564
564
|
0.7.3 (ruby-1.8.7).
|
565
565
|
</div>
|
data/doc/Axlsx/Package.html
CHANGED
@@ -640,20 +640,20 @@ Creates the minimum content types for generating a valid xlsx document.
|
|
640
640
|
<pre class="lines">
|
641
641
|
|
642
642
|
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
643
|
+
182
|
644
|
+
183
|
645
|
+
184
|
646
|
+
185
|
647
|
+
186
|
648
|
+
187
|
649
|
+
188
|
650
|
+
189
|
651
|
+
190
|
652
|
+
191
|
653
|
+
192</pre>
|
654
654
|
</td>
|
655
655
|
<td>
|
656
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
656
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 182</span>
|
657
657
|
|
658
658
|
<span class='def def kw'>def</span> <span class='base_content_types identifier id'>base_content_types</span>
|
659
659
|
<span class='c_types identifier id'>c_types</span> <span class='assign token'>=</span> <span class='ContentType constant id'>ContentType</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='rparen token'>)</span>
|
@@ -711,25 +711,36 @@ your workbook to the default content types.
|
|
711
711
|
<pre class="lines">
|
712
712
|
|
713
713
|
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
714
|
+
151
|
715
|
+
152
|
716
|
+
153
|
717
|
+
154
|
718
|
+
155
|
719
|
+
156
|
720
|
+
157
|
721
|
+
158
|
722
|
+
159
|
723
|
+
160
|
724
|
+
161
|
725
|
+
162
|
726
|
+
163
|
727
|
+
164
|
728
|
+
165
|
729
|
+
166
|
730
|
+
167
|
731
|
+
168
|
732
|
+
169
|
733
|
+
170
|
734
|
+
171
|
735
|
+
172
|
736
|
+
173
|
737
|
+
174
|
738
|
+
175
|
739
|
+
176
|
740
|
+
177</pre>
|
730
741
|
</td>
|
731
742
|
<td>
|
732
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
743
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 151</span>
|
733
744
|
|
734
745
|
<span class='def def kw'>def</span> <span class='content_types identifier id'>content_types</span>
|
735
746
|
<span class='c_types identifier id'>c_types</span> <span class='assign token'>=</span> <span class='base_content_types identifier id'>base_content_types</span>
|
@@ -745,6 +756,17 @@ your workbook to the default content types.
|
|
745
756
|
<span class='c_types identifier id'>c_types</span> <span class='lshft op'><<</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Override constant id'>Override</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:PartName</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='dstring node'>"/xl/#{sheet.pn}"</span><span class='comma token'>,</span>
|
746
757
|
<span class='symbol val'>:ContentType</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='WORKSHEET_CT constant id'>WORKSHEET_CT</span><span class='rparen token'>)</span>
|
747
758
|
<span class='end end kw'>end</span>
|
759
|
+
<span class='exts identifier id'>exts</span> <span class='assign token'>=</span> <span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><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='image identifier id'>image</span><span class='bitor op'>|</span> <span class='image identifier id'>image</span><span class='dot token'>.</span><span class='extname identifier id'>extname</span> <span class='rbrace token'>}</span>
|
760
|
+
<span class='exts identifier id'>exts</span><span class='dot token'>.</span><span class='uniq identifier id'>uniq</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='ext identifier id'>ext</span><span class='bitor op'>|</span>
|
761
|
+
<span class='ct identifier id'>ct</span> <span class='assign token'>=</span> <span class='if if kw'>if</span> <span class='lbrack token'>[</span><span class='string val'>'jpeg'</span><span class='comma token'>,</span> <span class='string val'>'jpg'</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span><span class='lparen token'>(</span><span class='ext identifier id'>ext</span><span class='rparen token'>)</span>
|
762
|
+
<span class='JPEG_CT constant id'>JPEG_CT</span>
|
763
|
+
<span class='elsif elsif kw'>elsif</span> <span class='ext identifier id'>ext</span> <span class='eq op'>==</span> <span class='string val'>'gif'</span>
|
764
|
+
<span class='GIF_CT constant id'>GIF_CT</span>
|
765
|
+
<span class='elsif elsif kw'>elsif</span> <span class='ext identifier id'>ext</span> <span class='eq op'>==</span> <span class='string val'>'png'</span>
|
766
|
+
<span class='PNG_CT constant id'>PNG_CT</span>
|
767
|
+
<span class='end end kw'>end</span>
|
768
|
+
<span class='c_types identifier id'>c_types</span> <span class='lshft op'><<</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Default constant id'>Default</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='symbol val'>:ContentType</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ct identifier id'>ct</span><span class='comma token'>,</span> <span class='symbol val'>:Extension</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='ext identifier id'>ext</span> <span class='rparen token'>)</span>
|
769
|
+
<span class='end end kw'>end</span>
|
748
770
|
<span class='c_types identifier id'>c_types</span>
|
749
771
|
<span class='end end kw'>end</span>
|
750
772
|
</pre>
|
@@ -798,17 +820,6 @@ of the package.
|
|
798
820
|
<pre class="lines">
|
799
821
|
|
800
822
|
|
801
|
-
90
|
802
|
-
91
|
803
|
-
92
|
804
|
-
93
|
805
|
-
94
|
806
|
-
95
|
807
|
-
96
|
808
|
-
97
|
809
|
-
98
|
810
|
-
99
|
811
|
-
100
|
812
823
|
101
|
813
824
|
102
|
814
825
|
103
|
@@ -822,10 +833,25 @@ of the package.
|
|
822
833
|
111
|
823
834
|
112
|
824
835
|
113
|
825
|
-
114
|
836
|
+
114
|
837
|
+
115
|
838
|
+
116
|
839
|
+
117
|
840
|
+
118
|
841
|
+
119
|
842
|
+
120
|
843
|
+
121
|
844
|
+
122
|
845
|
+
123
|
846
|
+
124
|
847
|
+
125
|
848
|
+
126
|
849
|
+
127
|
850
|
+
128
|
851
|
+
129</pre>
|
826
852
|
</td>
|
827
853
|
<td>
|
828
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
854
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 101</span>
|
829
855
|
|
830
856
|
<span class='def def kw'>def</span> <span class='parts identifier id'>parts</span>
|
831
857
|
<span class='@parts ivar id'>@parts</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span>
|
@@ -845,7 +871,11 @@ of the package.
|
|
845
871
|
<span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><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>
|
846
872
|
<span class='@parts ivar id'>@parts</span> <span class='lshft op'><<</span> <span class='lbrace token'>{</span><span class='symbol val'>:entry</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='dstring node'>"xl/#{chart.pn}"</span><span class='comma token'>,</span> <span class='symbol val'>:doc</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='chart identifier id'>chart</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='comma token'>,</span> <span class='symbol val'>:schema</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='DRAWING_XSD constant id'>DRAWING_XSD</span><span class='rbrace token'>}</span>
|
847
873
|
<span class='end end kw'>end</span>
|
848
|
-
|
874
|
+
|
875
|
+
<span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><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>
|
876
|
+
<span class='@parts ivar id'>@parts</span> <span class='lshft op'><<</span> <span class='lbrace token'>{</span><span class='symbol val'>:entry</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='dstring node'>"xl/#{image.pn}"</span><span class='comma token'>,</span> <span class='symbol val'>:path</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='image identifier id'>image</span><span class='dot token'>.</span><span class='image_src identifier id'>image_src</span><span class='rbrace token'>}</span>
|
877
|
+
<span class='end end kw'>end</span>
|
878
|
+
|
849
879
|
<span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='worksheets identifier id'>worksheets</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='sheet identifier id'>sheet</span><span class='bitor op'>|</span>
|
850
880
|
<span class='@parts ivar id'>@parts</span> <span class='lshft op'><<</span> <span class='lbrace token'>{</span><span class='symbol val'>:entry</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='dstring node'>"xl/#{sheet.rels_pn}"</span><span class='comma token'>,</span> <span class='symbol val'>:doc</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='relationships identifier id'>relationships</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='comma token'>,</span> <span class='symbol val'>:schema</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='RELS_XSD constant id'>RELS_XSD</span><span class='rbrace token'>}</span>
|
851
881
|
<span class='@parts ivar id'>@parts</span> <span class='lshft op'><<</span> <span class='lbrace token'>{</span><span class='symbol val'>:entry</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='dstring node'>"xl/#{sheet.pn}"</span><span class='comma token'>,</span> <span class='symbol val'>:doc</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='sheet identifier id'>sheet</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='comma token'>,</span> <span class='symbol val'>:schema</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='SML_XSD constant id'>SML_XSD</span><span class='rbrace token'>}</span>
|
@@ -896,17 +926,17 @@ Creates the relationships required for a valid xlsx document
|
|
896
926
|
<pre class="lines">
|
897
927
|
|
898
928
|
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
929
|
+
197
|
930
|
+
198
|
931
|
+
199
|
932
|
+
200
|
933
|
+
201
|
934
|
+
202
|
935
|
+
203
|
936
|
+
204</pre>
|
907
937
|
</td>
|
908
938
|
<td>
|
909
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
939
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 197</span>
|
910
940
|
|
911
941
|
<span class='def def kw'>def</span> <span class='relationships identifier id'>relationships</span>
|
912
942
|
<span class='rels identifier id'>rels</span> <span class='assign token'>=</span> <span class='Axlsx constant id'>Axlsx</span><span class='colon2 op'>::</span><span class='Relationships constant id'>Relationships</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
|
@@ -1046,17 +1076,39 @@ serialized
|
|
1046
1076
|
59
|
1047
1077
|
60
|
1048
1078
|
61
|
1049
|
-
62
|
1079
|
+
62
|
1080
|
+
63
|
1081
|
+
64
|
1082
|
+
65
|
1083
|
+
66
|
1084
|
+
67
|
1085
|
+
68
|
1086
|
+
69
|
1087
|
+
70
|
1088
|
+
71
|
1089
|
+
72
|
1090
|
+
73</pre>
|
1050
1091
|
</td>
|
1051
1092
|
<td>
|
1052
1093
|
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 55</span>
|
1053
1094
|
|
1054
1095
|
<span class='def def kw'>def</span> <span class='serialize identifier id'>serialize</span><span class='lparen token'>(</span><span class='output identifier id'>output</span><span class='comma token'>,</span> <span class='confirm_valid identifier id'>confirm_valid</span><span class='assign token'>=</span><span class='false false kw'>false</span><span class='rparen token'>)</span>
|
1055
1096
|
<span class='return return kw'>return</span> <span class='false false kw'>false</span> <span class='unless unless_mod kw'>unless</span> <span class='notop op'>!</span><span class='confirm_valid identifier id'>confirm_valid</span> <span class='orop op'>||</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='validate identifier id'>validate</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
|
1056
|
-
<span class='
|
1057
|
-
<span class='Zip constant id'>Zip</span><span class='colon2 op'>::</span><span class='ZipOutputStream constant id'>ZipOutputStream</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='
|
1058
|
-
<span class='
|
1097
|
+
<span class='p identifier id'>p</span> <span class='assign token'>=</span> <span class='parts identifier id'>parts</span>
|
1098
|
+
<span class='Zip constant id'>Zip</span><span class='colon2 op'>::</span><span class='ZipOutputStream constant id'>ZipOutputStream</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='output identifier id'>output</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='zip identifier id'>zip</span><span class='bitor op'>|</span>
|
1099
|
+
<span class='p identifier id'>p</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='part identifier id'>part</span><span class='bitor op'>|</span>
|
1100
|
+
<span class='zip identifier id'>zip</span><span class='dot token'>.</span><span class='put_next_entry identifier id'>put_next_entry</span><span class='lparen token'>(</span><span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:entry</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='semicolon token'>;</span> <span class='zip identifier id'>zip</span><span class='dot token'>.</span><span class='puts identifier id'>puts</span><span class='lparen token'>(</span><span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:doc</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:doc</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
1101
|
+
<span class='end end kw'>end</span>
|
1102
|
+
<span class='end end kw'>end</span>
|
1103
|
+
<span class='Zip constant id'>Zip</span><span class='colon2 op'>::</span><span class='ZipFile constant id'>ZipFile</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='output identifier id'>output</span><span class='rparen token'>)</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='zip identifier id'>zip</span><span class='bitor op'>|</span>
|
1104
|
+
<span class='p identifier id'>p</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='part identifier id'>part</span><span class='bitor op'>|</span>
|
1105
|
+
<span class='if if kw'>if</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:path</span><span class='rbrack token'>]</span>
|
1106
|
+
<span class='zip identifier id'>zip</span><span class='dot token'>.</span><span class='add identifier id'>add</span><span class='lparen token'>(</span><span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:entry</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:path</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='bitand op'>&</span><span class='proc identifier id'>proc</span><span class='lbrace token'>{</span> <span class='true true kw'>true</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
1107
|
+
<span class='end end kw'>end</span>
|
1108
|
+
<span class='end end kw'>end</span>
|
1059
1109
|
<span class='end end kw'>end</span>
|
1110
|
+
|
1111
|
+
|
1060
1112
|
<span class='true true kw'>true</span>
|
1061
1113
|
<span class='end end kw'>end</span>
|
1062
1114
|
</pre>
|
@@ -1147,18 +1199,18 @@ An array of all validation errors found.
|
|
1147
1199
|
<pre class="lines">
|
1148
1200
|
|
1149
1201
|
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1202
|
+
90
|
1203
|
+
91
|
1204
|
+
92
|
1205
|
+
93
|
1206
|
+
94</pre>
|
1155
1207
|
</td>
|
1156
1208
|
<td>
|
1157
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
1209
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 90</span>
|
1158
1210
|
|
1159
1211
|
<span class='def def kw'>def</span> <span class='validate identifier id'>validate</span>
|
1160
1212
|
<span class='errors identifier id'>errors</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
1161
|
-
<span class='parts identifier id'>parts</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='part identifier id'>part</span><span class='bitor op'>|</span> <span class='errors identifier id'>errors</span><span class='dot token'>.</span><span class='concat identifier id'>concat</span> <span class='validate_single_doc identifier id'>validate_single_doc</span><span class='lparen token'>(</span><span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:schema</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:doc</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
|
1213
|
+
<span class='parts identifier id'>parts</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='part identifier id'>part</span><span class='bitor op'>|</span> <span class='errors identifier id'>errors</span><span class='dot token'>.</span><span class='concat identifier id'>concat</span> <span class='validate_single_doc identifier id'>validate_single_doc</span><span class='lparen token'>(</span><span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:schema</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:doc</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='part identifier id'>part</span><span class='lbrack token'>[</span><span class='symbol val'>:schema</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='rbrace token'>}</span>
|
1162
1214
|
<span class='errors identifier id'>errors</span>
|
1163
1215
|
<span class='end end kw'>end</span>
|
1164
1216
|
</pre>
|
@@ -1249,19 +1301,19 @@ An array of all validation errors encountered.
|
|
1249
1301
|
<pre class="lines">
|
1250
1302
|
|
1251
1303
|
|
1252
|
-
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1304
|
+
137
|
1305
|
+
138
|
1306
|
+
139
|
1307
|
+
140
|
1308
|
+
141
|
1309
|
+
142
|
1310
|
+
143
|
1311
|
+
144
|
1312
|
+
145
|
1313
|
+
146</pre>
|
1262
1314
|
</td>
|
1263
1315
|
<td>
|
1264
|
-
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line
|
1316
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/package.rb', line 137</span>
|
1265
1317
|
|
1266
1318
|
<span class='def def kw'>def</span> <span class='validate_single_doc identifier id'>validate_single_doc</span><span class='lparen token'>(</span><span class='schema identifier id'>schema</span><span class='comma token'>,</span> <span class='doc identifier id'>doc</span><span class='rparen token'>)</span>
|
1267
1319
|
<span class='schema identifier id'>schema</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='Schema constant id'>Schema</span><span class='lparen token'>(</span><span class='File constant id'>File</span><span class='dot token'>.</span><span class='open identifier id'>open</span><span class='lparen token'>(</span><span class='schema identifier id'>schema</span><span class='rparen token'>)</span><span class='rparen token'>)</span>
|
@@ -1284,7 +1336,7 @@ An array of all validation errors encountered.
|
|
1284
1336
|
</div>
|
1285
1337
|
|
1286
1338
|
<div id="footer">
|
1287
|
-
Generated on Wed Nov 23
|
1339
|
+
Generated on Wed Nov 23 21:48:01 2011 by
|
1288
1340
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1289
1341
|
0.7.3 (ruby-1.8.7).
|
1290
1342
|
</div>
|
data/doc/Axlsx/PatternFill.html
CHANGED
@@ -672,7 +672,7 @@ The document builder instance this objects xml will be added to.
|
|
672
672
|
</div>
|
673
673
|
|
674
674
|
<div id="footer">
|
675
|
-
Generated on Wed Nov 23
|
675
|
+
Generated on Wed Nov 23 21:47:58 2011 by
|
676
676
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
677
677
|
0.7.3 (ruby-1.8.7).
|
678
678
|
</div>
|
data/doc/Axlsx/Pic.html
ADDED
@@ -0,0 +1,1532 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Axlsx::Pic
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../_index.html">Index (P)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../Axlsx.html" title="Axlsx (module)">Axlsx</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Pic</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Axlsx::Pic
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName">Object</span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next">Axlsx::Pic</li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
78
|
+
|
79
|
+
</dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dt class="r2 last">Defined in:</dt>
|
90
|
+
<dd class="r2 last">lib/axlsx/drawing/pic.rb</dd>
|
91
|
+
|
92
|
+
</dl>
|
93
|
+
<div class="clear"></div>
|
94
|
+
|
95
|
+
<h2>Overview</h2><div class="docstring">
|
96
|
+
<div class="discussion">
|
97
|
+
<p>
|
98
|
+
a Pic object represents an image in your worksheet Worksheet#add_image is
|
99
|
+
the recommended way to manage images in your sheets
|
100
|
+
</p>
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
<div class="tags">
|
106
|
+
|
107
|
+
|
108
|
+
<h3>See Also:</h3>
|
109
|
+
<ul class="see">
|
110
|
+
|
111
|
+
<li><span class='object_link'><a href="Worksheet.html#add_image-instance_method" title="Axlsx::Worksheet#add_image (method)">Worksheet#add_image</a></span></li>
|
112
|
+
|
113
|
+
</ul>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
<h2>Constant Summary</h2>
|
117
|
+
|
118
|
+
<dl class="constants">
|
119
|
+
|
120
|
+
<dt id="ALLOWED_EXTENSIONS-constant" class="">ALLOWED_EXTENSIONS =
|
121
|
+
<div class="docstring">
|
122
|
+
<div class="discussion">
|
123
|
+
<p>
|
124
|
+
allowed file extenstions
|
125
|
+
</p>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
<div class="tags">
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
</dt>
|
135
|
+
<dd><pre class="code"><span class='lbrack token'>[</span><span class='string val'>'gif'</span><span class='comma token'>,</span> <span class='string val'>'jpeg'</span><span class='comma token'>,</span> <span class='string val'>'png'</span><span class='comma token'>,</span> <span class='string val'>'jpg'</span><span class='rbrack token'>]</span>
|
136
|
+
</pre></dd>
|
137
|
+
|
138
|
+
</dl>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
143
|
+
<ul class="summary">
|
144
|
+
|
145
|
+
<li class="public ">
|
146
|
+
<span class="summary_signature">
|
147
|
+
|
148
|
+
<a href="#anchor-instance_method" title="#anchor (instance method)">- (OneCellAnchor) <strong>anchor</strong> </a>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</span>
|
153
|
+
|
154
|
+
|
155
|
+
<span class="note title readonly">readonly</span>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<span class="summary_desc"><div class='inline'><p>
|
165
|
+
The anchor for this image.
|
166
|
+
</p>
|
167
|
+
</div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#descr-instance_method" title="#descr (instance method)">- (String) <strong>descr</strong> </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'><p>
|
192
|
+
A description of the picture.
|
193
|
+
</p>
|
194
|
+
</div></span>
|
195
|
+
|
196
|
+
</li>
|
197
|
+
|
198
|
+
|
199
|
+
<li class="public ">
|
200
|
+
<span class="summary_signature">
|
201
|
+
|
202
|
+
<a href="#extname-instance_method" title="#extname (instance method)">- (String) <strong>extname</strong> </a>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</span>
|
207
|
+
|
208
|
+
|
209
|
+
<span class="note title readonly">readonly</span>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
<span class="summary_desc"><div class='inline'><p>
|
219
|
+
returns the extension of image_src without the preceeding ’.’.
|
220
|
+
</p>
|
221
|
+
</div></span>
|
222
|
+
|
223
|
+
</li>
|
224
|
+
|
225
|
+
|
226
|
+
<li class="public ">
|
227
|
+
<span class="summary_signature">
|
228
|
+
|
229
|
+
<a href="#file_name-instance_method" title="#file_name (instance method)">- (String) <strong>file_name</strong> </a>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</span>
|
234
|
+
|
235
|
+
|
236
|
+
<span class="note title readonly">readonly</span>
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
<span class="summary_desc"><div class='inline'><p>
|
246
|
+
The name of the image file, sans directory info.
|
247
|
+
</p>
|
248
|
+
</div></span>
|
249
|
+
|
250
|
+
</li>
|
251
|
+
|
252
|
+
|
253
|
+
<li class="public ">
|
254
|
+
<span class="summary_signature">
|
255
|
+
|
256
|
+
<a href="#height-instance_method" title="#height (instance method)">- (Object) <strong>height</strong> </a>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
</span>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
<span class="summary_desc"><div class='inline'><p>
|
273
|
+
providing access to update the anchor’s height attribute.
|
274
|
+
</p>
|
275
|
+
</div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#image_src-instance_method" title="#image_src (instance method)">- (String) <strong>image_src</strong> </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<span class="summary_desc"><div class='inline'><p>
|
300
|
+
The path to the image you want to include Only local images are supported
|
301
|
+
at this time and only jpg support.
|
302
|
+
</p>
|
303
|
+
</div></span>
|
304
|
+
|
305
|
+
</li>
|
306
|
+
|
307
|
+
|
308
|
+
<li class="public ">
|
309
|
+
<span class="summary_signature">
|
310
|
+
|
311
|
+
<a href="#index-instance_method" title="#index (instance method)">- (Index) <strong>index</strong> </a>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
</span>
|
316
|
+
|
317
|
+
|
318
|
+
<span class="note title readonly">readonly</span>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
<span class="summary_desc"><div class='inline'><p>
|
328
|
+
The index of this image in the workbooks images collections.
|
329
|
+
</p>
|
330
|
+
</div></span>
|
331
|
+
|
332
|
+
</li>
|
333
|
+
|
334
|
+
|
335
|
+
<li class="public ">
|
336
|
+
<span class="summary_signature">
|
337
|
+
|
338
|
+
<a href="#name-instance_method" title="#name (instance method)">- (String) <strong>name</strong> </a>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
</span>
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
<span class="summary_desc"><div class='inline'><p>
|
355
|
+
The name to use for this picture.
|
356
|
+
</p>
|
357
|
+
</div></span>
|
358
|
+
|
359
|
+
</li>
|
360
|
+
|
361
|
+
|
362
|
+
<li class="public ">
|
363
|
+
<span class="summary_signature">
|
364
|
+
|
365
|
+
<a href="#pn-instance_method" title="#pn (instance method)">- (String) <strong>pn</strong> </a>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
</span>
|
370
|
+
|
371
|
+
|
372
|
+
<span class="note title readonly">readonly</span>
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
<span class="summary_desc"><div class='inline'><p>
|
382
|
+
The part name for this image used in serialization and relationship
|
383
|
+
building.
|
384
|
+
</p>
|
385
|
+
</div></span>
|
386
|
+
|
387
|
+
</li>
|
388
|
+
|
389
|
+
|
390
|
+
<li class="public ">
|
391
|
+
<span class="summary_signature">
|
392
|
+
|
393
|
+
<a href="#width-instance_method" title="#width (instance method)">- (Object) <strong>width</strong> </a>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
</span>
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
<span class="summary_desc"><div class='inline'><p>
|
410
|
+
providing access to the anchor’s width attribute.
|
411
|
+
</p>
|
412
|
+
</div></span>
|
413
|
+
|
414
|
+
</li>
|
415
|
+
|
416
|
+
|
417
|
+
</ul>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
<h2>
|
424
|
+
Instance Method Summary
|
425
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
426
|
+
</h2>
|
427
|
+
|
428
|
+
<ul class="summary">
|
429
|
+
|
430
|
+
<li class="public ">
|
431
|
+
<span class="summary_signature">
|
432
|
+
|
433
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Pic) <strong>initialize</strong>(anchor, options = {}) {|_self| ... }</a>
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
</span>
|
438
|
+
|
439
|
+
<span class="note title constructor">constructor</span>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
<span class="summary_desc"><div class='inline'><p>
|
449
|
+
Creates a new Pic(ture) object.
|
450
|
+
</p>
|
451
|
+
</div></span>
|
452
|
+
|
453
|
+
</li>
|
454
|
+
|
455
|
+
|
456
|
+
<li class="public ">
|
457
|
+
<span class="summary_signature">
|
458
|
+
|
459
|
+
<a href="#start_at-instance_method" title="#start_at (instance method)">- (Marker) <strong>start_at</strong>(x, y) </a>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
</span>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
<span class="summary_desc"><div class='inline'><p>
|
473
|
+
This is a short cut method to set the start anchor position If you need
|
474
|
+
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
475
|
+
rowOff.
|
476
|
+
</p>
|
477
|
+
</div></span>
|
478
|
+
|
479
|
+
</li>
|
480
|
+
|
481
|
+
|
482
|
+
<li class="public ">
|
483
|
+
<span class="summary_signature">
|
484
|
+
|
485
|
+
<a href="#to_xml-instance_method" title="#to_xml (instance method)">- (String) <strong>to_xml</strong>(xml) </a>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
</span>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
<span class="summary_desc"><div class='inline'><p>
|
499
|
+
Serializes the picture.
|
500
|
+
</p>
|
501
|
+
</div></span>
|
502
|
+
|
503
|
+
</li>
|
504
|
+
|
505
|
+
|
506
|
+
</ul>
|
507
|
+
|
508
|
+
|
509
|
+
<div id="constructor_details" class="method_details_list">
|
510
|
+
<h2>Constructor Details</h2>
|
511
|
+
|
512
|
+
<div class="method_details first">
|
513
|
+
<p class="signature first" id="initialize-instance_method">
|
514
|
+
|
515
|
+
- (<tt><span class='object_link'><a href="" title="Axlsx::Pic (class)">Pic</a></span></tt>) <strong>initialize</strong>(anchor, options = {}) {|_self| ... }
|
516
|
+
|
517
|
+
|
518
|
+
|
519
|
+
</p><div class="docstring">
|
520
|
+
<div class="discussion">
|
521
|
+
<p>
|
522
|
+
Creates a new Pic(ture) object
|
523
|
+
</p>
|
524
|
+
|
525
|
+
|
526
|
+
</div>
|
527
|
+
</div>
|
528
|
+
<div class="tags">
|
529
|
+
<h3>Parameters:</h3>
|
530
|
+
<ul class="param">
|
531
|
+
|
532
|
+
<li>
|
533
|
+
|
534
|
+
<span class='name'>anchor</span>
|
535
|
+
|
536
|
+
|
537
|
+
<span class='type'>(<tt>Anchor</tt>)</span>
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
—
|
542
|
+
<div class='inline'><p>
|
543
|
+
the anchor that holds this image
|
544
|
+
</p>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
</li>
|
548
|
+
|
549
|
+
<li>
|
550
|
+
|
551
|
+
<span class='name'>options</span>
|
552
|
+
|
553
|
+
|
554
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
555
|
+
|
556
|
+
|
557
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
558
|
+
|
559
|
+
|
560
|
+
—
|
561
|
+
<div class='inline'><p>
|
562
|
+
a customizable set of options
|
563
|
+
</p>
|
564
|
+
</div>
|
565
|
+
|
566
|
+
</li>
|
567
|
+
|
568
|
+
</ul>
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
<h3>Options Hash (<tt>options</tt>):</h3>
|
576
|
+
<ul class="option">
|
577
|
+
|
578
|
+
<li>
|
579
|
+
<span class="name">name</span>
|
580
|
+
<span class="type">(<tt>String</tt>)</span>
|
581
|
+
<span class="default">
|
582
|
+
|
583
|
+
</span>
|
584
|
+
|
585
|
+
</li>
|
586
|
+
|
587
|
+
<li>
|
588
|
+
<span class="name">descr</span>
|
589
|
+
<span class="type">(<tt>String</tt>)</span>
|
590
|
+
<span class="default">
|
591
|
+
|
592
|
+
</span>
|
593
|
+
|
594
|
+
</li>
|
595
|
+
|
596
|
+
<li>
|
597
|
+
<span class="name">image_src</span>
|
598
|
+
<span class="type">(<tt>String</tt>)</span>
|
599
|
+
<span class="default">
|
600
|
+
|
601
|
+
</span>
|
602
|
+
|
603
|
+
</li>
|
604
|
+
|
605
|
+
<li>
|
606
|
+
<span class="name">start_at</span>
|
607
|
+
<span class="type">(<tt>Array</tt>)</span>
|
608
|
+
<span class="default">
|
609
|
+
|
610
|
+
</span>
|
611
|
+
|
612
|
+
</li>
|
613
|
+
|
614
|
+
<li>
|
615
|
+
<span class="name">width</span>
|
616
|
+
<span class="type">(<tt>Intger</tt>)</span>
|
617
|
+
<span class="default">
|
618
|
+
|
619
|
+
</span>
|
620
|
+
|
621
|
+
</li>
|
622
|
+
|
623
|
+
<li>
|
624
|
+
<span class="name">height</span>
|
625
|
+
<span class="type">(<tt>Intger</tt>)</span>
|
626
|
+
<span class="default">
|
627
|
+
|
628
|
+
</span>
|
629
|
+
|
630
|
+
</li>
|
631
|
+
|
632
|
+
</ul>
|
633
|
+
|
634
|
+
|
635
|
+
<h3>Yields:</h3>
|
636
|
+
<ul class="yield">
|
637
|
+
|
638
|
+
<li>
|
639
|
+
|
640
|
+
|
641
|
+
<span class='type'>(<tt>_self</tt>)</span>
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
</li>
|
646
|
+
|
647
|
+
</ul>
|
648
|
+
<h3>Yield Parameters:</h3>
|
649
|
+
<ul class="yieldparam">
|
650
|
+
|
651
|
+
<li>
|
652
|
+
|
653
|
+
<span class='name'>_self</span>
|
654
|
+
|
655
|
+
|
656
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="Axlsx::Pic (class)">Axlsx::Pic</a></span></tt>)</span>
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
—
|
661
|
+
<div class='inline'><p>
|
662
|
+
the object that the method was called on
|
663
|
+
</p>
|
664
|
+
</div>
|
665
|
+
|
666
|
+
</li>
|
667
|
+
|
668
|
+
</ul>
|
669
|
+
|
670
|
+
</div><table class="source_code">
|
671
|
+
<tr>
|
672
|
+
<td>
|
673
|
+
<pre class="lines">
|
674
|
+
|
675
|
+
|
676
|
+
66
|
677
|
+
67
|
678
|
+
68
|
679
|
+
69
|
680
|
+
70
|
681
|
+
71
|
682
|
+
72
|
683
|
+
73
|
684
|
+
74</pre>
|
685
|
+
</td>
|
686
|
+
<td>
|
687
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 66</span>
|
688
|
+
|
689
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='anchor identifier id'>anchor</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>
|
690
|
+
<span class='@anchor ivar id'>@anchor</span> <span class='assign token'>=</span> <span class='anchor identifier id'>anchor</span>
|
691
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='images identifier id'>images</span> <span class='lshft op'><<</span> <span class='self self kw'>self</span>
|
692
|
+
<span class='options identifier id'>options</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='o identifier id'>o</span><span class='bitor op'>|</span>
|
693
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='dstring node'>"#{o[0]}="</span>
|
694
|
+
<span class='end end kw'>end</span>
|
695
|
+
<span class='start_at identifier id'>start_at</span> <span class='mult op'>*</span><span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='options identifier id'>options</span><span class='lbrack token'>[</span><span class='symbol val'>:start_at</span><span class='rbrack token'>]</span>
|
696
|
+
<span class='yield yield kw'>yield</span> <span class='self self kw'>self</span> <span class='if if_mod kw'>if</span> <span class='block_given? fid id'>block_given?</span>
|
697
|
+
<span class='end end kw'>end</span>
|
698
|
+
</pre>
|
699
|
+
</td>
|
700
|
+
</tr>
|
701
|
+
</table>
|
702
|
+
</div>
|
703
|
+
|
704
|
+
</div>
|
705
|
+
|
706
|
+
<div id="instance_attr_details" class="attr_details">
|
707
|
+
<h2>Instance Attribute Details</h2>
|
708
|
+
|
709
|
+
|
710
|
+
<span id=""></span>
|
711
|
+
<span id="anchor-instance_method"></span>
|
712
|
+
<div class="method_details first">
|
713
|
+
<p class="signature first" id="anchor-instance_method">
|
714
|
+
|
715
|
+
- (<tt><span class='object_link'><a href="OneCellAnchor.html" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span></tt>) <strong>anchor</strong> <span class="extras">(readonly)</span>
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
</p><div class="docstring">
|
720
|
+
<div class="discussion">
|
721
|
+
<p>
|
722
|
+
The anchor for this image
|
723
|
+
</p>
|
724
|
+
|
725
|
+
|
726
|
+
</div>
|
727
|
+
</div>
|
728
|
+
<div class="tags">
|
729
|
+
|
730
|
+
<h3>Returns:</h3>
|
731
|
+
<ul class="return">
|
732
|
+
|
733
|
+
<li>
|
734
|
+
|
735
|
+
|
736
|
+
<span class='type'>(<tt><span class='object_link'><a href="OneCellAnchor.html" title="Axlsx::OneCellAnchor (class)">OneCellAnchor</a></span></tt>)</span>
|
737
|
+
|
738
|
+
|
739
|
+
|
740
|
+
</li>
|
741
|
+
|
742
|
+
</ul>
|
743
|
+
|
744
|
+
</div><table class="source_code">
|
745
|
+
<tr>
|
746
|
+
<td>
|
747
|
+
<pre class="lines">
|
748
|
+
|
749
|
+
|
750
|
+
36
|
751
|
+
37
|
752
|
+
38</pre>
|
753
|
+
</td>
|
754
|
+
<td>
|
755
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 36</span>
|
756
|
+
|
757
|
+
<span class='def def kw'>def</span> <span class='anchor identifier id'>anchor</span>
|
758
|
+
<span class='@anchor ivar id'>@anchor</span>
|
759
|
+
<span class='end end kw'>end</span>
|
760
|
+
</pre>
|
761
|
+
</td>
|
762
|
+
</tr>
|
763
|
+
</table>
|
764
|
+
</div>
|
765
|
+
|
766
|
+
|
767
|
+
<span id="descr=-instance_method"></span>
|
768
|
+
<span id="descr-instance_method"></span>
|
769
|
+
<div class="method_details ">
|
770
|
+
<p class="signature " id="descr-instance_method">
|
771
|
+
|
772
|
+
- (<tt>String</tt>) <strong>descr</strong>
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
</p><div class="docstring">
|
777
|
+
<div class="discussion">
|
778
|
+
<p>
|
779
|
+
A description of the picture
|
780
|
+
</p>
|
781
|
+
|
782
|
+
|
783
|
+
</div>
|
784
|
+
</div>
|
785
|
+
<div class="tags">
|
786
|
+
|
787
|
+
<h3>Returns:</h3>
|
788
|
+
<ul class="return">
|
789
|
+
|
790
|
+
<li>
|
791
|
+
|
792
|
+
|
793
|
+
<span class='type'>(<tt>String</tt>)</span>
|
794
|
+
|
795
|
+
|
796
|
+
|
797
|
+
</li>
|
798
|
+
|
799
|
+
</ul>
|
800
|
+
|
801
|
+
</div><table class="source_code">
|
802
|
+
<tr>
|
803
|
+
<td>
|
804
|
+
<pre class="lines">
|
805
|
+
|
806
|
+
|
807
|
+
27
|
808
|
+
28
|
809
|
+
29</pre>
|
810
|
+
</td>
|
811
|
+
<td>
|
812
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 27</span>
|
813
|
+
|
814
|
+
<span class='def def kw'>def</span> <span class='descr identifier id'>descr</span>
|
815
|
+
<span class='@descr ivar id'>@descr</span>
|
816
|
+
<span class='end end kw'>end</span>
|
817
|
+
</pre>
|
818
|
+
</td>
|
819
|
+
</tr>
|
820
|
+
</table>
|
821
|
+
</div>
|
822
|
+
|
823
|
+
|
824
|
+
<span id=""></span>
|
825
|
+
<span id="extname-instance_method"></span>
|
826
|
+
<div class="method_details ">
|
827
|
+
<p class="signature " id="extname-instance_method">
|
828
|
+
|
829
|
+
- (<tt>String</tt>) <strong>extname</strong> <span class="extras">(readonly)</span>
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
</p><div class="docstring">
|
834
|
+
<div class="discussion">
|
835
|
+
<p>
|
836
|
+
returns the extension of image_src without the preceeding ’.’
|
837
|
+
</p>
|
838
|
+
|
839
|
+
|
840
|
+
</div>
|
841
|
+
</div>
|
842
|
+
<div class="tags">
|
843
|
+
|
844
|
+
<h3>Returns:</h3>
|
845
|
+
<ul class="return">
|
846
|
+
|
847
|
+
<li>
|
848
|
+
|
849
|
+
|
850
|
+
<span class='type'>(<tt>String</tt>)</span>
|
851
|
+
|
852
|
+
|
853
|
+
|
854
|
+
</li>
|
855
|
+
|
856
|
+
</ul>
|
857
|
+
|
858
|
+
</div><table class="source_code">
|
859
|
+
<tr>
|
860
|
+
<td>
|
861
|
+
<pre class="lines">
|
862
|
+
|
863
|
+
|
864
|
+
40
|
865
|
+
41
|
866
|
+
42</pre>
|
867
|
+
</td>
|
868
|
+
<td>
|
869
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 40</span>
|
870
|
+
|
871
|
+
<span class='def def kw'>def</span> <span class='extname identifier id'>extname</span>
|
872
|
+
<span class='File constant id'>File</span><span class='dot token'>.</span><span class='extname identifier id'>extname</span><span class='lparen token'>(</span><span class='image_src identifier id'>image_src</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='string val'>'.'</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='image_src identifier id'>image_src</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
873
|
+
<span class='end end kw'>end</span>
|
874
|
+
</pre>
|
875
|
+
</td>
|
876
|
+
</tr>
|
877
|
+
</table>
|
878
|
+
</div>
|
879
|
+
|
880
|
+
|
881
|
+
<span id=""></span>
|
882
|
+
<span id="file_name-instance_method"></span>
|
883
|
+
<div class="method_details ">
|
884
|
+
<p class="signature " id="file_name-instance_method">
|
885
|
+
|
886
|
+
- (<tt>String</tt>) <strong>file_name</strong> <span class="extras">(readonly)</span>
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
</p><div class="docstring">
|
891
|
+
<div class="discussion">
|
892
|
+
<p>
|
893
|
+
The name of the image file, sans directory info
|
894
|
+
</p>
|
895
|
+
|
896
|
+
|
897
|
+
</div>
|
898
|
+
</div>
|
899
|
+
<div class="tags">
|
900
|
+
|
901
|
+
<h3>Returns:</h3>
|
902
|
+
<ul class="return">
|
903
|
+
|
904
|
+
<li>
|
905
|
+
|
906
|
+
|
907
|
+
<span class='type'>(<tt>String</tt>)</span>
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
</li>
|
912
|
+
|
913
|
+
</ul>
|
914
|
+
|
915
|
+
</div><table class="source_code">
|
916
|
+
<tr>
|
917
|
+
<td>
|
918
|
+
<pre class="lines">
|
919
|
+
|
920
|
+
|
921
|
+
44
|
922
|
+
45
|
923
|
+
46</pre>
|
924
|
+
</td>
|
925
|
+
<td>
|
926
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 44</span>
|
927
|
+
|
928
|
+
<span class='def def kw'>def</span> <span class='file_name identifier id'>file_name</span>
|
929
|
+
<span class='File constant id'>File</span><span class='dot token'>.</span><span class='basename identifier id'>basename</span><span class='lparen token'>(</span><span class='image_src identifier id'>image_src</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='image_src identifier id'>image_src</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
|
930
|
+
<span class='end end kw'>end</span>
|
931
|
+
</pre>
|
932
|
+
</td>
|
933
|
+
</tr>
|
934
|
+
</table>
|
935
|
+
</div>
|
936
|
+
|
937
|
+
|
938
|
+
<span id="height=-instance_method"></span>
|
939
|
+
<span id="height-instance_method"></span>
|
940
|
+
<div class="method_details ">
|
941
|
+
<p class="signature " id="height-instance_method">
|
942
|
+
|
943
|
+
- (<tt>Object</tt>) <strong>height</strong>
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
</p><div class="docstring">
|
948
|
+
<div class="discussion">
|
949
|
+
<p>
|
950
|
+
providing access to update the anchor’s height attribute
|
951
|
+
</p>
|
952
|
+
|
953
|
+
|
954
|
+
</div>
|
955
|
+
</div>
|
956
|
+
<div class="tags">
|
957
|
+
<h3>Parameters:</h3>
|
958
|
+
<ul class="param">
|
959
|
+
|
960
|
+
<li>
|
961
|
+
|
962
|
+
<span class='name'>v</span>
|
963
|
+
|
964
|
+
|
965
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
966
|
+
|
967
|
+
|
968
|
+
|
969
|
+
</li>
|
970
|
+
|
971
|
+
</ul>
|
972
|
+
|
973
|
+
|
974
|
+
<h3>See Also:</h3>
|
975
|
+
<ul class="see">
|
976
|
+
|
977
|
+
<li>OneCellAnchor.width</li>
|
978
|
+
|
979
|
+
</ul>
|
980
|
+
|
981
|
+
</div><table class="source_code">
|
982
|
+
<tr>
|
983
|
+
<td>
|
984
|
+
<pre class="lines">
|
985
|
+
|
986
|
+
|
987
|
+
23
|
988
|
+
24
|
989
|
+
25</pre>
|
990
|
+
</td>
|
991
|
+
<td>
|
992
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 23</span>
|
993
|
+
|
994
|
+
<span class='def def kw'>def</span> <span class='height identifier id'>height</span>
|
995
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='height identifier id'>height</span>
|
996
|
+
<span class='end end kw'>end</span>
|
997
|
+
</pre>
|
998
|
+
</td>
|
999
|
+
</tr>
|
1000
|
+
</table>
|
1001
|
+
</div>
|
1002
|
+
|
1003
|
+
|
1004
|
+
<span id="image_src=-instance_method"></span>
|
1005
|
+
<span id="image_src-instance_method"></span>
|
1006
|
+
<div class="method_details ">
|
1007
|
+
<p class="signature " id="image_src-instance_method">
|
1008
|
+
|
1009
|
+
- (<tt>String</tt>) <strong>image_src</strong>
|
1010
|
+
|
1011
|
+
|
1012
|
+
|
1013
|
+
</p><div class="docstring">
|
1014
|
+
<div class="discussion">
|
1015
|
+
<p>
|
1016
|
+
The path to the image you want to include Only local images are supported
|
1017
|
+
at this time and only jpg support
|
1018
|
+
</p>
|
1019
|
+
|
1020
|
+
|
1021
|
+
</div>
|
1022
|
+
</div>
|
1023
|
+
<div class="tags">
|
1024
|
+
|
1025
|
+
<h3>Returns:</h3>
|
1026
|
+
<ul class="return">
|
1027
|
+
|
1028
|
+
<li>
|
1029
|
+
|
1030
|
+
|
1031
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1032
|
+
|
1033
|
+
|
1034
|
+
|
1035
|
+
</li>
|
1036
|
+
|
1037
|
+
</ul>
|
1038
|
+
|
1039
|
+
</div><table class="source_code">
|
1040
|
+
<tr>
|
1041
|
+
<td>
|
1042
|
+
<pre class="lines">
|
1043
|
+
|
1044
|
+
|
1045
|
+
32
|
1046
|
+
33
|
1047
|
+
34</pre>
|
1048
|
+
</td>
|
1049
|
+
<td>
|
1050
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 32</span>
|
1051
|
+
|
1052
|
+
<span class='def def kw'>def</span> <span class='image_src identifier id'>image_src</span>
|
1053
|
+
<span class='@image_src ivar id'>@image_src</span>
|
1054
|
+
<span class='end end kw'>end</span>
|
1055
|
+
</pre>
|
1056
|
+
</td>
|
1057
|
+
</tr>
|
1058
|
+
</table>
|
1059
|
+
</div>
|
1060
|
+
|
1061
|
+
|
1062
|
+
<span id=""></span>
|
1063
|
+
<span id="index-instance_method"></span>
|
1064
|
+
<div class="method_details ">
|
1065
|
+
<p class="signature " id="index-instance_method">
|
1066
|
+
|
1067
|
+
- (<tt>Index</tt>) <strong>index</strong> <span class="extras">(readonly)</span>
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
1071
|
+
</p><div class="docstring">
|
1072
|
+
<div class="discussion">
|
1073
|
+
<p>
|
1074
|
+
The index of this image in the workbooks images collections
|
1075
|
+
</p>
|
1076
|
+
|
1077
|
+
|
1078
|
+
</div>
|
1079
|
+
</div>
|
1080
|
+
<div class="tags">
|
1081
|
+
|
1082
|
+
<h3>Returns:</h3>
|
1083
|
+
<ul class="return">
|
1084
|
+
|
1085
|
+
<li>
|
1086
|
+
|
1087
|
+
|
1088
|
+
<span class='type'>(<tt>Index</tt>)</span>
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
1092
|
+
</li>
|
1093
|
+
|
1094
|
+
</ul>
|
1095
|
+
|
1096
|
+
</div><table class="source_code">
|
1097
|
+
<tr>
|
1098
|
+
<td>
|
1099
|
+
<pre class="lines">
|
1100
|
+
|
1101
|
+
|
1102
|
+
52
|
1103
|
+
53
|
1104
|
+
54</pre>
|
1105
|
+
</td>
|
1106
|
+
<td>
|
1107
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 52</span>
|
1108
|
+
|
1109
|
+
<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
|
1110
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='drawing identifier id'>drawing</span><span class='dot token'>.</span><span class='worksheet identifier id'>worksheet</span><span class='dot token'>.</span><span class='workbook identifier id'>workbook</span><span class='dot token'>.</span><span class='images identifier id'>images</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>
|
1111
|
+
<span class='end end kw'>end</span>
|
1112
|
+
</pre>
|
1113
|
+
</td>
|
1114
|
+
</tr>
|
1115
|
+
</table>
|
1116
|
+
</div>
|
1117
|
+
|
1118
|
+
|
1119
|
+
<span id="name=-instance_method"></span>
|
1120
|
+
<span id="name-instance_method"></span>
|
1121
|
+
<div class="method_details ">
|
1122
|
+
<p class="signature " id="name-instance_method">
|
1123
|
+
|
1124
|
+
- (<tt>String</tt>) <strong>name</strong>
|
1125
|
+
|
1126
|
+
|
1127
|
+
|
1128
|
+
</p><div class="docstring">
|
1129
|
+
<div class="discussion">
|
1130
|
+
<p>
|
1131
|
+
The name to use for this picture
|
1132
|
+
</p>
|
1133
|
+
|
1134
|
+
|
1135
|
+
</div>
|
1136
|
+
</div>
|
1137
|
+
<div class="tags">
|
1138
|
+
|
1139
|
+
<h3>Returns:</h3>
|
1140
|
+
<ul class="return">
|
1141
|
+
|
1142
|
+
<li>
|
1143
|
+
|
1144
|
+
|
1145
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
</li>
|
1150
|
+
|
1151
|
+
</ul>
|
1152
|
+
|
1153
|
+
</div><table class="source_code">
|
1154
|
+
<tr>
|
1155
|
+
<td>
|
1156
|
+
<pre class="lines">
|
1157
|
+
|
1158
|
+
|
1159
|
+
13
|
1160
|
+
14
|
1161
|
+
15</pre>
|
1162
|
+
</td>
|
1163
|
+
<td>
|
1164
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 13</span>
|
1165
|
+
|
1166
|
+
<span class='def def kw'>def</span> <span class='name identifier id'>name</span>
|
1167
|
+
<span class='@name ivar id'>@name</span>
|
1168
|
+
<span class='end end kw'>end</span>
|
1169
|
+
</pre>
|
1170
|
+
</td>
|
1171
|
+
</tr>
|
1172
|
+
</table>
|
1173
|
+
</div>
|
1174
|
+
|
1175
|
+
|
1176
|
+
<span id=""></span>
|
1177
|
+
<span id="pn-instance_method"></span>
|
1178
|
+
<div class="method_details ">
|
1179
|
+
<p class="signature " id="pn-instance_method">
|
1180
|
+
|
1181
|
+
- (<tt>String</tt>) <strong>pn</strong> <span class="extras">(readonly)</span>
|
1182
|
+
|
1183
|
+
|
1184
|
+
|
1185
|
+
</p><div class="docstring">
|
1186
|
+
<div class="discussion">
|
1187
|
+
<p>
|
1188
|
+
The part name for this image used in serialization and relationship
|
1189
|
+
building
|
1190
|
+
</p>
|
1191
|
+
|
1192
|
+
|
1193
|
+
</div>
|
1194
|
+
</div>
|
1195
|
+
<div class="tags">
|
1196
|
+
|
1197
|
+
<h3>Returns:</h3>
|
1198
|
+
<ul class="return">
|
1199
|
+
|
1200
|
+
<li>
|
1201
|
+
|
1202
|
+
|
1203
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
</li>
|
1208
|
+
|
1209
|
+
</ul>
|
1210
|
+
|
1211
|
+
</div><table class="source_code">
|
1212
|
+
<tr>
|
1213
|
+
<td>
|
1214
|
+
<pre class="lines">
|
1215
|
+
|
1216
|
+
|
1217
|
+
48
|
1218
|
+
49
|
1219
|
+
50</pre>
|
1220
|
+
</td>
|
1221
|
+
<td>
|
1222
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 48</span>
|
1223
|
+
|
1224
|
+
<span class='def def kw'>def</span> <span class='pn identifier id'>pn</span>
|
1225
|
+
<span class='dstring node'>"#{IMAGE_PN % [(index+1), extname]}"</span>
|
1226
|
+
<span class='end end kw'>end</span>
|
1227
|
+
</pre>
|
1228
|
+
</td>
|
1229
|
+
</tr>
|
1230
|
+
</table>
|
1231
|
+
</div>
|
1232
|
+
|
1233
|
+
|
1234
|
+
<span id="width=-instance_method"></span>
|
1235
|
+
<span id="width-instance_method"></span>
|
1236
|
+
<div class="method_details ">
|
1237
|
+
<p class="signature " id="width-instance_method">
|
1238
|
+
|
1239
|
+
- (<tt>Object</tt>) <strong>width</strong>
|
1240
|
+
|
1241
|
+
|
1242
|
+
|
1243
|
+
</p><div class="docstring">
|
1244
|
+
<div class="discussion">
|
1245
|
+
<p>
|
1246
|
+
providing access to the anchor’s width attribute
|
1247
|
+
</p>
|
1248
|
+
|
1249
|
+
|
1250
|
+
</div>
|
1251
|
+
</div>
|
1252
|
+
<div class="tags">
|
1253
|
+
<h3>Parameters:</h3>
|
1254
|
+
<ul class="param">
|
1255
|
+
|
1256
|
+
<li>
|
1257
|
+
|
1258
|
+
<span class='name'>v</span>
|
1259
|
+
|
1260
|
+
|
1261
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
</li>
|
1266
|
+
|
1267
|
+
</ul>
|
1268
|
+
|
1269
|
+
|
1270
|
+
<h3>See Also:</h3>
|
1271
|
+
<ul class="see">
|
1272
|
+
|
1273
|
+
<li>OneCellAnchor.width</li>
|
1274
|
+
|
1275
|
+
</ul>
|
1276
|
+
|
1277
|
+
</div><table class="source_code">
|
1278
|
+
<tr>
|
1279
|
+
<td>
|
1280
|
+
<pre class="lines">
|
1281
|
+
|
1282
|
+
|
1283
|
+
18
|
1284
|
+
19
|
1285
|
+
20</pre>
|
1286
|
+
</td>
|
1287
|
+
<td>
|
1288
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 18</span>
|
1289
|
+
|
1290
|
+
<span class='def def kw'>def</span> <span class='width identifier id'>width</span>
|
1291
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='width identifier id'>width</span>
|
1292
|
+
<span class='end end kw'>end</span>
|
1293
|
+
</pre>
|
1294
|
+
</td>
|
1295
|
+
</tr>
|
1296
|
+
</table>
|
1297
|
+
</div>
|
1298
|
+
|
1299
|
+
</div>
|
1300
|
+
|
1301
|
+
|
1302
|
+
<div id="instance_method_details" class="method_details_list">
|
1303
|
+
<h2>Instance Method Details</h2>
|
1304
|
+
|
1305
|
+
|
1306
|
+
<div class="method_details first">
|
1307
|
+
<p class="signature first" id="start_at-instance_method">
|
1308
|
+
|
1309
|
+
- (<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>) <strong>start_at</strong>(x, y)
|
1310
|
+
|
1311
|
+
|
1312
|
+
|
1313
|
+
</p><div class="docstring">
|
1314
|
+
<div class="discussion">
|
1315
|
+
<p>
|
1316
|
+
This is a short cut method to set the start anchor position If you need
|
1317
|
+
finer granularity in positioning use graphic_frame.anchor.from.colOff /
|
1318
|
+
rowOff
|
1319
|
+
</p>
|
1320
|
+
|
1321
|
+
|
1322
|
+
</div>
|
1323
|
+
</div>
|
1324
|
+
<div class="tags">
|
1325
|
+
<h3>Parameters:</h3>
|
1326
|
+
<ul class="param">
|
1327
|
+
|
1328
|
+
<li>
|
1329
|
+
|
1330
|
+
<span class='name'>x</span>
|
1331
|
+
|
1332
|
+
|
1333
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
1337
|
+
—
|
1338
|
+
<div class='inline'><p>
|
1339
|
+
The column
|
1340
|
+
</p>
|
1341
|
+
</div>
|
1342
|
+
|
1343
|
+
</li>
|
1344
|
+
|
1345
|
+
<li>
|
1346
|
+
|
1347
|
+
<span class='name'>y</span>
|
1348
|
+
|
1349
|
+
|
1350
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
1351
|
+
|
1352
|
+
|
1353
|
+
|
1354
|
+
—
|
1355
|
+
<div class='inline'><p>
|
1356
|
+
The row
|
1357
|
+
</p>
|
1358
|
+
</div>
|
1359
|
+
|
1360
|
+
</li>
|
1361
|
+
|
1362
|
+
</ul>
|
1363
|
+
|
1364
|
+
<h3>Returns:</h3>
|
1365
|
+
<ul class="return">
|
1366
|
+
|
1367
|
+
<li>
|
1368
|
+
|
1369
|
+
|
1370
|
+
<span class='type'>(<tt><span class='object_link'><a href="Marker.html" title="Axlsx::Marker (class)">Marker</a></span></tt>)</span>
|
1371
|
+
|
1372
|
+
|
1373
|
+
|
1374
|
+
</li>
|
1375
|
+
|
1376
|
+
</ul>
|
1377
|
+
|
1378
|
+
</div><table class="source_code">
|
1379
|
+
<tr>
|
1380
|
+
<td>
|
1381
|
+
<pre class="lines">
|
1382
|
+
|
1383
|
+
|
1384
|
+
124
|
1385
|
+
125
|
1386
|
+
126
|
1387
|
+
127</pre>
|
1388
|
+
</td>
|
1389
|
+
<td>
|
1390
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 124</span>
|
1391
|
+
|
1392
|
+
<span class='def def kw'>def</span> <span class='start_at identifier id'>start_at</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='comma token'>,</span> <span class='y identifier id'>y</span><span class='rparen token'>)</span>
|
1393
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='col identifier id'>col</span> <span class='assign token'>=</span> <span class='x identifier id'>x</span>
|
1394
|
+
<span class='@anchor ivar id'>@anchor</span><span class='dot token'>.</span><span class='from identifier id'>from</span><span class='dot token'>.</span><span class='row identifier id'>row</span> <span class='assign token'>=</span> <span class='y identifier id'>y</span>
|
1395
|
+
<span class='end end kw'>end</span>
|
1396
|
+
</pre>
|
1397
|
+
</td>
|
1398
|
+
</tr>
|
1399
|
+
</table>
|
1400
|
+
</div>
|
1401
|
+
|
1402
|
+
<div class="method_details ">
|
1403
|
+
<p class="signature " id="to_xml-instance_method">
|
1404
|
+
|
1405
|
+
- (<tt>String</tt>) <strong>to_xml</strong>(xml)
|
1406
|
+
|
1407
|
+
|
1408
|
+
|
1409
|
+
</p><div class="docstring">
|
1410
|
+
<div class="discussion">
|
1411
|
+
<p>
|
1412
|
+
Serializes the picture
|
1413
|
+
</p>
|
1414
|
+
|
1415
|
+
|
1416
|
+
</div>
|
1417
|
+
</div>
|
1418
|
+
<div class="tags">
|
1419
|
+
<h3>Parameters:</h3>
|
1420
|
+
<ul class="param">
|
1421
|
+
|
1422
|
+
<li>
|
1423
|
+
|
1424
|
+
<span class='name'>xml</span>
|
1425
|
+
|
1426
|
+
|
1427
|
+
<span class='type'>(<tt>Nokogiri::XML::Builder</tt>)</span>
|
1428
|
+
|
1429
|
+
|
1430
|
+
|
1431
|
+
—
|
1432
|
+
<div class='inline'><p>
|
1433
|
+
The document builder instance this objects xml will be added to.
|
1434
|
+
</p>
|
1435
|
+
</div>
|
1436
|
+
|
1437
|
+
</li>
|
1438
|
+
|
1439
|
+
</ul>
|
1440
|
+
|
1441
|
+
<h3>Returns:</h3>
|
1442
|
+
<ul class="return">
|
1443
|
+
|
1444
|
+
<li>
|
1445
|
+
|
1446
|
+
|
1447
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1448
|
+
|
1449
|
+
|
1450
|
+
|
1451
|
+
</li>
|
1452
|
+
|
1453
|
+
</ul>
|
1454
|
+
|
1455
|
+
</div><table class="source_code">
|
1456
|
+
<tr>
|
1457
|
+
<td>
|
1458
|
+
<pre class="lines">
|
1459
|
+
|
1460
|
+
|
1461
|
+
132
|
1462
|
+
133
|
1463
|
+
134
|
1464
|
+
135
|
1465
|
+
136
|
1466
|
+
137
|
1467
|
+
138
|
1468
|
+
139
|
1469
|
+
140
|
1470
|
+
141
|
1471
|
+
142
|
1472
|
+
143
|
1473
|
+
144
|
1474
|
+
145
|
1475
|
+
146
|
1476
|
+
147
|
1477
|
+
148
|
1478
|
+
149
|
1479
|
+
150
|
1480
|
+
151
|
1481
|
+
152
|
1482
|
+
153
|
1483
|
+
154
|
1484
|
+
155
|
1485
|
+
156</pre>
|
1486
|
+
</td>
|
1487
|
+
<td>
|
1488
|
+
<pre class="code"><span class="info file"># File 'lib/axlsx/drawing/pic.rb', line 132</span>
|
1489
|
+
|
1490
|
+
<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>
|
1491
|
+
<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:pic'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1492
|
+
<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:nvPicPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1493
|
+
<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:cNvPr'</span><span class='comma token'>,</span> <span class='symbol val'>:id=</span><span class='gt op'>></span><span class='string val'>"2"</span><span class='comma token'>,</span> <span class='symbol val'>:name=</span><span class='gt op'>></span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='symbol val'>:descr=</span><span class='gt op'>></span><span class='descr identifier id'>descr</span><span class='rparen token'>)</span>
|
1494
|
+
<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:cNvPicPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1495
|
+
<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'>'a:picLocks'</span><span class='comma token'>,</span> <span class='symbol val'>:noChangeAspect=</span><span class='gt op'>></span><span class='integer val'>1</span><span class='rparen token'>)</span>
|
1496
|
+
<span class='rbrace token'>}</span>
|
1497
|
+
<span class='rbrace token'>}</span>
|
1498
|
+
<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:blipFill'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1499
|
+
<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'>'a:blip'</span><span class='comma token'>,</span> <span class='symbol val'>:'xmlns:r'</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='XML_NS_R constant id'>XML_NS_R</span><span class='comma token'>,</span> <span class='symbol val'>:'r:embed'</span><span class='assign token'>=</span><span class='gt op'>></span><span class='string val'>"rId1"</span><span class='rparen token'>)</span>
|
1500
|
+
<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'>'a:stretch'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1501
|
+
<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'>'a:fillRect'</span><span class='rparen token'>)</span>
|
1502
|
+
<span class='rbrace token'>}</span>
|
1503
|
+
<span class='rbrace token'>}</span>
|
1504
|
+
<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:spPr'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1505
|
+
<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'>'a:xfrm'</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1506
|
+
<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'>'a:off'</span><span class='comma token'>,</span> <span class='symbol val'>:x=</span><span class='gt op'>></span><span class='integer val'>0</span><span class='comma token'>,</span> <span class='symbol val'>:y=</span><span class='gt op'>></span><span class='integer val'>0</span><span class='rparen token'>)</span>
|
1507
|
+
<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'>'a:ext'</span><span class='comma token'>,</span> <span class='symbol val'>:cx=</span><span class='gt op'>></span><span class='integer val'>2336800</span><span class='comma token'>,</span> <span class='symbol val'>:cy=</span><span class='gt op'>></span><span class='integer val'>2161540</span><span class='rparen token'>)</span>
|
1508
|
+
<span class='rbrace token'>}</span>
|
1509
|
+
<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'>'a:prstGeom'</span><span class='comma token'>,</span> <span class='symbol val'>:prst=</span><span class='gt op'>></span><span class='symbol val'>:rect</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span>
|
1510
|
+
<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'>'a:avLst'</span><span class='rparen token'>)</span>
|
1511
|
+
<span class='rbrace token'>}</span>
|
1512
|
+
<span class='rbrace token'>}</span>
|
1513
|
+
<span class='rbrace token'>}</span>
|
1514
|
+
<span class='end end kw'>end</span>
|
1515
|
+
</pre>
|
1516
|
+
</td>
|
1517
|
+
</tr>
|
1518
|
+
</table>
|
1519
|
+
</div>
|
1520
|
+
|
1521
|
+
</div>
|
1522
|
+
|
1523
|
+
</div>
|
1524
|
+
|
1525
|
+
<div id="footer">
|
1526
|
+
Generated on Wed Nov 23 21:48:06 2011 by
|
1527
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1528
|
+
0.7.3 (ruby-1.8.7).
|
1529
|
+
</div>
|
1530
|
+
|
1531
|
+
</body>
|
1532
|
+
</html>
|