From c8c63518b4d58ca8875f81602792050cbec318f2 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Wed, 23 Nov 2011 21:45:54 +0900 Subject: Adding image support and some document clean up for .8 release --- doc/Axlsx/Workbook.html | 198 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 151 insertions(+), 47 deletions(-) (limited to 'doc/Axlsx/Workbook.html') diff --git a/doc/Axlsx/Workbook.html b/doc/Axlsx/Workbook.html index 47675817..bd6b1e44 100644 --- a/doc/Axlsx/Workbook.html +++ b/doc/Axlsx/Workbook.html @@ -237,6 +237,33 @@ A colllection of drawings associated with this workbook.

+ + + +
  • + + + - (SimpleTypedList) images + + + + + + + readonly + + + + + + + + +

    +A colllection of images associated with this workbook. +

    +
    +
  • @@ -571,23 +598,25 @@ the object that the method was called on
     
     
    -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(options={})
       @styles = Styles.new
       @worksheets = SimpleTypedList.new Worksheet
       @drawings = SimpleTypedList.new Drawing
       @charts = SimpleTypedList.new Chart
    +  @images = SimpleTypedList.new Pic
       self.date1904= options[:date1904] unless options[: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) + + + +

    +
    + +
    + Note: +

    +The recommended way to manage images is Worksheet#add_image +

    +
    +
    + +

    +A colllection of images associated with this workbook +

    + + +
    +
    +
    + +

    Returns:

    + + +

    See Also:

    + + +
    + + @@ -846,17 +950,17 @@ The workbook relationships. This is managed automatically by the workbook
     
     
    -63
    -64
    -65
    -66
    -67
    -68
    -69
    -70
    +70 +71 +72 +73 +74 +75 +76 +77
    +
    +
    +
     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
     
    -
    # 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(options={})
       worksheet = Worksheet.new(self, options)
    @@ -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