lib/fast_excel/binding/worksheet.rb in fast_excel-0.2.6 vs lib/fast_excel/binding/worksheet.rb in fast_excel-0.3.0
- old
+ new
@@ -591,11 +591,11 @@
def set_print_scale(scale)
Libxlsxwriter.worksheet_set_print_scale(self, scale)
end
# @return [nil]
- def right_to_left()
+ def set_right_to_left()
Libxlsxwriter.worksheet_right_to_left(self)
end
# @return [nil]
def hide_zero()
@@ -687,10 +687,11 @@
:table, TableRows.ptr,
:hyperlinks, TableRows.ptr,
:array, :pointer,
:merged_ranges, MergedRanges.ptr,
:selections, Selections.ptr,
+ :data_validations, :pointer, # TODO add real definition for lxw_data_validations
:image_data, ImageData.ptr,
:chart_data, ChartData.ptr,
:dim_rowmin, :uint32,
:dim_rowmax, :uint32,
:dim_colmin, :uint16,
@@ -703,10 +704,11 @@
:active, :uint8,
:selected, :uint8,
:hidden, :uint8,
:active_sheet, :pointer,
:first_sheet, :pointer,
+ :is_chartsheet, :uint8,
:col_options, :pointer,
:col_options_max, :uint16,
:col_sizes, :pointer,
:col_sizes_max, :uint16,
:col_formats, :pointer,
@@ -722,29 +724,33 @@
:page_start, :uint16,
:print_scale, :uint16,
:rel_count, :uint16,
:vertical_dpi, :uint16,
:zoom, :uint16,
- :filter_on, :uint8,
- :fit_page, :uint8,
- :hcenter, :uint8,
- :orientation, :uint8,
- :outline_changed, :uint8,
- :outline_on, :uint8,
- :page_order, :uint8,
- :page_setup_changed, :uint8,
- :page_view, :uint8,
- :paper_size, :uint8,
- :print_gridlines, :uint8,
- :print_headers, :uint8,
+ :filter_on, :uint8,
+ :fit_page, :uint8,
+ :hcenter, :uint8,
+ :orientation, :uint8,
+ :outline_changed, :uint8,
+ :outline_on, :uint8,
+ :outline_style, :uint8,
+ :outline_below, :uint8,
+ :outline_right, :uint8,
+ :page_order, :uint8,
+ :page_setup_changed, :uint8,
+ :page_view, :uint8,
+ :paper_size, :uint8,
+ :print_gridlines, :uint8,
+ :print_headers, :uint8,
:print_options_changed, :uint8,
- :right_to_left, :uint8,
- :screen_gridlines, :uint8,
- :show_zeros, :uint8,
- :vba_codename, :uint8,
- :vcenter, :uint8,
- :zoom_scale_normal, :uint8,
+ :right_to_left, :uint8,
+ :screen_gridlines, :uint8,
+ :show_zeros, :uint8,
+ :vcenter, :uint8,
+ :zoom_scale_normal, :uint8,
+ :num_validations, :uint8,
+ :vba_codename, :pointer,
:tab_color, :int,
:margin_left, :double,
:margin_right, :double,
:margin_top, :double,
:margin_bottom, :double,
@@ -889,17 +895,18 @@
# @scope class
enum :cell_types, [
:number_cell, 1,
:string_cell, 2,
:inline_string_cell, 3,
- :formula_cell, 4,
- :array_formula_cell, 5,
- :blank_cell, 6,
- :boolean_cell, 7,
- :hyperlink_url, 8,
- :hyperlink_internal, 9,
- :hyperlink_external, 10
+ :inline_rich_string_cell, 4,
+ :formula_cell, 5,
+ :array_formula_cell, 6,
+ :blank_cell, 7,
+ :boolean_cell, 8,
+ :hyperlink_url, 9,
+ :hyperlink_internal, 10,
+ :hyperlink_external, 11
]
# = Fields:
# :number ::
# (Float)
@@ -1550,6 +1557,16 @@
# (FFI::Pointer(**Worksheet))
class Worksheets < FFI::Struct
layout :stqh_first, Worksheet.ptr,
:stqh_last, :pointer
end
-end
\ No newline at end of file
+
+ class Sheet < FFI::Struct
+ layout :is_chartsheet, :uchar,
+ :list_pointers, :pointer
+ end
+
+ class Sheets < FFI::Struct
+ layout :stqh_first, Sheet.ptr,
+ :stqh_last, :pointer
+ end
+end