lib/fast_excel/binding/workbook.rb in fast_excel-0.2.6 vs lib/fast_excel/binding/workbook.rb in fast_excel-0.3.0
- old
+ new
@@ -4,11 +4,12 @@
# (Integer) Optimize the workbook to use constant memory for worksheets
# :tmpdir ::
# (String) Directory to use for the temporary files created by libxlsxwriter.
class WorkbookOptions < FFI::Struct
layout :constant_memory, :uchar,
- :tmpdir, :string
+ :tmpdir, :string,
+ :use_zip64, :uchar
end
# = Fields:
# :file ::
# (FFI::Pointer(*FILE))
@@ -166,22 +167,27 @@
end
class Workbook < FFI::Struct
include WorkbookWrappers
layout :file, :pointer,
+ :sheets, Sheets.ptr,
:worksheets, Worksheets.ptr,
+ :chartsheets, :pointer,
:worksheet_names, WorksheetNames.ptr,
+ :chartsheet_names, :pointer,
:charts, Charts.ptr,
:ordered_charts, Charts.ptr,
:formats, Formats.ptr,
:defined_names, DefinedNames.ptr,
:sst, Sst.ptr,
:properties, DocProperties.ptr,
:custom_properties, CustomProperties.ptr,
:filename, :pointer,
:options, WorkbookOptions.by_value,
:num_sheets, :uint16,
+ :num_worksheets, :uint16,
+ :num_chartsheets, :uint16,
:first_sheet, :uint16,
:active_sheet, :uint16,
:num_xf_formats, :uint16,
:num_format_count, :uint16,
:drawing_count, :uint16,
@@ -190,10 +196,12 @@
:fill_count, :uint16,
:optimize, :uchar,
:has_png, :uchar,
:has_jpeg, :uchar,
:has_bmp, :uchar,
- :used_xf_formats, HashTable.ptr
+ :used_xf_formats, HashTable.ptr,
+ :vba_project, :pointer,
+ :vba_codename, :pointer
end
attach_function :workbook_default_format, :workbook_default_format, [Workbook], Format
# @method workbook_new(filename)