aspose_cells_cloud 23.7 → 23.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
- data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
- data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +234 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
- data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
- data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
- data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
- data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
- data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
- data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
- data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
- data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
- data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
- data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
- data/lib/aspose_cells_cloud/models/protection.rb +402 -0
- data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
- data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
- data/lib/aspose_cells_cloud/models/{barcode_response.rb → rendering_font.rb} +55 -43
- data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
- data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
- data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
- data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
- data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +21 -2
- data/spec/api/list_objects_controller_spec.rb +35 -0
- data/spec/api/ranges_controller_spec.rb +20 -0
- data/spec/document/light_cells_spec.rb +2 -1
- data/spec/one_case_spec.rb +27 -0
- data/spec/onecase_spec.rb +28 -0
- metadata +29 -8
@@ -0,0 +1,330 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="RenderingWatermarkrb.cs">
|
4
|
+
Copyright (c) 2023 Aspose.Cells Cloud
|
5
|
+
</copyright>
|
6
|
+
<summary>
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
24
|
+
</summary>
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
26
|
+
=end
|
27
|
+
|
28
|
+
|
29
|
+
require 'date'
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
|
33
|
+
class RenderingWatermark
|
34
|
+
#
|
35
|
+
attr_accessor :rotation
|
36
|
+
#
|
37
|
+
attr_accessor :scale_to_page_percent
|
38
|
+
#
|
39
|
+
attr_accessor :opacity
|
40
|
+
#
|
41
|
+
attr_accessor :is_background
|
42
|
+
#
|
43
|
+
attr_accessor :text
|
44
|
+
#
|
45
|
+
attr_accessor :font
|
46
|
+
#
|
47
|
+
attr_accessor :image
|
48
|
+
#
|
49
|
+
attr_accessor :h_alignment
|
50
|
+
#
|
51
|
+
attr_accessor :v_alignment
|
52
|
+
#
|
53
|
+
attr_accessor :offset_x
|
54
|
+
#
|
55
|
+
attr_accessor :offset_y
|
56
|
+
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
58
|
+
def self.attribute_map
|
59
|
+
{
|
60
|
+
:'rotation' => :'Rotation',
|
61
|
+
:'scale_to_page_percent' => :'ScaleToPagePercent',
|
62
|
+
:'opacity' => :'Opacity',
|
63
|
+
:'is_background' => :'IsBackground',
|
64
|
+
:'text' => :'Text',
|
65
|
+
:'font' => :'Font',
|
66
|
+
:'image' => :'Image',
|
67
|
+
:'h_alignment' => :'HAlignment',
|
68
|
+
:'v_alignment' => :'VAlignment',
|
69
|
+
:'offset_x' => :'OffsetX',
|
70
|
+
:'offset_y' => :'OffsetY'
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
# Attribute type mapping.
|
75
|
+
def self.swagger_types
|
76
|
+
{
|
77
|
+
:'rotation' => :'Float',
|
78
|
+
:'scale_to_page_percent' => :'Integer',
|
79
|
+
:'opacity' => :'Float',
|
80
|
+
:'is_background' => :'BOOLEAN',
|
81
|
+
:'text' => :'String',
|
82
|
+
:'font' => :'RenderingFont',
|
83
|
+
:'image' => :'Array<Integer>',
|
84
|
+
:'h_alignment' => :'String',
|
85
|
+
:'v_alignment' => :'String',
|
86
|
+
:'offset_x' => :'Float',
|
87
|
+
:'offset_y' => :'Float'
|
88
|
+
}
|
89
|
+
end
|
90
|
+
|
91
|
+
# Initializes the object
|
92
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
93
|
+
def initialize(attributes = {})
|
94
|
+
return unless attributes.is_a?(Hash)
|
95
|
+
|
96
|
+
# convert string to symbol for hash key
|
97
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
98
|
+
|
99
|
+
if attributes.has_key?(:'Rotation')
|
100
|
+
self.rotation = attributes[:'Rotation']
|
101
|
+
end
|
102
|
+
if attributes.has_key?(:'ScaleToPagePercent')
|
103
|
+
self.scale_to_page_percent = attributes[:'ScaleToPagePercent']
|
104
|
+
end
|
105
|
+
if attributes.has_key?(:'Opacity')
|
106
|
+
self.opacity = attributes[:'Opacity']
|
107
|
+
end
|
108
|
+
if attributes.has_key?(:'IsBackground')
|
109
|
+
self.is_background = attributes[:'IsBackground']
|
110
|
+
end
|
111
|
+
if attributes.has_key?(:'Text')
|
112
|
+
self.text = attributes[:'Text']
|
113
|
+
end
|
114
|
+
if attributes.has_key?(:'Font')
|
115
|
+
self.font = attributes[:'Font']
|
116
|
+
end
|
117
|
+
if attributes.has_key?(:'Image')
|
118
|
+
self.image = attributes[:'Image']
|
119
|
+
end
|
120
|
+
if attributes.has_key?(:'HAlignment')
|
121
|
+
self.h_alignment = attributes[:'HAlignment']
|
122
|
+
end
|
123
|
+
if attributes.has_key?(:'VAlignment')
|
124
|
+
self.v_alignment = attributes[:'VAlignment']
|
125
|
+
end
|
126
|
+
if attributes.has_key?(:'OffsetX')
|
127
|
+
self.offset_x = attributes[:'OffsetX']
|
128
|
+
end
|
129
|
+
if attributes.has_key?(:'OffsetY')
|
130
|
+
self.offset_y = attributes[:'OffsetY']
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
134
|
+
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
136
|
+
# @return Array for valid properies with the reasons
|
137
|
+
def list_invalid_properties
|
138
|
+
invalid_properties = Array.new
|
139
|
+
if @rotation.nil?
|
140
|
+
invalid_properties.push("invalid value for 'rotation', rotation cannot be nil.")
|
141
|
+
end
|
142
|
+
if @scale_to_page_percent.nil?
|
143
|
+
invalid_properties.push("invalid value for 'scale_to_page_percent', scale_to_page_percent cannot be nil.")
|
144
|
+
end
|
145
|
+
if @opacity.nil?
|
146
|
+
invalid_properties.push("invalid value for 'opacity', opacity cannot be nil.")
|
147
|
+
end
|
148
|
+
if @is_background.nil?
|
149
|
+
invalid_properties.push("invalid value for 'is_background', is_background cannot be nil.")
|
150
|
+
end
|
151
|
+
if @text.nil?
|
152
|
+
invalid_properties.push("invalid value for 'text', text cannot be nil.")
|
153
|
+
end
|
154
|
+
if @font.nil?
|
155
|
+
invalid_properties.push("invalid value for 'font', font cannot be nil.")
|
156
|
+
end
|
157
|
+
if @image.nil?
|
158
|
+
invalid_properties.push("invalid value for 'image', image cannot be nil.")
|
159
|
+
end
|
160
|
+
if @h_alignment.nil?
|
161
|
+
invalid_properties.push("invalid value for 'h_alignment', h_alignment cannot be nil.")
|
162
|
+
end
|
163
|
+
if @v_alignment.nil?
|
164
|
+
invalid_properties.push("invalid value for 'v_alignment', v_alignment cannot be nil.")
|
165
|
+
end
|
166
|
+
if @offset_x.nil?
|
167
|
+
invalid_properties.push("invalid value for 'offset_x', offset_x cannot be nil.")
|
168
|
+
end
|
169
|
+
if @offset_y.nil?
|
170
|
+
invalid_properties.push("invalid value for 'offset_y', offset_y cannot be nil.")
|
171
|
+
end
|
172
|
+
|
173
|
+
return invalid_properties
|
174
|
+
end
|
175
|
+
|
176
|
+
# Check to see if the all the properties in the model are valid
|
177
|
+
# @return true if the model is valid
|
178
|
+
def valid?
|
179
|
+
return false if @rotation.nil?
|
180
|
+
return false if @scale_to_page_percent.nil?
|
181
|
+
return false if @opacity.nil?
|
182
|
+
return false if @is_background.nil?
|
183
|
+
return false if @text.nil?
|
184
|
+
return false if @font.nil?
|
185
|
+
return false if @image.nil?
|
186
|
+
return false if @h_alignment.nil?
|
187
|
+
return false if @v_alignment.nil?
|
188
|
+
return false if @offset_x.nil?
|
189
|
+
return false if @offset_y.nil?
|
190
|
+
return true
|
191
|
+
end
|
192
|
+
|
193
|
+
# Checks equality by comparing each attribute.
|
194
|
+
# @param [Object] Object to be compared
|
195
|
+
def ==(o)
|
196
|
+
return true if self.equal?(o)
|
197
|
+
self.class == o.class &&
|
198
|
+
rotation == o.rotation &&
|
199
|
+
scale_to_page_percent == o.scale_to_page_percent &&
|
200
|
+
opacity == o.opacity &&
|
201
|
+
is_background == o.is_background &&
|
202
|
+
text == o.text &&
|
203
|
+
font == o.font &&
|
204
|
+
image == o.image &&
|
205
|
+
h_alignment == o.h_alignment &&
|
206
|
+
v_alignment == o.v_alignment &&
|
207
|
+
offset_x == o.offset_x &&
|
208
|
+
offset_y == o.offset_y
|
209
|
+
std_dev == o.std_dev
|
210
|
+
end
|
211
|
+
|
212
|
+
# @see the `==` method
|
213
|
+
# @param [Object] Object to be compared
|
214
|
+
def eql?(o)
|
215
|
+
self == o
|
216
|
+
end
|
217
|
+
|
218
|
+
# Calculates hash code according to all attributes.
|
219
|
+
# @return [Fixnum] Hash code
|
220
|
+
def hash
|
221
|
+
[ rotation , scale_to_page_percent , opacity , is_background , text , font , image , h_alignment , v_alignment , offset_x , offset_y ].hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Builds the object from hash
|
225
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
226
|
+
# @return [Object] Returns the model itself
|
227
|
+
def build_from_hash(attributes)
|
228
|
+
return nil unless attributes.is_a?(Hash)
|
229
|
+
self.class.swagger_types.each_pair do |key, type|
|
230
|
+
if type =~ /\AArray<(.*)>/i
|
231
|
+
# check to ensure the input is an array given that the the attribute
|
232
|
+
# is documented as an array but the input is not
|
233
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
234
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
235
|
+
end
|
236
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
237
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
238
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
239
|
+
end
|
240
|
+
|
241
|
+
self
|
242
|
+
end
|
243
|
+
|
244
|
+
# Deserializes the data based on type
|
245
|
+
# @param string type Data type
|
246
|
+
# @param string value Value to be deserialized
|
247
|
+
# @return [Object] Deserialized data
|
248
|
+
def _deserialize(type, value)
|
249
|
+
case type.to_sym
|
250
|
+
when :DateTime
|
251
|
+
DateTime.parse(value)
|
252
|
+
when :Date
|
253
|
+
Date.parse(value)
|
254
|
+
when :String
|
255
|
+
value.to_s
|
256
|
+
when :Integer
|
257
|
+
value.to_i
|
258
|
+
when :Float
|
259
|
+
value.to_f
|
260
|
+
when :BOOLEAN
|
261
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
262
|
+
true
|
263
|
+
else
|
264
|
+
false
|
265
|
+
end
|
266
|
+
when :Object
|
267
|
+
# generic object (usually a Hash), return directly
|
268
|
+
value
|
269
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
270
|
+
inner_type = Regexp.last_match[:inner_type]
|
271
|
+
value.map { |v| _deserialize(inner_type, v) }
|
272
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
273
|
+
k_type = Regexp.last_match[:k_type]
|
274
|
+
v_type = Regexp.last_match[:v_type]
|
275
|
+
{}.tap do |hash|
|
276
|
+
value.each do |k, v|
|
277
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
else # model
|
281
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
282
|
+
temp_model.build_from_hash(value)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# Returns the string representation of the object
|
287
|
+
# @return [String] String presentation of the object
|
288
|
+
def to_s
|
289
|
+
to_hash.to_s
|
290
|
+
end
|
291
|
+
|
292
|
+
# to_body is an alias to to_hash (backward compatibility)
|
293
|
+
# @return [Hash] Returns the object in the form of hash
|
294
|
+
def to_body
|
295
|
+
to_hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Returns the object in the form of hash
|
299
|
+
# @return [Hash] Returns the object in the form of hash
|
300
|
+
def to_hash
|
301
|
+
hash = {}
|
302
|
+
self.class.attribute_map.each_pair do |attr, param|
|
303
|
+
value = self.send(attr)
|
304
|
+
next if value.nil?
|
305
|
+
hash[param] = _to_hash(value)
|
306
|
+
end
|
307
|
+
hash
|
308
|
+
end
|
309
|
+
|
310
|
+
# Outputs non-array value in the form of hash
|
311
|
+
# For object, use to_hash. Otherwise, just return the value
|
312
|
+
# @param [Object] value Any valid value
|
313
|
+
# @return [Hash] Returns the value in the form of hash
|
314
|
+
def _to_hash(value)
|
315
|
+
if value.is_a?(Array)
|
316
|
+
value.compact.map{ |v| _to_hash(v) }
|
317
|
+
elsif value.is_a?(Hash)
|
318
|
+
{}.tap do |hash|
|
319
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
320
|
+
end
|
321
|
+
elsif value.respond_to? :to_hash
|
322
|
+
value.to_hash
|
323
|
+
else
|
324
|
+
value
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
end
|
329
|
+
|
330
|
+
end
|
@@ -121,6 +121,42 @@ module AsposeCellsCloud
|
|
121
121
|
attr_accessor :window_top
|
122
122
|
#The width of the window, in unit of point.
|
123
123
|
attr_accessor :window_width
|
124
|
+
#Gets and sets the author of the file.
|
125
|
+
attr_accessor :author
|
126
|
+
#Indicates whether checking custom number format when setting Style.Custom.
|
127
|
+
attr_accessor :check_custom_number_format
|
128
|
+
#Gets the protection type of the workbook.
|
129
|
+
attr_accessor :protection_type
|
130
|
+
#Gets and sets the globalization settings.
|
131
|
+
attr_accessor :globalization_settings
|
132
|
+
#Represents Workbook file encryption password.
|
133
|
+
attr_accessor :password
|
134
|
+
#Provides access to the workbook write protection options.
|
135
|
+
attr_accessor :write_protection
|
136
|
+
#Gets a value that indicates whether a password is required to open this workbook.
|
137
|
+
attr_accessor :is_encrypted
|
138
|
+
#Gets a value that indicates whether the structure or window of the Workbook is protected.
|
139
|
+
attr_accessor :is_protected
|
140
|
+
#Gets the max row index, zero-based.
|
141
|
+
attr_accessor :max_row
|
142
|
+
#Gets the max column index, zero-based.
|
143
|
+
attr_accessor :max_column
|
144
|
+
#
|
145
|
+
attr_accessor :significant_digits
|
146
|
+
#Indicates whether check compatibility with earlier versions when saving workbook.
|
147
|
+
attr_accessor :check_compatibility
|
148
|
+
#Gets and sets the default print paper size.
|
149
|
+
attr_accessor :paper_size
|
150
|
+
#Gets and sets the max row number of shared formula.
|
151
|
+
attr_accessor :max_rows_of_shared_formula
|
152
|
+
#Specifies the OOXML version for the output document. The default value is Ecma376_2006.
|
153
|
+
attr_accessor :compliance
|
154
|
+
#Indicates whether setting property when entering the string value(which starts with single quote mark ) to the cell
|
155
|
+
attr_accessor :quote_prefix_to_style
|
156
|
+
#Gets the settings for formula-related features.
|
157
|
+
attr_accessor :formula_settings
|
158
|
+
#Fully calculates every time when a calculation is triggered.
|
159
|
+
attr_accessor :force_full_calculate
|
124
160
|
|
125
161
|
# Attribute mapping from ruby-style variable name to JSON key.
|
126
162
|
def self.attribute_map
|
@@ -169,7 +205,25 @@ module AsposeCellsCloud
|
|
169
205
|
:'window_height' => :'WindowHeight',
|
170
206
|
:'window_left' => :'WindowLeft',
|
171
207
|
:'window_top' => :'WindowTop',
|
172
|
-
:'window_width' => :'WindowWidth'
|
208
|
+
:'window_width' => :'WindowWidth',
|
209
|
+
:'author' => :'Author',
|
210
|
+
:'check_custom_number_format' => :'CheckCustomNumberFormat',
|
211
|
+
:'protection_type' => :'ProtectionType',
|
212
|
+
:'globalization_settings' => :'GlobalizationSettings',
|
213
|
+
:'password' => :'Password',
|
214
|
+
:'write_protection' => :'WriteProtection',
|
215
|
+
:'is_encrypted' => :'IsEncrypted',
|
216
|
+
:'is_protected' => :'IsProtected',
|
217
|
+
:'max_row' => :'MaxRow',
|
218
|
+
:'max_column' => :'MaxColumn',
|
219
|
+
:'significant_digits' => :'SignificantDigits',
|
220
|
+
:'check_compatibility' => :'CheckCompatibility',
|
221
|
+
:'paper_size' => :'PaperSize',
|
222
|
+
:'max_rows_of_shared_formula' => :'MaxRowsOfSharedFormula',
|
223
|
+
:'compliance' => :'Compliance',
|
224
|
+
:'quote_prefix_to_style' => :'QuotePrefixToStyle',
|
225
|
+
:'formula_settings' => :'FormulaSettings',
|
226
|
+
:'force_full_calculate' => :'ForceFullCalculate'
|
173
227
|
}
|
174
228
|
end
|
175
229
|
|
@@ -220,7 +274,25 @@ module AsposeCellsCloud
|
|
220
274
|
:'window_height' => :'Float',
|
221
275
|
:'window_left' => :'Float',
|
222
276
|
:'window_top' => :'Float',
|
223
|
-
:'window_width' => :'Float'
|
277
|
+
:'window_width' => :'Float',
|
278
|
+
:'author' => :'String',
|
279
|
+
:'check_custom_number_format' => :'BOOLEAN',
|
280
|
+
:'protection_type' => :'String',
|
281
|
+
:'globalization_settings' => :'GlobalizationSettings',
|
282
|
+
:'password' => :'String',
|
283
|
+
:'write_protection' => :'WriteProtection',
|
284
|
+
:'is_encrypted' => :'BOOLEAN',
|
285
|
+
:'is_protected' => :'BOOLEAN',
|
286
|
+
:'max_row' => :'Integer',
|
287
|
+
:'max_column' => :'Integer',
|
288
|
+
:'significant_digits' => :'Integer',
|
289
|
+
:'check_compatibility' => :'BOOLEAN',
|
290
|
+
:'paper_size' => :'String',
|
291
|
+
:'max_rows_of_shared_formula' => :'Integer',
|
292
|
+
:'compliance' => :'String',
|
293
|
+
:'quote_prefix_to_style' => :'BOOLEAN',
|
294
|
+
:'formula_settings' => :'FormulaSettings',
|
295
|
+
:'force_full_calculate' => :'BOOLEAN'
|
224
296
|
}
|
225
297
|
end
|
226
298
|
|
@@ -367,6 +439,60 @@ module AsposeCellsCloud
|
|
367
439
|
if attributes.has_key?(:'WindowWidth')
|
368
440
|
self.window_width = attributes[:'WindowWidth']
|
369
441
|
end
|
442
|
+
if attributes.has_key?(:'Author')
|
443
|
+
self.author = attributes[:'Author']
|
444
|
+
end
|
445
|
+
if attributes.has_key?(:'CheckCustomNumberFormat')
|
446
|
+
self.check_custom_number_format = attributes[:'CheckCustomNumberFormat']
|
447
|
+
end
|
448
|
+
if attributes.has_key?(:'ProtectionType')
|
449
|
+
self.protection_type = attributes[:'ProtectionType']
|
450
|
+
end
|
451
|
+
if attributes.has_key?(:'GlobalizationSettings')
|
452
|
+
self.globalization_settings = attributes[:'GlobalizationSettings']
|
453
|
+
end
|
454
|
+
if attributes.has_key?(:'Password')
|
455
|
+
self.password = attributes[:'Password']
|
456
|
+
end
|
457
|
+
if attributes.has_key?(:'WriteProtection')
|
458
|
+
self.write_protection = attributes[:'WriteProtection']
|
459
|
+
end
|
460
|
+
if attributes.has_key?(:'IsEncrypted')
|
461
|
+
self.is_encrypted = attributes[:'IsEncrypted']
|
462
|
+
end
|
463
|
+
if attributes.has_key?(:'IsProtected')
|
464
|
+
self.is_protected = attributes[:'IsProtected']
|
465
|
+
end
|
466
|
+
if attributes.has_key?(:'MaxRow')
|
467
|
+
self.max_row = attributes[:'MaxRow']
|
468
|
+
end
|
469
|
+
if attributes.has_key?(:'MaxColumn')
|
470
|
+
self.max_column = attributes[:'MaxColumn']
|
471
|
+
end
|
472
|
+
if attributes.has_key?(:'SignificantDigits')
|
473
|
+
self.significant_digits = attributes[:'SignificantDigits']
|
474
|
+
end
|
475
|
+
if attributes.has_key?(:'CheckCompatibility')
|
476
|
+
self.check_compatibility = attributes[:'CheckCompatibility']
|
477
|
+
end
|
478
|
+
if attributes.has_key?(:'PaperSize')
|
479
|
+
self.paper_size = attributes[:'PaperSize']
|
480
|
+
end
|
481
|
+
if attributes.has_key?(:'MaxRowsOfSharedFormula')
|
482
|
+
self.max_rows_of_shared_formula = attributes[:'MaxRowsOfSharedFormula']
|
483
|
+
end
|
484
|
+
if attributes.has_key?(:'Compliance')
|
485
|
+
self.compliance = attributes[:'Compliance']
|
486
|
+
end
|
487
|
+
if attributes.has_key?(:'QuotePrefixToStyle')
|
488
|
+
self.quote_prefix_to_style = attributes[:'QuotePrefixToStyle']
|
489
|
+
end
|
490
|
+
if attributes.has_key?(:'FormulaSettings')
|
491
|
+
self.formula_settings = attributes[:'FormulaSettings']
|
492
|
+
end
|
493
|
+
if attributes.has_key?(:'ForceFullCalculate')
|
494
|
+
self.force_full_calculate = attributes[:'ForceFullCalculate']
|
495
|
+
end
|
370
496
|
|
371
497
|
end
|
372
498
|
|
@@ -509,6 +635,60 @@ module AsposeCellsCloud
|
|
509
635
|
if @window_width.nil?
|
510
636
|
invalid_properties.push("invalid value for 'window_width', window_width cannot be nil.")
|
511
637
|
end
|
638
|
+
if @author.nil?
|
639
|
+
invalid_properties.push("invalid value for 'author', author cannot be nil.")
|
640
|
+
end
|
641
|
+
if @check_custom_number_format.nil?
|
642
|
+
invalid_properties.push("invalid value for 'check_custom_number_format', check_custom_number_format cannot be nil.")
|
643
|
+
end
|
644
|
+
if @protection_type.nil?
|
645
|
+
invalid_properties.push("invalid value for 'protection_type', protection_type cannot be nil.")
|
646
|
+
end
|
647
|
+
if @globalization_settings.nil?
|
648
|
+
invalid_properties.push("invalid value for 'globalization_settings', globalization_settings cannot be nil.")
|
649
|
+
end
|
650
|
+
if @password.nil?
|
651
|
+
invalid_properties.push("invalid value for 'password', password cannot be nil.")
|
652
|
+
end
|
653
|
+
if @write_protection.nil?
|
654
|
+
invalid_properties.push("invalid value for 'write_protection', write_protection cannot be nil.")
|
655
|
+
end
|
656
|
+
if @is_encrypted.nil?
|
657
|
+
invalid_properties.push("invalid value for 'is_encrypted', is_encrypted cannot be nil.")
|
658
|
+
end
|
659
|
+
if @is_protected.nil?
|
660
|
+
invalid_properties.push("invalid value for 'is_protected', is_protected cannot be nil.")
|
661
|
+
end
|
662
|
+
if @max_row.nil?
|
663
|
+
invalid_properties.push("invalid value for 'max_row', max_row cannot be nil.")
|
664
|
+
end
|
665
|
+
if @max_column.nil?
|
666
|
+
invalid_properties.push("invalid value for 'max_column', max_column cannot be nil.")
|
667
|
+
end
|
668
|
+
if @significant_digits.nil?
|
669
|
+
invalid_properties.push("invalid value for 'significant_digits', significant_digits cannot be nil.")
|
670
|
+
end
|
671
|
+
if @check_compatibility.nil?
|
672
|
+
invalid_properties.push("invalid value for 'check_compatibility', check_compatibility cannot be nil.")
|
673
|
+
end
|
674
|
+
if @paper_size.nil?
|
675
|
+
invalid_properties.push("invalid value for 'paper_size', paper_size cannot be nil.")
|
676
|
+
end
|
677
|
+
if @max_rows_of_shared_formula.nil?
|
678
|
+
invalid_properties.push("invalid value for 'max_rows_of_shared_formula', max_rows_of_shared_formula cannot be nil.")
|
679
|
+
end
|
680
|
+
if @compliance.nil?
|
681
|
+
invalid_properties.push("invalid value for 'compliance', compliance cannot be nil.")
|
682
|
+
end
|
683
|
+
if @quote_prefix_to_style.nil?
|
684
|
+
invalid_properties.push("invalid value for 'quote_prefix_to_style', quote_prefix_to_style cannot be nil.")
|
685
|
+
end
|
686
|
+
if @formula_settings.nil?
|
687
|
+
invalid_properties.push("invalid value for 'formula_settings', formula_settings cannot be nil.")
|
688
|
+
end
|
689
|
+
if @force_full_calculate.nil?
|
690
|
+
invalid_properties.push("invalid value for 'force_full_calculate', force_full_calculate cannot be nil.")
|
691
|
+
end
|
512
692
|
|
513
693
|
return invalid_properties
|
514
694
|
end
|
@@ -561,6 +741,24 @@ module AsposeCellsCloud
|
|
561
741
|
return false if @window_left.nil?
|
562
742
|
return false if @window_top.nil?
|
563
743
|
return false if @window_width.nil?
|
744
|
+
return false if @author.nil?
|
745
|
+
return false if @check_custom_number_format.nil?
|
746
|
+
return false if @protection_type.nil?
|
747
|
+
return false if @globalization_settings.nil?
|
748
|
+
return false if @password.nil?
|
749
|
+
return false if @write_protection.nil?
|
750
|
+
return false if @is_encrypted.nil?
|
751
|
+
return false if @is_protected.nil?
|
752
|
+
return false if @max_row.nil?
|
753
|
+
return false if @max_column.nil?
|
754
|
+
return false if @significant_digits.nil?
|
755
|
+
return false if @check_compatibility.nil?
|
756
|
+
return false if @paper_size.nil?
|
757
|
+
return false if @max_rows_of_shared_formula.nil?
|
758
|
+
return false if @compliance.nil?
|
759
|
+
return false if @quote_prefix_to_style.nil?
|
760
|
+
return false if @formula_settings.nil?
|
761
|
+
return false if @force_full_calculate.nil?
|
564
762
|
return true
|
565
763
|
end
|
566
764
|
|
@@ -613,7 +811,25 @@ module AsposeCellsCloud
|
|
613
811
|
window_height == o.window_height &&
|
614
812
|
window_left == o.window_left &&
|
615
813
|
window_top == o.window_top &&
|
616
|
-
window_width == o.window_width
|
814
|
+
window_width == o.window_width &&
|
815
|
+
author == o.author &&
|
816
|
+
check_custom_number_format == o.check_custom_number_format &&
|
817
|
+
protection_type == o.protection_type &&
|
818
|
+
globalization_settings == o.globalization_settings &&
|
819
|
+
password == o.password &&
|
820
|
+
write_protection == o.write_protection &&
|
821
|
+
is_encrypted == o.is_encrypted &&
|
822
|
+
is_protected == o.is_protected &&
|
823
|
+
max_row == o.max_row &&
|
824
|
+
max_column == o.max_column &&
|
825
|
+
significant_digits == o.significant_digits &&
|
826
|
+
check_compatibility == o.check_compatibility &&
|
827
|
+
paper_size == o.paper_size &&
|
828
|
+
max_rows_of_shared_formula == o.max_rows_of_shared_formula &&
|
829
|
+
compliance == o.compliance &&
|
830
|
+
quote_prefix_to_style == o.quote_prefix_to_style &&
|
831
|
+
formula_settings == o.formula_settings &&
|
832
|
+
force_full_calculate == o.force_full_calculate
|
617
833
|
std_dev == o.std_dev
|
618
834
|
end
|
619
835
|
|
@@ -626,7 +842,7 @@ module AsposeCellsCloud
|
|
626
842
|
# Calculates hash code according to all attributes.
|
627
843
|
# @return [Fixnum] Hash code
|
628
844
|
def hash
|
629
|
-
[ auto_compress_pictures , auto_recover , build_version , calc_mode , calc_stack_size , calculation_id , check_comptiliblity , check_excel_restriction , crash_save , create_calc_chain , data_extract_load , date1904 , display_drawing_objects , enable_macros , first_visible_tab , hide_pivot_field_list , is_default_encrypted , is_hidden , is_h_scroll_bar_visible , is_minimized , is_v_scroll_bar_visible , iteration , language_code , max_change , max_iteration , memory_setting , number_decimal_separator , number_group_separator , parsing_formula_on_open , precision_as_displayed , recalculate_before_save , re_calculate_on_open , recommend_read_only , region , remove_personal_information , repair_load , shared , sheet_tab_bar_width , show_tabs , update_adjacent_cells_border , update_links_type , window_height , window_left , window_top , window_width ].hash
|
845
|
+
[ auto_compress_pictures , auto_recover , build_version , calc_mode , calc_stack_size , calculation_id , check_comptiliblity , check_excel_restriction , crash_save , create_calc_chain , data_extract_load , date1904 , display_drawing_objects , enable_macros , first_visible_tab , hide_pivot_field_list , is_default_encrypted , is_hidden , is_h_scroll_bar_visible , is_minimized , is_v_scroll_bar_visible , iteration , language_code , max_change , max_iteration , memory_setting , number_decimal_separator , number_group_separator , parsing_formula_on_open , precision_as_displayed , recalculate_before_save , re_calculate_on_open , recommend_read_only , region , remove_personal_information , repair_load , shared , sheet_tab_bar_width , show_tabs , update_adjacent_cells_border , update_links_type , window_height , window_left , window_top , window_width , author , check_custom_number_format , protection_type , globalization_settings , password , write_protection , is_encrypted , is_protected , max_row , max_column , significant_digits , check_compatibility , paper_size , max_rows_of_shared_formula , compliance , quote_prefix_to_style , formula_settings , force_full_calculate ].hash
|
630
846
|
end
|
631
847
|
|
632
848
|
# Builds the object from hash
|