lib/axlsx/workbook/workbook.rb in axlsx-1.1.6 vs lib/axlsx/workbook/workbook.rb in axlsx-1.1.7
- old
+ new
@@ -19,11 +19,13 @@
require 'axlsx/workbook/worksheet/sheet_protection.rb'
require 'axlsx/workbook/worksheet/worksheet.rb'
require 'axlsx/workbook/shared_strings_table.rb'
require 'axlsx/workbook/worksheet/table.rb'
require 'axlsx/workbook/worksheet/data_validation.rb'
-
+require 'axlsx/workbook/worksheet/sheet_view.rb'
+require 'axlsx/workbook/worksheet/pane.rb'
+require 'axlsx/workbook/worksheet/selection.rb'
# The Workbook class is an xlsx workbook that manages worksheets, charts, drawings and styles.
# The following parts of the Office Open XML spreadsheet specification are not implimented in this version.
#
# bookViews
# calcPr
@@ -167,15 +169,17 @@
# retrieves the date1904 attribute
# @return [Boolean]
def self.date1904() @@date1904; end
# Indicates if the workbook should use autowidths or not.
- # this must be set before instantiating a worksheet to avoid Rmagix inclusion
+ # @note This gem no longer depends on RMagick for autowidth
+ # calculation. Thus the performance benefits of turning this off are
+ # marginal unless you are creating a very large sheet.
# @return [Boolean]
def use_autowidth() @use_autowidth; end
# see @use_autowidth
- def use_autowidth=(v) Axlsx::validate_boolean v; @use_autowidth = v; end
+ def use_autowidth=(v=true) Axlsx::validate_boolean v; @use_autowidth = v; end
# Adds a worksheet to this workbook
# @return [Worksheet]
# @option options [String] name The name of the worksheet.
# @option options [Hash] page_margins The page margins for the worksheet.