groupdocs_conversion_cloud 25.4 → 25.5
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/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +176 -18
- data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +48 -11
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 645be37f44377ac287345c3956a3da7945bb7e6b6260f374731604ac4aceb635
|
4
|
+
data.tar.gz: f2a8aba7d205d0d7eb83a42f43b738f28fbfd350bd15be8f4b7860a2e5719d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4416d35931324dd36204b593747dddec626758787fb87f16870efb83d510b04d1812f8fb8df49bc37f3890546bc6f35f6c21a04682ccb7794222c8eb59c16b1f
|
7
|
+
data.tar.gz: '0094040627a33ca0b7c0aaf80b278eae56fb0b8471b1566dfc26378403aaedda0b562d3cbdc23345a0c7fa7a52d1f8b2841ffc72802aff79ab2d8a7ec9aa7083'
|
@@ -58,8 +58,8 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
63
|
|
64
64
|
# Delimiter of a Csv file
|
65
65
|
attr_accessor :separator
|
@@ -78,6 +78,27 @@ module GroupDocsConversionCloud
|
|
78
78
|
|
79
79
|
# File encoding
|
80
80
|
attr_accessor :encoding
|
81
|
+
class EnumAttributeValidator
|
82
|
+
attr_reader :datatype
|
83
|
+
attr_reader :allowable_values
|
84
|
+
|
85
|
+
def initialize(datatype, allowable_values)
|
86
|
+
@allowable_values = allowable_values.map do |value|
|
87
|
+
case datatype.to_s
|
88
|
+
when /Integer/i
|
89
|
+
value.to_i
|
90
|
+
when /Float/i
|
91
|
+
value.to_f
|
92
|
+
else
|
93
|
+
value
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
def valid?(value)
|
99
|
+
!value || allowable_values.include?(value)
|
100
|
+
end
|
101
|
+
end
|
81
102
|
|
82
103
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
104
|
def self.attribute_map
|
@@ -91,7 +112,7 @@ module GroupDocsConversionCloud
|
|
91
112
|
:'convert_range' => :'ConvertRange',
|
92
113
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
93
114
|
:'password' => :'Password',
|
94
|
-
:'
|
115
|
+
:'print_comments' => :'PrintComments',
|
95
116
|
:'separator' => :'Separator',
|
96
117
|
:'is_multi_encoded' => :'IsMultiEncoded',
|
97
118
|
:'has_formula' => :'HasFormula',
|
@@ -113,7 +134,7 @@ module GroupDocsConversionCloud
|
|
113
134
|
:'convert_range' => :'String',
|
114
135
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
115
136
|
:'password' => :'String',
|
116
|
-
:'
|
137
|
+
:'print_comments' => :'String',
|
117
138
|
:'separator' => :'String',
|
118
139
|
:'is_multi_encoded' => :'BOOLEAN',
|
119
140
|
:'has_formula' => :'BOOLEAN',
|
@@ -169,8 +190,8 @@ module GroupDocsConversionCloud
|
|
169
190
|
self.password = attributes[:'Password']
|
170
191
|
end
|
171
192
|
|
172
|
-
if attributes.key?(:'
|
173
|
-
self.
|
193
|
+
if attributes.key?(:'PrintComments')
|
194
|
+
self.print_comments = attributes[:'PrintComments']
|
174
195
|
end
|
175
196
|
|
176
197
|
if attributes.key?(:'Separator')
|
@@ -219,8 +240,8 @@ module GroupDocsConversionCloud
|
|
219
240
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
220
241
|
end
|
221
242
|
|
222
|
-
if @
|
223
|
-
invalid_properties.push("invalid value for '
|
243
|
+
if @print_comments.nil?
|
244
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
224
245
|
end
|
225
246
|
|
226
247
|
if @separator.nil?
|
@@ -253,7 +274,9 @@ module GroupDocsConversionCloud
|
|
253
274
|
return false if @show_hidden_sheets.nil?
|
254
275
|
return false if @one_page_per_sheet.nil?
|
255
276
|
return false if @skip_empty_rows_and_columns.nil?
|
256
|
-
return false if @
|
277
|
+
return false if @print_comments.nil?
|
278
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
279
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
257
280
|
return false if @separator.nil?
|
258
281
|
return false if @is_multi_encoded.nil?
|
259
282
|
return false if @has_formula.nil?
|
@@ -262,6 +285,20 @@ module GroupDocsConversionCloud
|
|
262
285
|
return true
|
263
286
|
end
|
264
287
|
|
288
|
+
# Custom attribute writer method checking allowed values (enum).
|
289
|
+
# @param [Object] print_comments Object to be assigned
|
290
|
+
def print_comments=(print_comments)
|
291
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
292
|
+
if print_comments.to_i == 0
|
293
|
+
unless validator.valid?(print_comments)
|
294
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
295
|
+
end
|
296
|
+
@print_comments = print_comments
|
297
|
+
else
|
298
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
265
302
|
# Checks equality by comparing each attribute.
|
266
303
|
# @param [Object] Object to be compared
|
267
304
|
def ==(other)
|
@@ -276,7 +313,7 @@ module GroupDocsConversionCloud
|
|
276
313
|
convert_range == other.convert_range &&
|
277
314
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
278
315
|
password == other.password &&
|
279
|
-
|
316
|
+
print_comments == other.print_comments &&
|
280
317
|
separator == other.separator &&
|
281
318
|
is_multi_encoded == other.is_multi_encoded &&
|
282
319
|
has_formula == other.has_formula &&
|
@@ -294,7 +331,7 @@ module GroupDocsConversionCloud
|
|
294
331
|
# Calculates hash code according to all attributes.
|
295
332
|
# @return [Fixnum] Hash code
|
296
333
|
def hash
|
297
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
334
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments, separator, is_multi_encoded, has_formula, convert_numeric_data, convert_date_time_data, encoding].hash
|
298
335
|
end
|
299
336
|
|
300
337
|
# Downcases first letter.
|
@@ -34,6 +34,27 @@ module GroupDocsConversionCloud
|
|
34
34
|
# The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
|
35
35
|
attr_accessor :format
|
36
36
|
|
37
|
+
# Determines whether the document structure should be preserved when converting to PDF (default is false).
|
38
|
+
attr_accessor :preserve_document_structure
|
39
|
+
|
40
|
+
# Value indicating whether custom document properties should be cleared.
|
41
|
+
attr_accessor :clear_custom_document_properties
|
42
|
+
|
43
|
+
# Value indicating whether built in document properties should be cleared.
|
44
|
+
attr_accessor :clear_built_in_document_properties
|
45
|
+
|
46
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.Depth Default: 1
|
47
|
+
attr_accessor :depth
|
48
|
+
|
49
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwned Default is false
|
50
|
+
attr_accessor :convert_owned
|
51
|
+
|
52
|
+
# Implements GroupDocs.Conversion.Contracts.IDocumentsContainerLoadOptions.ConvertOwner Default is true
|
53
|
+
attr_accessor :convert_owner
|
54
|
+
|
55
|
+
# Show hidden slides.
|
56
|
+
attr_accessor :show_hidden_slides
|
57
|
+
|
37
58
|
# Default font for rendering the presentation. The following font will be used if a presentation font is missing.
|
38
59
|
attr_accessor :default_font
|
39
60
|
|
@@ -43,21 +64,49 @@ module GroupDocsConversionCloud
|
|
43
64
|
# Set password to unprotect protected document
|
44
65
|
attr_accessor :password
|
45
66
|
|
46
|
-
#
|
47
|
-
attr_accessor :
|
67
|
+
# Represents the way comments are printed with the slide. Default is None.
|
68
|
+
attr_accessor :comments_position
|
69
|
+
|
70
|
+
# Represents the way notes are printed with the slide. Default is None.
|
71
|
+
attr_accessor :notes_position
|
72
|
+
class EnumAttributeValidator
|
73
|
+
attr_reader :datatype
|
74
|
+
attr_reader :allowable_values
|
75
|
+
|
76
|
+
def initialize(datatype, allowable_values)
|
77
|
+
@allowable_values = allowable_values.map do |value|
|
78
|
+
case datatype.to_s
|
79
|
+
when /Integer/i
|
80
|
+
value.to_i
|
81
|
+
when /Float/i
|
82
|
+
value.to_f
|
83
|
+
else
|
84
|
+
value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
48
88
|
|
49
|
-
|
50
|
-
|
89
|
+
def valid?(value)
|
90
|
+
!value || allowable_values.include?(value)
|
91
|
+
end
|
92
|
+
end
|
51
93
|
|
52
94
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
95
|
def self.attribute_map
|
54
96
|
{
|
55
97
|
:'format' => :'Format',
|
98
|
+
:'preserve_document_structure' => :'PreserveDocumentStructure',
|
99
|
+
:'clear_custom_document_properties' => :'ClearCustomDocumentProperties',
|
100
|
+
:'clear_built_in_document_properties' => :'ClearBuiltInDocumentProperties',
|
101
|
+
:'depth' => :'Depth',
|
102
|
+
:'convert_owned' => :'ConvertOwned',
|
103
|
+
:'convert_owner' => :'ConvertOwner',
|
104
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
56
105
|
:'default_font' => :'DefaultFont',
|
57
106
|
:'font_substitutes' => :'FontSubstitutes',
|
58
107
|
:'password' => :'Password',
|
59
|
-
:'
|
60
|
-
:'
|
108
|
+
:'comments_position' => :'CommentsPosition',
|
109
|
+
:'notes_position' => :'NotesPosition'
|
61
110
|
}
|
62
111
|
end
|
63
112
|
|
@@ -65,11 +114,18 @@ module GroupDocsConversionCloud
|
|
65
114
|
def self.swagger_types
|
66
115
|
{
|
67
116
|
:'format' => :'String',
|
117
|
+
:'preserve_document_structure' => :'BOOLEAN',
|
118
|
+
:'clear_custom_document_properties' => :'BOOLEAN',
|
119
|
+
:'clear_built_in_document_properties' => :'BOOLEAN',
|
120
|
+
:'depth' => :'Integer',
|
121
|
+
:'convert_owned' => :'BOOLEAN',
|
122
|
+
:'convert_owner' => :'BOOLEAN',
|
123
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
68
124
|
:'default_font' => :'String',
|
69
125
|
:'font_substitutes' => :'Hash<String, String>',
|
70
126
|
:'password' => :'String',
|
71
|
-
:'
|
72
|
-
:'
|
127
|
+
:'comments_position' => :'String',
|
128
|
+
:'notes_position' => :'String'
|
73
129
|
}
|
74
130
|
end
|
75
131
|
|
@@ -85,6 +141,34 @@ module GroupDocsConversionCloud
|
|
85
141
|
self.format = attributes[:'Format']
|
86
142
|
end
|
87
143
|
|
144
|
+
if attributes.key?(:'PreserveDocumentStructure')
|
145
|
+
self.preserve_document_structure = attributes[:'PreserveDocumentStructure']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'ClearCustomDocumentProperties')
|
149
|
+
self.clear_custom_document_properties = attributes[:'ClearCustomDocumentProperties']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'ClearBuiltInDocumentProperties')
|
153
|
+
self.clear_built_in_document_properties = attributes[:'ClearBuiltInDocumentProperties']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'Depth')
|
157
|
+
self.depth = attributes[:'Depth']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'ConvertOwned')
|
161
|
+
self.convert_owned = attributes[:'ConvertOwned']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'ConvertOwner')
|
165
|
+
self.convert_owner = attributes[:'ConvertOwner']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'ShowHiddenSlides')
|
169
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
170
|
+
end
|
171
|
+
|
88
172
|
if attributes.key?(:'DefaultFont')
|
89
173
|
self.default_font = attributes[:'DefaultFont']
|
90
174
|
end
|
@@ -99,12 +183,12 @@ module GroupDocsConversionCloud
|
|
99
183
|
self.password = attributes[:'Password']
|
100
184
|
end
|
101
185
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
186
|
+
if attributes.key?(:'CommentsPosition')
|
187
|
+
self.comments_position = attributes[:'CommentsPosition']
|
104
188
|
end
|
105
189
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
190
|
+
if attributes.key?(:'NotesPosition')
|
191
|
+
self.notes_position = attributes[:'NotesPosition']
|
108
192
|
end
|
109
193
|
|
110
194
|
end
|
@@ -113,36 +197,110 @@ module GroupDocsConversionCloud
|
|
113
197
|
# @return Array for valid properies with the reasons
|
114
198
|
def list_invalid_properties
|
115
199
|
invalid_properties = []
|
116
|
-
if @
|
117
|
-
invalid_properties.push("invalid value for '
|
200
|
+
if @preserve_document_structure.nil?
|
201
|
+
invalid_properties.push("invalid value for 'preserve_document_structure', preserve_document_structure cannot be nil.")
|
202
|
+
end
|
203
|
+
|
204
|
+
if @clear_custom_document_properties.nil?
|
205
|
+
invalid_properties.push("invalid value for 'clear_custom_document_properties', clear_custom_document_properties cannot be nil.")
|
206
|
+
end
|
207
|
+
|
208
|
+
if @clear_built_in_document_properties.nil?
|
209
|
+
invalid_properties.push("invalid value for 'clear_built_in_document_properties', clear_built_in_document_properties cannot be nil.")
|
210
|
+
end
|
211
|
+
|
212
|
+
if @depth.nil?
|
213
|
+
invalid_properties.push("invalid value for 'depth', depth cannot be nil.")
|
214
|
+
end
|
215
|
+
|
216
|
+
if @convert_owned.nil?
|
217
|
+
invalid_properties.push("invalid value for 'convert_owned', convert_owned cannot be nil.")
|
218
|
+
end
|
219
|
+
|
220
|
+
if @convert_owner.nil?
|
221
|
+
invalid_properties.push("invalid value for 'convert_owner', convert_owner cannot be nil.")
|
118
222
|
end
|
119
223
|
|
120
224
|
if @show_hidden_slides.nil?
|
121
225
|
invalid_properties.push("invalid value for 'show_hidden_slides', show_hidden_slides cannot be nil.")
|
122
226
|
end
|
123
227
|
|
228
|
+
if @comments_position.nil?
|
229
|
+
invalid_properties.push("invalid value for 'comments_position', comments_position cannot be nil.")
|
230
|
+
end
|
231
|
+
|
232
|
+
if @notes_position.nil?
|
233
|
+
invalid_properties.push("invalid value for 'notes_position', notes_position cannot be nil.")
|
234
|
+
end
|
235
|
+
|
124
236
|
return invalid_properties
|
125
237
|
end
|
126
238
|
|
127
239
|
# Check to see if the all the properties in the model are valid
|
128
240
|
# @return true if the model is valid
|
129
241
|
def valid?
|
130
|
-
return false if @
|
242
|
+
return false if @preserve_document_structure.nil?
|
243
|
+
return false if @clear_custom_document_properties.nil?
|
244
|
+
return false if @clear_built_in_document_properties.nil?
|
245
|
+
return false if @depth.nil?
|
246
|
+
return false if @convert_owned.nil?
|
247
|
+
return false if @convert_owner.nil?
|
131
248
|
return false if @show_hidden_slides.nil?
|
249
|
+
return false if @comments_position.nil?
|
250
|
+
comments_position_validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
251
|
+
return false unless comments_position_validator.valid?(@comments_position)
|
252
|
+
return false if @notes_position.nil?
|
253
|
+
notes_position_validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
254
|
+
return false unless notes_position_validator.valid?(@notes_position)
|
132
255
|
return true
|
133
256
|
end
|
134
257
|
|
258
|
+
# Custom attribute writer method checking allowed values (enum).
|
259
|
+
# @param [Object] comments_position Object to be assigned
|
260
|
+
def comments_position=(comments_position)
|
261
|
+
validator = EnumAttributeValidator.new('String', ["None", "Bottom", "Right"])
|
262
|
+
if comments_position.to_i == 0
|
263
|
+
unless validator.valid?(comments_position)
|
264
|
+
raise ArgumentError, "invalid value for 'comments_position', must be one of #{validator.allowable_values}."
|
265
|
+
end
|
266
|
+
@comments_position = comments_position
|
267
|
+
else
|
268
|
+
@comments_position = validator.allowable_values[comments_position.to_i]
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# Custom attribute writer method checking allowed values (enum).
|
273
|
+
# @param [Object] notes_position Object to be assigned
|
274
|
+
def notes_position=(notes_position)
|
275
|
+
validator = EnumAttributeValidator.new('String', ["None", "BottomTruncated", "BottomFull"])
|
276
|
+
if notes_position.to_i == 0
|
277
|
+
unless validator.valid?(notes_position)
|
278
|
+
raise ArgumentError, "invalid value for 'notes_position', must be one of #{validator.allowable_values}."
|
279
|
+
end
|
280
|
+
@notes_position = notes_position
|
281
|
+
else
|
282
|
+
@notes_position = validator.allowable_values[notes_position.to_i]
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
135
286
|
# Checks equality by comparing each attribute.
|
136
287
|
# @param [Object] Object to be compared
|
137
288
|
def ==(other)
|
138
289
|
return true if self.equal?(other)
|
139
290
|
self.class == other.class &&
|
140
291
|
format == other.format &&
|
292
|
+
preserve_document_structure == other.preserve_document_structure &&
|
293
|
+
clear_custom_document_properties == other.clear_custom_document_properties &&
|
294
|
+
clear_built_in_document_properties == other.clear_built_in_document_properties &&
|
295
|
+
depth == other.depth &&
|
296
|
+
convert_owned == other.convert_owned &&
|
297
|
+
convert_owner == other.convert_owner &&
|
298
|
+
show_hidden_slides == other.show_hidden_slides &&
|
141
299
|
default_font == other.default_font &&
|
142
300
|
font_substitutes == other.font_substitutes &&
|
143
301
|
password == other.password &&
|
144
|
-
|
145
|
-
|
302
|
+
comments_position == other.comments_position &&
|
303
|
+
notes_position == other.notes_position
|
146
304
|
end
|
147
305
|
|
148
306
|
# @see the `==` method
|
@@ -154,7 +312,7 @@ module GroupDocsConversionCloud
|
|
154
312
|
# Calculates hash code according to all attributes.
|
155
313
|
# @return [Fixnum] Hash code
|
156
314
|
def hash
|
157
|
-
[format, default_font, font_substitutes, password,
|
315
|
+
[format, preserve_document_structure, clear_custom_document_properties, clear_built_in_document_properties, depth, convert_owned, convert_owner, show_hidden_slides, default_font, font_substitutes, password, comments_position, notes_position].hash
|
158
316
|
end
|
159
317
|
|
160
318
|
# Downcases first letter.
|
@@ -58,8 +58,29 @@ module GroupDocsConversionCloud
|
|
58
58
|
# Set password to unprotect protected document
|
59
59
|
attr_accessor :password
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
61
|
+
# Represents the way comments are printed with the sheet. Default is PrintNoComments.
|
62
|
+
attr_accessor :print_comments
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
63
84
|
|
64
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
86
|
def self.attribute_map
|
@@ -73,7 +94,7 @@ module GroupDocsConversionCloud
|
|
73
94
|
:'convert_range' => :'ConvertRange',
|
74
95
|
:'skip_empty_rows_and_columns' => :'SkipEmptyRowsAndColumns',
|
75
96
|
:'password' => :'Password',
|
76
|
-
:'
|
97
|
+
:'print_comments' => :'PrintComments'
|
77
98
|
}
|
78
99
|
end
|
79
100
|
|
@@ -89,7 +110,7 @@ module GroupDocsConversionCloud
|
|
89
110
|
:'convert_range' => :'String',
|
90
111
|
:'skip_empty_rows_and_columns' => :'BOOLEAN',
|
91
112
|
:'password' => :'String',
|
92
|
-
:'
|
113
|
+
:'print_comments' => :'String'
|
93
114
|
}
|
94
115
|
end
|
95
116
|
|
@@ -139,8 +160,8 @@ module GroupDocsConversionCloud
|
|
139
160
|
self.password = attributes[:'Password']
|
140
161
|
end
|
141
162
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
self.
|
163
|
+
if attributes.key?(:'PrintComments')
|
164
|
+
self.print_comments = attributes[:'PrintComments']
|
144
165
|
end
|
145
166
|
|
146
167
|
end
|
@@ -165,8 +186,8 @@ module GroupDocsConversionCloud
|
|
165
186
|
invalid_properties.push("invalid value for 'skip_empty_rows_and_columns', skip_empty_rows_and_columns cannot be nil.")
|
166
187
|
end
|
167
188
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push("invalid value for '
|
189
|
+
if @print_comments.nil?
|
190
|
+
invalid_properties.push("invalid value for 'print_comments', print_comments cannot be nil.")
|
170
191
|
end
|
171
192
|
|
172
193
|
return invalid_properties
|
@@ -179,10 +200,26 @@ module GroupDocsConversionCloud
|
|
179
200
|
return false if @show_hidden_sheets.nil?
|
180
201
|
return false if @one_page_per_sheet.nil?
|
181
202
|
return false if @skip_empty_rows_and_columns.nil?
|
182
|
-
return false if @
|
203
|
+
return false if @print_comments.nil?
|
204
|
+
print_comments_validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
205
|
+
return false unless print_comments_validator.valid?(@print_comments)
|
183
206
|
return true
|
184
207
|
end
|
185
208
|
|
209
|
+
# Custom attribute writer method checking allowed values (enum).
|
210
|
+
# @param [Object] print_comments Object to be assigned
|
211
|
+
def print_comments=(print_comments)
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PrintInPlace", "PrintNoComments", "PrintSheetEnd", "PrintWithThreadedComments"])
|
213
|
+
if print_comments.to_i == 0
|
214
|
+
unless validator.valid?(print_comments)
|
215
|
+
raise ArgumentError, "invalid value for 'print_comments', must be one of #{validator.allowable_values}."
|
216
|
+
end
|
217
|
+
@print_comments = print_comments
|
218
|
+
else
|
219
|
+
@print_comments = validator.allowable_values[print_comments.to_i]
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
186
223
|
# Checks equality by comparing each attribute.
|
187
224
|
# @param [Object] Object to be compared
|
188
225
|
def ==(other)
|
@@ -197,7 +234,7 @@ module GroupDocsConversionCloud
|
|
197
234
|
convert_range == other.convert_range &&
|
198
235
|
skip_empty_rows_and_columns == other.skip_empty_rows_and_columns &&
|
199
236
|
password == other.password &&
|
200
|
-
|
237
|
+
print_comments == other.print_comments
|
201
238
|
end
|
202
239
|
|
203
240
|
# @see the `==` method
|
@@ -209,7 +246,7 @@ module GroupDocsConversionCloud
|
|
209
246
|
# Calculates hash code according to all attributes.
|
210
247
|
# @return [Fixnum] Hash code
|
211
248
|
def hash
|
212
|
-
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password,
|
249
|
+
[format, default_font, font_substitutes, show_grid_lines, show_hidden_sheets, one_page_per_sheet, convert_range, skip_empty_rows_and_columns, password, print_comments].hash
|
213
250
|
end
|
214
251
|
|
215
252
|
# Downcases first letter.
|