xlsxrb 0.1.17 → 0.2.0
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 +256 -1
- data/README.md +111 -28
- data/lib/ruby_lsp/xlsxrb/completion_listener.rb +439 -139
- data/lib/xlsxrb/chart_builder.rb +540 -193
- data/lib/xlsxrb/dsl_helpers.rb +178 -73
- data/lib/xlsxrb/elements/cell.rb +197 -130
- data/lib/xlsxrb/elements/column.rb +88 -7
- data/lib/xlsxrb/elements/coordinate_access.rb +86 -59
- data/lib/xlsxrb/elements/image.rb +18 -19
- data/lib/xlsxrb/elements/metadata.rb +2379 -0
- data/lib/xlsxrb/elements/row.rb +84 -118
- data/lib/xlsxrb/elements/styles.rb +140 -90
- data/lib/xlsxrb/elements/types.rb +164 -22
- data/lib/xlsxrb/elements/workbook.rb +122 -140
- data/lib/xlsxrb/elements/worksheet.rb +451 -226
- data/lib/xlsxrb/elements.rb +1 -0
- data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +16 -5
- data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +14 -9
- data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +296 -34
- data/lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb +17 -3
- data/lib/xlsxrb/ooxml/reader.rb +52 -50
- data/lib/xlsxrb/ooxml/styles_parser.rb +36 -5
- data/lib/xlsxrb/ooxml/utils.rb +2 -2
- data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
- data/lib/xlsxrb/ooxml/workbook_writer.rb +242 -109
- data/lib/xlsxrb/ooxml/worksheet_parser.rb +63 -31
- data/lib/xlsxrb/ooxml/worksheet_writer.rb +119 -56
- data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +33 -13
- data/lib/xlsxrb/ooxml/writer/features_xml.rb +75 -15
- data/lib/xlsxrb/ooxml/writer/styles_xml.rb +18 -8
- data/lib/xlsxrb/ooxml/writer.rb +124 -44
- data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
- data/lib/xlsxrb/ooxml/zip_generator.rb +2 -0
- data/lib/xlsxrb/ooxml/zip_reader.rb +112 -25
- data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
- data/lib/xlsxrb/stream_row.rb +56 -81
- data/lib/xlsxrb/stream_sheet.rb +542 -273
- data/lib/xlsxrb/stream_writer.rb +1536 -870
- data/lib/xlsxrb/style_builder.rb +667 -221
- data/lib/xlsxrb/version.rb +1 -1
- data/lib/xlsxrb/workbook_builder.rb +406 -143
- data/lib/xlsxrb/worksheet_builder.rb +1009 -900
- data/lib/xlsxrb.rb +1179 -1056
- data/sig/generated/xlsxrb/chart_builder.rbs +385 -159
- data/sig/generated/xlsxrb/dsl_helpers.rbs +81 -15
- data/sig/generated/xlsxrb/elements/cell.rbs +78 -70
- data/sig/generated/xlsxrb/elements/column.rbs +55 -3
- data/sig/generated/xlsxrb/elements/coordinate_access.rbs +35 -29
- data/sig/generated/xlsxrb/elements/image.rbs +7 -11
- data/sig/generated/xlsxrb/elements/metadata.rbs +1574 -0
- data/sig/generated/xlsxrb/elements/row.rbs +39 -42
- data/sig/generated/xlsxrb/elements/styles.rbs +66 -66
- data/sig/generated/xlsxrb/elements/types.rbs +27 -0
- data/sig/generated/xlsxrb/elements/workbook.rbs +46 -99
- data/sig/generated/xlsxrb/elements/worksheet.rbs +121 -96
- data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +61 -4
- data/sig/generated/xlsxrb/ooxml/reader.rbs +2 -2
- data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
- data/sig/generated/xlsxrb/ooxml/utils.rbs +3 -3
- data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +13 -1
- data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +6 -4
- data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +7 -0
- data/sig/generated/xlsxrb/ooxml/writer.rbs +22 -13
- data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
- data/sig/generated/xlsxrb/ooxml/zip_generator.rbs +2 -0
- data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +24 -9
- data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
- data/sig/generated/xlsxrb/stream_row.rbs +32 -33
- data/sig/generated/xlsxrb/stream_sheet.rbs +233 -181
- data/sig/generated/xlsxrb/stream_writer.rbs +961 -667
- data/sig/generated/xlsxrb/style_builder.rbs +402 -128
- data/sig/generated/xlsxrb/workbook_builder.rbs +223 -71
- data/sig/generated/xlsxrb/worksheet_builder.rbs +579 -453
- data/sig/generated/xlsxrb.rbs +205 -144
- data/sig/rexml.rbs +8 -0
- metadata +5 -5
- data/lib/xlsxrb/utils.rb +0 -291
- data/sig/generated/xlsxrb/utils.rbs +0 -184
|
@@ -11,8 +11,10 @@ module Xlsxrb
|
|
|
11
11
|
# : (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
|
|
12
12
|
def initialize: (String name, ?strict_excel_mode: bool, ?state: Symbol) -> void
|
|
13
13
|
|
|
14
|
+
# : String
|
|
14
15
|
attr_reader name: untyped
|
|
15
16
|
|
|
17
|
+
# : Array[Hash[Symbol, untyped]]
|
|
16
18
|
attr_reader defined_names: untyped
|
|
17
19
|
|
|
18
20
|
# Defines or configures a named cell style.
|
|
@@ -29,29 +31,52 @@ module Xlsxrb
|
|
|
29
31
|
# : (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
|
|
30
32
|
def style: (String | Symbol name, **untyped opts) ?{ (StyleBuilder) -> void } -> StyleBuilder
|
|
31
33
|
|
|
34
|
+
# Creates an {Elements::Formula} object.
|
|
35
|
+
# @api public
|
|
36
|
+
# : (String expression, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
|
|
37
|
+
def formula: (String expression, ?cached_value: String | Numeric | bool | Elements::CellError | nil, ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
|
|
38
|
+
|
|
39
|
+
# Creates an array or dynamic array {Elements::Formula} object.
|
|
40
|
+
# @api public
|
|
41
|
+
# : (String expression, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), **untyped attrs) -> Elements::Formula
|
|
42
|
+
def array_formula: (String expression, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil, **untyped attrs) -> Elements::Formula
|
|
43
|
+
|
|
44
|
+
# Creates a shared formula {Elements::Formula} object.
|
|
45
|
+
# @api public
|
|
46
|
+
# : (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil)) -> Elements::Formula
|
|
47
|
+
def shared_formula: (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil) -> Elements::Formula
|
|
48
|
+
|
|
49
|
+
# Creates an {Elements::RichText} object.
|
|
50
|
+
# @api public
|
|
51
|
+
# : (*(Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped) runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
|
|
52
|
+
def rich_text: (*Hash[Symbol, untyped] | Elements::RichTextRun | String | Array[untyped] | untyped runs, ?text: String?, ?base_font: untyped, **untyped font_props) -> Elements::RichText
|
|
53
|
+
|
|
54
|
+
# Creates or returns an {Elements::CellError} object.
|
|
55
|
+
# @api public
|
|
56
|
+
# : (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
57
|
+
def cell_error: (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
58
|
+
|
|
32
59
|
# Appends a row of cells to the worksheet.
|
|
33
60
|
#
|
|
34
61
|
# @example Add a row with values and array styles
|
|
35
|
-
# sheet.row(["ID", "Name", "Total"],
|
|
62
|
+
# sheet.row(["ID", "Name", "Total"], cell_styles: [:header, :header, :header])
|
|
36
63
|
#
|
|
37
64
|
# @example Add a row with a hash of column keys
|
|
38
65
|
# sheet.row({ "A" => "Invoice", "C" => 12345 })
|
|
39
66
|
#
|
|
40
67
|
# @param values [Array<Object>, Hash{String, Integer => Object}] The cell values.
|
|
41
|
-
# @param
|
|
68
|
+
# @param cell_styles [String, Symbol, Array<String | Symbol>, Hash, nil] Style names or inline styles to apply to each cell.
|
|
69
|
+
# @param row_style [Integer, Symbol, String, Hash, nil] Row style format or index.
|
|
42
70
|
# @param height [Float, Integer, nil] The row height in points (0 to 409).
|
|
43
71
|
# @param hidden [Boolean] Whether the row is hidden.
|
|
44
72
|
# @param custom_height [Boolean] Whether custom row height is enforced.
|
|
45
73
|
# @param outline_level [Integer, nil] Grouping/outline hierarchy level.
|
|
46
74
|
# @param collapsed [Boolean] Whether the row is collapsed.
|
|
47
|
-
# @param style [Integer, Symbol, String, Hash, nil] Row style format or index.
|
|
48
75
|
# @return [void]
|
|
49
76
|
# @raise [ArgumentError] If limits are exceeded when strict_excel_mode is enabled.
|
|
50
77
|
# @api public
|
|
51
|
-
# : (Array[untyped] | Hash[untyped, untyped] values, ?
|
|
52
|
-
def row: (Array[untyped] | Hash[untyped, untyped] values, ?
|
|
53
|
-
|
|
54
|
-
alias add_row row
|
|
78
|
+
# : (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
|
|
79
|
+
def row: (Array[untyped] | Hash[untyped, untyped] values, ?cell_styles: untyped, ?row_style: (Integer | Symbol | String | Hash[Symbol, untyped])?, ?height: Float | Integer | nil, ?hidden: bool, ?custom_height: bool, ?collapsed: bool, ?outline_level: Integer | nil) -> void
|
|
55
80
|
|
|
56
81
|
# Appends a row to the worksheet and returns self for chaining.
|
|
57
82
|
#
|
|
@@ -66,9 +91,6 @@ module Xlsxrb
|
|
|
66
91
|
|
|
67
92
|
# Advances the row cursor by count without writing empty row elements.
|
|
68
93
|
#
|
|
69
|
-
# @example Skip one row
|
|
70
|
-
# sheet.skip_row
|
|
71
|
-
#
|
|
72
94
|
# @example Skip multiple rows
|
|
73
95
|
# sheet.skip_rows(3)
|
|
74
96
|
#
|
|
@@ -78,8 +100,6 @@ module Xlsxrb
|
|
|
78
100
|
# : (?Integer count) -> void
|
|
79
101
|
def skip_rows: (?Integer count) -> void
|
|
80
102
|
|
|
81
|
-
alias skip_row skip_rows
|
|
82
|
-
|
|
83
103
|
# Sets column formatting and properties for one or multiple columns.
|
|
84
104
|
#
|
|
85
105
|
# @example Set width for column A
|
|
@@ -95,8 +115,15 @@ module Xlsxrb
|
|
|
95
115
|
# @return [void]
|
|
96
116
|
# @raise [ArgumentError] If width exceeds 255 in strict mode.
|
|
97
117
|
# @api public
|
|
98
|
-
# : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
|
|
99
|
-
def column: (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?width: Float | Integer | nil, ?hidden: bool, ?custom_width: bool, ?outline_level: Integer | nil, ?collapsed: bool, ?style: (Integer | Symbol | String | Hash[Symbol, untyped])?) -> void
|
|
118
|
+
# : (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
|
|
119
|
+
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
|
|
120
|
+
|
|
121
|
+
# Returns column configurations defined for this worksheet.
|
|
122
|
+
#
|
|
123
|
+
# @return [Array<Elements::Column>]
|
|
124
|
+
# @api public
|
|
125
|
+
# : () -> Array[Elements::Column]
|
|
126
|
+
def columns: () -> Array[Elements::Column]
|
|
100
127
|
|
|
101
128
|
# Groups multiple columns together with outline hierarchy.
|
|
102
129
|
#
|
|
@@ -117,12 +144,6 @@ module Xlsxrb
|
|
|
117
144
|
# : (Integer | String | Range[Integer | String] | Array[Integer | String] index, ?level: Integer, ?collapsed: bool, ?hidden: bool, ?width: Float | Integer | nil, ?style: untyped) -> void
|
|
118
145
|
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
|
|
119
146
|
|
|
120
|
-
alias group_column group_columns
|
|
121
|
-
|
|
122
|
-
alias group_cols group_columns
|
|
123
|
-
|
|
124
|
-
alias group_col group_columns
|
|
125
|
-
|
|
126
147
|
# Groups multiple rows with outline hierarchy, either by range or with a block.
|
|
127
148
|
#
|
|
128
149
|
# @example Group rows with a block
|
|
@@ -144,9 +165,10 @@ module Xlsxrb
|
|
|
144
165
|
# : (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
|
|
145
166
|
def group_rows: (?untyped rows, ?level: Integer, ?collapsed: bool, ?hidden: bool) ?{ (self) -> void } -> void
|
|
146
167
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
#
|
|
168
|
+
# Configures or queries worksheet-level outline and grouping view properties.
|
|
169
|
+
#
|
|
170
|
+
# When called with no arguments, returns the outline properties Hash.
|
|
171
|
+
# When called with arguments, updates outline properties and returns nil.
|
|
150
172
|
#
|
|
151
173
|
# @example Show summary row below detail rows
|
|
152
174
|
# sheet.outline_properties(summary_below: true, summary_right: true)
|
|
@@ -154,25 +176,33 @@ module Xlsxrb
|
|
|
154
176
|
# @param summary_below [Boolean, nil] Flag indicating if summary rows appear below detail rows.
|
|
155
177
|
# @param summary_right [Boolean, nil] Flag indicating if summary columns appear to the right of detail columns.
|
|
156
178
|
# @param show_outline_symbols [Boolean, nil] Flag indicating whether outline symbols are visible.
|
|
157
|
-
# @param show_symbols [Boolean, nil] Alias for show_outline_symbols.
|
|
158
179
|
# @param apply_styles [Boolean, nil] Flag indicating whether automatic styles apply to outlines.
|
|
159
180
|
# @param opts [Hash] Additional options.
|
|
160
|
-
# @return [Hash]
|
|
181
|
+
# @return [Hash<Symbol, untyped>, void]
|
|
161
182
|
# @api public
|
|
162
|
-
# : (
|
|
163
|
-
|
|
183
|
+
# : () -> Hash[Symbol, untyped]
|
|
184
|
+
# : (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> void
|
|
185
|
+
def outline_properties: () -> Hash[Symbol, untyped]
|
|
186
|
+
| (?summary_below: bool?, ?summary_right: bool?, ?show_outline_symbols: bool?, ?apply_styles: bool?, **untyped opts) -> void
|
|
164
187
|
|
|
165
|
-
|
|
188
|
+
# Sets worksheet outline and grouping view properties.
|
|
189
|
+
#
|
|
190
|
+
# @param opts [Hash] Outline properties.
|
|
191
|
+
# @return [void]
|
|
192
|
+
# @api public
|
|
193
|
+
# : (Hash[Symbol, untyped] opts) -> void
|
|
194
|
+
def outline_properties=: (Hash[Symbol, untyped] opts) -> void
|
|
166
195
|
|
|
167
196
|
# Adds a chart to the worksheet.
|
|
168
197
|
#
|
|
198
|
+
# @param type [Symbol, String, nil] Optional chart type (e.g. :bar, :line).
|
|
169
199
|
# @param options [Hash] Chart configuration options.
|
|
170
200
|
# @yield [builder]
|
|
171
201
|
# @yieldparam builder [Xlsxrb::ChartBuilder]
|
|
172
202
|
# @return [void]
|
|
173
203
|
# @api public
|
|
174
|
-
# : (**untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
175
|
-
def chart: (**untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
204
|
+
# : (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
205
|
+
def chart: (?Symbol | String? type, **untyped options) ?{ (ChartBuilder) -> void } -> void
|
|
176
206
|
|
|
177
207
|
# Adds a hyperlink to a cell.
|
|
178
208
|
#
|
|
@@ -186,42 +216,64 @@ module Xlsxrb
|
|
|
186
216
|
# : (String | Integer cell, ?(String | Elements::Hyperlink)? url, ?display: String?, ?tooltip: String?, ?location: String?) -> void
|
|
187
217
|
def hyperlink: (String | Integer cell, ?(String | Elements::Hyperlink)? url, ?display: String?, ?tooltip: String?, ?location: String?) -> void
|
|
188
218
|
|
|
189
|
-
#
|
|
219
|
+
# Returns the auto-filter range for the worksheet, or nil if none.
|
|
220
|
+
#
|
|
221
|
+
# @return [String, nil]
|
|
222
|
+
# @api public
|
|
223
|
+
# : () -> String?
|
|
224
|
+
attr_reader auto_filter: untyped
|
|
225
|
+
|
|
226
|
+
# Sets the auto-filter range for the worksheet.
|
|
190
227
|
#
|
|
191
|
-
# @param range [String]
|
|
192
|
-
# @return [String]
|
|
228
|
+
# @param range [String, nil] Cell range (e.g. "A1:E100").
|
|
229
|
+
# @return [String, nil]
|
|
193
230
|
# @api public
|
|
194
|
-
# : (String range) -> String
|
|
195
|
-
def auto_filter
|
|
231
|
+
# : (String? range) -> String?
|
|
232
|
+
def auto_filter=: (String? range) -> String?
|
|
196
233
|
|
|
197
234
|
# Configures filtering rules on a specific column of an auto-filter.
|
|
198
235
|
#
|
|
199
|
-
# @param col_id [Integer] 0-based column index relative to filter range.
|
|
236
|
+
# @param col_id [Integer, String, Symbol] 0-based column index relative to filter range or column letter ("A", :B).
|
|
200
237
|
# @param filter [Hash] Filter criteria (e.g. values, custom filters).
|
|
201
|
-
# @return [
|
|
238
|
+
# @return [void]
|
|
202
239
|
# @api public
|
|
203
|
-
# : (Integer col_id, Hash[untyped, untyped] filter) ->
|
|
204
|
-
def filter_column: (Integer col_id, Hash[untyped, untyped] filter) ->
|
|
240
|
+
# : (Integer | String | Symbol col_id, (Hash[untyped, untyped] | Array[untyped]) filter) -> void
|
|
241
|
+
def filter_column: (Integer | String | Symbol col_id, Hash[untyped, untyped] | Array[untyped] filter) -> void
|
|
205
242
|
|
|
206
|
-
# Configures column sort state for the sheet.
|
|
243
|
+
# Configures or queries column sort state for the sheet.
|
|
244
|
+
#
|
|
245
|
+
# When called with no arguments, returns the {Elements::SortState} value object.
|
|
246
|
+
# When called with arguments, updates sort state and returns nil.
|
|
207
247
|
#
|
|
208
|
-
# @param ref [String] The sorted range.
|
|
209
|
-
# @param sort_conditions [Array<Hash
|
|
248
|
+
# @param ref [String, nil] The sorted range.
|
|
249
|
+
# @param sort_conditions [Array<Hash>, nil] List of sort condition definitions.
|
|
250
|
+
# @param case_sensitive [Boolean] Whether sorting is case sensitive.
|
|
251
|
+
# @param sort_method [String, nil] Sort method.
|
|
210
252
|
# @param opts [Hash] Additional sort state options.
|
|
211
|
-
# @return [
|
|
253
|
+
# @return [Elements::SortState, nil, void]
|
|
254
|
+
# @api public
|
|
255
|
+
# : () -> Elements::SortState?
|
|
256
|
+
# : (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, ?case_sensitive: bool, ?sort_method: String?, **untyped opts) -> void
|
|
257
|
+
def sort_state: () -> Elements::SortState?
|
|
258
|
+
| (?String? ref, ?Array[Hash[untyped, untyped]]? sort_conditions, ?case_sensitive: bool, ?sort_method: String?, **untyped opts) -> void
|
|
259
|
+
|
|
260
|
+
# Sets column sort state for the sheet.
|
|
261
|
+
#
|
|
262
|
+
# @param opts [Elements::SortState, Hash, nil] Sort state options.
|
|
263
|
+
# @return [void]
|
|
212
264
|
# @api public
|
|
213
|
-
# : (
|
|
214
|
-
def sort_state
|
|
265
|
+
# : (Elements::SortState | Hash[Symbol, untyped] | nil opts) -> void
|
|
266
|
+
def sort_state=: (Elements::SortState | Hash[Symbol, untyped] | nil opts) -> void
|
|
215
267
|
|
|
216
268
|
# Adds a data validation rule to a cell, range, or coordinates.
|
|
217
269
|
#
|
|
218
270
|
# @param sqref [String, nil] Target cell or range reference (e.g. "B2:B100").
|
|
219
|
-
# @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"', or coordinate options `columns:`, `rows:`, `except_rows:`, `in:`).
|
|
271
|
+
# @param opts [Hash] Validation configuration (e.g. type: :list, formula1: '"Option1,Option2"', or coordinate options `columns:`, `rows:`, `except_rows:`, `list:`, `in:`).
|
|
220
272
|
# @yield [data_validation_builder] Optional configuration block.
|
|
221
273
|
# @return [void]
|
|
222
274
|
# @api public
|
|
223
275
|
# : (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
224
|
-
def
|
|
276
|
+
def data_validation: (?String? sqref, **untyped opts) ?{ (DataValidationBuilder) -> void } -> void
|
|
225
277
|
|
|
226
278
|
# Adds a conditional formatting rule to a cell range.
|
|
227
279
|
# Supports block configuration via {ConditionalFormatBuilder} and coordinate targeting (:columns, :rows).
|
|
@@ -255,25 +307,26 @@ module Xlsxrb
|
|
|
255
307
|
# @param source_ref [String] Source data range (e.g. "DataSheet!A1:D100").
|
|
256
308
|
# @param row_fields [Array<Integer, String>] Field names or indices for row headers.
|
|
257
309
|
# @param data_fields [Array<Hash>] Data aggregation fields.
|
|
258
|
-
# @param
|
|
259
|
-
# @param
|
|
310
|
+
# @param column_fields [Array<String, Integer>, nil] Field names or indices for columns.
|
|
311
|
+
# @param ref [String, nil] Target cell for pivot table top-left corner (e.g. "E1").
|
|
260
312
|
# @param name [String, nil] Pivot table name.
|
|
261
313
|
# @param field_names [Array<String>, nil] Custom field display names.
|
|
262
|
-
# @param items [Array, nil]
|
|
314
|
+
# @param items [Hash{Integer => Array}, nil] Items of each field, by 0-based field index.
|
|
263
315
|
# @return [void]
|
|
264
316
|
# @api public
|
|
265
|
-
# : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?
|
|
266
|
-
def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?
|
|
317
|
+
# : (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Hash[Integer, Array[untyped]]?, **untyped opts) -> void
|
|
318
|
+
def pivot_table: (String source_ref, row_fields: Array[String | Integer], data_fields: Array[String | Hash[Symbol, untyped]], ?column_fields: Array[String | Integer]?, ?ref: String?, ?name: String?, ?field_names: Array[String]?, ?items: Hash[Integer, Array[untyped]]?, **untyped opts) -> void
|
|
267
319
|
|
|
268
320
|
# Adds a cell comment / note.
|
|
269
321
|
#
|
|
270
322
|
# @param cell [String, Integer] Cell reference (e.g. "B2").
|
|
271
323
|
# @param text [String] The comment text.
|
|
272
324
|
# @param author [String] Author name.
|
|
325
|
+
# @param visible [Boolean] Whether the comment is always shown instead of on hover.
|
|
273
326
|
# @return [void]
|
|
274
327
|
# @api public
|
|
275
|
-
# : (String | Integer cell, String text, ?author: ::String) -> void
|
|
276
|
-
def comment: (String | Integer cell, String text, ?author: ::String) -> void
|
|
328
|
+
# : (String | Integer cell, String text, ?author: ::String, ?visible: bool) -> void
|
|
329
|
+
def comment: (String | Integer cell, String text, ?author: ::String, ?visible: bool) -> void
|
|
277
330
|
|
|
278
331
|
# Adds a threaded comment to a cell.
|
|
279
332
|
#
|
|
@@ -291,8 +344,6 @@ module Xlsxrb
|
|
|
291
344
|
# : (String | Integer cell, String text, ?author: untyped, ?timestamp: untyped, ?id: String?, ?parent_id: String?, ?done: bool?, ?user_id: String?, ?provider_id: String?) -> void
|
|
292
345
|
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
|
|
293
346
|
|
|
294
|
-
alias add_threaded_comment threaded_comment
|
|
295
|
-
|
|
296
347
|
# Adds a sparkline group to the sheet.
|
|
297
348
|
#
|
|
298
349
|
# @param sparklines [Array<Hash>] List of { data_ref:, location_ref: } items.
|
|
@@ -303,75 +354,92 @@ module Xlsxrb
|
|
|
303
354
|
# : (sparklines: Array[String | Hash[Symbol, untyped]], ?type: (String | Symbol)?, **untyped opts) -> void
|
|
304
355
|
def sparkline_group: (sparklines: Array[String | Hash[Symbol, untyped]], ?type: (String | Symbol)?, **untyped opts) -> void
|
|
305
356
|
|
|
306
|
-
#
|
|
307
|
-
#
|
|
308
|
-
# @example Add a line sparkline
|
|
309
|
-
# sheet.add_sparkline(location: "F1", range: "A1:E1")
|
|
310
|
-
#
|
|
311
|
-
# @example Add a column sparkline with high/low markers
|
|
312
|
-
# sheet.add_sparkline(location: "F2", range: "A2:E2", type: :column, high: true, low: true)
|
|
357
|
+
# Merges a range of cells into a single cell.
|
|
313
358
|
#
|
|
314
|
-
# @example
|
|
315
|
-
# sheet.
|
|
359
|
+
# @example Merge with string range
|
|
360
|
+
# sheet.merge("A1:C1")
|
|
316
361
|
#
|
|
317
|
-
# @param
|
|
318
|
-
# @param range [String, nil] Data range for the sparkline (e.g. "A1:E1").
|
|
319
|
-
# @param type [Symbol, String, nil] Sparkline type (:line, :column, :win_loss / :stacked).
|
|
320
|
-
# @param opts [Hash] Additional sparkline options.
|
|
362
|
+
# @param range [String] Cell range (e.g. "A1:B2").
|
|
321
363
|
# @return [void]
|
|
322
364
|
# @api public
|
|
323
|
-
# : (
|
|
324
|
-
def
|
|
365
|
+
# : (String range) -> void
|
|
366
|
+
def merge: (String range) -> void
|
|
325
367
|
|
|
326
|
-
#
|
|
327
|
-
#
|
|
328
|
-
# @example Merge with string range
|
|
329
|
-
# sheet.merge("A1:C1")
|
|
368
|
+
# Configures or queries freeze panes (<pane state="frozen">).
|
|
330
369
|
#
|
|
331
|
-
#
|
|
332
|
-
#
|
|
370
|
+
# When called with no arguments, returns the {Elements::FreezePane} value object or nil.
|
|
371
|
+
# When called with arguments, configures the freeze pane and returns nil.
|
|
333
372
|
#
|
|
334
|
-
# @param
|
|
335
|
-
# @param
|
|
336
|
-
# @param
|
|
337
|
-
# @param
|
|
338
|
-
# @
|
|
339
|
-
# @param row_end [Integer, nil] Ending row index.
|
|
340
|
-
# @return [void]
|
|
373
|
+
# @param row [Integer, nil] Number of rows to freeze from top (0-based split position).
|
|
374
|
+
# @param column [Integer, String, nil] Number of columns to freeze from left (0-based or letter).
|
|
375
|
+
# @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
|
|
376
|
+
# @param active_pane [String, Symbol, nil] Active pane identifier.
|
|
377
|
+
# @return [Elements::FreezePane, nil, void]
|
|
341
378
|
# @api public
|
|
342
|
-
# : (
|
|
343
|
-
|
|
379
|
+
# : () -> Elements::FreezePane?
|
|
380
|
+
# : (?row: Integer | nil, ?column: (Integer | String)?, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
|
|
381
|
+
def freeze_pane: () -> Elements::FreezePane?
|
|
382
|
+
| (?row: Integer | nil, ?column: (Integer | String)?, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
|
|
344
383
|
|
|
345
|
-
#
|
|
384
|
+
# Sets or clears freeze pane configuration.
|
|
346
385
|
#
|
|
347
|
-
# @param
|
|
348
|
-
# @param col [Integer, String] Number of columns to freeze from left (0-based or letter).
|
|
386
|
+
# @param opts [Elements::FreezePane, Hash, nil] Freeze pane options.
|
|
349
387
|
# @return [void]
|
|
350
388
|
# @api public
|
|
351
|
-
# : (
|
|
352
|
-
def freeze_pane
|
|
389
|
+
# : (Elements::FreezePane | Hash[Symbol, untyped] | nil opts) -> void
|
|
390
|
+
def freeze_pane=: (Elements::FreezePane | Hash[Symbol, untyped] | nil opts) -> void
|
|
353
391
|
|
|
354
|
-
# Splits window panes without freezing.
|
|
392
|
+
# Splits window panes without freezing or queries split pane settings (<pane>).
|
|
355
393
|
#
|
|
356
|
-
#
|
|
357
|
-
#
|
|
394
|
+
# When called with no arguments, returns the {Elements::SplitPane} value object or nil.
|
|
395
|
+
# When called with arguments, configures the split pane and returns nil.
|
|
396
|
+
#
|
|
397
|
+
# @param x_split [Integer, nil] Horizontal split offset in points.
|
|
398
|
+
# @param y_split [Integer, nil] Vertical split offset in points.
|
|
358
399
|
# @param top_left_cell [String, nil] Top-left cell reference in bottom-right pane.
|
|
400
|
+
# @param active_pane [String, Symbol, nil] Active pane identifier.
|
|
401
|
+
# @return [Elements::SplitPane, nil, void]
|
|
402
|
+
# @api public
|
|
403
|
+
# : () -> Elements::SplitPane?
|
|
404
|
+
# : (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
|
|
405
|
+
def split_pane: () -> Elements::SplitPane?
|
|
406
|
+
| (?x_split: Integer | nil, ?y_split: Integer | nil, ?top_left_cell: String?, ?active_pane: (String | Symbol)?) -> void
|
|
407
|
+
|
|
408
|
+
# Sets or clears split pane configuration.
|
|
409
|
+
#
|
|
410
|
+
# @param opts [Elements::SplitPane, Hash, nil] Split pane options.
|
|
359
411
|
# @return [void]
|
|
360
412
|
# @api public
|
|
361
|
-
# : (
|
|
362
|
-
def split_pane
|
|
413
|
+
# : (Elements::SplitPane | Hash[Symbol, untyped] | nil opts) -> void
|
|
414
|
+
def split_pane=: (Elements::SplitPane | Hash[Symbol, untyped] | nil opts) -> void
|
|
363
415
|
|
|
364
|
-
#
|
|
416
|
+
# Configures or queries the active cell and selection area (<selection>).
|
|
417
|
+
#
|
|
418
|
+
# When called with no arguments, returns the selection ({Elements::Selection}, Array, or nil).
|
|
419
|
+
# When called with arguments, updates the selection and returns nil.
|
|
365
420
|
#
|
|
366
|
-
# @param active_cell [String] Active cell reference (e.g. "A1").
|
|
421
|
+
# @param active_cell [String, nil] Active cell reference (e.g. "A1") or range (e.g. "A1:D10").
|
|
367
422
|
# @param sqref [String, nil] Selected range reference (e.g. "A1:D10").
|
|
368
423
|
# @param pane [String, Symbol, nil] Target pane (:topLeft, :topRight, :bottomLeft, :bottomRight).
|
|
424
|
+
# @return [Elements::Selection, Array<Elements::Selection>, nil, void]
|
|
425
|
+
# @api public
|
|
426
|
+
# : () -> (Elements::Selection | Array[Elements::Selection])?
|
|
427
|
+
# : (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
|
|
428
|
+
def selection: () -> (Elements::Selection | Array[Elements::Selection])?
|
|
429
|
+
| (?String? active_cell, ?sqref: String?, ?pane: (String | Symbol)?) -> void
|
|
430
|
+
|
|
431
|
+
# Sets or clears the selection configuration.
|
|
432
|
+
#
|
|
433
|
+
# @param opts [Elements::Selection, Array<Elements::Selection, Hash>, Hash, nil]
|
|
369
434
|
# @return [void]
|
|
370
435
|
# @api public
|
|
371
|
-
# : (
|
|
372
|
-
def
|
|
436
|
+
# : (Elements::Selection | Array[Elements::Selection | Hash[Symbol, untyped]] | Hash[Symbol, untyped] | nil opts) -> void
|
|
437
|
+
def selection=: (Elements::Selection | Array[Elements::Selection | Hash[Symbol, untyped]] | Hash[Symbol, untyped] | nil opts) -> void
|
|
373
438
|
|
|
374
|
-
#
|
|
439
|
+
# Configures or queries page margins in inches for printing (<pageMargins>).
|
|
440
|
+
#
|
|
441
|
+
# When called with no arguments, returns the {Elements::PageMargins} value object or nil.
|
|
442
|
+
# When called with arguments, configures page margins and returns nil.
|
|
375
443
|
#
|
|
376
444
|
# @param left [Float, nil] Left margin.
|
|
377
445
|
# @param right [Float, nil] Right margin.
|
|
@@ -379,50 +447,98 @@ module Xlsxrb
|
|
|
379
447
|
# @param bottom [Float, nil] Bottom margin.
|
|
380
448
|
# @param header [Float, nil] Header margin.
|
|
381
449
|
# @param footer [Float, nil] Footer margin.
|
|
382
|
-
# @return [void]
|
|
450
|
+
# @return [Elements::PageMargins, nil, void]
|
|
383
451
|
# @api public
|
|
452
|
+
# : () -> Elements::PageMargins?
|
|
384
453
|
# : (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
|
|
385
|
-
def page_margins: (
|
|
454
|
+
def page_margins: () -> Elements::PageMargins?
|
|
455
|
+
| (?left: Float?, ?right: Float?, ?top: Float?, ?bottom: Float?, ?header: Float?, ?footer: Float?) -> void
|
|
386
456
|
|
|
387
|
-
# Sets page
|
|
457
|
+
# Sets or clears page margins configuration.
|
|
388
458
|
#
|
|
389
|
-
# @param opts [Hash
|
|
459
|
+
# @param opts [Hash, Elements::PageMargins, nil]
|
|
390
460
|
# @return [void]
|
|
391
461
|
# @api public
|
|
462
|
+
# : (Hash[Symbol, untyped] | Elements::PageMargins | nil opts) -> void
|
|
463
|
+
def page_margins=: (Hash[Symbol, untyped] | Elements::PageMargins | nil opts) -> void
|
|
464
|
+
|
|
465
|
+
# Configures or queries page setup configuration (<pageSetup>).
|
|
466
|
+
#
|
|
467
|
+
# When called with no arguments, returns the {Elements::PageSetup} value object.
|
|
468
|
+
# When called with keyword arguments, updates page setup and returns nil.
|
|
469
|
+
#
|
|
470
|
+
# @param opts [Hash] Page setup options (e.g. orientation: :landscape, paper_size: 9).
|
|
471
|
+
# @return [Elements::PageSetup, void]
|
|
472
|
+
# @api public
|
|
473
|
+
# : () -> Elements::PageSetup
|
|
392
474
|
# : (**untyped opts) -> void
|
|
393
|
-
def page_setup: (
|
|
475
|
+
def page_setup: () -> Elements::PageSetup
|
|
476
|
+
| (**untyped opts) -> void
|
|
394
477
|
|
|
395
|
-
#
|
|
396
|
-
# When enabled, optionally sets fit_to_width and/or fit_to_height on page_setup.
|
|
478
|
+
# Sets page setup configuration.
|
|
397
479
|
#
|
|
398
|
-
# @param
|
|
399
|
-
# @
|
|
400
|
-
# @param height [Integer, nil] Pages tall to fit to.
|
|
401
|
-
# @return [Boolean, void]
|
|
480
|
+
# @param opts [Hash, Elements::PageSetup]
|
|
481
|
+
# @return [void]
|
|
402
482
|
# @api public
|
|
403
|
-
# : (
|
|
404
|
-
def
|
|
483
|
+
# : (Hash[Symbol, untyped] | Elements::PageSetup opts) -> void
|
|
484
|
+
def page_setup=: (Hash[Symbol, untyped] | Elements::PageSetup opts) -> void
|
|
405
485
|
|
|
406
|
-
|
|
486
|
+
# Returns whether page setup fits content to page width/height.
|
|
487
|
+
#
|
|
488
|
+
# @return [Boolean]
|
|
489
|
+
# @api public
|
|
490
|
+
# : () -> bool
|
|
491
|
+
def fit_to_page?: () -> bool
|
|
407
492
|
|
|
408
|
-
|
|
493
|
+
# Sets whether page setup fits content to page width/height.
|
|
494
|
+
#
|
|
495
|
+
# @param enabled [Boolean, nil] Whether to fit to page.
|
|
496
|
+
# @return [Boolean]
|
|
497
|
+
# @api public
|
|
498
|
+
# : (bool? enabled) -> bool?
|
|
499
|
+
def fit_to_page=: (bool? enabled) -> bool?
|
|
409
500
|
|
|
410
|
-
# Configures headers and footers for printing.
|
|
501
|
+
# Configures or queries headers and footers for printing (<headerFooter>).
|
|
502
|
+
#
|
|
503
|
+
# When called with no arguments, returns the {Elements::HeaderFooter} value object.
|
|
504
|
+
# When called with keyword arguments, updates headers and footers and returns nil.
|
|
411
505
|
#
|
|
412
506
|
# @param opts [Hash] Header and footer options (e.g. odd_header: "&CHeader Text").
|
|
507
|
+
# @return [Elements::HeaderFooter, void]
|
|
508
|
+
# @api public
|
|
509
|
+
# : () -> Elements::HeaderFooter
|
|
510
|
+
# : (**untyped opts) -> void
|
|
511
|
+
def header_footer: () -> Elements::HeaderFooter
|
|
512
|
+
| (**untyped opts) -> void
|
|
513
|
+
|
|
514
|
+
# Sets header and footer configuration.
|
|
515
|
+
#
|
|
516
|
+
# @param opts [Hash, Elements::HeaderFooter]
|
|
413
517
|
# @return [void]
|
|
414
518
|
# @api public
|
|
519
|
+
# : (Hash[Symbol, untyped] | Elements::HeaderFooter opts) -> void
|
|
520
|
+
def header_footer=: (Hash[Symbol, untyped] | Elements::HeaderFooter opts) -> void
|
|
521
|
+
|
|
522
|
+
# Configures or queries print options (<printOptions>).
|
|
523
|
+
#
|
|
524
|
+
# When called with no arguments, returns the {Elements::PrintOptions} value object.
|
|
525
|
+
# When called with keyword options, configures print options and returns nil.
|
|
526
|
+
#
|
|
527
|
+
# @param opts [Hash] Additional print options.
|
|
528
|
+
# @return [Elements::PrintOptions, void]
|
|
529
|
+
# @api public
|
|
530
|
+
# : () -> Elements::PrintOptions
|
|
415
531
|
# : (**untyped opts) -> void
|
|
416
|
-
def
|
|
532
|
+
def print_options: () -> Elements::PrintOptions
|
|
533
|
+
| (**untyped opts) -> void
|
|
417
534
|
|
|
418
|
-
#
|
|
535
|
+
# Replaces print options with the given hash or {Elements::PrintOptions} object.
|
|
419
536
|
#
|
|
420
|
-
# @param
|
|
421
|
-
# @param value [Object] Option value.
|
|
537
|
+
# @param opts [Hash, Elements::PrintOptions]
|
|
422
538
|
# @return [void]
|
|
423
539
|
# @api public
|
|
424
|
-
# : (Symbol
|
|
425
|
-
def print_options
|
|
540
|
+
# : (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
|
|
541
|
+
def print_options=: (Hash[Symbol, untyped] | Elements::PrintOptions opts) -> void
|
|
426
542
|
|
|
427
543
|
# Adds a defined name (named range or formula) scoped to this sheet or workbook.
|
|
428
544
|
# Bare cell references and coordinate keywords are automatically formatted with sheet quotes and absolute $ references.
|
|
@@ -430,43 +546,61 @@ module Xlsxrb
|
|
|
430
546
|
# @param name [String] Defined name identifier.
|
|
431
547
|
# @param value [Object, nil] Cell reference, formula, or constant.
|
|
432
548
|
# @param hidden [Boolean] Whether the defined name is hidden from Excel's UI.
|
|
433
|
-
# @param
|
|
434
|
-
# @param rows [Integer, Range, nil] Row or row range (
|
|
549
|
+
# @param columns [Integer, String, nil] Column index or letter for coordinate-based reference.
|
|
550
|
+
# @param rows [Integer, Range, nil] Row or row range (0-based) for coordinate-based reference.
|
|
435
551
|
# @param range [String, nil] Cell range reference (e.g. "A1:A10").
|
|
436
|
-
# @param sheet [String, nil]
|
|
552
|
+
# @param sheet [String, nil] Reference sheet name (defaults to current sheet).
|
|
553
|
+
# @param scope [String, Symbol, nil] Scope identifier (:workbook or sheet name).
|
|
437
554
|
# @return [void]
|
|
438
555
|
# @api public
|
|
439
|
-
# : (String name, ?untyped value, ?hidden: bool, ?
|
|
440
|
-
def defined_name: (String name, ?untyped value, ?hidden: bool, ?
|
|
556
|
+
# : (String name, ?untyped value, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?) -> void
|
|
557
|
+
def defined_name: (String name, ?untyped value, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped, ?sheet: String?, ?scope: (String | Symbol)?) -> void
|
|
441
558
|
|
|
442
|
-
#
|
|
443
|
-
#
|
|
444
|
-
# @example Set print area range
|
|
445
|
-
# sheet.print_area("A1:H50")
|
|
559
|
+
# Returns the print area for the worksheet, or nil if none.
|
|
446
560
|
#
|
|
447
561
|
# @example Get print area range
|
|
448
562
|
# sheet.print_area #=> "A1:H50"
|
|
449
563
|
#
|
|
564
|
+
# @return [String, nil]
|
|
565
|
+
# @api public
|
|
566
|
+
# : () -> String?
|
|
567
|
+
attr_reader print_area: untyped
|
|
568
|
+
|
|
569
|
+
# Sets the print area for the worksheet.
|
|
570
|
+
#
|
|
450
571
|
# @param range [String, nil] Cell range (e.g. "A1:H50").
|
|
451
572
|
# @return [String, nil]
|
|
452
573
|
# @api public
|
|
453
|
-
# : (
|
|
454
|
-
def print_area
|
|
574
|
+
# : (String? range) -> String?
|
|
575
|
+
def print_area=: (String? range) -> String?
|
|
455
576
|
|
|
456
577
|
# Sets or gets repeating print titles (rows and/or columns) for pagination.
|
|
457
578
|
#
|
|
579
|
+
# When called with no arguments, returns the {Elements::PrintTitles} value object or nil.
|
|
580
|
+
# When called with arguments, updates print titles and returns nil.
|
|
581
|
+
#
|
|
458
582
|
# @example Set repeating header rows
|
|
459
583
|
# sheet.print_titles(rows: "1:2")
|
|
460
584
|
#
|
|
461
585
|
# @example Get repeating print titles
|
|
462
|
-
# sheet.print_titles #=>
|
|
586
|
+
# sheet.print_titles #=> #<Xlsxrb::Elements::PrintTitles ...>
|
|
463
587
|
#
|
|
464
|
-
# @param rows [String, nil] Repeating row range (e.g. "1:2").
|
|
465
|
-
# @param
|
|
466
|
-
# @return [
|
|
588
|
+
# @param rows [String, Integer, Range, nil] Repeating row range (e.g. "1:2" or 0-based 0..1).
|
|
589
|
+
# @param columns [String, Integer, Symbol, Range, nil] Repeating column range (e.g. "A:B" or 0..1).
|
|
590
|
+
# @return [Elements::PrintTitles, nil, void]
|
|
591
|
+
# @api public
|
|
592
|
+
# : () -> Elements::PrintTitles?
|
|
593
|
+
# : (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?) -> void
|
|
594
|
+
def print_titles: () -> Elements::PrintTitles?
|
|
595
|
+
| (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?) -> void
|
|
596
|
+
|
|
597
|
+
# Sets repeating print titles for the worksheet.
|
|
598
|
+
#
|
|
599
|
+
# @param opts [Elements::PrintTitles, Hash, nil] Options with :rows and/or :columns.
|
|
600
|
+
# @return [Elements::PrintTitles, Hash, nil]
|
|
467
601
|
# @api public
|
|
468
|
-
# : (
|
|
469
|
-
def print_titles
|
|
602
|
+
# : (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
603
|
+
def print_titles=: (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
470
604
|
|
|
471
605
|
# Sets repeating title rows to appear at the top of each printed page.
|
|
472
606
|
# Accepts 0-indexed row numbers (WriteXLSX / xlsxrb convention) or Excel range string ("1:2").
|
|
@@ -500,141 +634,183 @@ module Xlsxrb
|
|
|
500
634
|
# : (Integer | String first, ?(Integer | String)? last) -> void
|
|
501
635
|
def repeat_columns: (Integer | String first, ?(Integer | String)? last) -> void
|
|
502
636
|
|
|
503
|
-
# Sets sheet-level protection with optional password hashing.
|
|
637
|
+
# Sets or queries sheet-level protection with optional password hashing (<sheetProtection>).
|
|
638
|
+
#
|
|
639
|
+
# When called with no arguments, returns the {Elements::SheetProtection} value object or nil.
|
|
640
|
+
# When called with keyword arguments, sets sheet protection and returns nil.
|
|
504
641
|
#
|
|
505
642
|
# @param opts [Hash] Protection options (e.g. password: "secret", select_locked_cells: true).
|
|
506
|
-
# @return [void]
|
|
643
|
+
# @return [Elements::SheetProtection, nil, void]
|
|
507
644
|
# @api public
|
|
645
|
+
# : () -> Elements::SheetProtection?
|
|
508
646
|
# : (**untyped opts) -> void
|
|
509
|
-
def
|
|
647
|
+
def sheet_protection: () -> Elements::SheetProtection?
|
|
648
|
+
| (**untyped opts) -> void
|
|
649
|
+
|
|
650
|
+
# Sets or clears sheet protection configuration.
|
|
651
|
+
#
|
|
652
|
+
# @param opts [Elements::SheetProtection, Hash, Boolean, nil]
|
|
653
|
+
# @return [void]
|
|
654
|
+
# @api public
|
|
655
|
+
# : (Elements::SheetProtection | Hash[Symbol, untyped] | bool | nil opts) -> void
|
|
656
|
+
def sheet_protection=: (Elements::SheetProtection | Hash[Symbol, untyped] | bool | nil opts) -> void
|
|
510
657
|
|
|
511
658
|
# Inserts an embedded image from raw binary data.
|
|
512
659
|
#
|
|
513
660
|
# @param file_data [String] Binary image data.
|
|
514
661
|
# @param ext [String] File extension ("png", "jpeg", etc.).
|
|
515
|
-
# @param
|
|
662
|
+
# @param from_column [Integer, nil] Top-left starting column (0-based).
|
|
516
663
|
# @param from_row [Integer] Top-left starting row (0-based).
|
|
517
|
-
# @param
|
|
664
|
+
# @param to_column [Integer, nil] Bottom-right ending column (0-based).
|
|
518
665
|
# @param to_row [Integer] Bottom-right ending row (0-based).
|
|
519
666
|
# @param opts [Hash] Additional image anchoring options.
|
|
520
667
|
# @return [void]
|
|
521
668
|
# @api public
|
|
522
|
-
# : (String file_data, ?ext: ::String, ?
|
|
523
|
-
def image: (String file_data, ?ext: ::String, ?
|
|
669
|
+
# : (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
|
|
670
|
+
def image: (String file_data, ?ext: ::String, ?from_column: ::Integer?, ?from_row: ::Integer, ?to_column: ::Integer?, ?to_row: ::Integer, **untyped opts) -> void
|
|
524
671
|
|
|
525
|
-
#
|
|
672
|
+
# Gets the worksheet background image (<picture>).
|
|
526
673
|
#
|
|
527
|
-
# @
|
|
528
|
-
# sheet.background_image(png_bytes, ext: "png")
|
|
529
|
-
#
|
|
530
|
-
# @example Set background image from file path
|
|
531
|
-
# sheet.background_image("path/to/background.png")
|
|
532
|
-
#
|
|
533
|
-
# @param file_data [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
|
|
534
|
-
# @param ext [String, nil] Image extension ("png", "jpeg", "jpg", "gif", etc.).
|
|
535
|
-
# @param opts [Hash] Additional image options.
|
|
536
|
-
# @return [Hash, nil]
|
|
674
|
+
# @return [Elements::BackgroundImage, nil]
|
|
537
675
|
# @api public
|
|
538
|
-
# : (
|
|
539
|
-
def background_image: (
|
|
540
|
-
|
|
541
|
-
alias background_picture background_image
|
|
542
|
-
|
|
543
|
-
alias picture background_image
|
|
676
|
+
# : () -> Elements::BackgroundImage?
|
|
677
|
+
def background_image: () -> Elements::BackgroundImage?
|
|
544
678
|
|
|
679
|
+
# Sets the worksheet background image (<picture>).
|
|
680
|
+
#
|
|
681
|
+
# @param val [String, Hash, Elements::Image, nil] Image binary data, file path, or image options hash.
|
|
682
|
+
# @return [untyped]
|
|
683
|
+
# @api public
|
|
684
|
+
# : (untyped val) -> untyped
|
|
545
685
|
def background_image=: (untyped val) -> untyped
|
|
546
686
|
|
|
547
|
-
alias background_picture= background_image=
|
|
548
|
-
|
|
549
|
-
alias picture= background_image=
|
|
550
|
-
|
|
551
687
|
# Inserts a drawing shape (e.g. rectangle, callout, arrow).
|
|
552
688
|
#
|
|
553
689
|
# @param preset [String] Shape preset name (e.g. "rect", "roundRect").
|
|
554
690
|
# @param text [String, nil] Shape label text.
|
|
555
|
-
# @param
|
|
691
|
+
# @param from_column [Integer, nil] Top-left column.
|
|
556
692
|
# @param from_row [Integer] Top-left row.
|
|
557
|
-
# @param
|
|
693
|
+
# @param to_column [Integer, nil] Bottom-right column.
|
|
558
694
|
# @param to_row [Integer] Bottom-right row.
|
|
559
695
|
# @param opts [Hash] Additional shape formatting options.
|
|
560
696
|
# @return [void]
|
|
561
697
|
# @api public
|
|
562
|
-
# : (**untyped opts) -> void
|
|
563
|
-
def shape: (**untyped opts) -> void
|
|
698
|
+
# : (?preset: String, ?text: String?, ?from_column: Integer?, ?from_row: Integer, ?to_column: Integer?, ?to_row: Integer, **untyped opts) -> void
|
|
699
|
+
def shape: (?preset: String, ?text: String?, ?from_column: Integer?, ?from_row: Integer, ?to_column: Integer?, ?to_row: Integer, **untyped opts) -> void
|
|
700
|
+
|
|
701
|
+
# Gets the sheet visibility state (:visible, :hidden, or :very_hidden).
|
|
702
|
+
#
|
|
703
|
+
# @return [Symbol]
|
|
704
|
+
# @api public
|
|
705
|
+
# : Symbol
|
|
706
|
+
attr_reader state: untyped
|
|
564
707
|
|
|
565
|
-
#
|
|
708
|
+
# Sets the sheet visibility state (:visible, :hidden, or :very_hidden).
|
|
566
709
|
#
|
|
567
|
-
# @param new_state [Symbol,
|
|
710
|
+
# @param new_state [Symbol, String] The new state.
|
|
568
711
|
# @return [Symbol]
|
|
569
712
|
# @api public
|
|
570
|
-
# : (
|
|
571
|
-
def state
|
|
713
|
+
# : (Symbol | String new_state) -> Symbol
|
|
714
|
+
def state=: (Symbol | String new_state) -> Symbol
|
|
715
|
+
|
|
716
|
+
# Gets the worksheet tab color.
|
|
717
|
+
#
|
|
718
|
+
# @return [String, Hash, nil]
|
|
719
|
+
# @api public
|
|
720
|
+
# : () -> (String | Hash[Symbol, untyped] | nil)
|
|
721
|
+
def tab_color: () -> (String | Hash[Symbol, untyped] | nil)
|
|
572
722
|
|
|
573
|
-
#
|
|
723
|
+
# Sets the tab color of this worksheet.
|
|
574
724
|
#
|
|
575
|
-
# @
|
|
576
|
-
#
|
|
577
|
-
# @return [String, Hash, nil]
|
|
578
|
-
# @overload tab_color(spec, **opts)
|
|
579
|
-
# Sets the tab color using an RGB hex string or color options.
|
|
580
|
-
# @param spec [String, Hash, Symbol, nil] RGB hex string (e.g. "FF0000"), theme/indexed hash, or nil.
|
|
581
|
-
# @param opts [Hash] Color keyword arguments (e.g. theme: 1, tint: 0.5, indexed: 9, auto: true).
|
|
582
|
-
# @return [String, Hash, nil]
|
|
725
|
+
# @param spec [String, Hash, Symbol, nil] Tab color hex string (e.g. "FF0000") or hash options.
|
|
726
|
+
# @return [String, Hash, nil]
|
|
583
727
|
# @api public
|
|
584
|
-
# : (
|
|
585
|
-
def tab_color
|
|
728
|
+
# : (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
|
|
729
|
+
def tab_color=: (String | Symbol | Hash[Symbol, untyped] | nil spec) -> (String | Hash[Symbol, untyped] | nil)
|
|
586
730
|
|
|
587
|
-
|
|
731
|
+
# Sets a single sheet property.
|
|
732
|
+
#
|
|
733
|
+
# Configures or queries sheet properties (<sheetPr>).
|
|
734
|
+
#
|
|
735
|
+
# When called with no arguments, returns the {Elements::SheetProperties} value object.
|
|
736
|
+
# When called with keyword options, configures properties and returns nil.
|
|
737
|
+
#
|
|
738
|
+
# @param opts [Hash] Additional sheet properties.
|
|
739
|
+
# @return [Elements::SheetProperties, void]
|
|
740
|
+
# @api public
|
|
741
|
+
# : () -> Elements::SheetProperties
|
|
742
|
+
# : (**untyped opts) -> void
|
|
743
|
+
def sheet_properties: () -> Elements::SheetProperties
|
|
744
|
+
| (**untyped opts) -> void
|
|
588
745
|
|
|
589
|
-
#
|
|
746
|
+
# Replaces worksheet properties with the given hash or {Elements::SheetProperties} object.
|
|
590
747
|
#
|
|
591
|
-
# @param
|
|
592
|
-
# @param value [Object] Property value.
|
|
748
|
+
# @param opts [Hash, Elements::SheetProperties]
|
|
593
749
|
# @return [void]
|
|
594
750
|
# @api public
|
|
595
|
-
# : (Symbol
|
|
596
|
-
def sheet_properties
|
|
751
|
+
# : (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
|
|
752
|
+
def sheet_properties=: (Hash[Symbol, untyped] | Elements::SheetProperties opts) -> void
|
|
753
|
+
|
|
754
|
+
# Configures or queries sheet view display properties (<sheetView>).
|
|
755
|
+
#
|
|
756
|
+
# When called with no arguments, returns the {Elements::SheetView} value object.
|
|
757
|
+
# When called with keyword options, configures view properties and returns nil.
|
|
758
|
+
#
|
|
759
|
+
# @param opts [Hash] Additional view properties.
|
|
760
|
+
# @return [Elements::SheetView, void]
|
|
761
|
+
# @api public
|
|
762
|
+
# : () -> Elements::SheetView
|
|
763
|
+
# : (**untyped opts) -> void
|
|
764
|
+
def sheet_view: () -> Elements::SheetView
|
|
765
|
+
| (**untyped opts) -> void
|
|
597
766
|
|
|
598
|
-
#
|
|
767
|
+
# Replaces sheet view properties with the given hash or {Elements::SheetView} object.
|
|
599
768
|
#
|
|
600
|
-
# @param
|
|
601
|
-
# @param value [Object] View property value.
|
|
769
|
+
# @param opts [Hash, Elements::SheetView]
|
|
602
770
|
# @return [void]
|
|
603
771
|
# @api public
|
|
604
|
-
# : (Symbol
|
|
605
|
-
def sheet_view
|
|
772
|
+
# : (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
|
|
773
|
+
def sheet_view=: (Hash[Symbol, untyped] | Elements::SheetView opts) -> void
|
|
606
774
|
|
|
607
|
-
# Configures sheet format properties (
|
|
775
|
+
# Configures or queries sheet format properties (<sheetFormatPr>).
|
|
608
776
|
#
|
|
609
|
-
#
|
|
610
|
-
#
|
|
777
|
+
# When called with no arguments, returns the {Elements::SheetFormat} value object.
|
|
778
|
+
# When called with keyword options, configures format properties and returns nil.
|
|
611
779
|
#
|
|
612
|
-
# @example Using
|
|
613
|
-
# sheet.sheet_format(:
|
|
780
|
+
# @example Using keyword arguments
|
|
781
|
+
# sheet.sheet_format(default_row_height: 24, default_column_width: 15)
|
|
614
782
|
#
|
|
615
|
-
# @param name [Symbol, String, Hash, nil] Property name or hash of properties.
|
|
616
|
-
# @param value [Object, nil] Property value when name is provided.
|
|
617
783
|
# @param opts [Hash] Keyword arguments for sheet format properties.
|
|
618
|
-
# @return [
|
|
784
|
+
# @return [Elements::SheetFormat, void]
|
|
619
785
|
# @api public
|
|
620
|
-
# : (
|
|
621
|
-
|
|
786
|
+
# : () -> Elements::SheetFormat
|
|
787
|
+
# : (**untyped opts) -> void
|
|
788
|
+
def sheet_format: () -> Elements::SheetFormat
|
|
789
|
+
| (**untyped opts) -> void
|
|
790
|
+
|
|
791
|
+
# Replaces sheet format properties with the given hash or {Elements::SheetFormat} object.
|
|
792
|
+
#
|
|
793
|
+
# @param opts [Hash, Elements::SheetFormat]
|
|
794
|
+
# @return [void]
|
|
795
|
+
# @api public
|
|
796
|
+
# : (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
|
|
797
|
+
def sheet_format=: (Hash[Symbol, untyped] | Elements::SheetFormat opts) -> void
|
|
622
798
|
|
|
623
|
-
# Inserts a horizontal page break
|
|
799
|
+
# Inserts a horizontal page break after the specified 0-based row.
|
|
624
800
|
#
|
|
625
|
-
# @param
|
|
801
|
+
# @param row_index [Integer] 0-based row index.
|
|
626
802
|
# @return [void]
|
|
627
803
|
# @api public
|
|
628
|
-
# : (Integer
|
|
629
|
-
def
|
|
804
|
+
# : (Integer row_index) -> void
|
|
805
|
+
def row_break: (Integer row_index) -> void
|
|
630
806
|
|
|
631
|
-
# Inserts a vertical page break
|
|
807
|
+
# Inserts a vertical page break after the specified column.
|
|
632
808
|
#
|
|
633
|
-
# @param
|
|
809
|
+
# @param col [Integer, String, Symbol] Column index (0-based) or letter ("B", :B).
|
|
634
810
|
# @return [void]
|
|
635
811
|
# @api public
|
|
636
|
-
# : (Integer | String
|
|
637
|
-
def
|
|
812
|
+
# : (Integer | String | Symbol col) -> void
|
|
813
|
+
def column_break: (Integer | String | Symbol col) -> void
|
|
638
814
|
|
|
639
815
|
# Adds a protected range to the worksheet.
|
|
640
816
|
#
|
|
@@ -647,8 +823,6 @@ module Xlsxrb
|
|
|
647
823
|
# : (String name, String sqref, ?password: String?, **untyped opts) -> void
|
|
648
824
|
def protected_range: (String name, String sqref, ?password: String?, **untyped opts) -> void
|
|
649
825
|
|
|
650
|
-
alias add_protected_range protected_range
|
|
651
|
-
|
|
652
826
|
# Adds a cell watch to the worksheet.
|
|
653
827
|
#
|
|
654
828
|
# @param ref [String] Cell reference (e.g. "A1").
|
|
@@ -657,8 +831,6 @@ module Xlsxrb
|
|
|
657
831
|
# : (String ref) -> void
|
|
658
832
|
def cell_watch: (String ref) -> void
|
|
659
833
|
|
|
660
|
-
alias add_cell_watch cell_watch
|
|
661
|
-
|
|
662
834
|
# Adds an ignored error entry for the worksheet.
|
|
663
835
|
#
|
|
664
836
|
# @param sqref [String] Cell range reference (e.g. "A1" or "A1:B10").
|
|
@@ -666,73 +838,67 @@ module Xlsxrb
|
|
|
666
838
|
# @return [void]
|
|
667
839
|
# @api public
|
|
668
840
|
# : (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
|
|
669
|
-
def
|
|
670
|
-
|
|
671
|
-
alias add_ignored_error ignore_error
|
|
841
|
+
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
|
|
672
842
|
|
|
673
843
|
# Returns ignored error rules configured for this worksheet.
|
|
674
844
|
#
|
|
675
|
-
# @return [Array<
|
|
845
|
+
# @return [Array<Elements::IgnoredError>]
|
|
676
846
|
# @api public
|
|
677
|
-
# : () -> Array[
|
|
678
|
-
def ignored_errors: () -> Array[
|
|
847
|
+
# : () -> Array[Elements::IgnoredError]
|
|
848
|
+
def ignored_errors: () -> Array[Elements::IgnoredError]
|
|
679
849
|
|
|
680
|
-
# Gets
|
|
850
|
+
# Gets phonetic (furigana) guide properties for the sheet.
|
|
681
851
|
#
|
|
682
|
-
# @
|
|
683
|
-
# Returns the current phonetic properties.
|
|
684
|
-
# @return [Hash, nil]
|
|
685
|
-
# @overload phonetic_properties(props = nil, font_id: nil, type: nil, alignment: nil)
|
|
686
|
-
# Sets phonetic properties.
|
|
687
|
-
# @param spec [Hash, Integer, nil]
|
|
688
|
-
# @param font_id [Integer, nil]
|
|
689
|
-
# @param type [Symbol, String, nil]
|
|
690
|
-
# @param alignment [Symbol, String, nil]
|
|
691
|
-
# @return [Hash, nil]
|
|
852
|
+
# @return [Elements::PhoneticProperties, nil]
|
|
692
853
|
# @api public
|
|
693
|
-
# : (
|
|
694
|
-
def phonetic_properties: (
|
|
695
|
-
|
|
696
|
-
alias phonetic_properties= phonetic_properties
|
|
854
|
+
# : () -> Elements::PhoneticProperties?
|
|
855
|
+
def phonetic_properties: () -> Elements::PhoneticProperties?
|
|
697
856
|
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
857
|
+
# Sets phonetic (furigana) guide properties for the sheet.
|
|
858
|
+
#
|
|
859
|
+
# @param spec [Hash, Integer, nil] Options hash or font ID integer.
|
|
860
|
+
# @return [Hash[Symbol, untyped], Integer, nil]
|
|
861
|
+
# @api public
|
|
862
|
+
# : (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
|
|
863
|
+
def phonetic_properties=: (Hash[Symbol, untyped] | Integer | nil spec) -> (Hash[Symbol, untyped] | Integer | nil)
|
|
701
864
|
|
|
702
865
|
# Normalizes phonetic properties to OOXML schema values.
|
|
703
866
|
#
|
|
704
867
|
# @param props [Hash, nil]
|
|
705
868
|
# @return [Hash[Symbol, untyped], nil]
|
|
869
|
+
# @api private
|
|
706
870
|
# : (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
|
|
707
871
|
def self.normalize_phonetic_properties: (Hash[untyped, untyped]? props) -> Hash[Symbol, untyped]?
|
|
708
872
|
|
|
709
|
-
#
|
|
873
|
+
# Gets the internal code name of the worksheet.
|
|
710
874
|
#
|
|
711
|
-
# @param val [String, Symbol, nil] The code name.
|
|
712
875
|
# @return [String, nil]
|
|
713
876
|
# @api public
|
|
714
|
-
# : (
|
|
715
|
-
def code_name: (
|
|
877
|
+
# : () -> String?
|
|
878
|
+
def code_name: () -> String?
|
|
716
879
|
|
|
717
|
-
|
|
880
|
+
# Sets the internal code name of the worksheet.
|
|
881
|
+
#
|
|
882
|
+
# @param val [String, Symbol, nil] The code name.
|
|
883
|
+
# @return [String, nil]
|
|
884
|
+
# @api public
|
|
885
|
+
# : (String | Symbol | nil val) -> String?
|
|
886
|
+
def code_name=: (String | Symbol | nil val) -> String?
|
|
718
887
|
|
|
719
|
-
#
|
|
888
|
+
# Gets worksheet calculation properties (<sheetCalcPr>).
|
|
720
889
|
#
|
|
721
|
-
# @
|
|
722
|
-
#
|
|
890
|
+
# @return [Elements::SheetCalcProperties, nil]
|
|
891
|
+
# @api public
|
|
892
|
+
# : () -> Elements::SheetCalcProperties?
|
|
893
|
+
def sheet_calc_properties: () -> Elements::SheetCalcProperties?
|
|
894
|
+
|
|
895
|
+
# Sets worksheet calculation properties (<sheetCalcPr>).
|
|
723
896
|
#
|
|
724
897
|
# @param spec [Hash, nil] Calculation properties hash.
|
|
725
|
-
# @param full_calc_on_load [Boolean, nil] Whether to recalculate when loading.
|
|
726
898
|
# @return [Hash, nil]
|
|
727
899
|
# @api public
|
|
728
|
-
# : (
|
|
729
|
-
def
|
|
730
|
-
|
|
731
|
-
alias sheet_calc_pr= sheet_calc_pr
|
|
732
|
-
|
|
733
|
-
alias calc_pr sheet_calc_pr
|
|
734
|
-
|
|
735
|
-
alias calc_pr= sheet_calc_pr
|
|
900
|
+
# : (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
901
|
+
def sheet_calc_properties=: (Hash[Symbol, untyped]? spec) -> Hash[Symbol, untyped]?
|
|
736
902
|
|
|
737
903
|
# Builds and returns the in-memory {Elements::Worksheet}.
|
|
738
904
|
#
|
|
@@ -760,20 +926,18 @@ module Xlsxrb
|
|
|
760
926
|
# : (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
|
|
761
927
|
def initialize: (?String? ref, ?columns: untyped, ?name: String?, ?display_name: String?, ?style: String?, **untyped opts) -> void
|
|
762
928
|
|
|
763
|
-
# : (
|
|
764
|
-
def
|
|
765
|
-
|
|
766
|
-
# : (untyped key, untyped value) -> untyped
|
|
767
|
-
def []=: (untyped key, untyped value) -> untyped
|
|
768
|
-
|
|
769
|
-
# : (?String? val) -> String?
|
|
770
|
-
def ref: (?String? val) -> String?
|
|
929
|
+
# : () -> String?
|
|
930
|
+
def ref: () -> String?
|
|
771
931
|
|
|
772
932
|
# : (String val) -> String
|
|
773
933
|
def ref=: (String val) -> String
|
|
774
934
|
|
|
775
|
-
#
|
|
776
|
-
|
|
935
|
+
# Returns column definitions for the table.
|
|
936
|
+
#
|
|
937
|
+
# @return [Array<Elements::TableColumn>]
|
|
938
|
+
# @api public
|
|
939
|
+
# : () -> Array[Elements::TableColumn]
|
|
940
|
+
def columns: () -> Array[Elements::TableColumn]
|
|
777
941
|
|
|
778
942
|
# : (untyped cols) -> untyped
|
|
779
943
|
def columns=: (untyped cols) -> untyped
|
|
@@ -786,8 +950,6 @@ module Xlsxrb
|
|
|
786
950
|
# : (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
|
|
787
951
|
def column: (String | Symbol | Hash[Symbol, untyped] col, **untyped opts) -> void
|
|
788
952
|
|
|
789
|
-
alias add_column column
|
|
790
|
-
|
|
791
953
|
# Appends a calculated column with formula and options.
|
|
792
954
|
#
|
|
793
955
|
# @param name [String, Symbol] The column name.
|
|
@@ -797,69 +959,65 @@ module Xlsxrb
|
|
|
797
959
|
# : (String | Symbol name, String formula, **untyped opts) -> void
|
|
798
960
|
def calculated_column: (String | Symbol name, String formula, **untyped opts) -> void
|
|
799
961
|
|
|
800
|
-
# : (
|
|
801
|
-
def name: (
|
|
962
|
+
# : () -> String?
|
|
963
|
+
def name: () -> String?
|
|
802
964
|
|
|
803
965
|
# : (String val) -> String
|
|
804
966
|
def name=: (String val) -> String
|
|
805
967
|
|
|
806
|
-
# : (
|
|
807
|
-
def display_name: (
|
|
968
|
+
# : () -> String?
|
|
969
|
+
def display_name: () -> String?
|
|
808
970
|
|
|
809
971
|
# : (String val) -> String
|
|
810
972
|
def display_name=: (String val) -> String
|
|
811
973
|
|
|
812
|
-
# : (
|
|
813
|
-
def style: (
|
|
974
|
+
# : () -> String?
|
|
975
|
+
def style: () -> String?
|
|
814
976
|
|
|
815
977
|
# : (String val) -> String
|
|
816
978
|
def style=: (String val) -> String
|
|
817
979
|
|
|
818
|
-
# : (
|
|
819
|
-
def show_row_stripes
|
|
980
|
+
# : () -> bool
|
|
981
|
+
def show_row_stripes?: () -> bool
|
|
820
982
|
|
|
821
983
|
# : (bool val) -> bool
|
|
822
984
|
def show_row_stripes=: (bool val) -> bool
|
|
823
985
|
|
|
824
|
-
# : (
|
|
825
|
-
def show_column_stripes
|
|
986
|
+
# : () -> bool
|
|
987
|
+
def show_column_stripes?: () -> bool
|
|
826
988
|
|
|
827
989
|
# : (bool val) -> bool
|
|
828
990
|
def show_column_stripes=: (bool val) -> bool
|
|
829
991
|
|
|
830
|
-
# : (
|
|
831
|
-
def show_first_column
|
|
992
|
+
# : () -> bool
|
|
993
|
+
def show_first_column?: () -> bool
|
|
832
994
|
|
|
833
995
|
# : (bool val) -> bool
|
|
834
996
|
def show_first_column=: (bool val) -> bool
|
|
835
997
|
|
|
836
|
-
# : (
|
|
837
|
-
def show_last_column
|
|
998
|
+
# : () -> bool
|
|
999
|
+
def show_last_column?: () -> bool
|
|
838
1000
|
|
|
839
1001
|
# : (bool val) -> bool
|
|
840
1002
|
def show_last_column=: (bool val) -> bool
|
|
841
1003
|
|
|
842
|
-
# : (
|
|
843
|
-
def
|
|
844
|
-
|
|
845
|
-
alias totals_row_count total_row_count
|
|
1004
|
+
# : () -> Integer?
|
|
1005
|
+
def totals_row_count: () -> Integer?
|
|
846
1006
|
|
|
847
1007
|
# : (Integer val) -> Integer
|
|
848
|
-
def
|
|
849
|
-
|
|
850
|
-
alias totals_row_count= total_row_count=
|
|
851
|
-
|
|
852
|
-
# : (?bool? val) -> bool?
|
|
853
|
-
def total_row: (?bool? val) -> bool?
|
|
1008
|
+
def totals_row_count=: (Integer val) -> Integer
|
|
854
1009
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
1010
|
+
# Returns whether the table has a totals row.
|
|
1011
|
+
#
|
|
1012
|
+
# @return [Boolean]
|
|
1013
|
+
# : () -> bool
|
|
1014
|
+
def totals_row?: () -> bool
|
|
858
1015
|
|
|
859
|
-
|
|
1016
|
+
# : (bool val) -> bool
|
|
1017
|
+
def totals_row=: (bool val) -> bool
|
|
860
1018
|
|
|
861
|
-
# : (
|
|
862
|
-
def auto_filter
|
|
1019
|
+
# : () -> bool
|
|
1020
|
+
def auto_filter?: () -> bool
|
|
863
1021
|
|
|
864
1022
|
# : (bool val) -> bool
|
|
865
1023
|
def auto_filter=: (bool val) -> bool
|
|
@@ -877,130 +1035,111 @@ module Xlsxrb
|
|
|
877
1035
|
# : (?String? sqref, **untyped opts) -> void
|
|
878
1036
|
def initialize: (?String? sqref, **untyped opts) -> void
|
|
879
1037
|
|
|
880
|
-
# : (
|
|
881
|
-
def
|
|
882
|
-
|
|
883
|
-
# : (untyped key, untyped value) -> untyped
|
|
884
|
-
def []=: (untyped key, untyped value) -> untyped
|
|
885
|
-
|
|
886
|
-
# : (?String? val) -> String?
|
|
887
|
-
def sqref: (?String? val) -> String?
|
|
1038
|
+
# : () -> String?
|
|
1039
|
+
def sqref: () -> String?
|
|
888
1040
|
|
|
889
1041
|
# : (String val) -> String
|
|
890
1042
|
def sqref=: (String val) -> String
|
|
891
1043
|
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
alias range= sqref=
|
|
895
|
-
|
|
896
|
-
# : (?untyped val) -> untyped
|
|
897
|
-
def columns: (?untyped val) -> untyped
|
|
1044
|
+
# : () -> untyped
|
|
1045
|
+
def columns: () -> untyped
|
|
898
1046
|
|
|
899
1047
|
# : (untyped val) -> untyped
|
|
900
1048
|
def columns=: (untyped val) -> untyped
|
|
901
1049
|
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
alias col= columns=
|
|
905
|
-
|
|
906
|
-
# : (?untyped val) -> untyped
|
|
907
|
-
def rows: (?untyped val) -> untyped
|
|
1050
|
+
# : () -> untyped
|
|
1051
|
+
def rows: () -> untyped
|
|
908
1052
|
|
|
909
1053
|
# : (untyped val) -> untyped
|
|
910
1054
|
def rows=: (untyped val) -> untyped
|
|
911
1055
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
alias row= rows=
|
|
915
|
-
|
|
916
|
-
# : (?untyped val) -> untyped
|
|
917
|
-
def except_rows: (?untyped val) -> untyped
|
|
1056
|
+
# : () -> untyped
|
|
1057
|
+
def except_rows: () -> untyped
|
|
918
1058
|
|
|
919
1059
|
# : (untyped val) -> untyped
|
|
920
1060
|
def except_rows=: (untyped val) -> untyped
|
|
921
1061
|
|
|
922
|
-
#
|
|
923
|
-
|
|
1062
|
+
# Sets or gets the list validation choices.
|
|
1063
|
+
#
|
|
1064
|
+
# @example
|
|
1065
|
+
# b.list = ["Option1", "Option2"]
|
|
1066
|
+
#
|
|
1067
|
+
# @return [Array<Object>, nil]
|
|
1068
|
+
# @api public
|
|
1069
|
+
# : () -> untyped
|
|
1070
|
+
def list: () -> untyped
|
|
924
1071
|
|
|
925
1072
|
# : (Array[untyped] val) -> untyped
|
|
926
|
-
def
|
|
1073
|
+
def list=: (Array[untyped] val) -> untyped
|
|
927
1074
|
|
|
928
|
-
# : (
|
|
929
|
-
def type: (
|
|
1075
|
+
# : () -> untyped
|
|
1076
|
+
def type: () -> untyped
|
|
930
1077
|
|
|
931
1078
|
# : (untyped val) -> untyped
|
|
932
1079
|
def type=: (untyped val) -> untyped
|
|
933
1080
|
|
|
934
|
-
# : (
|
|
935
|
-
def operator: (
|
|
1081
|
+
# : () -> untyped
|
|
1082
|
+
def operator: () -> untyped
|
|
936
1083
|
|
|
937
1084
|
# : (untyped val) -> untyped
|
|
938
1085
|
def operator=: (untyped val) -> untyped
|
|
939
1086
|
|
|
940
|
-
# : (
|
|
941
|
-
def formula1: (
|
|
1087
|
+
# : () -> untyped
|
|
1088
|
+
def formula1: () -> untyped
|
|
942
1089
|
|
|
943
1090
|
# : (untyped val) -> untyped
|
|
944
1091
|
def formula1=: (untyped val) -> untyped
|
|
945
1092
|
|
|
946
|
-
# : (
|
|
947
|
-
def formula2: (
|
|
1093
|
+
# : () -> untyped
|
|
1094
|
+
def formula2: () -> untyped
|
|
948
1095
|
|
|
949
1096
|
# : (untyped val) -> untyped
|
|
950
1097
|
def formula2=: (untyped val) -> untyped
|
|
951
1098
|
|
|
952
|
-
# : (
|
|
953
|
-
def allow_blank
|
|
1099
|
+
# : () -> bool
|
|
1100
|
+
def allow_blank?: () -> bool
|
|
954
1101
|
|
|
955
1102
|
# : (bool val) -> bool
|
|
956
1103
|
def allow_blank=: (bool val) -> bool
|
|
957
1104
|
|
|
958
|
-
# : (
|
|
959
|
-
def show_input_message
|
|
1105
|
+
# : () -> bool
|
|
1106
|
+
def show_input_message?: () -> bool
|
|
960
1107
|
|
|
961
1108
|
# : (bool val) -> bool
|
|
962
1109
|
def show_input_message=: (bool val) -> bool
|
|
963
1110
|
|
|
964
|
-
# : (
|
|
965
|
-
def show_error_message
|
|
1111
|
+
# : () -> bool
|
|
1112
|
+
def show_error_message?: () -> bool
|
|
966
1113
|
|
|
967
1114
|
# : (bool val) -> bool
|
|
968
1115
|
def show_error_message=: (bool val) -> bool
|
|
969
1116
|
|
|
970
|
-
# : (
|
|
971
|
-
def error_title: (
|
|
1117
|
+
# : () -> String?
|
|
1118
|
+
def error_title: () -> String?
|
|
972
1119
|
|
|
973
1120
|
# : (String val) -> String
|
|
974
1121
|
def error_title=: (String val) -> String
|
|
975
1122
|
|
|
976
|
-
# : (
|
|
977
|
-
def error_message: (
|
|
1123
|
+
# : () -> String?
|
|
1124
|
+
def error_message: () -> String?
|
|
978
1125
|
|
|
979
1126
|
# : (String val) -> String
|
|
980
1127
|
def error_message=: (String val) -> String
|
|
981
1128
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
alias error= error_message=
|
|
985
|
-
|
|
986
|
-
# : (?String? val) -> String?
|
|
987
|
-
def prompt_title: (?String? val) -> String?
|
|
1129
|
+
# : () -> String?
|
|
1130
|
+
def prompt_title: () -> String?
|
|
988
1131
|
|
|
989
1132
|
# : (String val) -> String
|
|
990
1133
|
def prompt_title=: (String val) -> String
|
|
991
1134
|
|
|
992
|
-
# : (
|
|
993
|
-
def prompt_message: (
|
|
1135
|
+
# : () -> String?
|
|
1136
|
+
def prompt_message: () -> String?
|
|
994
1137
|
|
|
995
1138
|
# : (String val) -> String
|
|
996
1139
|
def prompt_message=: (String val) -> String
|
|
997
1140
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
alias prompt= prompt_message=
|
|
1001
|
-
|
|
1002
|
-
# : (?untyped val) -> untyped
|
|
1003
|
-
def error_style: (?untyped val) -> untyped
|
|
1141
|
+
# : () -> untyped
|
|
1142
|
+
def error_style: () -> untyped
|
|
1004
1143
|
|
|
1005
1144
|
# : (untyped val) -> untyped
|
|
1006
1145
|
def error_style=: (untyped val) -> untyped
|
|
@@ -1018,213 +1157,200 @@ module Xlsxrb
|
|
|
1018
1157
|
# : (?String? sqref, **untyped opts) -> void
|
|
1019
1158
|
def initialize: (?String? sqref, **untyped opts) -> void
|
|
1020
1159
|
|
|
1021
|
-
# : (
|
|
1022
|
-
def
|
|
1023
|
-
|
|
1024
|
-
# : (untyped key, untyped value) -> untyped
|
|
1025
|
-
def []=: (untyped key, untyped value) -> untyped
|
|
1026
|
-
|
|
1027
|
-
# : (?String? val) -> String?
|
|
1028
|
-
def sqref: (?String? val) -> String?
|
|
1160
|
+
# : () -> String?
|
|
1161
|
+
def sqref: () -> String?
|
|
1029
1162
|
|
|
1030
1163
|
# : (String val) -> String
|
|
1031
1164
|
def sqref=: (String val) -> String
|
|
1032
1165
|
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
alias range= sqref=
|
|
1036
|
-
|
|
1037
|
-
# : (?untyped val) -> untyped
|
|
1038
|
-
def columns: (?untyped val) -> untyped
|
|
1166
|
+
# : () -> untyped
|
|
1167
|
+
def columns: () -> untyped
|
|
1039
1168
|
|
|
1040
1169
|
# : (untyped val) -> untyped
|
|
1041
1170
|
def columns=: (untyped val) -> untyped
|
|
1042
1171
|
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
alias col= columns=
|
|
1046
|
-
|
|
1047
|
-
# : (?untyped val) -> untyped
|
|
1048
|
-
def rows: (?untyped val) -> untyped
|
|
1172
|
+
# : () -> untyped
|
|
1173
|
+
def rows: () -> untyped
|
|
1049
1174
|
|
|
1050
1175
|
# : (untyped val) -> untyped
|
|
1051
1176
|
def rows=: (untyped val) -> untyped
|
|
1052
1177
|
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
alias row= rows=
|
|
1056
|
-
|
|
1057
|
-
# : (?untyped val) -> untyped
|
|
1058
|
-
def except_rows: (?untyped val) -> untyped
|
|
1178
|
+
# : () -> untyped
|
|
1179
|
+
def except_rows: () -> untyped
|
|
1059
1180
|
|
|
1060
1181
|
# : (untyped val) -> untyped
|
|
1061
1182
|
def except_rows=: (untyped val) -> untyped
|
|
1062
1183
|
|
|
1063
|
-
# : (
|
|
1064
|
-
def type: (
|
|
1184
|
+
# : () -> untyped
|
|
1185
|
+
def type: () -> untyped
|
|
1065
1186
|
|
|
1066
1187
|
# : (untyped val) -> untyped
|
|
1067
1188
|
def type=: (untyped val) -> untyped
|
|
1068
1189
|
|
|
1069
|
-
# : (
|
|
1070
|
-
def operator: (
|
|
1190
|
+
# : () -> untyped
|
|
1191
|
+
def operator: () -> untyped
|
|
1071
1192
|
|
|
1072
1193
|
# : (untyped val) -> untyped
|
|
1073
1194
|
def operator=: (untyped val) -> untyped
|
|
1074
1195
|
|
|
1075
|
-
# : (
|
|
1076
|
-
def formula: (
|
|
1196
|
+
# : () -> untyped
|
|
1197
|
+
def formula: () -> untyped
|
|
1077
1198
|
|
|
1078
1199
|
# : (untyped val) -> untyped
|
|
1079
1200
|
def formula=: (untyped val) -> untyped
|
|
1080
1201
|
|
|
1081
|
-
# : (
|
|
1082
|
-
def
|
|
1083
|
-
|
|
1084
|
-
# : (untyped vals) -> untyped
|
|
1085
|
-
def formulas=: (untyped vals) -> untyped
|
|
1086
|
-
|
|
1087
|
-
# : (?untyped val) -> untyped
|
|
1088
|
-
def font: (?untyped val) -> untyped
|
|
1202
|
+
# : () -> untyped
|
|
1203
|
+
def font: () -> untyped
|
|
1089
1204
|
|
|
1090
1205
|
# : (untyped val) -> untyped
|
|
1091
1206
|
def font=: (untyped val) -> untyped
|
|
1092
1207
|
|
|
1093
|
-
# : (
|
|
1094
|
-
def fill: (
|
|
1208
|
+
# : () -> untyped
|
|
1209
|
+
def fill: () -> untyped
|
|
1095
1210
|
|
|
1096
1211
|
# : (untyped val) -> untyped
|
|
1097
1212
|
def fill=: (untyped val) -> untyped
|
|
1098
1213
|
|
|
1099
|
-
# : (
|
|
1100
|
-
def fill_color: (
|
|
1214
|
+
# : () -> untyped
|
|
1215
|
+
def fill_color: () -> untyped
|
|
1101
1216
|
|
|
1102
1217
|
# : (untyped val) -> untyped
|
|
1103
1218
|
def fill_color=: (untyped val) -> untyped
|
|
1104
1219
|
|
|
1105
|
-
# : (
|
|
1106
|
-
def font_color: (
|
|
1220
|
+
# : () -> untyped
|
|
1221
|
+
def font_color: () -> untyped
|
|
1107
1222
|
|
|
1108
1223
|
# : (untyped val) -> untyped
|
|
1109
1224
|
def font_color=: (untyped val) -> untyped
|
|
1110
1225
|
|
|
1111
|
-
# : (
|
|
1112
|
-
def bold
|
|
1226
|
+
# : () -> bool
|
|
1227
|
+
def bold?: () -> bool
|
|
1113
1228
|
|
|
1114
1229
|
# : (bool val) -> bool
|
|
1115
1230
|
def bold=: (bool val) -> bool
|
|
1116
1231
|
|
|
1117
|
-
# : (
|
|
1118
|
-
def italic
|
|
1232
|
+
# : () -> bool
|
|
1233
|
+
def italic?: () -> bool
|
|
1119
1234
|
|
|
1120
1235
|
# : (bool val) -> bool
|
|
1121
1236
|
def italic=: (bool val) -> bool
|
|
1122
1237
|
|
|
1123
|
-
# : (
|
|
1124
|
-
def underline: (
|
|
1238
|
+
# : () -> untyped
|
|
1239
|
+
def underline: () -> untyped
|
|
1125
1240
|
|
|
1126
1241
|
# : (untyped val) -> untyped
|
|
1127
1242
|
def underline=: (untyped val) -> untyped
|
|
1128
1243
|
|
|
1129
|
-
# : (
|
|
1130
|
-
def
|
|
1244
|
+
# : () -> String?
|
|
1245
|
+
def font_name: () -> String?
|
|
1131
1246
|
|
|
1132
|
-
# : (
|
|
1133
|
-
def
|
|
1247
|
+
# : (String val) -> String
|
|
1248
|
+
def font_name=: (String val) -> String
|
|
1134
1249
|
|
|
1135
|
-
|
|
1250
|
+
# : () -> untyped
|
|
1251
|
+
def font_size: () -> untyped
|
|
1136
1252
|
|
|
1137
|
-
|
|
1253
|
+
# : (untyped val) -> untyped
|
|
1254
|
+
def font_size=: (untyped val) -> untyped
|
|
1138
1255
|
|
|
1139
|
-
# : (
|
|
1140
|
-
def stop_if_true
|
|
1256
|
+
# : () -> bool
|
|
1257
|
+
def stop_if_true?: () -> bool
|
|
1141
1258
|
|
|
1142
1259
|
# : (bool val) -> bool
|
|
1143
1260
|
def stop_if_true=: (bool val) -> bool
|
|
1144
1261
|
|
|
1145
|
-
# : (
|
|
1146
|
-
def priority: (
|
|
1262
|
+
# : () -> Integer?
|
|
1263
|
+
def priority: () -> Integer?
|
|
1147
1264
|
|
|
1148
1265
|
# : (Integer val) -> Integer
|
|
1149
1266
|
def priority=: (Integer val) -> Integer
|
|
1150
1267
|
|
|
1151
|
-
# : (
|
|
1152
|
-
def above_average
|
|
1268
|
+
# : () -> bool
|
|
1269
|
+
def above_average?: () -> bool
|
|
1153
1270
|
|
|
1154
1271
|
# : (bool val) -> bool
|
|
1155
1272
|
def above_average=: (bool val) -> bool
|
|
1156
1273
|
|
|
1157
|
-
# : (
|
|
1158
|
-
def equal_average
|
|
1274
|
+
# : () -> bool
|
|
1275
|
+
def equal_average?: () -> bool
|
|
1159
1276
|
|
|
1160
1277
|
# : (bool val) -> bool
|
|
1161
1278
|
def equal_average=: (bool val) -> bool
|
|
1162
1279
|
|
|
1163
|
-
# : (
|
|
1164
|
-
def std_dev: (
|
|
1280
|
+
# : () -> Integer?
|
|
1281
|
+
def std_dev: () -> Integer?
|
|
1165
1282
|
|
|
1166
1283
|
# : (Integer val) -> Integer
|
|
1167
1284
|
def std_dev=: (Integer val) -> Integer
|
|
1168
1285
|
|
|
1169
|
-
# : (
|
|
1170
|
-
def rank: (
|
|
1286
|
+
# : () -> Integer?
|
|
1287
|
+
def rank: () -> Integer?
|
|
1171
1288
|
|
|
1172
1289
|
# : (Integer val) -> Integer
|
|
1173
1290
|
def rank=: (Integer val) -> Integer
|
|
1174
1291
|
|
|
1175
|
-
# : (
|
|
1176
|
-
def percent
|
|
1292
|
+
# : () -> bool
|
|
1293
|
+
def percent?: () -> bool
|
|
1177
1294
|
|
|
1178
1295
|
# : (bool val) -> bool
|
|
1179
1296
|
def percent=: (bool val) -> bool
|
|
1180
1297
|
|
|
1181
|
-
# : (
|
|
1182
|
-
def bottom
|
|
1298
|
+
# : () -> bool
|
|
1299
|
+
def bottom?: () -> bool
|
|
1183
1300
|
|
|
1184
1301
|
# : (bool val) -> bool
|
|
1185
1302
|
def bottom=: (bool val) -> bool
|
|
1186
1303
|
|
|
1187
|
-
# : (
|
|
1188
|
-
def text: (
|
|
1304
|
+
# : () -> String?
|
|
1305
|
+
def text: () -> String?
|
|
1189
1306
|
|
|
1190
1307
|
# : (String val) -> String
|
|
1191
1308
|
def text=: (String val) -> String
|
|
1192
1309
|
|
|
1193
|
-
# : (
|
|
1194
|
-
def time_period: (
|
|
1310
|
+
# : () -> untyped
|
|
1311
|
+
def time_period: () -> untyped
|
|
1195
1312
|
|
|
1196
1313
|
# : (untyped val) -> untyped
|
|
1197
1314
|
def time_period=: (untyped val) -> untyped
|
|
1198
1315
|
|
|
1199
|
-
# : (
|
|
1200
|
-
def color_scale: (
|
|
1316
|
+
# : () -> untyped
|
|
1317
|
+
def color_scale: () -> untyped
|
|
1201
1318
|
|
|
1202
1319
|
# : (untyped val) -> untyped
|
|
1203
1320
|
def color_scale=: (untyped val) -> untyped
|
|
1204
1321
|
|
|
1205
|
-
# : (
|
|
1206
|
-
def data_bar: (
|
|
1322
|
+
# : () -> untyped
|
|
1323
|
+
def data_bar: () -> untyped
|
|
1207
1324
|
|
|
1208
1325
|
# : (untyped val) -> untyped
|
|
1209
1326
|
def data_bar=: (untyped val) -> untyped
|
|
1210
1327
|
|
|
1211
|
-
# : (
|
|
1212
|
-
def icon_set: (
|
|
1328
|
+
# : () -> untyped
|
|
1329
|
+
def icon_set: () -> untyped
|
|
1213
1330
|
|
|
1214
1331
|
# : (untyped val) -> untyped
|
|
1215
1332
|
def icon_set=: (untyped val) -> untyped
|
|
1216
1333
|
|
|
1217
|
-
# : (
|
|
1218
|
-
def dxf: (
|
|
1334
|
+
# : () -> untyped
|
|
1335
|
+
def dxf: () -> untyped
|
|
1219
1336
|
|
|
1220
1337
|
# : (untyped val) -> untyped
|
|
1221
1338
|
def dxf=: (untyped val) -> untyped
|
|
1222
1339
|
|
|
1223
|
-
#
|
|
1224
|
-
|
|
1340
|
+
# Gets the differential format identifier (dxfId).
|
|
1341
|
+
#
|
|
1342
|
+
# @return [Integer, nil]
|
|
1343
|
+
# @api public
|
|
1344
|
+
# : () -> Integer?
|
|
1345
|
+
def dxf_id: () -> Integer?
|
|
1225
1346
|
|
|
1347
|
+
# Sets the differential format identifier (dxfId).
|
|
1348
|
+
#
|
|
1349
|
+
# @param val [Integer]
|
|
1350
|
+
# @return [Integer]
|
|
1351
|
+
# @api public
|
|
1226
1352
|
# : (Integer val) -> Integer
|
|
1227
|
-
def
|
|
1353
|
+
def dxf_id=: (Integer val) -> Integer
|
|
1228
1354
|
|
|
1229
1355
|
# : () -> Hash[Symbol, untyped]
|
|
1230
1356
|
def to_h: () -> Hash[Symbol, untyped]
|