From c8c63518b4d58ca8875f81602792050cbec318f2 Mon Sep 17 00:00:00 2001
From: Randy Morgan
+A colllection of images associated with this workbook. +
+-75 -76 -77 -78 -79 -80 -81 -82+82 +83 +84 +85 +86 +87 +88 +89 +90
# File 'lib/axlsx/workbook/workbook.rb', line 75 +# File 'lib/axlsx/workbook/workbook.rb', line 82 def initialize(={}) @styles = Styles.new @worksheets = SimpleTypedList.new Worksheet @drawings = SimpleTypedList.new Drawing @charts = SimpleTypedList.new Chart + @images = SimpleTypedList.new Pic self.date1904= [:date1904] unless [:date1904].nil? yield self if block_given? end @@ -718,10 +747,10 @@ Instance level access to the class variable 1904-67+74
# File 'lib/axlsx/workbook/workbook.rb', line 67 +# File 'lib/axlsx/workbook/workbook.rb', line 74 def date1904() @@date1904; end@@ -789,6 +818,81 @@ A colllection of drawings associated with this workbook+59 +60 +61+
# File 'lib/axlsx/workbook/workbook.rb', line 59 + +def drawings + @drawings +end ++
+ + - (SimpleTypedList) images (readonly) + + + +
+The recommended way to manage images is Worksheet#add_image +
++A colllection of images associated with this workbook +
+ + +
+ + + 52 53 54@@ -796,8 +900,8 @@ A colllection of drawings associated with this workbook |
# File 'lib/axlsx/workbook/workbook.rb', line 52 -def drawings - @drawings +def images + @images end |
@@ -846,17 +950,17 @@ The workbook relationships. This is managed automatically by the workbook
- # File 'lib/axlsx/workbook/workbook.rb', line 63 +# File 'lib/axlsx/workbook/workbook.rb', line 70 def relationships r = Relationships.new @@ -931,12 +1035,12 @@ The styles associated with this workbook-59 -60 -61+66 +67 +68 |
- # File 'lib/axlsx/workbook/workbook.rb', line 59 +# File 'lib/axlsx/workbook/workbook.rb', line 66 def styles @styles @@ -1067,10 +1171,10 @@ retrieves the date1904 attribute-93+101 |
- # File 'lib/axlsx/workbook/workbook.rb', line 93 +# File 'lib/axlsx/workbook/workbook.rb', line 101 def self.date1904() @@date1904; end@@ -1117,10 +1221,10 @@ Sets the date1904 attribute to the provided boolean-89+97 |
- # File 'lib/axlsx/workbook/workbook.rb', line 89 +# File 'lib/axlsx/workbook/workbook.rb', line 97 def self.date1904=(v) Axlsx::validate_boolean v; @@date1904 = v end@@ -1237,14 +1341,14 @@ The name of the worksheet.-99 -100 -101 -102 -103+107 +108 +109 +110 +111 |
- # File 'lib/axlsx/workbook/workbook.rb', line 99 +# File 'lib/axlsx/workbook/workbook.rb', line 107 def add_worksheet(={}) worksheet = Worksheet.new(self, ) @@ -1295,23 +1399,23 @@ Serializes the workbook document-116 -117 -118 -119 -120 -121 -122 -123 124 125 126 127 128 -129+129 +130 +131 +132 +133 +134 +135 +136 +137 |
- # File 'lib/axlsx/workbook/workbook.rb', line 116 +# File 'lib/axlsx/workbook/workbook.rb', line 124 def to_xml() add_worksheet unless worksheets.size > 0 @@ -1338,7 +1442,7 @@ Serializes the workbook document -- cgit v1.2.3 |