xlsxrb 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +157 -1
- data/README.md +81 -21
- data/lib/ruby_lsp/xlsxrb/completion_listener.rb +31 -61
- data/lib/xlsxrb/chart_builder.rb +619 -98
- data/lib/xlsxrb/dsl_helpers.rb +583 -15
- data/lib/xlsxrb/elements/cell.rb +265 -53
- data/lib/xlsxrb/elements/column.rb +95 -6
- data/lib/xlsxrb/elements/coordinate_access.rb +108 -10
- data/lib/xlsxrb/elements/image.rb +81 -15
- data/lib/xlsxrb/elements/metadata.rb +2733 -0
- data/lib/xlsxrb/elements/row.rb +130 -46
- data/lib/xlsxrb/elements/styles.rb +184 -76
- data/lib/xlsxrb/elements/types.rb +243 -7
- data/lib/xlsxrb/elements/workbook.rb +202 -65
- data/lib/xlsxrb/elements/worksheet.rb +728 -85
- data/lib/xlsxrb/elements.rb +1 -0
- data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +32 -3
- data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +194 -26
- data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +372 -18
- data/lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb +33 -14
- data/lib/xlsxrb/ooxml/reader.rb +92 -0
- data/lib/xlsxrb/ooxml/styles_parser.rb +29 -14
- data/lib/xlsxrb/ooxml/workbook_parser.rb +18 -3
- data/lib/xlsxrb/ooxml/workbook_writer.rb +351 -77
- data/lib/xlsxrb/ooxml/worksheet_parser.rb +18 -4
- data/lib/xlsxrb/ooxml/worksheet_writer.rb +349 -103
- data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +584 -443
- data/lib/xlsxrb/ooxml/writer/features_xml.rb +52 -14
- data/lib/xlsxrb/ooxml/writer/styles_xml.rb +42 -18
- data/lib/xlsxrb/ooxml/writer.rb +288 -35
- data/lib/xlsxrb/ooxml/zip_generator.rb +2 -0
- data/lib/xlsxrb/ooxml/zip_reader.rb +47 -10
- data/lib/xlsxrb/ooxml/zip_writer.rb +15 -5
- data/lib/xlsxrb/stream_row.rb +97 -18
- data/lib/xlsxrb/stream_sheet.rb +827 -157
- data/lib/xlsxrb/stream_writer.rb +2766 -375
- data/lib/xlsxrb/style_builder.rb +821 -105
- data/lib/xlsxrb/utils.rb +82 -57
- data/lib/xlsxrb/version.rb +1 -1
- data/lib/xlsxrb/workbook_builder.rb +542 -62
- data/lib/xlsxrb/worksheet_builder.rb +2279 -209
- data/lib/xlsxrb.rb +1539 -344
- data/sig/generated/xlsxrb/chart_builder.rbs +336 -79
- data/sig/generated/xlsxrb/dsl_helpers.rbs +137 -4
- data/sig/generated/xlsxrb/elements/cell.rbs +104 -15
- data/sig/generated/xlsxrb/elements/column.rbs +62 -3
- data/sig/generated/xlsxrb/elements/coordinate_access.rbs +49 -7
- data/sig/generated/xlsxrb/elements/image.rbs +30 -8
- data/sig/generated/xlsxrb/elements/metadata.rbs +1587 -0
- data/sig/generated/xlsxrb/elements/row.rbs +61 -21
- data/sig/generated/xlsxrb/elements/styles.rbs +96 -58
- data/sig/generated/xlsxrb/elements/types.rbs +29 -0
- data/sig/generated/xlsxrb/elements/workbook.rbs +92 -44
- data/sig/generated/xlsxrb/elements/worksheet.rbs +259 -38
- data/sig/generated/xlsxrb/ooxml/reader/listeners/core_listeners.rbs +2 -0
- data/sig/generated/xlsxrb/ooxml/reader/listeners/drawing_listeners.rbs +74 -2
- data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +97 -0
- data/sig/generated/xlsxrb/ooxml/reader/listeners/style_listeners.rbs +3 -0
- data/sig/generated/xlsxrb/ooxml/reader.rbs +20 -0
- data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +3 -0
- data/sig/generated/xlsxrb/ooxml/workbook_parser.rbs +8 -0
- data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +8 -4
- data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +1 -1
- data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +12 -1
- data/sig/generated/xlsxrb/ooxml/writer/drawing_xml.rbs +16 -0
- data/sig/generated/xlsxrb/ooxml/writer.rbs +45 -8
- data/sig/generated/xlsxrb/ooxml/zip_generator.rbs +2 -0
- data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +2 -2
- data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +8 -2
- data/sig/generated/xlsxrb/stream_row.rbs +48 -14
- data/sig/generated/xlsxrb/stream_sheet.rbs +398 -89
- data/sig/generated/xlsxrb/stream_writer.rbs +1601 -219
- data/sig/generated/xlsxrb/style_builder.rbs +403 -75
- data/sig/generated/xlsxrb/utils.rbs +49 -13
- data/sig/generated/xlsxrb/workbook_builder.rbs +308 -26
- data/sig/generated/xlsxrb/worksheet_builder.rbs +1142 -96
- data/sig/generated/xlsxrb.rbs +321 -52
- metadata +3 -1
|
@@ -5,14 +5,32 @@ module Xlsxrb
|
|
|
5
5
|
#
|
|
6
6
|
# @api public
|
|
7
7
|
class WorksheetBuilder
|
|
8
|
+
OMITTED: untyped
|
|
9
|
+
|
|
8
10
|
# @param name [String] The worksheet name.
|
|
9
11
|
# @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel limits.
|
|
10
12
|
# @param state [Symbol] Sheet visibility state (:visible, :hidden, or :very_hidden).
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
+
# @param escape_formulas [Boolean] Whether to treat strings starting with formula prefixes as plain text.
|
|
14
|
+
# : (String name, ?strict_excel_mode: bool, ?state: Symbol, ?escape_formulas: bool) -> void
|
|
15
|
+
def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol, ?escape_formulas: bool) -> void
|
|
13
16
|
|
|
17
|
+
# : String
|
|
14
18
|
attr_reader name: untyped
|
|
15
19
|
|
|
20
|
+
# : Array[Hash[Symbol, untyped]]
|
|
21
|
+
attr_reader defined_names: untyped
|
|
22
|
+
|
|
23
|
+
# @return [Boolean] Whether to treat strings starting with formula prefixes as plain text.
|
|
24
|
+
# : bool
|
|
25
|
+
attr_accessor escape_formulas: untyped
|
|
26
|
+
|
|
27
|
+
# Returns whether formula escaping is enabled.
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean]
|
|
30
|
+
# @api public
|
|
31
|
+
# : () -> bool
|
|
32
|
+
def escape_formulas?: () -> bool
|
|
33
|
+
|
|
16
34
|
# Defines or configures a named cell style.
|
|
17
35
|
#
|
|
18
36
|
# @example Define a bold header style
|
|
@@ -27,28 +45,56 @@ module Xlsxrb
|
|
|
27
45
|
# : (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
|
|
28
46
|
def style: (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
|
|
29
47
|
|
|
48
|
+
# Creates an {Elements::Formula} object.
|
|
49
|
+
# @api public
|
|
50
|
+
# : (String expression, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
|
|
51
|
+
def formula: (String expression, ?cached_value: String | Numeric | bool | Elements::CellError | nil, ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
|
|
52
|
+
|
|
53
|
+
# Creates an array or dynamic array {Elements::Formula} object.
|
|
54
|
+
# @api public
|
|
55
|
+
# : (String expression, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), **untyped attrs) -> Elements::Formula
|
|
56
|
+
def array_formula: (String expression, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil, **untyped attrs) -> Elements::Formula
|
|
57
|
+
|
|
58
|
+
# Creates a shared formula {Elements::Formula} object.
|
|
59
|
+
# @api public
|
|
60
|
+
# : (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil)) -> Elements::Formula
|
|
61
|
+
def shared_formula: (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil) -> Elements::Formula
|
|
62
|
+
|
|
63
|
+
# Creates an {Elements::RichText} object.
|
|
64
|
+
# @api public
|
|
65
|
+
# : (*(Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped) runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
|
|
66
|
+
def rich_text: (*Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
|
|
67
|
+
|
|
68
|
+
# Creates or returns an {Elements::CellError} object.
|
|
69
|
+
# @api public
|
|
70
|
+
# : (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
71
|
+
def cell_error: (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
72
|
+
|
|
30
73
|
# Appends a row of cells to the worksheet.
|
|
31
74
|
#
|
|
32
75
|
# @example Add a row with values and array styles
|
|
33
|
-
# sheet.row(["ID", "Name", "Total"],
|
|
76
|
+
# sheet.row(["ID", "Name", "Total"], cell_styles: [:header, :header, :header])
|
|
34
77
|
#
|
|
35
78
|
# @example Add a row with a hash of column keys
|
|
36
79
|
# sheet.row({ "A" => "Invoice", "C" => 12345 })
|
|
37
80
|
#
|
|
38
81
|
# @param values [Array<Object>, Hash{String, Integer => Object}] The cell values.
|
|
39
|
-
# @param
|
|
82
|
+
# @param cell_styles [String, Symbol, Array<String | Symbol>, Hash, nil] Style names or inline styles to apply to each cell.
|
|
83
|
+
# @param row_style [Integer, Symbol, String, Hash, nil] Row style format or index.
|
|
40
84
|
# @param height [Float, Integer, nil] The row height in points (0 to 409).
|
|
41
85
|
# @param hidden [Boolean] Whether the row is hidden.
|
|
42
86
|
# @param custom_height [Boolean] Whether custom row height is enforced.
|
|
43
87
|
# @param outline_level [Integer, nil] Grouping/outline hierarchy level.
|
|
44
88
|
# @param collapsed [Boolean] Whether the row is collapsed.
|
|
45
|
-
# @param
|
|
89
|
+
# @param styles [String, Symbol, Array<String | Symbol>, Hash, nil] Deprecated. Use cell_styles: instead.
|
|
90
|
+
# @param style [Integer, Symbol, String, Hash, nil] Deprecated. Use row_style: instead.
|
|
46
91
|
# @return [void]
|
|
47
92
|
# @raise [ArgumentError] If limits are exceeded when strict_excel_mode is enabled.
|
|
48
93
|
# @api public
|
|
49
|
-
# : (Array[untyped] | Hash[untyped, untyped] values, ?styles: untyped, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil
|
|
50
|
-
def row: (Array[untyped] | Hash[untyped, untyped] values, ?styles: untyped, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil
|
|
94
|
+
# : (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?styles: untyped, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
|
|
95
|
+
def row: (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?styles: untyped, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
|
|
51
96
|
|
|
97
|
+
# @deprecated Use {#row} instead. Will be removed in 0.2.0 (available via xlsxrb-adapters).
|
|
52
98
|
alias add_row row
|
|
53
99
|
|
|
54
100
|
# Appends a row to the worksheet and returns self for chaining.
|
|
@@ -62,6 +108,23 @@ module Xlsxrb
|
|
|
62
108
|
# : (Array[untyped] | Hash[untyped, untyped] values) -> self
|
|
63
109
|
def <<: (Array[untyped] | Hash[untyped, untyped] values) -> self
|
|
64
110
|
|
|
111
|
+
# Advances the row cursor by count without writing empty row elements.
|
|
112
|
+
#
|
|
113
|
+
# @example Skip one row
|
|
114
|
+
# sheet.skip_row
|
|
115
|
+
#
|
|
116
|
+
# @example Skip multiple rows
|
|
117
|
+
# sheet.skip_rows(3)
|
|
118
|
+
#
|
|
119
|
+
# @param count [Integer] Number of rows to skip (must be >= 1).
|
|
120
|
+
# @return [void]
|
|
121
|
+
# @api public
|
|
122
|
+
# : (?Integer count) -> void
|
|
123
|
+
def skip_rows: (?Integer count) -> void
|
|
124
|
+
|
|
125
|
+
# @deprecated Use {#skip_rows} instead. Will be removed in 0.2.0.
|
|
126
|
+
alias skip_row skip_rows
|
|
127
|
+
|
|
65
128
|
# Sets column formatting and properties for one or multiple columns.
|
|
66
129
|
#
|
|
67
130
|
# @example Set width for column A
|
|
@@ -72,22 +135,112 @@ module Xlsxrb
|
|
|
72
135
|
#
|
|
73
136
|
# @param index [Integer, String, Range, Array] Column index (0-based), letter ("A"), or range ("A".."D").
|
|
74
137
|
# @param width [Float, Integer, nil] Column width in character units (0 to 255).
|
|
138
|
+
# @param collapsed [Boolean] Whether the column is collapsed.
|
|
75
139
|
# @param style [Integer, Symbol, String, nil] Column style format or index.
|
|
76
140
|
# @return [void]
|
|
77
141
|
# @raise [ArgumentError] If width exceeds 255 in strict mode.
|
|
78
142
|
# @api public
|
|
79
|
-
# : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?style: (Integer | Symbol | String)?) -> void
|
|
80
|
-
def column: (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?style: (Integer | Symbol | String)?) -> void
|
|
143
|
+
# : (Integer | String | Symbol | Range[Integer | String | Symbol] | Array[Integer | String | Symbol] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?best_fit: bool) -> void
|
|
144
|
+
def column: (Integer | String | Symbol | Range[Integer | String | Symbol] | Array[Integer | String | Symbol] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?best_fit: bool) -> void
|
|
145
|
+
|
|
146
|
+
# Returns column configurations defined for this worksheet.
|
|
147
|
+
#
|
|
148
|
+
# @return [Array<Elements::Column>]
|
|
149
|
+
# @api public
|
|
150
|
+
# : () -> Array[Elements::Column]
|
|
151
|
+
def columns: () -> Array[Elements::Column]
|
|
152
|
+
|
|
153
|
+
# Groups multiple columns together with outline hierarchy.
|
|
154
|
+
#
|
|
155
|
+
# @example Group columns B through D
|
|
156
|
+
# sheet.group_columns("B".."D", level: 1)
|
|
157
|
+
#
|
|
158
|
+
# @example Group columns 1 through 3 and collapse
|
|
159
|
+
# sheet.group_columns(1..3, level: 1, collapsed: true)
|
|
160
|
+
#
|
|
161
|
+
# @param index [Integer, String, Range, Array] Column index (0-based), letter, range, or array.
|
|
162
|
+
# @param level [Integer] Grouping outline level (1 to 7).
|
|
163
|
+
# @param collapsed [Boolean] Whether the group is collapsed.
|
|
164
|
+
# @param hidden [Boolean] Whether the columns are hidden.
|
|
165
|
+
# @param width [Float, Integer, nil] Optional column width.
|
|
166
|
+
# @param style [Integer, Symbol, String, nil] Optional column style.
|
|
167
|
+
# @return [void]
|
|
168
|
+
# @api public
|
|
169
|
+
# : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
|
|
170
|
+
def group_columns: (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
|
|
171
|
+
|
|
172
|
+
# @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
|
|
173
|
+
alias group_column group_columns
|
|
174
|
+
|
|
175
|
+
# @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
|
|
176
|
+
alias group_cols group_columns
|
|
177
|
+
|
|
178
|
+
# @deprecated Use {#group_columns} instead. Will be removed in 0.2.0.
|
|
179
|
+
alias group_col group_columns
|
|
180
|
+
|
|
181
|
+
# Groups multiple rows with outline hierarchy, either by range or with a block.
|
|
182
|
+
#
|
|
183
|
+
# @example Group rows with a block
|
|
184
|
+
# sheet.group_rows(level: 1, collapsed: true) do
|
|
185
|
+
# sheet.row(["Subtotal Item 1"])
|
|
186
|
+
# sheet.row(["Subtotal Item 2"])
|
|
187
|
+
# end
|
|
188
|
+
#
|
|
189
|
+
# @example Group rows by 0-based range
|
|
190
|
+
# sheet.group_rows(1..3, level: 1, collapsed: true)
|
|
191
|
+
#
|
|
192
|
+
# @param rows [Range, Array, Integer, nil] 0-based row index or range.
|
|
193
|
+
# @param level [Integer] Grouping outline level (1 to 7).
|
|
194
|
+
# @param collapsed [Boolean] Whether the group is collapsed.
|
|
195
|
+
# @param hidden [Boolean] Whether the rows are hidden.
|
|
196
|
+
# @yield Optional block executed with active group outline settings.
|
|
197
|
+
# @return [void]
|
|
198
|
+
# @api public
|
|
199
|
+
# : (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
|
|
200
|
+
def group_rows: (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
|
|
201
|
+
|
|
202
|
+
# @deprecated Use {#group_rows} instead. Will be removed in 0.2.0.
|
|
203
|
+
alias group_row group_rows
|
|
204
|
+
|
|
205
|
+
# Configures worksheet-level outline and grouping view properties.
|
|
206
|
+
#
|
|
207
|
+
# @example Show summary row below detail rows
|
|
208
|
+
# sheet.outline_properties(summary_below: true, summary_right: true)
|
|
209
|
+
#
|
|
210
|
+
# @param summary_below [Boolean, nil] Flag indicating if summary rows appear below detail rows.
|
|
211
|
+
# @param summary_right [Boolean, nil] Flag indicating if summary columns appear to the right of detail columns.
|
|
212
|
+
# @param show_outline_symbols [Boolean, nil] Flag indicating whether outline symbols are visible.
|
|
213
|
+
# @param show_symbols [Boolean, nil] Deprecated alias for show_outline_symbols.
|
|
214
|
+
# @param apply_styles [Boolean, nil] Flag indicating whether automatic styles apply to outlines.
|
|
215
|
+
# @param opts [Hash] Additional options.
|
|
216
|
+
# @return [Hash<Symbol, untyped>, void]
|
|
217
|
+
# @api public
|
|
218
|
+
# : (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?show_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> (Hash[Symbol, untyped] | void)
|
|
219
|
+
def outline_properties: (?summary_below: untyped, ?summary_right: untyped, ?show_outline_symbols: untyped, ?show_symbols: untyped, ?apply_styles: untyped, **untyped opts) -> untyped
|
|
220
|
+
|
|
221
|
+
# @deprecated Use {#outline_properties} instead. Will be removed in 0.2.0.
|
|
222
|
+
alias outline_pr outline_properties
|
|
223
|
+
|
|
224
|
+
# Sets worksheet outline and grouping view properties.
|
|
225
|
+
#
|
|
226
|
+
# @param opts [Hash] Outline properties.
|
|
227
|
+
# @return [void]
|
|
228
|
+
# @api public
|
|
229
|
+
# : (Hash[Symbol, untyped] opts) -> void
|
|
230
|
+
def outline_properties=: (Hash[Symbol, untyped] opts) -> void
|
|
231
|
+
|
|
232
|
+
alias outline_pr= outline_properties=
|
|
81
233
|
|
|
82
234
|
# Adds a chart to the worksheet.
|
|
83
235
|
#
|
|
236
|
+
# @param type [Symbol, String, nil] Optional chart type (e.g. :bar, :line).
|
|
84
237
|
# @param options [Hash] Chart configuration options.
|
|
85
238
|
# @yield [builder]
|
|
86
239
|
# @yieldparam builder [Xlsxrb::ChartBuilder]
|
|
87
240
|
# @return [void]
|
|
88
241
|
# @api public
|
|
89
|
-
# : (**untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
90
|
-
def chart: (**untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
242
|
+
# : (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
243
|
+
def chart: (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
91
244
|
|
|
92
245
|
# Adds a hyperlink to a cell.
|
|
93
246
|
#
|
|
@@ -103,49 +256,73 @@ module Xlsxrb
|
|
|
103
256
|
|
|
104
257
|
# Sets an auto-filter range on the sheet.
|
|
105
258
|
#
|
|
106
|
-
# @param range [String] The cell range (e.g. "A1:E100").
|
|
107
|
-
# @return [
|
|
259
|
+
# @param range [String, nil] The cell range (e.g. "A1:E100").
|
|
260
|
+
# @return [void]
|
|
108
261
|
# @api public
|
|
109
|
-
# : (String range) ->
|
|
110
|
-
def auto_filter: (String range) ->
|
|
262
|
+
# : (String? range) -> void
|
|
263
|
+
def auto_filter: (String? range) -> void
|
|
264
|
+
|
|
265
|
+
# Sets the auto-filter range for the worksheet.
|
|
266
|
+
#
|
|
267
|
+
# @param range [String, nil] Cell range (e.g. "A1:E100").
|
|
268
|
+
# @return [String, nil]
|
|
269
|
+
# @api public
|
|
270
|
+
# : (String? range) -> String?
|
|
271
|
+
def auto_filter=: (String? range) -> String?
|
|
111
272
|
|
|
112
273
|
# Configures filtering rules on a specific column of an auto-filter.
|
|
113
274
|
#
|
|
114
|
-
# @param col_id [Integer] 0-based column index relative to filter range.
|
|
275
|
+
# @param col_id [Integer, String, Symbol] 0-based column index relative to filter range or column letter ("A", :B).
|
|
115
276
|
# @param filter [Hash] Filter criteria (e.g. values, custom filters).
|
|
116
|
-
# @return [
|
|
277
|
+
# @return [void]
|
|
117
278
|
# @api public
|
|
118
|
-
# : (Integer col_id,
|
|
119
|
-
def filter_column: (Integer col_id,
|
|
279
|
+
# : (Integer | String | Symbol col_id, untyped filter) -> void
|
|
280
|
+
def filter_column: (Integer | String | Symbol col_id, untyped filter) -> void
|
|
120
281
|
|
|
121
282
|
# Configures column sort state for the sheet.
|
|
122
283
|
#
|
|
123
284
|
# @param ref [String] The sorted range.
|
|
124
285
|
# @param sort_conditions [Array<Hash>] List of sort condition definitions.
|
|
125
286
|
# @param opts [Hash] Additional sort state options.
|
|
126
|
-
# @return [Hash]
|
|
287
|
+
# @return [Elements::SortState, Hash<Symbol, untyped>, nil, void]
|
|
288
|
+
# @api public
|
|
289
|
+
# : (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, **untyped opts) -> (untyped | void)
|
|
290
|
+
def sort_state: (?untyped ref, ?untyped sort_conditions, **untyped opts) -> untyped
|
|
291
|
+
|
|
292
|
+
# Sets column sort state for the sheet.
|
|
293
|
+
#
|
|
294
|
+
# @param opts [Elements::SortState, Hash, nil] Sort state options.
|
|
295
|
+
# @return [void]
|
|
127
296
|
# @api public
|
|
128
|
-
# : (
|
|
129
|
-
def sort_state
|
|
297
|
+
# : (untyped opts) -> void
|
|
298
|
+
def sort_state=: (untyped opts) -> void
|
|
130
299
|
|
|
131
|
-
# Adds a data validation rule to a cell or
|
|
300
|
+
# Adds a data validation rule to a cell, range, or coordinates.
|
|
132
301
|
#
|
|
133
302
|
# @param sqref [String, nil] Target cell or range reference (e.g. "B2:B100").
|
|
134
|
-
# @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"').
|
|
303
|
+
# @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"', or coordinate options `columns:`, `rows:`, `except_rows:`, `list:`, `in:`).
|
|
135
304
|
# @yield [data_validation_builder] Optional configuration block.
|
|
136
305
|
# @return [void]
|
|
137
306
|
# @api public
|
|
138
307
|
# : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
308
|
+
def data_validation: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
309
|
+
|
|
310
|
+
# @deprecated Use {#data_validation} instead.
|
|
311
|
+
# : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
139
312
|
def validate_data: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
140
313
|
|
|
141
314
|
# Adds a conditional formatting rule to a cell range.
|
|
315
|
+
# Supports block configuration via {ConditionalFormatBuilder} and coordinate targeting (:columns, :rows).
|
|
142
316
|
#
|
|
143
|
-
# @param sqref [String] Target cell range reference (e.g. "C2:C50").
|
|
317
|
+
# @param sqref [String, nil] Target cell range reference (e.g. "C2:C50").
|
|
144
318
|
# @param opts [Hash] Rule options (e.g. type: :cellIs, operator: :greaterThan, formula: "100").
|
|
319
|
+
# @option opts [Hash] :dxf Hierarchical differential format specification (e.g. `dxf: { font: { bold: false }, fill: { pattern: "none" } }`).
|
|
320
|
+
# @option opts [Integer] :format_id Pre-registered differential format index (dxfId).
|
|
321
|
+
# @yield [conditional_format_builder] Optional block for configuration.
|
|
145
322
|
# @return [void]
|
|
146
323
|
# @api public
|
|
147
|
-
# : (String sqref, **untyped opts) -> void
|
|
148
|
-
def conditional_format: (String sqref, **untyped opts) -> void
|
|
324
|
+
# : (?String? sqref, **untyped opts) ?{ (ConditionalFormatBuilder) -> void } -> void
|
|
325
|
+
def conditional_format: (?String? sqref, **untyped opts) ?{ (ConditionalFormatBuilder) -> void } -> void
|
|
149
326
|
|
|
150
327
|
# Adds an Excel Table (ListObject) to the sheet.
|
|
151
328
|
#
|
|
@@ -171,10 +348,14 @@ module Xlsxrb
|
|
|
171
348
|
# @param name [String, nil] Pivot table name.
|
|
172
349
|
# @param field_names [Array<String>, nil] Custom field display names.
|
|
173
350
|
# @param items [Array, nil] Item configuration.
|
|
351
|
+
# @param column_fields [Array<String, Integer>] Field names or indices for columns.
|
|
352
|
+
# @param col_fields [Array<String, Integer>] Deprecated alias for column_fields.
|
|
353
|
+
# @param ref [String] Target cell for pivot table top-left corner (e.g. "E1").
|
|
354
|
+
# @param dest_ref [String] Deprecated alias for ref.
|
|
174
355
|
# @return [void]
|
|
175
356
|
# @api public
|
|
176
|
-
# : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?col_fields: Array[String | Integer]
|
|
177
|
-
def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?col_fields: Array[String | Integer]
|
|
357
|
+
# : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?col_fields: Array[String | Integer]?, ?ref: String?, ?dest_ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
|
|
358
|
+
def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?col_fields: Array[String | Integer]?, ?ref: String?, ?dest_ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Array[untyped]?, **untyped opts) -> void
|
|
178
359
|
|
|
179
360
|
# Adds a cell comment / note.
|
|
180
361
|
#
|
|
@@ -186,6 +367,25 @@ module Xlsxrb
|
|
|
186
367
|
# : (String | Integer cell, String text, ?author: ::String) -> void
|
|
187
368
|
def comment: (String | Integer cell, String text, ?author: ::String) -> void
|
|
188
369
|
|
|
370
|
+
# Adds a threaded comment to a cell.
|
|
371
|
+
#
|
|
372
|
+
# @param cell [String, Integer] Cell reference (e.g. "B2").
|
|
373
|
+
# @param text [String] The comment text.
|
|
374
|
+
# @param author [String] Author display name.
|
|
375
|
+
# @param timestamp [String, Time, nil] Optional ISO 8601 timestamp.
|
|
376
|
+
# @param id [String, nil] Optional GUID for this comment.
|
|
377
|
+
# @param parent_id [String, nil] Optional parent comment GUID for replies.
|
|
378
|
+
# @param done [Boolean, nil] Optional resolved flag.
|
|
379
|
+
# @param user_id [String, nil] Optional user ID.
|
|
380
|
+
# @param provider_id [String, nil] Optional provider ID.
|
|
381
|
+
# @return [void]
|
|
382
|
+
# @api public
|
|
383
|
+
# : (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
|
|
384
|
+
def threaded_comment: (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
|
|
385
|
+
|
|
386
|
+
# @deprecated Use {#threaded_comment} instead. Will be removed in 0.2.0.
|
|
387
|
+
alias add_threaded_comment threaded_comment
|
|
388
|
+
|
|
189
389
|
# Adds a sparkline group to the sheet.
|
|
190
390
|
#
|
|
191
391
|
# @param sparklines [Array<Hash>] List of { data_ref:, location_ref: } items.
|
|
@@ -207,6 +407,7 @@ module Xlsxrb
|
|
|
207
407
|
# @example Add a win/loss sparkline
|
|
208
408
|
# sheet.add_sparkline(location: "F3", range: "A3:E3", type: :win_loss)
|
|
209
409
|
#
|
|
410
|
+
# @deprecated Use {#sparkline_group} instead. Will be removed in 0.2.0.
|
|
210
411
|
# @param location [String, nil] Target cell for the sparkline (e.g. "F1").
|
|
211
412
|
# @param range [String, nil] Data range for the sparkline (e.g. "A1:E1").
|
|
212
413
|
# @param type [Symbol, String, nil] Sparkline type (:line, :column, :win_loss / :stacked).
|
|
@@ -221,9 +422,7 @@ module Xlsxrb
|
|
|
221
422
|
# @example Merge with string range
|
|
222
423
|
# sheet.merge("A1:C1")
|
|
223
424
|
#
|
|
224
|
-
# @
|
|
225
|
-
# sheet.merge(row_start: 0, row_end: 2, col_start: "A", col_end: "C")
|
|
226
|
-
#
|
|
425
|
+
# @deprecated Passing coordinate keyword arguments (row:, col_start:, col_end:, row_start:, row_end:) is deprecated and will be removed in 0.2.0. Use a range string (e.g. merge("A1:C1")) instead.
|
|
227
426
|
# @param range [String, Hash, nil] Cell range (e.g. "A1:B2") or hash of coordinates.
|
|
228
427
|
# @param row [Integer, nil] Single row index.
|
|
229
428
|
# @param col_start [Integer, String, nil] Starting column.
|
|
@@ -235,36 +434,70 @@ module Xlsxrb
|
|
|
235
434
|
# : (?(String | Hash[Symbol, Integer | String])? range, ?row: Integer?, ?col_start: (Integer | String)?, ?col_end: (Integer | String)?, ?row_start: Integer?, ?row_end: Integer?) -> void
|
|
236
435
|
def merge: (?(String | Hash[Symbol, Integer | String])? range, ?row: Integer?, ?col_start: (Integer | String)?, ?col_end: (Integer | String)?, ?row_start: Integer?, ?row_end: Integer?) -> void
|
|
237
436
|
|
|
238
|
-
# Freezes window panes at the specified row and column.
|
|
437
|
+
# Freezes window panes at the specified row and column, or queries freeze pane settings.
|
|
239
438
|
#
|
|
240
|
-
# @param row [Integer] Number of rows to freeze from top (0-based split position).
|
|
241
|
-
# @param
|
|
439
|
+
# @param row [Integer, nil] Number of rows to freeze from top (0-based split position).
|
|
440
|
+
# @param column [Integer, String, nil] Number of columns to freeze from left (0-based or letter).
|
|
441
|
+
# @param col [Integer, String, nil] Deprecated alias for column.
|
|
442
|
+
# @return [Elements::FreezePane, Hash<Symbol, untyped>, nil, void]
|
|
443
|
+
# @api public
|
|
444
|
+
# : (?row: Integer | nil, ?column: (Integer | String)?, ?col: (Integer | String)?) -> (untyped | void)
|
|
445
|
+
def freeze_pane: (?row: untyped, ?column: untyped, ?col: untyped) -> untyped
|
|
446
|
+
|
|
447
|
+
# Sets or clears freeze pane configuration.
|
|
448
|
+
#
|
|
449
|
+
# @param opts [Elements::FreezePane, Hash, nil] Freeze pane options.
|
|
242
450
|
# @return [void]
|
|
243
451
|
# @api public
|
|
244
|
-
# : (
|
|
245
|
-
def freeze_pane
|
|
452
|
+
# : (untyped opts) -> void
|
|
453
|
+
def freeze_pane=: (untyped opts) -> void
|
|
246
454
|
|
|
247
|
-
# Splits window panes without freezing.
|
|
455
|
+
# Splits window panes without freezing or queries split pane settings.
|
|
248
456
|
#
|
|
249
|
-
# @param x_split [Integer] Horizontal split offset in points.
|
|
250
|
-
# @param y_split [Integer] Vertical split offset in points.
|
|
457
|
+
# @param x_split [Integer, nil] Horizontal split offset in points.
|
|
458
|
+
# @param y_split [Integer, nil] Vertical split offset in points.
|
|
251
459
|
# @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
|
|
460
|
+
# @param active_pane [String, Symbol, nil] Active pane identifier.
|
|
461
|
+
# @param state [String, Symbol, nil] Split state.
|
|
462
|
+
# @return [Elements::SplitPane, Hash<Symbol, untyped>, nil, void]
|
|
463
|
+
# @api public
|
|
464
|
+
# : (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?, ?state: (String | Symbol)?) -> (untyped | void)
|
|
465
|
+
def split_pane: (?x_split: untyped, ?y_split: untyped, ?top_left_cell: untyped, ?active_pane: untyped, ?state: untyped) -> untyped
|
|
466
|
+
|
|
467
|
+
# Sets or clears split pane configuration.
|
|
468
|
+
#
|
|
469
|
+
# @param opts [Elements::SplitPane, Hash, nil] Split pane options.
|
|
252
470
|
# @return [void]
|
|
253
471
|
# @api public
|
|
254
|
-
# : (
|
|
255
|
-
def split_pane
|
|
472
|
+
# : (untyped opts) -> void
|
|
473
|
+
def split_pane=: (untyped opts) -> void
|
|
256
474
|
|
|
257
|
-
# Sets the active cell and selection area
|
|
475
|
+
# Sets or queries the active cell and selection area (<selection>).
|
|
258
476
|
#
|
|
259
|
-
# @param active_cell [String] Active cell reference (e.g. "A1").
|
|
477
|
+
# @param active_cell [String, nil] Active cell reference (e.g. "A1") or range (e.g. "A1:D10").
|
|
260
478
|
# @param sqref [String, nil] Selected range reference (e.g. "A1:D10").
|
|
261
479
|
# @param pane [String, Symbol, nil] Target pane (:topLeft, :topRight, :bottomLeft, :bottomRight).
|
|
480
|
+
# @return [Elements::Selection, Array<Elements::Selection>, Hash<Symbol, untyped>, nil, void]
|
|
481
|
+
# @api public
|
|
482
|
+
# : (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> (untyped | void)
|
|
483
|
+
def selection: (?untyped active_cell, ?sqref: untyped, ?pane: untyped) -> untyped
|
|
484
|
+
|
|
485
|
+
# Sets or clears the selection configuration.
|
|
486
|
+
#
|
|
487
|
+
# @param opts [Elements::Selection, Array<Elements::Selection, Hash>, Hash, nil]
|
|
262
488
|
# @return [void]
|
|
263
489
|
# @api public
|
|
490
|
+
# : (untyped opts) -> void
|
|
491
|
+
def selection=: (untyped opts) -> void
|
|
492
|
+
|
|
493
|
+
# @deprecated Use {#selection} instead.
|
|
264
494
|
# : (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
|
|
265
495
|
def select_cell: (String active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
|
|
266
496
|
|
|
267
|
-
#
|
|
497
|
+
# Configures or queries page margins in inches for printing (<pageMargins>).
|
|
498
|
+
#
|
|
499
|
+
# When called with no arguments, returns the page margins value object or hash.
|
|
500
|
+
# When called with arguments, configures page margins and returns nil.
|
|
268
501
|
#
|
|
269
502
|
# @param left [Float, nil] Left margin.
|
|
270
503
|
# @param right [Float, nil] Right margin.
|
|
@@ -272,35 +505,123 @@ module Xlsxrb
|
|
|
272
505
|
# @param bottom [Float, nil] Bottom margin.
|
|
273
506
|
# @param header [Float, nil] Header margin.
|
|
274
507
|
# @param footer [Float, nil] Footer margin.
|
|
508
|
+
# @return [Elements::PageMargins, Hash<Symbol, untyped>, nil, void]
|
|
509
|
+
# @api public
|
|
510
|
+
# : (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> (untyped | void)
|
|
511
|
+
def page_margins: (?left: untyped, ?right: untyped, ?top: untyped, ?bottom: untyped, ?header: untyped, ?footer: untyped) -> untyped
|
|
512
|
+
|
|
513
|
+
# Sets or clears page margins configuration.
|
|
514
|
+
#
|
|
515
|
+
# @param opts [Hash, Elements::PageMargins, nil]
|
|
275
516
|
# @return [void]
|
|
276
517
|
# @api public
|
|
277
|
-
# : (
|
|
278
|
-
def page_margins
|
|
518
|
+
# : (untyped opts) -> void
|
|
519
|
+
def page_margins=: (untyped opts) -> void
|
|
279
520
|
|
|
280
|
-
#
|
|
521
|
+
# Configures or queries page setup configuration (<pageSetup>).
|
|
522
|
+
#
|
|
523
|
+
# When called with no arguments, returns the page setup value object or hash.
|
|
524
|
+
# When called with keyword arguments, updates page setup and returns nil.
|
|
281
525
|
#
|
|
282
526
|
# @param opts [Hash] Page setup options (e.g. orientation: :landscape, paper_size: 9).
|
|
527
|
+
# @return [Elements::PageSetup, Hash<Symbol, untyped>, void]
|
|
528
|
+
# @api public
|
|
529
|
+
# : (**untyped opts) -> (untyped | void)
|
|
530
|
+
def page_setup: (**untyped opts) -> untyped
|
|
531
|
+
|
|
532
|
+
# Sets page setup configuration.
|
|
533
|
+
#
|
|
534
|
+
# @param opts [Hash, Elements::PageSetup]
|
|
283
535
|
# @return [void]
|
|
284
536
|
# @api public
|
|
285
|
-
# : (
|
|
286
|
-
def page_setup
|
|
537
|
+
# : (untyped opts) -> void
|
|
538
|
+
def page_setup=: (untyped opts) -> void
|
|
539
|
+
|
|
540
|
+
# Configures whether page setup fits content to page width/height.
|
|
541
|
+
# When enabled, optionally sets fit_to_width and/or fit_to_height on page_setup.
|
|
542
|
+
#
|
|
543
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fit_to_page=} or {#page_setup} with :fit_to_width/:fit_to_height instead.
|
|
544
|
+
# @param enabled [Boolean, nil] Whether to fit to page.
|
|
545
|
+
# @param width [Integer, nil] Pages wide to fit to.
|
|
546
|
+
# @param height [Integer, nil] Pages tall to fit to.
|
|
547
|
+
# @return [Boolean, void]
|
|
548
|
+
# @api public
|
|
549
|
+
# : (?bool? enabled, ?width: Integer?, ?height: Integer?) -> (bool | void)
|
|
550
|
+
def fit_to_page: (?untyped enabled, ?width: untyped, ?height: untyped) -> untyped
|
|
551
|
+
|
|
552
|
+
# @deprecated Use {#fit_to_page} instead. Will be removed in 0.2.0.
|
|
553
|
+
# @return [Boolean]
|
|
554
|
+
# @api public
|
|
555
|
+
# : () -> bool
|
|
556
|
+
def fit_to_page?: () -> bool
|
|
287
557
|
|
|
288
|
-
#
|
|
558
|
+
# Sets whether page setup fits content to page width/height.
|
|
559
|
+
#
|
|
560
|
+
# @param enabled [Boolean, nil] Whether to fit to page.
|
|
561
|
+
# @return [Boolean]
|
|
562
|
+
# @api public
|
|
563
|
+
# : (bool? enabled) -> bool?
|
|
564
|
+
def fit_to_page=: (bool? enabled) -> bool?
|
|
565
|
+
|
|
566
|
+
# Configures or queries headers and footers for printing (<headerFooter>).
|
|
567
|
+
#
|
|
568
|
+
# When called with no arguments, returns the header/footer value object or hash.
|
|
569
|
+
# When called with keyword arguments, updates headers and footers and returns nil.
|
|
289
570
|
#
|
|
290
571
|
# @param opts [Hash] Header and footer options (e.g. odd_header: "&CHeader Text").
|
|
572
|
+
# @return [Elements::HeaderFooter, Hash<Symbol, untyped>, void]
|
|
573
|
+
# @api public
|
|
574
|
+
# : (**untyped opts) -> (untyped | void)
|
|
575
|
+
def header_footer: (**untyped opts) -> untyped
|
|
576
|
+
|
|
577
|
+
# Sets header and footer configuration.
|
|
578
|
+
#
|
|
579
|
+
# @param opts [Hash, Elements::HeaderFooter]
|
|
291
580
|
# @return [void]
|
|
292
581
|
# @api public
|
|
293
|
-
# : (
|
|
294
|
-
def header_footer
|
|
582
|
+
# : (untyped opts) -> void
|
|
583
|
+
def header_footer=: (untyped opts) -> void
|
|
584
|
+
|
|
585
|
+
# Configures or queries print options (<printOptions>).
|
|
586
|
+
#
|
|
587
|
+
# When called with no arguments, returns the {Elements::PrintOptions} value object.
|
|
588
|
+
# When called with arguments or keyword options, configures print options and returns nil.
|
|
589
|
+
#
|
|
590
|
+
# @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Option name or hash/record of options.
|
|
591
|
+
# @param value [Object, nil] Option value.
|
|
592
|
+
# @param opts [Hash] Additional print options.
|
|
593
|
+
# @return [Elements::PrintOptions, void]
|
|
594
|
+
# @api public
|
|
595
|
+
# : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::PrintOptions | void)
|
|
596
|
+
def print_options: (?untyped name, ?untyped value, **untyped opts) -> untyped
|
|
295
597
|
|
|
296
|
-
#
|
|
598
|
+
# Replaces print options with the given hash or {Elements::PrintOptions} object.
|
|
297
599
|
#
|
|
298
|
-
# @param
|
|
299
|
-
# @param value [Object] Option value.
|
|
600
|
+
# @param opts [Hash, Elements::PrintOptions]
|
|
300
601
|
# @return [void]
|
|
301
602
|
# @api public
|
|
302
|
-
# : (Symbol
|
|
303
|
-
def print_options
|
|
603
|
+
# : (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
|
|
604
|
+
def print_options=: (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
|
|
605
|
+
|
|
606
|
+
# Adds a defined name (named range or formula) scoped to this sheet or workbook.
|
|
607
|
+
# Bare cell references and coordinate keywords are automatically formatted with sheet quotes and absolute $ references.
|
|
608
|
+
#
|
|
609
|
+
# @param name [String] Defined name identifier.
|
|
610
|
+
# @param value [Object, nil] Cell reference, formula, or constant.
|
|
611
|
+
# @param hidden [Boolean] Whether the defined name is hidden from Excel's UI.
|
|
612
|
+
# @param column [Integer, String, nil] Deprecated alias for columns.
|
|
613
|
+
# @param columns [Integer, String, nil] Column index or letter for coordinate-based reference.
|
|
614
|
+
# @param col [Integer, String, nil] Deprecated alias for column.
|
|
615
|
+
# @param row [Integer, Range, nil] Deprecated alias for rows.
|
|
616
|
+
# @param rows [Integer, Range, nil] Row or row range (1-based) for coordinate-based reference.
|
|
617
|
+
# @param range [String, nil] Cell range reference (e.g. "A1:A10").
|
|
618
|
+
# @param sheet [String, nil] Reference sheet name (defaults to current sheet).
|
|
619
|
+
# @param scope [String, Symbol, nil] Scope identifier (:workbook or sheet name).
|
|
620
|
+
# @param local [Boolean] Deprecated alias for scope: :current.
|
|
621
|
+
# @return [void]
|
|
622
|
+
# @api public
|
|
623
|
+
# : (String name, ?untyped value, ?hidden: bool, ?column: untyped, ?columns: untyped, ?col: untyped, ?row: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?, ?local: bool) -> void
|
|
624
|
+
def defined_name: (String name, ?untyped value, ?hidden: bool, ?column: untyped, ?columns: untyped, ?col: untyped, ?row: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?, ?local: bool) -> void
|
|
304
625
|
|
|
305
626
|
# Sets or gets the print area for the worksheet.
|
|
306
627
|
#
|
|
@@ -311,10 +632,18 @@ module Xlsxrb
|
|
|
311
632
|
# sheet.print_area #=> "A1:H50"
|
|
312
633
|
#
|
|
313
634
|
# @param range [String, nil] Cell range (e.g. "A1:H50").
|
|
635
|
+
# @return [String, nil, void]
|
|
636
|
+
# @api public
|
|
637
|
+
# : (?String? range) -> (String | nil | void)
|
|
638
|
+
def print_area: (?untyped range) -> untyped
|
|
639
|
+
|
|
640
|
+
# Sets the print area for the worksheet.
|
|
641
|
+
#
|
|
642
|
+
# @param range [String, nil] Cell range (e.g. "A1:H50").
|
|
314
643
|
# @return [String, nil]
|
|
315
644
|
# @api public
|
|
316
|
-
# : (
|
|
317
|
-
def print_area
|
|
645
|
+
# : (String? range) -> String?
|
|
646
|
+
def print_area=: (String? range) -> String?
|
|
318
647
|
|
|
319
648
|
# Sets or gets repeating print titles (rows and/or columns) for pagination.
|
|
320
649
|
#
|
|
@@ -322,14 +651,24 @@ module Xlsxrb
|
|
|
322
651
|
# sheet.print_titles(rows: "1:2")
|
|
323
652
|
#
|
|
324
653
|
# @example Get repeating print titles
|
|
325
|
-
# sheet.print_titles #=> { rows: "1:2", cols: nil }
|
|
654
|
+
# sheet.print_titles #=> { rows: "1:2", columns: nil, cols: nil }
|
|
326
655
|
#
|
|
327
656
|
# @param rows [String, nil] Repeating row range (e.g. "1:2").
|
|
328
|
-
# @param
|
|
329
|
-
# @
|
|
657
|
+
# @param rows [String, Integer, Range, nil] Repeating row range (e.g. "1:2" or 0-based 0..1).
|
|
658
|
+
# @param columns [String, Integer, Symbol, Range, nil] Repeating column range (e.g. "A:B" or 0..1).
|
|
659
|
+
# @param cols [String, Integer, Symbol, Range, nil] Deprecated alias for columns.
|
|
660
|
+
# @return [Elements::PrintTitles, nil, void]
|
|
661
|
+
# @api public
|
|
662
|
+
# : (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?, ?cols: (String | Integer | Symbol | Range[untyped])?) -> (Elements::PrintTitles | nil | void)
|
|
663
|
+
def print_titles: (?rows: untyped, ?columns: untyped, ?cols: untyped) -> untyped
|
|
664
|
+
|
|
665
|
+
# Sets repeating print titles for the worksheet.
|
|
666
|
+
#
|
|
667
|
+
# @param opts [Elements::PrintTitles, Hash, nil] Options with :rows and/or :columns.
|
|
668
|
+
# @return [Elements::PrintTitles, Hash, nil]
|
|
330
669
|
# @api public
|
|
331
|
-
# : (
|
|
332
|
-
def print_titles
|
|
670
|
+
# : (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
671
|
+
def print_titles=: (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
333
672
|
|
|
334
673
|
# Sets repeating title rows to appear at the top of each printed page.
|
|
335
674
|
# Accepts 0-indexed row numbers (WriteXLSX / xlsxrb convention) or Excel range string ("1:2").
|
|
@@ -363,11 +702,26 @@ module Xlsxrb
|
|
|
363
702
|
# : (Integer | String first, ?(Integer | String)? last) -> void
|
|
364
703
|
def repeat_columns: (Integer | String first, ?(Integer | String)? last) -> void
|
|
365
704
|
|
|
366
|
-
#
|
|
705
|
+
# Configures or queries sheet-level protection with optional password hashing (<sheetProtection>).
|
|
706
|
+
#
|
|
707
|
+
# When called with no arguments, returns the sheet protection value object or hash.
|
|
708
|
+
# When called with keyword arguments, sets sheet protection and returns nil.
|
|
367
709
|
#
|
|
368
710
|
# @param opts [Hash] Protection options (e.g. password: "secret", select_locked_cells: true).
|
|
711
|
+
# @return [Elements::SheetProtection, Hash<Symbol, untyped>, nil, void]
|
|
712
|
+
# @api public
|
|
713
|
+
# : (**untyped opts) -> (untyped | void)
|
|
714
|
+
def sheet_protection: (**untyped opts) -> untyped
|
|
715
|
+
|
|
716
|
+
# Sets or clears sheet protection configuration.
|
|
717
|
+
#
|
|
718
|
+
# @param opts [Elements::SheetProtection, Hash, Boolean, nil]
|
|
369
719
|
# @return [void]
|
|
370
720
|
# @api public
|
|
721
|
+
# : (untyped opts) -> void
|
|
722
|
+
def sheet_protection=: (untyped opts) -> void
|
|
723
|
+
|
|
724
|
+
# @deprecated Use {#sheet_protection} instead.
|
|
371
725
|
# : (**untyped opts) -> void
|
|
372
726
|
def protect_sheet: (**untyped opts) -> void
|
|
373
727
|
|
|
@@ -375,23 +729,59 @@ module Xlsxrb
|
|
|
375
729
|
#
|
|
376
730
|
# @param file_data [String] Binary image data.
|
|
377
731
|
# @param ext [String] File extension ("png", "jpeg", etc.).
|
|
378
|
-
# @param
|
|
732
|
+
# @param from_column [Integer, nil] Top-left starting column (0-based).
|
|
733
|
+
# @param from_col [Integer, nil] Deprecated alias for from_column.
|
|
379
734
|
# @param from_row [Integer] Top-left starting row (0-based).
|
|
380
|
-
# @param
|
|
735
|
+
# @param to_column [Integer, nil] Bottom-right ending column (0-based).
|
|
736
|
+
# @param to_col [Integer, nil] Deprecated alias for to_column.
|
|
381
737
|
# @param to_row [Integer] Bottom-right ending row (0-based).
|
|
382
738
|
# @param opts [Hash] Additional image anchoring options.
|
|
383
739
|
# @return [void]
|
|
384
740
|
# @api public
|
|
385
|
-
# : (String file_data, ?ext: ::String, ?from_col: ::Integer
|
|
386
|
-
def image: (String file_data, ?ext: ::String, ?from_col: ::Integer
|
|
741
|
+
# : (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_col: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_col: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
|
|
742
|
+
def image: (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_col: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_col: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
|
|
743
|
+
|
|
744
|
+
# Configures the worksheet background image (<picture>).
|
|
745
|
+
#
|
|
746
|
+
# @example Set background image from binary data
|
|
747
|
+
# sheet.background_image(png_bytes, ext: "png")
|
|
748
|
+
#
|
|
749
|
+
# @example Set background image from file path
|
|
750
|
+
# sheet.background_image("path/to/background.png")
|
|
751
|
+
#
|
|
752
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#background_image=} instead.
|
|
753
|
+
# @param file_data [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
|
|
754
|
+
# @param ext [String, nil] Image extension ("png", "jpeg", "jpg", "gif", etc.).
|
|
755
|
+
# @param opts [Hash] Additional image options.
|
|
756
|
+
# @return [Hash, nil]
|
|
757
|
+
# @api public
|
|
758
|
+
# : (?untyped file_data, ?ext: ::String?, **untyped opts) -> (Elements::BackgroundImage | Hash[Symbol, untyped] | nil)
|
|
759
|
+
def background_image: (?untyped file_data, ?ext: ::String?, **untyped opts) -> (Elements::BackgroundImage | Hash[Symbol, untyped] | nil)
|
|
760
|
+
|
|
761
|
+
# @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
|
|
762
|
+
alias background_picture background_image
|
|
763
|
+
|
|
764
|
+
# @deprecated Use {#background_image} instead. Will be removed in 0.2.0.
|
|
765
|
+
alias picture background_image
|
|
766
|
+
|
|
767
|
+
# : (untyped val) -> untyped
|
|
768
|
+
def background_image=: (untyped val) -> untyped
|
|
769
|
+
|
|
770
|
+
# @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
|
|
771
|
+
alias background_picture= background_image=
|
|
772
|
+
|
|
773
|
+
# @deprecated Use {#background_image=} instead. Will be removed in 0.2.0.
|
|
774
|
+
alias picture= background_image=
|
|
387
775
|
|
|
388
776
|
# Inserts a drawing shape (e.g. rectangle, callout, arrow).
|
|
389
777
|
#
|
|
390
778
|
# @param preset [String] Shape preset name (e.g. "rect", "roundRect").
|
|
391
779
|
# @param text [String, nil] Shape label text.
|
|
392
|
-
# @param
|
|
780
|
+
# @param from_column [Integer, nil] Top-left column.
|
|
781
|
+
# @param from_col [Integer, nil] Deprecated alias for from_column.
|
|
393
782
|
# @param from_row [Integer] Top-left row.
|
|
394
|
-
# @param
|
|
783
|
+
# @param to_column [Integer, nil] Bottom-right column.
|
|
784
|
+
# @param to_col [Integer, nil] Deprecated alias for to_column.
|
|
395
785
|
# @param to_row [Integer] Bottom-right row.
|
|
396
786
|
# @param opts [Hash] Additional shape formatting options.
|
|
397
787
|
# @return [void]
|
|
@@ -399,55 +789,147 @@ module Xlsxrb
|
|
|
399
789
|
# : (**untyped opts) -> void
|
|
400
790
|
def shape: (**untyped opts) -> void
|
|
401
791
|
|
|
402
|
-
#
|
|
792
|
+
# Gets or sets the sheet visibility state (:visible, :hidden, or :very_hidden).
|
|
793
|
+
#
|
|
794
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#state=} instead.
|
|
795
|
+
# @param new_state [Symbol, nil] The new state.
|
|
796
|
+
# @return [Symbol]
|
|
797
|
+
# @api public
|
|
798
|
+
# : (?Symbol? new_state) -> Symbol
|
|
799
|
+
def state: (?Symbol? new_state) -> Symbol
|
|
800
|
+
|
|
801
|
+
# Sets the sheet visibility state (:visible, :hidden, or :very_hidden).
|
|
403
802
|
#
|
|
404
|
-
# @param
|
|
803
|
+
# @param new_state [Symbol, String] The new state.
|
|
804
|
+
# @return [Symbol]
|
|
805
|
+
# @api public
|
|
806
|
+
# : (Symbol | String new_state) -> Symbol
|
|
807
|
+
def state=: (Symbol | String new_state) -> Symbol
|
|
808
|
+
|
|
809
|
+
# Gets or sets the worksheet tab color.
|
|
810
|
+
#
|
|
811
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#tab_color=} instead.
|
|
812
|
+
# @overload tab_color()
|
|
813
|
+
# Returns the current tab color specification.
|
|
814
|
+
# @return [String, Hash, nil]
|
|
815
|
+
# @overload tab_color(spec, **opts)
|
|
816
|
+
# Sets the tab color using an RGB hex string or color options.
|
|
817
|
+
# @param spec [String, Hash, Symbol, nil] RGB hex string (e.g. "FF0000"), theme/indexed hash, or nil.
|
|
818
|
+
# @param opts [Hash] Color keyword arguments (e.g. theme: 1, tint: 0.5, indexed: 9, auto: true).
|
|
819
|
+
# @return [String, Hash, nil]
|
|
820
|
+
# @api public
|
|
821
|
+
# : (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
|
|
822
|
+
def tab_color: (?String | Symbol | Hash[Symbol, untyped] | nil spec, **untyped opts) -> (String | Hash[Symbol, untyped] | nil)
|
|
823
|
+
|
|
824
|
+
# Sets the tab color of this worksheet.
|
|
825
|
+
#
|
|
826
|
+
# @param spec [String, Hash, Symbol, nil] Tab color hex string (e.g. "FF0000") or hash options.
|
|
827
|
+
# @return [String, Hash, nil]
|
|
828
|
+
# @api public
|
|
829
|
+
# : (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
|
|
830
|
+
def tab_color=: (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
|
|
831
|
+
|
|
832
|
+
# Sets a single sheet property.
|
|
833
|
+
#
|
|
834
|
+
# @param name [Symbol, String] Property name.
|
|
405
835
|
# @param value [Object] Property value.
|
|
406
836
|
# @return [void]
|
|
407
837
|
# @api public
|
|
408
|
-
# : (Symbol name, untyped value) -> void
|
|
409
|
-
def
|
|
838
|
+
# : (Symbol | String name, untyped value) -> void
|
|
839
|
+
def sheet_property: (Symbol | String name, untyped value) -> void
|
|
840
|
+
|
|
841
|
+
# Configures or queries sheet properties (<sheetPr>).
|
|
842
|
+
#
|
|
843
|
+
# When called with no arguments, returns the {Elements::SheetProperties} value object.
|
|
844
|
+
# When called with arguments or keyword options, configures properties and returns nil.
|
|
845
|
+
#
|
|
846
|
+
# @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Property name or hash/record of properties.
|
|
847
|
+
# @param value [Object, nil] Property value when name is provided.
|
|
848
|
+
# @param opts [Hash] Additional sheet properties.
|
|
849
|
+
# @return [Elements::SheetProperties, void]
|
|
850
|
+
# @api public
|
|
851
|
+
# : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetProperties | void)
|
|
852
|
+
def sheet_properties: (?untyped name, ?untyped value, **untyped opts) -> untyped
|
|
410
853
|
|
|
411
|
-
#
|
|
854
|
+
# Replaces worksheet properties with the given hash or {Elements::SheetProperties} object.
|
|
412
855
|
#
|
|
413
|
-
# @param
|
|
414
|
-
# @param value [Object] View property value.
|
|
856
|
+
# @param opts [Hash, Elements::SheetProperties]
|
|
415
857
|
# @return [void]
|
|
416
858
|
# @api public
|
|
417
|
-
# : (Symbol
|
|
418
|
-
def
|
|
859
|
+
# : (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
|
|
860
|
+
def sheet_properties=: (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
|
|
419
861
|
|
|
420
|
-
# Configures sheet
|
|
862
|
+
# Configures or queries sheet view display properties (<sheetView>).
|
|
863
|
+
#
|
|
864
|
+
# When called with no arguments, returns the {Elements::SheetView} value object.
|
|
865
|
+
# When called with arguments or keyword options, configures view properties and returns nil.
|
|
866
|
+
#
|
|
867
|
+
# @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] View property name or hash/record of properties.
|
|
868
|
+
# @param value [Object, nil] View property value when name is provided.
|
|
869
|
+
# @param opts [Hash] Additional view properties.
|
|
870
|
+
# @return [Elements::SheetView, void]
|
|
871
|
+
# @api public
|
|
872
|
+
# : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetView | void)
|
|
873
|
+
def sheet_view: (?untyped name, ?untyped value, **untyped opts) -> untyped
|
|
874
|
+
|
|
875
|
+
# Replaces sheet view properties with the given hash or {Elements::SheetView} object.
|
|
876
|
+
#
|
|
877
|
+
# @param opts [Hash, Elements::SheetView]
|
|
878
|
+
# @return [void]
|
|
879
|
+
# @api public
|
|
880
|
+
# : (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
|
|
881
|
+
def sheet_view=: (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
|
|
882
|
+
|
|
883
|
+
# Configures or queries sheet format properties (<sheetFormatPr>).
|
|
884
|
+
#
|
|
885
|
+
# When called with no arguments, returns the {Elements::SheetFormat} value object.
|
|
886
|
+
# When called with arguments or keyword options, configures format properties and returns nil.
|
|
421
887
|
#
|
|
422
888
|
# @example Using keyword arguments
|
|
423
|
-
# sheet.sheet_format(default_row_height: 24,
|
|
889
|
+
# sheet.sheet_format(default_row_height: 24, default_column_width: 15)
|
|
424
890
|
#
|
|
425
891
|
# @example Using property name and value
|
|
426
892
|
# sheet.sheet_format(:default_row_height, 24)
|
|
427
893
|
#
|
|
428
|
-
# @param name [Symbol, String, Hash, nil] Property name or hash of properties.
|
|
894
|
+
# @param name [Symbol, String, Hash, Elements::MetadataRecord, nil] Property name or hash/record of properties.
|
|
429
895
|
# @param value [Object, nil] Property value when name is provided.
|
|
430
896
|
# @param opts [Hash] Keyword arguments for sheet format properties.
|
|
431
|
-
# @return [
|
|
897
|
+
# @return [Elements::SheetFormat, void]
|
|
898
|
+
# @api public
|
|
899
|
+
# : (?Symbol | String | Hash[Symbol, untyped] | Elements::MetadataRecord | nil name, ?untyped value, **untyped opts) -> (Elements::SheetFormat | void)
|
|
900
|
+
def sheet_format: (?untyped name, ?untyped value, **untyped opts) -> untyped
|
|
901
|
+
|
|
902
|
+
# Replaces sheet format properties with the given hash or {Elements::SheetFormat} object.
|
|
903
|
+
#
|
|
904
|
+
# @param opts [Hash, Elements::SheetFormat]
|
|
905
|
+
# @return [void]
|
|
432
906
|
# @api public
|
|
433
|
-
# : (
|
|
434
|
-
def sheet_format
|
|
907
|
+
# : (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
|
|
908
|
+
def sheet_format=: (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
|
|
435
909
|
|
|
436
|
-
# Inserts a horizontal page break
|
|
910
|
+
# Inserts a horizontal page break after the specified 0-based row.
|
|
437
911
|
#
|
|
438
|
-
# @param
|
|
912
|
+
# @param row_index [Integer] 0-based row index.
|
|
439
913
|
# @return [void]
|
|
440
914
|
# @api public
|
|
915
|
+
# : (Integer row_index) -> void
|
|
916
|
+
def row_break: (Integer row_index) -> void
|
|
917
|
+
|
|
918
|
+
# @deprecated Use {#row_break} instead.
|
|
441
919
|
# : (Integer row_num) -> void
|
|
442
920
|
def page_break_row: (Integer row_num) -> void
|
|
443
921
|
|
|
444
|
-
# Inserts a vertical page break
|
|
922
|
+
# Inserts a vertical page break after the specified column.
|
|
445
923
|
#
|
|
446
|
-
# @param
|
|
924
|
+
# @param col [Integer, String, Symbol] Column index (0-based) or letter ("B", :B).
|
|
447
925
|
# @return [void]
|
|
448
926
|
# @api public
|
|
449
|
-
# : (Integer | String
|
|
450
|
-
def
|
|
927
|
+
# : (Integer | String | Symbol col) -> void
|
|
928
|
+
def column_break: (Integer | String | Symbol col) -> void
|
|
929
|
+
|
|
930
|
+
# @deprecated Use {#column_break} instead.
|
|
931
|
+
# : (Integer | String | Symbol col_index) -> void
|
|
932
|
+
def page_break_col: (Integer | String | Symbol col_index) -> void
|
|
451
933
|
|
|
452
934
|
# Adds a protected range to the worksheet.
|
|
453
935
|
#
|
|
@@ -460,6 +942,7 @@ module Xlsxrb
|
|
|
460
942
|
# : (String name, String sqref, ?password: String?, **untyped opts) -> void
|
|
461
943
|
def protected_range: (String name, String sqref, ?password: String?, **untyped opts) -> void
|
|
462
944
|
|
|
945
|
+
# @deprecated Use {#protected_range} instead. Will be removed in 0.2.0.
|
|
463
946
|
alias add_protected_range protected_range
|
|
464
947
|
|
|
465
948
|
# Adds a cell watch to the worksheet.
|
|
@@ -470,8 +953,126 @@ module Xlsxrb
|
|
|
470
953
|
# : (String ref) -> void
|
|
471
954
|
def cell_watch: (String ref) -> void
|
|
472
955
|
|
|
956
|
+
# @deprecated Use {#cell_watch} instead. Will be removed in 0.2.0.
|
|
473
957
|
alias add_cell_watch cell_watch
|
|
474
958
|
|
|
959
|
+
# Adds an ignored error entry for the worksheet.
|
|
960
|
+
#
|
|
961
|
+
# @param sqref [String] Cell range reference (e.g. "A1" or "A1:B10").
|
|
962
|
+
# @param opts [Hash] Error check flags to ignore (e.g. number_stored_as_text: true, eval_error: true).
|
|
963
|
+
# @return [void]
|
|
964
|
+
# @api public
|
|
965
|
+
# : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
966
|
+
def ignored_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
967
|
+
|
|
968
|
+
# @deprecated Use {#ignored_error} instead. Will be removed in 0.2.0.
|
|
969
|
+
# : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
970
|
+
def ignore_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
971
|
+
|
|
972
|
+
# @deprecated Use {#ignored_error} instead. Will be removed in 0.2.0.
|
|
973
|
+
# : (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
974
|
+
def add_ignored_error: (String sqref, ?eval_error: bool, ?two_digit_text_year: bool, ?number_stored_as_text: bool, ?formula: bool, ?formula_range: bool, ?unlocked_formula: bool, ?empty_cell_reference: bool, ?list_data_validation: bool, ?calculated_column: bool) -> void
|
|
975
|
+
|
|
976
|
+
# Returns ignored error rules configured for this worksheet.
|
|
977
|
+
#
|
|
978
|
+
# @return [Array<Hash[Symbol, untyped]>]
|
|
979
|
+
# @api public
|
|
980
|
+
# : () -> Array[Hash[Symbol, untyped]]
|
|
981
|
+
def ignored_errors: () -> Array[Hash[Symbol, untyped]]
|
|
982
|
+
|
|
983
|
+
# Gets or sets phonetic (furigana) guide properties for the worksheet.
|
|
984
|
+
#
|
|
985
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#phonetic_properties=} instead.
|
|
986
|
+
# @overload phonetic_properties()
|
|
987
|
+
# Returns the current phonetic properties.
|
|
988
|
+
# @return [Hash, nil]
|
|
989
|
+
# @overload phonetic_properties(props = nil, font_id: nil, type: nil, alignment: nil)
|
|
990
|
+
# Sets phonetic properties.
|
|
991
|
+
# @param spec [Hash, Integer, nil]
|
|
992
|
+
# @param font_id [Integer, nil]
|
|
993
|
+
# @param type [Symbol, String, nil]
|
|
994
|
+
# @param alignment [Symbol, String, nil]
|
|
995
|
+
# @return [Hash, nil]
|
|
996
|
+
# @api public
|
|
997
|
+
# : (?untyped spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> (Elements::PhoneticProperties | Hash[Symbol, untyped] | nil)
|
|
998
|
+
def phonetic_properties: (?untyped spec, ?font_id: Integer?, ?type: (Symbol | String)?, ?alignment: (Symbol | String)?, **untyped opts) -> (Elements::PhoneticProperties | Hash[Symbol, untyped] | nil)
|
|
999
|
+
|
|
1000
|
+
# @deprecated Use {#phonetic_properties} instead. Will be removed in 0.2.0.
|
|
1001
|
+
alias phonetic_pr phonetic_properties
|
|
1002
|
+
|
|
1003
|
+
# Sets phonetic (furigana) guide properties for the sheet.
|
|
1004
|
+
#
|
|
1005
|
+
# @param spec [Hash, Integer, nil] Options hash or font ID integer.
|
|
1006
|
+
# @return [Hash[Symbol, untyped], Integer, nil]
|
|
1007
|
+
# @api public
|
|
1008
|
+
# : (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
|
|
1009
|
+
def phonetic_properties=: (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
|
|
1010
|
+
|
|
1011
|
+
# @deprecated Use {#phonetic_properties=} instead. Will be removed in 0.2.0.
|
|
1012
|
+
alias phonetic_pr= phonetic_properties=
|
|
1013
|
+
|
|
1014
|
+
# Normalizes phonetic properties to OOXML schema values.
|
|
1015
|
+
#
|
|
1016
|
+
# @param props [Hash, nil]
|
|
1017
|
+
# @return [Hash[Symbol, untyped], nil]
|
|
1018
|
+
# @api private
|
|
1019
|
+
# : (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
|
|
1020
|
+
def self.normalize_phonetic_properties: (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
|
|
1021
|
+
|
|
1022
|
+
# Sets or gets the internal code name of the worksheet.
|
|
1023
|
+
#
|
|
1024
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#code_name=} instead.
|
|
1025
|
+
# @param val [String, Symbol, nil] The code name.
|
|
1026
|
+
# @return [String, nil]
|
|
1027
|
+
# @api public
|
|
1028
|
+
# : (?String | Symbol | nil val) -> String?
|
|
1029
|
+
def code_name: (?String | Symbol | nil val) -> String?
|
|
1030
|
+
|
|
1031
|
+
# Sets the internal code name of the worksheet.
|
|
1032
|
+
#
|
|
1033
|
+
# @param val [String, Symbol, nil] The code name.
|
|
1034
|
+
# @return [String, nil]
|
|
1035
|
+
# @api public
|
|
1036
|
+
# : (String | Symbol | nil val) -> String?
|
|
1037
|
+
def code_name=: (String | Symbol | nil val) -> String?
|
|
1038
|
+
|
|
1039
|
+
# Configures worksheet calculation properties (<sheetCalcPr>).
|
|
1040
|
+
#
|
|
1041
|
+
# @example Instruct Excel to recalculate formulas when loading sheet
|
|
1042
|
+
# sheet.sheet_calc_properties = { full_calc_on_load: true }
|
|
1043
|
+
#
|
|
1044
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sheet_calc_properties=} instead.
|
|
1045
|
+
# @param spec [Hash, nil] Calculation properties hash.
|
|
1046
|
+
# @param full_calc_on_load [Boolean, nil] Whether to recalculate when loading.
|
|
1047
|
+
# @return [Hash, nil]
|
|
1048
|
+
# @api public
|
|
1049
|
+
# : (?untyped spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1050
|
+
def sheet_calc_properties: (?untyped spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1051
|
+
|
|
1052
|
+
# Sets worksheet calculation properties (<sheetCalcPr>).
|
|
1053
|
+
#
|
|
1054
|
+
# @param spec [Hash, nil] Calculation properties hash.
|
|
1055
|
+
# @return [Hash, nil]
|
|
1056
|
+
# @api public
|
|
1057
|
+
# : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1058
|
+
def sheet_calc_properties=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1059
|
+
|
|
1060
|
+
# @deprecated Use {#sheet_calc_properties} instead. Will be removed in 0.2.0.
|
|
1061
|
+
# : (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1062
|
+
def sheet_calc_pr: (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1063
|
+
|
|
1064
|
+
# @deprecated Use {#sheet_calc_properties} instead. Will be removed in 0.2.0.
|
|
1065
|
+
# : (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1066
|
+
def calc_pr: (?Hash[Symbol, untyped]? spec, ?full_calc_on_load: bool?, **untyped opts) -> (Elements::SheetCalcProperties | Hash[Symbol, untyped] | nil)
|
|
1067
|
+
|
|
1068
|
+
# @deprecated Use {#sheet_calc_properties=} instead. Will be removed in 0.2.0.
|
|
1069
|
+
# : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1070
|
+
def sheet_calc_pr=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1071
|
+
|
|
1072
|
+
# @deprecated Use {#sheet_calc_properties=} instead. Will be removed in 0.2.0.
|
|
1073
|
+
# : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1074
|
+
def calc_pr=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
1075
|
+
|
|
475
1076
|
# Builds and returns the in-memory {Elements::Worksheet}.
|
|
476
1077
|
#
|
|
477
1078
|
# @return [Elements::Worksheet]
|
|
@@ -489,6 +1090,8 @@ module Xlsxrb
|
|
|
489
1090
|
#
|
|
490
1091
|
# @api public
|
|
491
1092
|
class TableBuilder
|
|
1093
|
+
OMITTED: untyped
|
|
1094
|
+
|
|
492
1095
|
# @param ref [String, nil] Table range (e.g. "A1:D10").
|
|
493
1096
|
# @param columns [Array, nil] Column header names or definition hashes.
|
|
494
1097
|
# @param name [String, nil] Table name identifier.
|
|
@@ -498,18 +1101,22 @@ module Xlsxrb
|
|
|
498
1101
|
# : (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
|
|
499
1102
|
def initialize: (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
|
|
500
1103
|
|
|
1104
|
+
# @deprecated Use explicit getter methods instead.
|
|
501
1105
|
# : (untyped key) -> untyped
|
|
502
1106
|
def []: (untyped key) -> untyped
|
|
503
1107
|
|
|
1108
|
+
# @deprecated Use explicit setter methods instead.
|
|
504
1109
|
# : (untyped key, untyped value) -> untyped
|
|
505
1110
|
def []=: (untyped key, untyped value) -> untyped
|
|
506
1111
|
|
|
1112
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#ref=} instead.
|
|
507
1113
|
# : (?String? val) -> String?
|
|
508
1114
|
def ref: (?String? val) -> String?
|
|
509
1115
|
|
|
510
1116
|
# : (String val) -> String
|
|
511
1117
|
def ref=: (String val) -> String
|
|
512
1118
|
|
|
1119
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
|
|
513
1120
|
# : (*untyped cols) -> untyped
|
|
514
1121
|
def columns: (*untyped cols) -> untyped
|
|
515
1122
|
|
|
@@ -518,61 +1125,112 @@ module Xlsxrb
|
|
|
518
1125
|
|
|
519
1126
|
# Appends a single column name or column definition.
|
|
520
1127
|
#
|
|
521
|
-
# @param col [String, Hash] Column header name or definition.
|
|
1128
|
+
# @param col [String, Hash, Symbol] Column header name or definition.
|
|
1129
|
+
# @param opts [Hash] Column options (e.g. totals_row_function, totals_row_label, formula, totals_row_formula).
|
|
522
1130
|
# @return [void]
|
|
523
|
-
# : (String | Hash[Symbol, untyped] col) -> void
|
|
524
|
-
def column: (String | Hash[Symbol, untyped] col) -> void
|
|
1131
|
+
# : (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
|
|
1132
|
+
def column: (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
|
|
525
1133
|
|
|
1134
|
+
# @deprecated Use {#column} instead. Will be removed in 0.2.0.
|
|
526
1135
|
alias add_column column
|
|
527
1136
|
|
|
1137
|
+
# Appends a calculated column with formula and options.
|
|
1138
|
+
#
|
|
1139
|
+
# @param name [String, Symbol] The column name.
|
|
1140
|
+
# @param formula [String] The formula for the calculated column (e.g. "[@Qty]*[@Price]").
|
|
1141
|
+
# @param opts [Hash] Additional column options.
|
|
1142
|
+
# @return [void]
|
|
1143
|
+
# : (String | Symbol name, String formula, **untyped opts) -> void
|
|
1144
|
+
def calculated_column: (String | Symbol name, String formula, **untyped opts) -> void
|
|
1145
|
+
|
|
1146
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#name=} instead.
|
|
528
1147
|
# : (?String? val) -> String?
|
|
529
1148
|
def name: (?String? val) -> String?
|
|
530
1149
|
|
|
531
1150
|
# : (String val) -> String
|
|
532
1151
|
def name=: (String val) -> String
|
|
533
1152
|
|
|
1153
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#display_name=} instead.
|
|
534
1154
|
# : (?String? val) -> String?
|
|
535
1155
|
def display_name: (?String? val) -> String?
|
|
536
1156
|
|
|
537
1157
|
# : (String val) -> String
|
|
538
1158
|
def display_name=: (String val) -> String
|
|
539
1159
|
|
|
1160
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#style=} instead.
|
|
540
1161
|
# : (?String? val) -> String?
|
|
541
1162
|
def style: (?String? val) -> String?
|
|
542
1163
|
|
|
543
1164
|
# : (String val) -> String
|
|
544
1165
|
def style=: (String val) -> String
|
|
545
1166
|
|
|
1167
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_row_stripes=} instead.
|
|
546
1168
|
# : (?bool? val) -> bool?
|
|
547
1169
|
def show_row_stripes: (?bool? val) -> bool?
|
|
548
1170
|
|
|
549
1171
|
# : (bool val) -> bool
|
|
550
1172
|
def show_row_stripes=: (bool val) -> bool
|
|
551
1173
|
|
|
1174
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_column_stripes=} instead.
|
|
552
1175
|
# : (?bool? val) -> bool?
|
|
553
1176
|
def show_column_stripes: (?bool? val) -> bool?
|
|
554
1177
|
|
|
555
1178
|
# : (bool val) -> bool
|
|
556
1179
|
def show_column_stripes=: (bool val) -> bool
|
|
557
1180
|
|
|
1181
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_first_column=} instead.
|
|
558
1182
|
# : (?bool? val) -> bool?
|
|
559
1183
|
def show_first_column: (?bool? val) -> bool?
|
|
560
1184
|
|
|
561
1185
|
# : (bool val) -> bool
|
|
562
1186
|
def show_first_column=: (bool val) -> bool
|
|
563
1187
|
|
|
1188
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_last_column=} instead.
|
|
564
1189
|
# : (?bool? val) -> bool?
|
|
565
1190
|
def show_last_column: (?bool? val) -> bool?
|
|
566
1191
|
|
|
567
1192
|
# : (bool val) -> bool
|
|
568
1193
|
def show_last_column=: (bool val) -> bool
|
|
569
1194
|
|
|
1195
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#totals_row_count=} instead.
|
|
1196
|
+
# : (?Integer? val) -> Integer?
|
|
1197
|
+
def totals_row_count: (?Integer? val) -> Integer?
|
|
1198
|
+
|
|
1199
|
+
# : (Integer val) -> Integer
|
|
1200
|
+
def totals_row_count=: (Integer val) -> Integer
|
|
1201
|
+
|
|
1202
|
+
# @deprecated Use {#totals_row_count} instead. Will be removed in 0.2.0.
|
|
570
1203
|
# : (?Integer? val) -> Integer?
|
|
571
1204
|
def total_row_count: (?Integer? val) -> Integer?
|
|
572
1205
|
|
|
1206
|
+
# @deprecated Use {#totals_row_count=} instead. Will be removed in 0.2.0.
|
|
573
1207
|
# : (Integer val) -> Integer
|
|
574
1208
|
def total_row_count=: (Integer val) -> Integer
|
|
575
1209
|
|
|
1210
|
+
# Gets or sets whether the table has a totals row.
|
|
1211
|
+
#
|
|
1212
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#totals_row=} instead.
|
|
1213
|
+
# : (?untyped val) -> bool?
|
|
1214
|
+
def totals_row: (?untyped val) -> bool?
|
|
1215
|
+
|
|
1216
|
+
# : (bool val) -> bool
|
|
1217
|
+
def totals_row=: (bool val) -> bool
|
|
1218
|
+
|
|
1219
|
+
# @deprecated Use {#totals_row} instead. Will be removed in 0.2.0.
|
|
1220
|
+
# : (?bool? val) -> bool?
|
|
1221
|
+
def total_row: (?bool? val) -> bool?
|
|
1222
|
+
|
|
1223
|
+
# @deprecated Use {#totals_row=} instead. Will be removed in 0.2.0.
|
|
1224
|
+
# : (bool val) -> bool
|
|
1225
|
+
def total_row=: (bool val) -> bool
|
|
1226
|
+
|
|
1227
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#auto_filter=} instead.
|
|
1228
|
+
# : (?bool? val) -> bool?
|
|
1229
|
+
def auto_filter: (?bool? val) -> bool?
|
|
1230
|
+
|
|
1231
|
+
# : (bool val) -> bool
|
|
1232
|
+
def auto_filter=: (bool val) -> bool
|
|
1233
|
+
|
|
576
1234
|
# : () -> Hash[Symbol, untyped]
|
|
577
1235
|
def to_h: () -> Hash[Symbol, untyped]
|
|
578
1236
|
end
|
|
@@ -586,96 +1244,179 @@ module Xlsxrb
|
|
|
586
1244
|
# : (?String? sqref, **untyped opts) -> void
|
|
587
1245
|
def initialize: (?String? sqref, **untyped opts) -> void
|
|
588
1246
|
|
|
1247
|
+
# @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
|
|
1248
|
+
# @param key [Symbol, String]
|
|
1249
|
+
# @return [Object, nil]
|
|
1250
|
+
# @api public
|
|
589
1251
|
# : (untyped key) -> untyped
|
|
590
1252
|
def []: (untyped key) -> untyped
|
|
591
1253
|
|
|
1254
|
+
# @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
|
|
1255
|
+
# @param key [Symbol, String]
|
|
1256
|
+
# @param value [Object]
|
|
1257
|
+
# @return [Object]
|
|
1258
|
+
# @api public
|
|
592
1259
|
# : (untyped key, untyped value) -> untyped
|
|
593
1260
|
def []=: (untyped key, untyped value) -> untyped
|
|
594
1261
|
|
|
1262
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
|
|
595
1263
|
# : (?String? val) -> String?
|
|
596
1264
|
def sqref: (?String? val) -> String?
|
|
597
1265
|
|
|
598
1266
|
# : (String val) -> String
|
|
599
1267
|
def sqref=: (String val) -> String
|
|
600
1268
|
|
|
1269
|
+
# @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
|
|
601
1270
|
alias range sqref
|
|
602
1271
|
|
|
1272
|
+
# @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
|
|
603
1273
|
alias range= sqref=
|
|
604
1274
|
|
|
1275
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
|
|
1276
|
+
# : (?untyped val) -> untyped
|
|
1277
|
+
def columns: (?untyped val) -> untyped
|
|
1278
|
+
|
|
1279
|
+
# : (untyped val) -> untyped
|
|
1280
|
+
def columns=: (untyped val) -> untyped
|
|
1281
|
+
|
|
1282
|
+
# @deprecated Use {#columns} instead. Will be removed in 0.2.0.
|
|
1283
|
+
alias col columns
|
|
1284
|
+
|
|
1285
|
+
# @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
|
|
1286
|
+
alias col= columns=
|
|
1287
|
+
|
|
1288
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
|
|
1289
|
+
# : (?untyped val) -> untyped
|
|
1290
|
+
def rows: (?untyped val) -> untyped
|
|
1291
|
+
|
|
1292
|
+
# : (untyped val) -> untyped
|
|
1293
|
+
def rows=: (untyped val) -> untyped
|
|
1294
|
+
|
|
1295
|
+
# @deprecated Use {#rows} instead. Will be removed in 0.2.0.
|
|
1296
|
+
alias row rows
|
|
1297
|
+
|
|
1298
|
+
# @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
|
|
1299
|
+
alias row= rows=
|
|
1300
|
+
|
|
1301
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
|
|
1302
|
+
# : (?untyped val) -> untyped
|
|
1303
|
+
def except_rows: (?untyped val) -> untyped
|
|
1304
|
+
|
|
1305
|
+
# : (untyped val) -> untyped
|
|
1306
|
+
def except_rows=: (untyped val) -> untyped
|
|
1307
|
+
|
|
1308
|
+
# Sets or gets the list validation choices.
|
|
1309
|
+
#
|
|
1310
|
+
# @example
|
|
1311
|
+
# b.list = ["Option1", "Option2"]
|
|
1312
|
+
#
|
|
1313
|
+
# @param val [Array<Object>, nil]
|
|
1314
|
+
# @return [Array<Object>, nil]
|
|
1315
|
+
# @api public
|
|
1316
|
+
# : (?Array[untyped]? val) -> untyped
|
|
1317
|
+
def list: (?Array[untyped]? val) -> untyped
|
|
1318
|
+
|
|
1319
|
+
# : (Array[untyped] val) -> untyped
|
|
1320
|
+
def list=: (Array[untyped] val) -> untyped
|
|
1321
|
+
|
|
1322
|
+
# @deprecated Use {#list} instead.
|
|
1323
|
+
# : (?Array[untyped]? val) -> untyped
|
|
1324
|
+
def in: (?Array[untyped]? val) -> untyped
|
|
1325
|
+
|
|
1326
|
+
# @deprecated Use {#list=} instead.
|
|
1327
|
+
# : (Array[untyped] val) -> untyped
|
|
1328
|
+
def in=: (Array[untyped] val) -> untyped
|
|
1329
|
+
|
|
1330
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
|
|
605
1331
|
# : (?untyped val) -> untyped
|
|
606
1332
|
def type: (?untyped val) -> untyped
|
|
607
1333
|
|
|
608
1334
|
# : (untyped val) -> untyped
|
|
609
1335
|
def type=: (untyped val) -> untyped
|
|
610
1336
|
|
|
1337
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
|
|
611
1338
|
# : (?untyped val) -> untyped
|
|
612
1339
|
def operator: (?untyped val) -> untyped
|
|
613
1340
|
|
|
614
1341
|
# : (untyped val) -> untyped
|
|
615
1342
|
def operator=: (untyped val) -> untyped
|
|
616
1343
|
|
|
1344
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula1=} instead.
|
|
617
1345
|
# : (?untyped val) -> untyped
|
|
618
1346
|
def formula1: (?untyped val) -> untyped
|
|
619
1347
|
|
|
620
1348
|
# : (untyped val) -> untyped
|
|
621
1349
|
def formula1=: (untyped val) -> untyped
|
|
622
1350
|
|
|
1351
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula2=} instead.
|
|
623
1352
|
# : (?untyped val) -> untyped
|
|
624
1353
|
def formula2: (?untyped val) -> untyped
|
|
625
1354
|
|
|
626
1355
|
# : (untyped val) -> untyped
|
|
627
1356
|
def formula2=: (untyped val) -> untyped
|
|
628
1357
|
|
|
1358
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#allow_blank=} instead.
|
|
629
1359
|
# : (?bool? val) -> bool?
|
|
630
1360
|
def allow_blank: (?bool? val) -> bool?
|
|
631
1361
|
|
|
632
1362
|
# : (bool val) -> bool
|
|
633
1363
|
def allow_blank=: (bool val) -> bool
|
|
634
1364
|
|
|
1365
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_input_message=} instead.
|
|
635
1366
|
# : (?bool? val) -> bool?
|
|
636
1367
|
def show_input_message: (?bool? val) -> bool?
|
|
637
1368
|
|
|
638
1369
|
# : (bool val) -> bool
|
|
639
1370
|
def show_input_message=: (bool val) -> bool
|
|
640
1371
|
|
|
1372
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_error_message=} instead.
|
|
641
1373
|
# : (?bool? val) -> bool?
|
|
642
1374
|
def show_error_message: (?bool? val) -> bool?
|
|
643
1375
|
|
|
644
1376
|
# : (bool val) -> bool
|
|
645
1377
|
def show_error_message=: (bool val) -> bool
|
|
646
1378
|
|
|
1379
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_title=} instead.
|
|
647
1380
|
# : (?String? val) -> String?
|
|
648
1381
|
def error_title: (?String? val) -> String?
|
|
649
1382
|
|
|
650
1383
|
# : (String val) -> String
|
|
651
1384
|
def error_title=: (String val) -> String
|
|
652
1385
|
|
|
1386
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_message=} instead.
|
|
653
1387
|
# : (?String? val) -> String?
|
|
654
1388
|
def error_message: (?String? val) -> String?
|
|
655
1389
|
|
|
656
1390
|
# : (String val) -> String
|
|
657
1391
|
def error_message=: (String val) -> String
|
|
658
1392
|
|
|
1393
|
+
# @deprecated Use {#error_message} instead. Will be removed in 0.2.0.
|
|
659
1394
|
alias error error_message
|
|
660
1395
|
|
|
1396
|
+
# @deprecated Use {#error_message=} instead. Will be removed in 0.2.0.
|
|
661
1397
|
alias error= error_message=
|
|
662
1398
|
|
|
1399
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_title=} instead.
|
|
663
1400
|
# : (?String? val) -> String?
|
|
664
1401
|
def prompt_title: (?String? val) -> String?
|
|
665
1402
|
|
|
666
1403
|
# : (String val) -> String
|
|
667
1404
|
def prompt_title=: (String val) -> String
|
|
668
1405
|
|
|
1406
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#prompt_message=} instead.
|
|
669
1407
|
# : (?String? val) -> String?
|
|
670
1408
|
def prompt_message: (?String? val) -> String?
|
|
671
1409
|
|
|
672
1410
|
# : (String val) -> String
|
|
673
1411
|
def prompt_message=: (String val) -> String
|
|
674
1412
|
|
|
1413
|
+
# @deprecated Use {#prompt_message} instead. Will be removed in 0.2.0.
|
|
675
1414
|
alias prompt prompt_message
|
|
676
1415
|
|
|
1416
|
+
# @deprecated Use {#prompt_message=} instead. Will be removed in 0.2.0.
|
|
677
1417
|
alias prompt= prompt_message=
|
|
678
1418
|
|
|
1419
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#error_style=} instead.
|
|
679
1420
|
# : (?untyped val) -> untyped
|
|
680
1421
|
def error_style: (?untyped val) -> untyped
|
|
681
1422
|
|
|
@@ -685,4 +1426,309 @@ module Xlsxrb
|
|
|
685
1426
|
# : () -> Hash[Symbol, untyped]
|
|
686
1427
|
def to_h: () -> Hash[Symbol, untyped]
|
|
687
1428
|
end
|
|
1429
|
+
|
|
1430
|
+
# Builder context for configuring conditional formatting rules in block form.
|
|
1431
|
+
#
|
|
1432
|
+
# @api public
|
|
1433
|
+
class ConditionalFormatBuilder
|
|
1434
|
+
# @param sqref [String, nil] Target cell or range reference.
|
|
1435
|
+
# @param opts [Hash] Additional conditional formatting properties.
|
|
1436
|
+
# : (?String? sqref, **untyped opts) -> void
|
|
1437
|
+
def initialize: (?String? sqref, **untyped opts) -> void
|
|
1438
|
+
|
|
1439
|
+
# @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
|
|
1440
|
+
# @param key [Symbol, String]
|
|
1441
|
+
# @return [Object, nil]
|
|
1442
|
+
# @api public
|
|
1443
|
+
# : (untyped key) -> untyped
|
|
1444
|
+
def []: (untyped key) -> untyped
|
|
1445
|
+
|
|
1446
|
+
# @deprecated Use dedicated property accessors instead. Will be removed in 0.2.0.
|
|
1447
|
+
# @param key [Symbol, String]
|
|
1448
|
+
# @param value [Object]
|
|
1449
|
+
# @return [Object]
|
|
1450
|
+
# @api public
|
|
1451
|
+
# : (untyped key, untyped value) -> untyped
|
|
1452
|
+
def []=: (untyped key, untyped value) -> untyped
|
|
1453
|
+
|
|
1454
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#sqref=} instead.
|
|
1455
|
+
# : (?String? val) -> String?
|
|
1456
|
+
def sqref: (?String? val) -> String?
|
|
1457
|
+
|
|
1458
|
+
# : (String val) -> String
|
|
1459
|
+
def sqref=: (String val) -> String
|
|
1460
|
+
|
|
1461
|
+
# @deprecated Use {#sqref} instead. Will be removed in 0.2.0.
|
|
1462
|
+
alias range sqref
|
|
1463
|
+
|
|
1464
|
+
# @deprecated Use {#sqref=} instead. Will be removed in 0.2.0.
|
|
1465
|
+
alias range= sqref=
|
|
1466
|
+
|
|
1467
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#columns=} instead.
|
|
1468
|
+
# : (?untyped val) -> untyped
|
|
1469
|
+
def columns: (?untyped val) -> untyped
|
|
1470
|
+
|
|
1471
|
+
# : (untyped val) -> untyped
|
|
1472
|
+
def columns=: (untyped val) -> untyped
|
|
1473
|
+
|
|
1474
|
+
# @deprecated Use {#columns} instead. Will be removed in 0.2.0.
|
|
1475
|
+
alias col columns
|
|
1476
|
+
|
|
1477
|
+
# @deprecated Use {#columns=} instead. Will be removed in 0.2.0.
|
|
1478
|
+
alias col= columns=
|
|
1479
|
+
|
|
1480
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rows=} instead.
|
|
1481
|
+
# : (?untyped val) -> untyped
|
|
1482
|
+
def rows: (?untyped val) -> untyped
|
|
1483
|
+
|
|
1484
|
+
# : (untyped val) -> untyped
|
|
1485
|
+
def rows=: (untyped val) -> untyped
|
|
1486
|
+
|
|
1487
|
+
# @deprecated Use {#rows} instead. Will be removed in 0.2.0.
|
|
1488
|
+
alias row rows
|
|
1489
|
+
|
|
1490
|
+
# @deprecated Use {#rows=} instead. Will be removed in 0.2.0.
|
|
1491
|
+
alias row= rows=
|
|
1492
|
+
|
|
1493
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#except_rows=} instead.
|
|
1494
|
+
# : (?untyped val) -> untyped
|
|
1495
|
+
def except_rows: (?untyped val) -> untyped
|
|
1496
|
+
|
|
1497
|
+
# : (untyped val) -> untyped
|
|
1498
|
+
def except_rows=: (untyped val) -> untyped
|
|
1499
|
+
|
|
1500
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#type=} instead.
|
|
1501
|
+
# : (?untyped val) -> untyped
|
|
1502
|
+
def type: (?untyped val) -> untyped
|
|
1503
|
+
|
|
1504
|
+
# : (untyped val) -> untyped
|
|
1505
|
+
def type=: (untyped val) -> untyped
|
|
1506
|
+
|
|
1507
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#operator=} instead.
|
|
1508
|
+
# : (?untyped val) -> untyped
|
|
1509
|
+
def operator: (?untyped val) -> untyped
|
|
1510
|
+
|
|
1511
|
+
# : (untyped val) -> untyped
|
|
1512
|
+
def operator=: (untyped val) -> untyped
|
|
1513
|
+
|
|
1514
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#formula=} instead.
|
|
1515
|
+
# : (?untyped val) -> untyped
|
|
1516
|
+
def formula: (?untyped val) -> untyped
|
|
1517
|
+
|
|
1518
|
+
# : (untyped val) -> untyped
|
|
1519
|
+
def formula=: (untyped val) -> untyped
|
|
1520
|
+
|
|
1521
|
+
# @deprecated Use {#formula} instead. Will be removed in 0.2.0.
|
|
1522
|
+
# @return [Object]
|
|
1523
|
+
# @api public
|
|
1524
|
+
# : (*untyped vals) -> untyped
|
|
1525
|
+
def formulas: (*untyped vals) -> untyped
|
|
1526
|
+
|
|
1527
|
+
# @deprecated Use {#formula=} instead. Will be removed in 0.2.0.
|
|
1528
|
+
# @param vals [Array, Object]
|
|
1529
|
+
# @return [Array]
|
|
1530
|
+
# @api public
|
|
1531
|
+
# : (untyped vals) -> untyped
|
|
1532
|
+
def formulas=: (untyped vals) -> untyped
|
|
1533
|
+
|
|
1534
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font=} instead.
|
|
1535
|
+
# : (?untyped val) -> untyped
|
|
1536
|
+
def font: (?untyped val) -> untyped
|
|
1537
|
+
|
|
1538
|
+
# : (untyped val) -> untyped
|
|
1539
|
+
def font=: (untyped val) -> untyped
|
|
1540
|
+
|
|
1541
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill=} instead.
|
|
1542
|
+
# : (?untyped val) -> untyped
|
|
1543
|
+
def fill: (?untyped val) -> untyped
|
|
1544
|
+
|
|
1545
|
+
# : (untyped val) -> untyped
|
|
1546
|
+
def fill=: (untyped val) -> untyped
|
|
1547
|
+
|
|
1548
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#fill_color=} instead.
|
|
1549
|
+
# : (?untyped val) -> untyped
|
|
1550
|
+
def fill_color: (?untyped val) -> untyped
|
|
1551
|
+
|
|
1552
|
+
# : (untyped val) -> untyped
|
|
1553
|
+
def fill_color=: (untyped val) -> untyped
|
|
1554
|
+
|
|
1555
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_color=} instead.
|
|
1556
|
+
# : (?untyped val) -> untyped
|
|
1557
|
+
def font_color: (?untyped val) -> untyped
|
|
1558
|
+
|
|
1559
|
+
# : (untyped val) -> untyped
|
|
1560
|
+
def font_color=: (untyped val) -> untyped
|
|
1561
|
+
|
|
1562
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bold=} instead.
|
|
1563
|
+
# : (?bool? val) -> bool?
|
|
1564
|
+
def bold: (?bool? val) -> bool?
|
|
1565
|
+
|
|
1566
|
+
# : (bool val) -> bool
|
|
1567
|
+
def bold=: (bool val) -> bool
|
|
1568
|
+
|
|
1569
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#italic=} instead.
|
|
1570
|
+
# : (?bool? val) -> bool?
|
|
1571
|
+
def italic: (?bool? val) -> bool?
|
|
1572
|
+
|
|
1573
|
+
# : (bool val) -> bool
|
|
1574
|
+
def italic=: (bool val) -> bool
|
|
1575
|
+
|
|
1576
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#underline=} instead.
|
|
1577
|
+
# : (?untyped val) -> untyped
|
|
1578
|
+
def underline: (?untyped val) -> untyped
|
|
1579
|
+
|
|
1580
|
+
# : (untyped val) -> untyped
|
|
1581
|
+
def underline=: (untyped val) -> untyped
|
|
1582
|
+
|
|
1583
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_name=} instead.
|
|
1584
|
+
# : (?String? val) -> String?
|
|
1585
|
+
def font_name: (?String? val) -> String?
|
|
1586
|
+
|
|
1587
|
+
# : (String val) -> String
|
|
1588
|
+
def font_name=: (String val) -> String
|
|
1589
|
+
|
|
1590
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#font_size=} instead.
|
|
1591
|
+
# : (?untyped val) -> untyped
|
|
1592
|
+
def font_size: (?untyped val) -> untyped
|
|
1593
|
+
|
|
1594
|
+
# : (untyped val) -> untyped
|
|
1595
|
+
def font_size=: (untyped val) -> untyped
|
|
1596
|
+
|
|
1597
|
+
# @deprecated Use {#font_size} instead. Will be removed in 0.2.0.
|
|
1598
|
+
def size: (?untyped val) -> untyped
|
|
1599
|
+
|
|
1600
|
+
# @deprecated Use {#font_size=} instead. Will be removed in 0.2.0.
|
|
1601
|
+
def size=: (untyped val) -> untyped
|
|
1602
|
+
|
|
1603
|
+
# @deprecated Use {#font_size} instead. Will be removed in 0.2.0.
|
|
1604
|
+
def sz: (?untyped val) -> untyped
|
|
1605
|
+
|
|
1606
|
+
# @deprecated Use {#font_size=} instead. Will be removed in 0.2.0.
|
|
1607
|
+
def sz=: (untyped val) -> untyped
|
|
1608
|
+
|
|
1609
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#stop_if_true=} instead.
|
|
1610
|
+
# : (?bool? val) -> bool?
|
|
1611
|
+
def stop_if_true: (?bool? val) -> bool?
|
|
1612
|
+
|
|
1613
|
+
# : (bool val) -> bool
|
|
1614
|
+
def stop_if_true=: (bool val) -> bool
|
|
1615
|
+
|
|
1616
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#priority=} instead.
|
|
1617
|
+
# : (?Integer? val) -> Integer?
|
|
1618
|
+
def priority: (?Integer? val) -> Integer?
|
|
1619
|
+
|
|
1620
|
+
# : (Integer val) -> Integer
|
|
1621
|
+
def priority=: (Integer val) -> Integer
|
|
1622
|
+
|
|
1623
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#above_average=} instead.
|
|
1624
|
+
# : (?bool? val) -> bool?
|
|
1625
|
+
def above_average: (?bool? val) -> bool?
|
|
1626
|
+
|
|
1627
|
+
# : (bool val) -> bool
|
|
1628
|
+
def above_average=: (bool val) -> bool
|
|
1629
|
+
|
|
1630
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#equal_average=} instead.
|
|
1631
|
+
# : (?bool? val) -> bool?
|
|
1632
|
+
def equal_average: (?bool? val) -> bool?
|
|
1633
|
+
|
|
1634
|
+
# : (bool val) -> bool
|
|
1635
|
+
def equal_average=: (bool val) -> bool
|
|
1636
|
+
|
|
1637
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#std_dev=} instead.
|
|
1638
|
+
# : (?Integer? val) -> Integer?
|
|
1639
|
+
def std_dev: (?Integer? val) -> Integer?
|
|
1640
|
+
|
|
1641
|
+
# : (Integer val) -> Integer
|
|
1642
|
+
def std_dev=: (Integer val) -> Integer
|
|
1643
|
+
|
|
1644
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#rank=} instead.
|
|
1645
|
+
# : (?Integer? val) -> Integer?
|
|
1646
|
+
def rank: (?Integer? val) -> Integer?
|
|
1647
|
+
|
|
1648
|
+
# : (Integer val) -> Integer
|
|
1649
|
+
def rank=: (Integer val) -> Integer
|
|
1650
|
+
|
|
1651
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#percent=} instead.
|
|
1652
|
+
# : (?bool? val) -> bool?
|
|
1653
|
+
def percent: (?bool? val) -> bool?
|
|
1654
|
+
|
|
1655
|
+
# : (bool val) -> bool
|
|
1656
|
+
def percent=: (bool val) -> bool
|
|
1657
|
+
|
|
1658
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#bottom=} instead.
|
|
1659
|
+
# : (?bool? val) -> bool?
|
|
1660
|
+
def bottom: (?bool? val) -> bool?
|
|
1661
|
+
|
|
1662
|
+
# : (bool val) -> bool
|
|
1663
|
+
def bottom=: (bool val) -> bool
|
|
1664
|
+
|
|
1665
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#text=} instead.
|
|
1666
|
+
# : (?String? val) -> String?
|
|
1667
|
+
def text: (?String? val) -> String?
|
|
1668
|
+
|
|
1669
|
+
# : (String val) -> String
|
|
1670
|
+
def text=: (String val) -> String
|
|
1671
|
+
|
|
1672
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#time_period=} instead.
|
|
1673
|
+
# : (?untyped val) -> untyped
|
|
1674
|
+
def time_period: (?untyped val) -> untyped
|
|
1675
|
+
|
|
1676
|
+
# : (untyped val) -> untyped
|
|
1677
|
+
def time_period=: (untyped val) -> untyped
|
|
1678
|
+
|
|
1679
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#color_scale=} instead.
|
|
1680
|
+
# : (?untyped val) -> untyped
|
|
1681
|
+
def color_scale: (?untyped val) -> untyped
|
|
1682
|
+
|
|
1683
|
+
# : (untyped val) -> untyped
|
|
1684
|
+
def color_scale=: (untyped val) -> untyped
|
|
1685
|
+
|
|
1686
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#data_bar=} instead.
|
|
1687
|
+
# : (?untyped val) -> untyped
|
|
1688
|
+
def data_bar: (?untyped val) -> untyped
|
|
1689
|
+
|
|
1690
|
+
# : (untyped val) -> untyped
|
|
1691
|
+
def data_bar=: (untyped val) -> untyped
|
|
1692
|
+
|
|
1693
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#icon_set=} instead.
|
|
1694
|
+
# : (?untyped val) -> untyped
|
|
1695
|
+
def icon_set: (?untyped val) -> untyped
|
|
1696
|
+
|
|
1697
|
+
# : (untyped val) -> untyped
|
|
1698
|
+
def icon_set=: (untyped val) -> untyped
|
|
1699
|
+
|
|
1700
|
+
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#dxf=} instead.
|
|
1701
|
+
# : (?untyped val) -> untyped
|
|
1702
|
+
def dxf: (?untyped val) -> untyped
|
|
1703
|
+
|
|
1704
|
+
# : (untyped val) -> untyped
|
|
1705
|
+
def dxf=: (untyped val) -> untyped
|
|
1706
|
+
|
|
1707
|
+
# Gets or sets the differential format identifier (dxfId).
|
|
1708
|
+
#
|
|
1709
|
+
# @param val [Integer, nil]
|
|
1710
|
+
# @return [Integer, nil]
|
|
1711
|
+
# @api public
|
|
1712
|
+
# : (?Integer? val) -> Integer?
|
|
1713
|
+
def dxf_id: (?Integer? val) -> Integer?
|
|
1714
|
+
|
|
1715
|
+
# Sets the differential format identifier (dxfId).
|
|
1716
|
+
#
|
|
1717
|
+
# @param val [Integer]
|
|
1718
|
+
# @return [Integer]
|
|
1719
|
+
# @api public
|
|
1720
|
+
# : (Integer val) -> Integer
|
|
1721
|
+
def dxf_id=: (Integer val) -> Integer
|
|
1722
|
+
|
|
1723
|
+
# @deprecated Use {#dxf_id} instead. Will be removed in 0.2.0.
|
|
1724
|
+
# : (?Integer? val) -> Integer?
|
|
1725
|
+
def format_id: (?Integer? val) -> Integer?
|
|
1726
|
+
|
|
1727
|
+
# @deprecated Use {#dxf_id=} instead. Will be removed in 0.2.0.
|
|
1728
|
+
# : (Integer val) -> Integer
|
|
1729
|
+
def format_id=: (Integer val) -> Integer
|
|
1730
|
+
|
|
1731
|
+
# : () -> Hash[Symbol, untyped]
|
|
1732
|
+
def to_h: () -> Hash[Symbol, untyped]
|
|
1733
|
+
end
|
|
688
1734
|
end
|