xlsxrb 0.1.18 → 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 +163 -0
- data/README.md +34 -11
- data/lib/ruby_lsp/xlsxrb/completion_listener.rb +410 -80
- data/lib/xlsxrb/chart_builder.rb +251 -386
- data/lib/xlsxrb/dsl_helpers.rb +120 -67
- data/lib/xlsxrb/elements/cell.rb +37 -157
- data/lib/xlsxrb/elements/column.rb +11 -19
- data/lib/xlsxrb/elements/coordinate_access.rb +15 -86
- data/lib/xlsxrb/elements/image.rb +5 -72
- data/lib/xlsxrb/elements/metadata.rb +463 -817
- data/lib/xlsxrb/elements/row.rb +27 -145
- data/lib/xlsxrb/elements/styles.rb +30 -88
- data/lib/xlsxrb/elements/types.rb +6 -99
- data/lib/xlsxrb/elements/workbook.rb +19 -126
- data/lib/xlsxrb/elements/worksheet.rb +43 -314
- data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +4 -1
- data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +7 -7
- data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +32 -17
- data/lib/xlsxrb/ooxml/reader.rb +49 -51
- data/lib/xlsxrb/ooxml/styles_parser.rb +26 -2
- data/lib/xlsxrb/ooxml/utils.rb +2 -2
- data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
- data/lib/xlsxrb/ooxml/workbook_writer.rb +172 -93
- data/lib/xlsxrb/ooxml/worksheet_parser.rb +61 -29
- data/lib/xlsxrb/ooxml/worksheet_writer.rb +65 -47
- data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +28 -11
- data/lib/xlsxrb/ooxml/writer/features_xml.rb +53 -14
- data/lib/xlsxrb/ooxml/writer/styles_xml.rb +1 -1
- data/lib/xlsxrb/ooxml/writer.rb +105 -41
- data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
- data/lib/xlsxrb/ooxml/zip_reader.rb +65 -15
- data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
- data/lib/xlsxrb/stream_row.rb +12 -116
- data/lib/xlsxrb/stream_sheet.rb +14 -261
- data/lib/xlsxrb/stream_writer.rb +623 -1476
- data/lib/xlsxrb/style_builder.rb +376 -593
- data/lib/xlsxrb/version.rb +1 -1
- data/lib/xlsxrb/workbook_builder.rb +192 -226
- data/lib/xlsxrb/worksheet_builder.rb +456 -1324
- data/lib/xlsxrb.rb +266 -1083
- data/sig/generated/xlsxrb/chart_builder.rbs +202 -205
- data/sig/generated/xlsxrb/dsl_helpers.rbs +64 -16
- data/sig/generated/xlsxrb/elements/cell.rbs +12 -76
- data/sig/generated/xlsxrb/elements/column.rbs +0 -7
- data/sig/generated/xlsxrb/elements/coordinate_access.rbs +5 -41
- data/sig/generated/xlsxrb/elements/image.rbs +3 -29
- data/sig/generated/xlsxrb/elements/metadata.rbs +138 -151
- data/sig/generated/xlsxrb/elements/row.rbs +10 -53
- data/sig/generated/xlsxrb/elements/styles.rbs +1 -39
- data/sig/generated/xlsxrb/elements/workbook.rbs +14 -78
- data/sig/generated/xlsxrb/elements/worksheet.rbs +5 -121
- data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +0 -4
- data/sig/generated/xlsxrb/ooxml/reader.rbs +0 -3
- 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 +12 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
- data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +5 -3
- data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +7 -0
- data/sig/generated/xlsxrb/ooxml/writer.rbs +20 -14
- data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
- data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +22 -7
- data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
- data/sig/generated/xlsxrb/stream_row.rbs +7 -42
- data/sig/generated/xlsxrb/stream_sheet.rbs +1 -158
- data/sig/generated/xlsxrb/stream_writer.rbs +457 -976
- data/sig/generated/xlsxrb/style_builder.rbs +206 -242
- data/sig/generated/xlsxrb/workbook_builder.rbs +84 -132
- data/sig/generated/xlsxrb/worksheet_builder.rbs +309 -685
- data/sig/generated/xlsxrb.rbs +43 -190
- data/sig/rexml.rbs +8 -0
- metadata +3 -5
- data/lib/xlsxrb/utils.rb +0 -251
- data/sig/generated/xlsxrb/utils.rbs +0 -200
|
@@ -9,27 +9,17 @@ module Xlsxrb
|
|
|
9
9
|
# sheet.row(["Product", "Revenue"])
|
|
10
10
|
# sheet.row(["Widget", 1000])
|
|
11
11
|
# end
|
|
12
|
-
# builder.
|
|
12
|
+
# builder.core_properties(creator: "Reporting System")
|
|
13
13
|
# end
|
|
14
14
|
#
|
|
15
15
|
# @api public
|
|
16
16
|
class WorkbookBuilder
|
|
17
|
+
OMITTED: untyped
|
|
18
|
+
|
|
17
19
|
# @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel specifications.
|
|
18
|
-
# @param escape_formulas [Boolean] Whether to treat strings starting with formula prefixes as plain text.
|
|
19
20
|
# @param default_font [Hash, nil] Optional default font options (e.g. `{ name: "Arial", size: 12 }`).
|
|
20
|
-
# : (?strict_excel_mode: bool, ?
|
|
21
|
-
def initialize: (?strict_excel_mode: bool, ?
|
|
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
|
|
21
|
+
# : (?strict_excel_mode: bool, ?default_font: untyped?) -> void
|
|
22
|
+
def initialize: (?strict_excel_mode: bool, ?default_font: untyped?) -> void
|
|
33
23
|
|
|
34
24
|
# Sets or configures the workbook-wide default font.
|
|
35
25
|
#
|
|
@@ -41,9 +31,6 @@ module Xlsxrb
|
|
|
41
31
|
# : (?String | Hash[Symbol, untyped]? name, ?Float | Integer | nil size, **untyped opts) -> void
|
|
42
32
|
def default_font: (?String | Hash[Symbol, untyped]? name, ?Float | Integer | nil size, **untyped opts) -> void
|
|
43
33
|
|
|
44
|
-
# @deprecated Use {#default_font} instead. Will be removed in 0.2.0.
|
|
45
|
-
alias set_default_font default_font
|
|
46
|
-
|
|
47
34
|
# @return [Hash{String => StyleBuilder}]
|
|
48
35
|
# : Hash[String, StyleBuilder]
|
|
49
36
|
attr_reader styles: untyped
|
|
@@ -111,86 +98,48 @@ module Xlsxrb
|
|
|
111
98
|
# : (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
112
99
|
def cell_error: (String | Symbol | Elements::CellError code) -> Elements::CellError
|
|
113
100
|
|
|
114
|
-
OMITTED: untyped
|
|
115
|
-
|
|
116
101
|
# Gets or sets the active worksheet tab in the workbook window.
|
|
117
102
|
#
|
|
118
|
-
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#active_sheet=} instead.
|
|
119
|
-
# @param name_or_index [String, Symbol, Integer, nil] Sheet name or 0-based sheet index.
|
|
120
103
|
# @return [String, Symbol, Integer, nil]
|
|
121
104
|
# @api public
|
|
122
|
-
# : (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# @deprecated Use {#active_sheet} instead. Will be removed in 0.2.0.
|
|
126
|
-
alias active_tab active_sheet
|
|
127
|
-
|
|
128
|
-
# Sets the active worksheet tab in the workbook window.
|
|
129
|
-
#
|
|
130
|
-
# @param name_or_index [String, Symbol, Integer, nil] Sheet name or 0-based sheet index.
|
|
131
|
-
# @return [String, Symbol, Integer, nil]
|
|
132
|
-
# @api public
|
|
133
|
-
attr_writer active_sheet: String | Symbol | Integer | nil
|
|
134
|
-
|
|
135
|
-
# @deprecated Use {#active_sheet=} instead. Will be removed in 0.2.0.
|
|
136
|
-
alias active_tab= active_sheet=
|
|
105
|
+
# : (String | Symbol | Integer | nil)
|
|
106
|
+
attr_accessor active_sheet: untyped
|
|
137
107
|
|
|
138
108
|
# Gets or sets the first sheet tab visible in the sheet tab scroll area.
|
|
139
109
|
#
|
|
140
|
-
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#first_sheet=} instead.
|
|
141
|
-
# @param name_or_index [String, Symbol, Integer, nil] Sheet name or 0-based sheet index.
|
|
142
|
-
# @return [String, Symbol, Integer, nil]
|
|
143
|
-
# @api public
|
|
144
|
-
# : (?String | Symbol | Integer | nil name_or_index) -> (String | Symbol | Integer | nil)
|
|
145
|
-
def first_sheet: (?String | Symbol | Integer | nil name_or_index) -> (String | Symbol | Integer | nil)
|
|
146
|
-
|
|
147
|
-
# Sets the first sheet tab visible in the sheet tab scroll area.
|
|
148
|
-
#
|
|
149
|
-
# @param name_or_index [String, Symbol, Integer, nil] Sheet name or 0-based sheet index.
|
|
150
110
|
# @return [String, Symbol, Integer, nil]
|
|
151
111
|
# @api public
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
# Gets or sets whether sheet tabs are visible in the workbook window.
|
|
155
|
-
#
|
|
156
|
-
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#show_sheet_tabs=} instead.
|
|
157
|
-
# @param visible [Boolean, nil]
|
|
158
|
-
# @return [Boolean, nil]
|
|
159
|
-
# @api public
|
|
160
|
-
# : (?bool? visible) -> bool?
|
|
161
|
-
def show_sheet_tabs: (?bool? visible) -> bool?
|
|
112
|
+
# : (String | Symbol | Integer | nil)
|
|
113
|
+
attr_accessor first_sheet: untyped
|
|
162
114
|
|
|
163
115
|
# Sets whether sheet tabs are visible in the workbook window.
|
|
164
116
|
#
|
|
165
117
|
# @param visible [Boolean, nil]
|
|
166
118
|
# @return [Boolean, nil]
|
|
167
119
|
# @api public
|
|
168
|
-
|
|
120
|
+
# : (bool? visible) -> bool?
|
|
121
|
+
attr_writer show_sheet_tabs: untyped
|
|
169
122
|
|
|
170
|
-
#
|
|
123
|
+
# Returns whether sheet tabs are visible in the workbook window.
|
|
171
124
|
#
|
|
172
|
-
# @
|
|
173
|
-
# @param ratio [Integer, nil]
|
|
174
|
-
# @return [Integer, nil]
|
|
125
|
+
# @return [Boolean]
|
|
175
126
|
# @api public
|
|
176
|
-
# : (
|
|
177
|
-
def
|
|
127
|
+
# : () -> bool
|
|
128
|
+
def show_sheet_tabs?: () -> bool
|
|
178
129
|
|
|
179
|
-
#
|
|
130
|
+
# Gets or sets the ratio between the sheet tabs bar and the horizontal scroll bar (0-1000).
|
|
180
131
|
#
|
|
181
|
-
# @param ratio [Integer, nil]
|
|
182
132
|
# @return [Integer, nil]
|
|
183
133
|
# @api public
|
|
184
|
-
|
|
134
|
+
# : Integer?
|
|
135
|
+
attr_accessor tab_ratio: untyped
|
|
185
136
|
|
|
186
|
-
# Gets
|
|
137
|
+
# Gets the internal code name of the workbook.
|
|
187
138
|
#
|
|
188
|
-
# @deprecated Calling with arguments is deprecated and will be removed in 0.2.0. Use {#code_name=} instead.
|
|
189
|
-
# @param name [String, Symbol, nil] The code name.
|
|
190
139
|
# @return [String, nil]
|
|
191
140
|
# @api public
|
|
192
|
-
# : (
|
|
193
|
-
def code_name: (
|
|
141
|
+
# : () -> String?
|
|
142
|
+
def code_name: () -> String?
|
|
194
143
|
|
|
195
144
|
# Sets the internal code name of the workbook.
|
|
196
145
|
#
|
|
@@ -200,25 +149,22 @@ module Xlsxrb
|
|
|
200
149
|
# : (String | Symbol | nil name) -> String?
|
|
201
150
|
def code_name=: (String | Symbol | nil name) -> String?
|
|
202
151
|
|
|
203
|
-
#
|
|
152
|
+
# Configures or queries workbook-level properties.
|
|
153
|
+
#
|
|
154
|
+
# When called with no arguments, returns the {Elements::WorkbookProperties} value object.
|
|
155
|
+
# When called with keyword options, configures properties and returns nil.
|
|
204
156
|
#
|
|
205
157
|
# @note **SECURITY WARNING:** If you set `:update_links` to anything other than `"never"`,
|
|
206
158
|
# you may expose end-users to malicious external reference vulnerabilities (e.g., CSV/DDE Injection)
|
|
207
159
|
# when they open the generated Excel file. Ensure you fully trust the exported data.
|
|
208
160
|
#
|
|
209
|
-
# @param
|
|
210
|
-
# @
|
|
211
|
-
# @return [void]
|
|
212
|
-
# @api public
|
|
213
|
-
# : (Symbol name, String | Integer | bool value) -> void
|
|
214
|
-
def workbook_property: (Symbol name, String | Integer | bool value) -> void
|
|
215
|
-
|
|
216
|
-
# Returns workbook-level properties.
|
|
217
|
-
#
|
|
218
|
-
# @return [Elements::WorkbookProperties]
|
|
161
|
+
# @param opts [Hash] Workbook properties map.
|
|
162
|
+
# @return [Elements::WorkbookProperties, void]
|
|
219
163
|
# @api public
|
|
220
164
|
# : () -> Elements::WorkbookProperties
|
|
165
|
+
# : (**untyped opts) -> void
|
|
221
166
|
def workbook_properties: () -> Elements::WorkbookProperties
|
|
167
|
+
| (**untyped opts) -> void
|
|
222
168
|
|
|
223
169
|
# Sets workbook-level properties.
|
|
224
170
|
#
|
|
@@ -239,17 +185,16 @@ module Xlsxrb
|
|
|
239
185
|
#
|
|
240
186
|
# @param name [String, nil] Sheet name (max 31 chars, no forbidden chars `[ ] * ? / \ :`).
|
|
241
187
|
# @param state [Symbol, String, nil] Sheet visibility state (:visible, :hidden, :very_hidden).
|
|
242
|
-
# @param tab_color [String, Hash, nil] Tab color hex string or
|
|
243
|
-
# @param code_name [String, nil] VBA code name.
|
|
244
|
-
# @param hidden [Boolean, nil] Deprecated alias for state: :hidden.
|
|
188
|
+
# @param tab_color [String, Hash, Symbol, nil] Tab color hex string (e.g. "FF0000") or hash options.
|
|
189
|
+
# @param code_name [String, Symbol, nil] Internal VBA code name of the sheet.
|
|
245
190
|
# @param opts [Hash] Additional sheet properties.
|
|
246
191
|
# @yield [sheet_builder]
|
|
247
192
|
# @yieldparam sheet_builder [Xlsxrb::WorksheetBuilder]
|
|
248
193
|
# @return [Elements::Worksheet]
|
|
249
194
|
# @raise [ArgumentError] If sheet name violates Excel limits in strict mode.
|
|
250
195
|
# @api public
|
|
251
|
-
# : (?String? name, ?state:
|
|
252
|
-
def sheet: (?String? name, ?state:
|
|
196
|
+
# : (?String? name, ?state: Symbol | String | nil, ?tab_color: String | Hash[Symbol, untyped] | Symbol | nil, ?code_name: String | Symbol | nil, **untyped opts) ?{ (WorksheetBuilder) -> void } -> Elements::Worksheet
|
|
197
|
+
def sheet: (?String? name, ?state: Symbol | String | nil, ?tab_color: String | Hash[Symbol, untyped] | Symbol | nil, ?code_name: String | Symbol | nil, **untyped opts) ?{ (WorksheetBuilder) -> void } -> Elements::Worksheet
|
|
253
198
|
|
|
254
199
|
# Accesses or defines a worksheet by name.
|
|
255
200
|
#
|
|
@@ -268,18 +213,13 @@ module Xlsxrb
|
|
|
268
213
|
# @param sheet [String, nil] Reference sheet name for coordinates/formula.
|
|
269
214
|
# @param scope [String, Symbol, nil] Optional sheet name or :workbook for scope (defaults to workbook).
|
|
270
215
|
# @param hidden [Boolean] Whether the defined name is hidden from Excel's UI.
|
|
271
|
-
# @param column [Integer, String, nil] Deprecated alias for columns.
|
|
272
216
|
# @param columns [Integer, String, nil] Column index or letter for coordinate-based reference.
|
|
273
|
-
# @param
|
|
274
|
-
# @param row [Integer, Range, nil] Deprecated alias for rows.
|
|
275
|
-
# @param rows [Integer, Range, nil] Row or row range (1-based) for coordinate-based reference.
|
|
217
|
+
# @param rows [Integer, Range, nil] Row or row range (0-based) for coordinate-based reference.
|
|
276
218
|
# @param range [String, nil] Cell range reference.
|
|
277
|
-
# @param ref_sheet [String, nil] Deprecated alias for sheet.
|
|
278
|
-
# @param local [Boolean] Deprecated alias for scope.
|
|
279
219
|
# @return [void]
|
|
280
220
|
# @api public
|
|
281
|
-
# : (String name, ?untyped value, ?sheet: String?, ?scope: (String | Symbol)?, ?hidden: bool, ?
|
|
282
|
-
def defined_name: (String name, ?untyped value, ?sheet: String?, ?scope: (String | Symbol)?, ?hidden: bool, ?
|
|
221
|
+
# : (String name, ?untyped value, ?sheet: String?, ?scope: (String | Symbol)?, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped) -> void
|
|
222
|
+
def defined_name: (String name, ?untyped value, ?sheet: String?, ?scope: (String | Symbol)?, ?hidden: bool, ?columns: untyped, ?rows: untyped, ?range: untyped) -> void
|
|
283
223
|
|
|
284
224
|
# Returns workbook-level defined names.
|
|
285
225
|
#
|
|
@@ -288,16 +228,15 @@ module Xlsxrb
|
|
|
288
228
|
# : () -> Array[Elements::DefinedName]
|
|
289
229
|
def defined_names: () -> Array[Elements::DefinedName]
|
|
290
230
|
|
|
291
|
-
#
|
|
231
|
+
# Returns the print area range for the sheet, or nil if none.
|
|
292
232
|
#
|
|
293
|
-
# @param range [String, Object, nil] Cell range (e.g. "A1:G50").
|
|
294
233
|
# @param sheet [String, nil] Target sheet name (defaults to latest or "Sheet1").
|
|
295
|
-
# @return [String, nil
|
|
234
|
+
# @return [String, nil]
|
|
296
235
|
# @api public
|
|
297
|
-
# : (?
|
|
298
|
-
def print_area: (?
|
|
236
|
+
# : (?sheet: String?) -> String?
|
|
237
|
+
def print_area: (?sheet: String?) -> String?
|
|
299
238
|
|
|
300
|
-
# Sets the print area for the worksheet.
|
|
239
|
+
# Sets the print area for the current worksheet.
|
|
301
240
|
#
|
|
302
241
|
# @param range [String, nil] Cell range (e.g. "A1:G50").
|
|
303
242
|
# @return [String, nil]
|
|
@@ -305,24 +244,28 @@ module Xlsxrb
|
|
|
305
244
|
# : (String? range) -> String?
|
|
306
245
|
def print_area=: (String? range) -> String?
|
|
307
246
|
|
|
308
|
-
# Sets repeating print titles (rows and/or columns) for pagination.
|
|
247
|
+
# Sets or gets repeating print titles (rows and/or columns) for pagination.
|
|
248
|
+
#
|
|
249
|
+
# When called with no row/column arguments, returns the {Elements::PrintTitles} value object or nil.
|
|
250
|
+
# When called with row/column arguments, sets repeating print titles and returns nil.
|
|
309
251
|
#
|
|
310
252
|
# @param rows [String, nil] Repeating row range (e.g. "1:2").
|
|
311
253
|
# @param columns [String, nil] Repeating column range (e.g. "A:B").
|
|
312
|
-
# @param cols [String, nil] Deprecated alias for columns.
|
|
313
254
|
# @param sheet [String, nil] Target sheet name.
|
|
314
|
-
# @return [void]
|
|
255
|
+
# @return [Elements::PrintTitles, nil, void]
|
|
315
256
|
# @api public
|
|
316
|
-
# : (
|
|
317
|
-
|
|
257
|
+
# : () -> Elements::PrintTitles?
|
|
258
|
+
# : (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?, ?sheet: String?) -> void
|
|
259
|
+
def print_titles: () -> Elements::PrintTitles?
|
|
260
|
+
| (?rows: (String | Integer | Range[Integer])?, ?columns: (String | Integer | Symbol | Range[untyped])?, ?sheet: String?) -> void
|
|
318
261
|
|
|
319
262
|
# Sets repeating print titles.
|
|
320
263
|
#
|
|
321
|
-
# @param opts [Elements::PrintTitles, Hash] Options with :rows and/or :columns.
|
|
322
|
-
# @return [Elements::PrintTitles, Hash]
|
|
264
|
+
# @param opts [Elements::PrintTitles, Hash, nil] Options with :rows and/or :columns.
|
|
265
|
+
# @return [Elements::PrintTitles, Hash, nil]
|
|
323
266
|
# @api public
|
|
324
|
-
# : (Elements::PrintTitles | Hash[Symbol, untyped] opts) -> (Elements::PrintTitles | Hash[Symbol, untyped])
|
|
325
|
-
def print_titles=: (Elements::PrintTitles | Hash[Symbol, untyped] opts) -> (Elements::PrintTitles | Hash[Symbol, untyped])
|
|
267
|
+
# : (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
268
|
+
def print_titles=: (Elements::PrintTitles | Hash[Symbol, untyped] | nil opts) -> (Elements::PrintTitles | Hash[Symbol, untyped] | nil)
|
|
326
269
|
|
|
327
270
|
# Sets repeating title rows for pagination on the target or active sheet.
|
|
328
271
|
#
|
|
@@ -366,41 +309,47 @@ module Xlsxrb
|
|
|
366
309
|
# : (untyped opts) -> void
|
|
367
310
|
def workbook_protection=: (untyped opts) -> void
|
|
368
311
|
|
|
369
|
-
#
|
|
370
|
-
# : (**String | Integer | bool | nil opts) -> void
|
|
371
|
-
def protect_workbook: (**String | Integer | bool | nil opts) -> void
|
|
372
|
-
|
|
373
|
-
# Sets a Dublin Core document metadata property.
|
|
312
|
+
# Configures or queries Dublin Core document metadata properties.
|
|
374
313
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
# @return [void]
|
|
378
|
-
# @api public
|
|
379
|
-
# : (Symbol name, String | Integer | Time value) -> void
|
|
380
|
-
def core_property: (Symbol name, String | Integer | Time value) -> void
|
|
381
|
-
|
|
382
|
-
# Returns core document properties.
|
|
314
|
+
# When called with no arguments, returns the {Elements::CoreProperties} value object.
|
|
315
|
+
# When called with keyword options, configures properties and returns nil.
|
|
383
316
|
#
|
|
384
|
-
# @
|
|
317
|
+
# @param opts [Hash] Core properties map (:creator, :title, :subject, :description, etc.).
|
|
318
|
+
# @return [Elements::CoreProperties, void]
|
|
385
319
|
# @api public
|
|
386
320
|
# : () -> Elements::CoreProperties
|
|
321
|
+
# : (**untyped opts) -> void
|
|
387
322
|
def core_properties: () -> Elements::CoreProperties
|
|
323
|
+
| (**untyped opts) -> void
|
|
388
324
|
|
|
389
|
-
#
|
|
325
|
+
# Replaces core document properties.
|
|
390
326
|
#
|
|
391
|
-
# @param
|
|
392
|
-
# @param value [String, Integer, Time] Property value.
|
|
327
|
+
# @param props [Hash, Elements::CoreProperties]
|
|
393
328
|
# @return [void]
|
|
394
329
|
# @api public
|
|
395
|
-
# : (Symbol
|
|
396
|
-
def
|
|
330
|
+
# : (Hash[Symbol, untyped] | Elements::CoreProperties props) -> void
|
|
331
|
+
def core_properties=: (Hash[Symbol, untyped] | Elements::CoreProperties props) -> void
|
|
397
332
|
|
|
398
|
-
#
|
|
333
|
+
# Configures or queries extended application metadata properties.
|
|
399
334
|
#
|
|
400
|
-
#
|
|
335
|
+
# When called with no arguments, returns the {Elements::AppProperties} value object.
|
|
336
|
+
# When called with keyword options, configures properties and returns nil.
|
|
337
|
+
#
|
|
338
|
+
# @param opts [Hash] Application properties map (:company, :manager, :app_version, etc.).
|
|
339
|
+
# @return [Elements::AppProperties, void]
|
|
401
340
|
# @api public
|
|
402
341
|
# : () -> Elements::AppProperties
|
|
342
|
+
# : (**untyped opts) -> void
|
|
403
343
|
def app_properties: () -> Elements::AppProperties
|
|
344
|
+
| (**untyped opts) -> void
|
|
345
|
+
|
|
346
|
+
# Replaces application document properties.
|
|
347
|
+
#
|
|
348
|
+
# @param props [Hash, Elements::AppProperties]
|
|
349
|
+
# @return [void]
|
|
350
|
+
# @api public
|
|
351
|
+
# : (Hash[Symbol, untyped] | Elements::AppProperties props) -> void
|
|
352
|
+
def app_properties=: (Hash[Symbol, untyped] | Elements::AppProperties props) -> void
|
|
404
353
|
|
|
405
354
|
# Sets multiple core, app, and/or custom properties simultaneously.
|
|
406
355
|
#
|
|
@@ -439,6 +388,9 @@ module Xlsxrb
|
|
|
439
388
|
|
|
440
389
|
private
|
|
441
390
|
|
|
391
|
+
# : (String? range, ?sheet: String?) -> String?
|
|
392
|
+
def set_print_area: (String? range, ?sheet: String?) -> String?
|
|
393
|
+
|
|
442
394
|
# : (untyped range) -> untyped
|
|
443
395
|
def absolute_range: (untyped range) -> untyped
|
|
444
396
|
|