aspose_slides_cloud 21.9.0 → 21.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/TestData/test-unprotected.pptx +0 -0
- data/TestData/test.pptx +0 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +119 -113
- data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/chart.rb +2 -1
- data/lib/aspose_slides_cloud/models/connector.rb +2 -1
- data/lib/aspose_slides_cloud/models/effect.rb +11 -1
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +21 -1
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
- data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/html_export_options.rb +3 -46
- data/lib/aspose_slides_cloud/models/image_export_options.rb +3 -16
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +3 -76
- data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +3 -6
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
- data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +0 -15
- data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/special_slide_type.rb +41 -0
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +3 -46
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +3 -86
- data/lib/aspose_slides_cloud/models/table.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +3 -56
- data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +3 -16
- data/lib/aspose_slides_cloud/type_registry.rb +6 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +5 -0
- data/spec/api/slides_api_spec.rb +90 -20
- data/testRules.json +30 -75
- metadata +3 -2
@@ -213,6 +213,7 @@ module AsposeSlidesCloud
|
|
213
213
|
shapes == o.shapes &&
|
214
214
|
fill_format == o.fill_format &&
|
215
215
|
effect_format == o.effect_format &&
|
216
|
+
three_d_format == o.three_d_format &&
|
216
217
|
line_format == o.line_format &&
|
217
218
|
type == o.type &&
|
218
219
|
shape_type == o.shape_type &&
|
@@ -237,7 +238,7 @@ module AsposeSlidesCloud
|
|
237
238
|
# Calculates hash code according to all attributes.
|
238
239
|
# @return [Fixnum] Hash code
|
239
240
|
def hash
|
240
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data].hash
|
241
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, shape_type, audio_cd_end_track, audio_cd_end_track_time, audio_cd_start_track, audio_cd_start_track_time, embedded, hide_at_showing, play_loop_mode, play_mode, volume, base64_data].hash
|
241
242
|
end
|
242
243
|
|
243
244
|
# Builds the object from hash
|
@@ -219,6 +219,7 @@ module AsposeSlidesCloud
|
|
219
219
|
shapes == o.shapes &&
|
220
220
|
fill_format == o.fill_format &&
|
221
221
|
effect_format == o.effect_format &&
|
222
|
+
three_d_format == o.three_d_format &&
|
222
223
|
line_format == o.line_format &&
|
223
224
|
type == o.type &&
|
224
225
|
chart_type == o.chart_type &&
|
@@ -243,7 +244,7 @@ module AsposeSlidesCloud
|
|
243
244
|
# Calculates hash code according to all attributes.
|
244
245
|
# @return [Fixnum] Hash code
|
245
246
|
def hash
|
246
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, chart_type, show_data_labels_over_maximum, series, categories, title, back_wall, side_wall, floor, legend, axes, plot_area].hash
|
247
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, chart_type, show_data_labels_over_maximum, series, categories, title, back_wall, side_wall, floor, legend, axes, plot_area].hash
|
247
248
|
end
|
248
249
|
|
249
250
|
# Builds the object from hash
|
@@ -135,6 +135,7 @@ module AsposeSlidesCloud
|
|
135
135
|
shapes == o.shapes &&
|
136
136
|
fill_format == o.fill_format &&
|
137
137
|
effect_format == o.effect_format &&
|
138
|
+
three_d_format == o.three_d_format &&
|
138
139
|
line_format == o.line_format &&
|
139
140
|
type == o.type &&
|
140
141
|
shape_type == o.shape_type &&
|
@@ -153,7 +154,7 @@ module AsposeSlidesCloud
|
|
153
154
|
# Calculates hash code according to all attributes.
|
154
155
|
# @return [Fixnum] Hash code
|
155
156
|
def hash
|
156
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
|
157
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
|
157
158
|
end
|
158
159
|
|
159
160
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module AsposeSlidesCloud
|
|
37
37
|
# Shape index.
|
38
38
|
attr_accessor :shape_index
|
39
39
|
|
40
|
+
# Paragraph index.
|
41
|
+
attr_accessor :paragraph_index
|
42
|
+
|
40
43
|
# Effect trigger type.
|
41
44
|
attr_accessor :trigger_type
|
42
45
|
|
@@ -96,6 +99,7 @@ module AsposeSlidesCloud
|
|
96
99
|
:'subtype' => :'Subtype',
|
97
100
|
:'preset_class_type' => :'PresetClassType',
|
98
101
|
:'shape_index' => :'ShapeIndex',
|
102
|
+
:'paragraph_index' => :'ParagraphIndex',
|
99
103
|
:'trigger_type' => :'TriggerType',
|
100
104
|
:'accelerate' => :'Accelerate',
|
101
105
|
:'auto_reverse' => :'AutoReverse',
|
@@ -116,6 +120,7 @@ module AsposeSlidesCloud
|
|
116
120
|
:'subtype' => :'String',
|
117
121
|
:'preset_class_type' => :'String',
|
118
122
|
:'shape_index' => :'Integer',
|
123
|
+
:'paragraph_index' => :'Integer',
|
119
124
|
:'trigger_type' => :'String',
|
120
125
|
:'accelerate' => :'Float',
|
121
126
|
:'auto_reverse' => :'BOOLEAN',
|
@@ -153,6 +158,10 @@ module AsposeSlidesCloud
|
|
153
158
|
self.shape_index = attributes[:'ShapeIndex']
|
154
159
|
end
|
155
160
|
|
161
|
+
if attributes.has_key?(:'ParagraphIndex')
|
162
|
+
self.paragraph_index = attributes[:'ParagraphIndex']
|
163
|
+
end
|
164
|
+
|
156
165
|
if attributes.has_key?(:'TriggerType')
|
157
166
|
self.trigger_type = attributes[:'TriggerType']
|
158
167
|
end
|
@@ -281,6 +290,7 @@ module AsposeSlidesCloud
|
|
281
290
|
subtype == o.subtype &&
|
282
291
|
preset_class_type == o.preset_class_type &&
|
283
292
|
shape_index == o.shape_index &&
|
293
|
+
paragraph_index == o.paragraph_index &&
|
284
294
|
trigger_type == o.trigger_type &&
|
285
295
|
accelerate == o.accelerate &&
|
286
296
|
auto_reverse == o.auto_reverse &&
|
@@ -302,7 +312,7 @@ module AsposeSlidesCloud
|
|
302
312
|
# Calculates hash code according to all attributes.
|
303
313
|
# @return [Fixnum] Hash code
|
304
314
|
def hash
|
305
|
-
[type, subtype, preset_class_type, shape_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time].hash
|
315
|
+
[type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time].hash
|
306
316
|
end
|
307
317
|
|
308
318
|
# Builds the object from hash
|
@@ -28,12 +28,20 @@ module AsposeSlidesCloud
|
|
28
28
|
# Default regular font for rendering the presentation.
|
29
29
|
attr_accessor :default_regular_font
|
30
30
|
|
31
|
+
# Gets or sets the height of slides in the output format, e.g. image size, pdf page size etc.
|
32
|
+
attr_accessor :height
|
33
|
+
|
34
|
+
# Gets or sets the height of slides in the output format, e.g. image size, pdf page size etc.
|
35
|
+
attr_accessor :width
|
36
|
+
|
31
37
|
attr_accessor :format
|
32
38
|
|
33
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
40
|
def self.attribute_map
|
35
41
|
{
|
36
42
|
:'default_regular_font' => :'DefaultRegularFont',
|
43
|
+
:'height' => :'Height',
|
44
|
+
:'width' => :'Width',
|
37
45
|
:'format' => :'Format',
|
38
46
|
}
|
39
47
|
end
|
@@ -42,6 +50,8 @@ module AsposeSlidesCloud
|
|
42
50
|
def self.swagger_types
|
43
51
|
{
|
44
52
|
:'default_regular_font' => :'String',
|
53
|
+
:'height' => :'Integer',
|
54
|
+
:'width' => :'Integer',
|
45
55
|
:'format' => :'String',
|
46
56
|
}
|
47
57
|
end
|
@@ -58,6 +68,14 @@ module AsposeSlidesCloud
|
|
58
68
|
self.default_regular_font = attributes[:'DefaultRegularFont']
|
59
69
|
end
|
60
70
|
|
71
|
+
if attributes.has_key?(:'Height')
|
72
|
+
self.height = attributes[:'Height']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'Width')
|
76
|
+
self.width = attributes[:'Width']
|
77
|
+
end
|
78
|
+
|
61
79
|
if attributes.has_key?(:'Format')
|
62
80
|
self.format = attributes[:'Format']
|
63
81
|
end
|
@@ -82,6 +100,8 @@ module AsposeSlidesCloud
|
|
82
100
|
return true if self.equal?(o)
|
83
101
|
self.class == o.class &&
|
84
102
|
default_regular_font == o.default_regular_font &&
|
103
|
+
height == o.height &&
|
104
|
+
width == o.width &&
|
85
105
|
format == o.format
|
86
106
|
end
|
87
107
|
|
@@ -94,7 +114,7 @@ module AsposeSlidesCloud
|
|
94
114
|
# Calculates hash code according to all attributes.
|
95
115
|
# @return [Fixnum] Hash code
|
96
116
|
def hash
|
97
|
-
[default_regular_font, format].hash
|
117
|
+
[default_regular_font, height, width, format].hash
|
98
118
|
end
|
99
119
|
|
100
120
|
# Builds the object from hash
|
@@ -124,6 +124,7 @@ module AsposeSlidesCloud
|
|
124
124
|
shapes == o.shapes &&
|
125
125
|
fill_format == o.fill_format &&
|
126
126
|
effect_format == o.effect_format &&
|
127
|
+
three_d_format == o.three_d_format &&
|
127
128
|
line_format == o.line_format &&
|
128
129
|
type == o.type &&
|
129
130
|
shape_type == o.shape_type
|
@@ -138,7 +139,7 @@ module AsposeSlidesCloud
|
|
138
139
|
# Calculates hash code according to all attributes.
|
139
140
|
# @return [Fixnum] Hash code
|
140
141
|
def hash
|
141
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type].hash
|
142
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, shape_type].hash
|
142
143
|
end
|
143
144
|
|
144
145
|
# Builds the object from hash
|
@@ -99,6 +99,7 @@ module AsposeSlidesCloud
|
|
99
99
|
shapes == o.shapes &&
|
100
100
|
fill_format == o.fill_format &&
|
101
101
|
effect_format == o.effect_format &&
|
102
|
+
three_d_format == o.three_d_format &&
|
102
103
|
line_format == o.line_format &&
|
103
104
|
type == o.type
|
104
105
|
end
|
@@ -112,7 +113,7 @@ module AsposeSlidesCloud
|
|
112
113
|
# Calculates hash code according to all attributes.
|
113
114
|
# @return [Fixnum] Hash code
|
114
115
|
def hash
|
115
|
-
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
|
116
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type].hash
|
116
117
|
end
|
117
118
|
|
118
119
|
# Builds the object from hash
|
@@ -99,6 +99,7 @@ module AsposeSlidesCloud
|
|
99
99
|
shapes == o.shapes &&
|
100
100
|
fill_format == o.fill_format &&
|
101
101
|
effect_format == o.effect_format &&
|
102
|
+
three_d_format == o.three_d_format &&
|
102
103
|
line_format == o.line_format &&
|
103
104
|
type == o.type
|
104
105
|
end
|
@@ -112,7 +113,7 @@ module AsposeSlidesCloud
|
|
112
113
|
# Calculates hash code according to all attributes.
|
113
114
|
# @return [Fixnum] Hash code
|
114
115
|
def hash
|
115
|
-
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
|
116
|
+
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type].hash
|
116
117
|
end
|
117
118
|
|
118
119
|
# Builds the object from hash
|
@@ -178,42 +178,6 @@ module AsposeSlidesCloud
|
|
178
178
|
# @return Array for valid properties with the reasons
|
179
179
|
def list_invalid_properties
|
180
180
|
invalid_properties = super
|
181
|
-
if @save_as_zip.nil?
|
182
|
-
invalid_properties.push('invalid value for "save_as_zip", save_as_zip cannot be nil.')
|
183
|
-
end
|
184
|
-
|
185
|
-
if @show_hidden_slides.nil?
|
186
|
-
invalid_properties.push('invalid value for "show_hidden_slides", show_hidden_slides cannot be nil.')
|
187
|
-
end
|
188
|
-
|
189
|
-
if @svg_responsive_layout.nil?
|
190
|
-
invalid_properties.push('invalid value for "svg_responsive_layout", svg_responsive_layout cannot be nil.')
|
191
|
-
end
|
192
|
-
|
193
|
-
if @jpeg_quality.nil?
|
194
|
-
invalid_properties.push('invalid value for "jpeg_quality", jpeg_quality cannot be nil.')
|
195
|
-
end
|
196
|
-
|
197
|
-
if @delete_pictures_cropped_areas.nil?
|
198
|
-
invalid_properties.push('invalid value for "delete_pictures_cropped_areas", delete_pictures_cropped_areas cannot be nil.')
|
199
|
-
end
|
200
|
-
|
201
|
-
if @notes_position.nil?
|
202
|
-
invalid_properties.push('invalid value for "notes_position", notes_position cannot be nil.')
|
203
|
-
end
|
204
|
-
|
205
|
-
if @comments_position.nil?
|
206
|
-
invalid_properties.push('invalid value for "comments_position", comments_position cannot be nil.')
|
207
|
-
end
|
208
|
-
|
209
|
-
if @comments_area_width.nil?
|
210
|
-
invalid_properties.push('invalid value for "comments_area_width", comments_area_width cannot be nil.')
|
211
|
-
end
|
212
|
-
|
213
|
-
if @show_comments_by_no_author.nil?
|
214
|
-
invalid_properties.push('invalid value for "show_comments_by_no_author", show_comments_by_no_author cannot be nil.')
|
215
|
-
end
|
216
|
-
|
217
181
|
invalid_properties
|
218
182
|
end
|
219
183
|
|
@@ -221,21 +185,12 @@ module AsposeSlidesCloud
|
|
221
185
|
# @return true if the model is valid
|
222
186
|
def valid?
|
223
187
|
return false if !super
|
224
|
-
return false if @save_as_zip.nil?
|
225
|
-
return false if @show_hidden_slides.nil?
|
226
|
-
return false if @svg_responsive_layout.nil?
|
227
|
-
return false if @jpeg_quality.nil?
|
228
188
|
pictures_compression_validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
|
229
189
|
return false unless pictures_compression_validator.valid?(@pictures_compression)
|
230
|
-
return false if @delete_pictures_cropped_areas.nil?
|
231
|
-
return false if @notes_position.nil?
|
232
190
|
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
233
191
|
return false unless notes_position_validator.valid?(@notes_position)
|
234
|
-
return false if @comments_position.nil?
|
235
192
|
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
236
193
|
return false unless comments_position_validator.valid?(@comments_position)
|
237
|
-
return false if @comments_area_width.nil?
|
238
|
-
return false if @show_comments_by_no_author.nil?
|
239
194
|
true
|
240
195
|
end
|
241
196
|
|
@@ -275,6 +230,8 @@ module AsposeSlidesCloud
|
|
275
230
|
return true if self.equal?(o)
|
276
231
|
self.class == o.class &&
|
277
232
|
default_regular_font == o.default_regular_font &&
|
233
|
+
height == o.height &&
|
234
|
+
width == o.width &&
|
278
235
|
format == o.format &&
|
279
236
|
save_as_zip == o.save_as_zip &&
|
280
237
|
sub_directory_name == o.sub_directory_name &&
|
@@ -299,7 +256,7 @@ module AsposeSlidesCloud
|
|
299
256
|
# Calculates hash code according to all attributes.
|
300
257
|
# @return [Fixnum] Hash code
|
301
258
|
def hash
|
302
|
-
[default_regular_font, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
259
|
+
[default_regular_font, height, width, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
303
260
|
end
|
304
261
|
|
305
262
|
# Builds the object from hash
|
@@ -106,18 +106,6 @@ module AsposeSlidesCloud
|
|
106
106
|
# @return Array for valid properties with the reasons
|
107
107
|
def list_invalid_properties
|
108
108
|
invalid_properties = super
|
109
|
-
if @notes_position.nil?
|
110
|
-
invalid_properties.push('invalid value for "notes_position", notes_position cannot be nil.')
|
111
|
-
end
|
112
|
-
|
113
|
-
if @comments_position.nil?
|
114
|
-
invalid_properties.push('invalid value for "comments_position", comments_position cannot be nil.')
|
115
|
-
end
|
116
|
-
|
117
|
-
if @comments_area_width.nil?
|
118
|
-
invalid_properties.push('invalid value for "comments_area_width", comments_area_width cannot be nil.')
|
119
|
-
end
|
120
|
-
|
121
109
|
invalid_properties
|
122
110
|
end
|
123
111
|
|
@@ -125,13 +113,10 @@ module AsposeSlidesCloud
|
|
125
113
|
# @return true if the model is valid
|
126
114
|
def valid?
|
127
115
|
return false if !super
|
128
|
-
return false if @notes_position.nil?
|
129
116
|
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
130
117
|
return false unless notes_position_validator.valid?(@notes_position)
|
131
|
-
return false if @comments_position.nil?
|
132
118
|
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
133
119
|
return false unless comments_position_validator.valid?(@comments_position)
|
134
|
-
return false if @comments_area_width.nil?
|
135
120
|
true
|
136
121
|
end
|
137
122
|
|
@@ -161,6 +146,8 @@ module AsposeSlidesCloud
|
|
161
146
|
return true if self.equal?(o)
|
162
147
|
self.class == o.class &&
|
163
148
|
default_regular_font == o.default_regular_font &&
|
149
|
+
height == o.height &&
|
150
|
+
width == o.width &&
|
164
151
|
format == o.format &&
|
165
152
|
notes_position == o.notes_position &&
|
166
153
|
comments_position == o.comments_position &&
|
@@ -177,7 +164,7 @@ module AsposeSlidesCloud
|
|
177
164
|
# Calculates hash code according to all attributes.
|
178
165
|
# @return [Fixnum] Hash code
|
179
166
|
def hash
|
180
|
-
[default_regular_font, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
|
167
|
+
[default_regular_font, height, width, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
|
181
168
|
end
|
182
169
|
|
183
170
|
# Builds the object from hash
|
@@ -122,6 +122,7 @@ module AsposeSlidesCloud
|
|
122
122
|
shapes == o.shapes &&
|
123
123
|
fill_format == o.fill_format &&
|
124
124
|
effect_format == o.effect_format &&
|
125
|
+
three_d_format == o.three_d_format &&
|
125
126
|
line_format == o.line_format &&
|
126
127
|
type == o.type &&
|
127
128
|
is_object_icon == o.is_object_icon &&
|
@@ -137,7 +138,7 @@ module AsposeSlidesCloud
|
|
137
138
|
# Calculates hash code according to all attributes.
|
138
139
|
# @return [Fixnum] Hash code
|
139
140
|
def hash
|
140
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, is_object_icon, substitute_picture_title].hash
|
141
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, is_object_icon, substitute_picture_title].hash
|
141
142
|
end
|
142
143
|
|
143
144
|
# Builds the object from hash
|
@@ -243,66 +243,6 @@ module AsposeSlidesCloud
|
|
243
243
|
# @return Array for valid properties with the reasons
|
244
244
|
def list_invalid_properties
|
245
245
|
invalid_properties = super
|
246
|
-
if @text_compression.nil?
|
247
|
-
invalid_properties.push('invalid value for "text_compression", text_compression cannot be nil.')
|
248
|
-
end
|
249
|
-
|
250
|
-
if @embed_full_fonts.nil?
|
251
|
-
invalid_properties.push('invalid value for "embed_full_fonts", embed_full_fonts cannot be nil.')
|
252
|
-
end
|
253
|
-
|
254
|
-
if @compliance.nil?
|
255
|
-
invalid_properties.push('invalid value for "compliance", compliance cannot be nil.')
|
256
|
-
end
|
257
|
-
|
258
|
-
if @sufficient_resolution.nil?
|
259
|
-
invalid_properties.push('invalid value for "sufficient_resolution", sufficient_resolution cannot be nil.')
|
260
|
-
end
|
261
|
-
|
262
|
-
if @jpeg_quality.nil?
|
263
|
-
invalid_properties.push('invalid value for "jpeg_quality", jpeg_quality cannot be nil.')
|
264
|
-
end
|
265
|
-
|
266
|
-
if @draw_slides_frame.nil?
|
267
|
-
invalid_properties.push('invalid value for "draw_slides_frame", draw_slides_frame cannot be nil.')
|
268
|
-
end
|
269
|
-
|
270
|
-
if @show_hidden_slides.nil?
|
271
|
-
invalid_properties.push('invalid value for "show_hidden_slides", show_hidden_slides cannot be nil.')
|
272
|
-
end
|
273
|
-
|
274
|
-
if @save_metafiles_as_png.nil?
|
275
|
-
invalid_properties.push('invalid value for "save_metafiles_as_png", save_metafiles_as_png cannot be nil.')
|
276
|
-
end
|
277
|
-
|
278
|
-
if @embed_true_type_fonts_for_ascii.nil?
|
279
|
-
invalid_properties.push('invalid value for "embed_true_type_fonts_for_ascii", embed_true_type_fonts_for_ascii cannot be nil.')
|
280
|
-
end
|
281
|
-
|
282
|
-
if @notes_position.nil?
|
283
|
-
invalid_properties.push('invalid value for "notes_position", notes_position cannot be nil.')
|
284
|
-
end
|
285
|
-
|
286
|
-
if @comments_position.nil?
|
287
|
-
invalid_properties.push('invalid value for "comments_position", comments_position cannot be nil.')
|
288
|
-
end
|
289
|
-
|
290
|
-
if @comments_area_width.nil?
|
291
|
-
invalid_properties.push('invalid value for "comments_area_width", comments_area_width cannot be nil.')
|
292
|
-
end
|
293
|
-
|
294
|
-
if @show_comments_by_no_author.nil?
|
295
|
-
invalid_properties.push('invalid value for "show_comments_by_no_author", show_comments_by_no_author cannot be nil.')
|
296
|
-
end
|
297
|
-
|
298
|
-
if @apply_image_transparent.nil?
|
299
|
-
invalid_properties.push('invalid value for "apply_image_transparent", apply_image_transparent cannot be nil.')
|
300
|
-
end
|
301
|
-
|
302
|
-
if @access_permissions.nil?
|
303
|
-
invalid_properties.push('invalid value for "access_permissions", access_permissions cannot be nil.')
|
304
|
-
end
|
305
|
-
|
306
246
|
invalid_properties
|
307
247
|
end
|
308
248
|
|
@@ -310,29 +250,14 @@ module AsposeSlidesCloud
|
|
310
250
|
# @return true if the model is valid
|
311
251
|
def valid?
|
312
252
|
return false if !super
|
313
|
-
return false if @text_compression.nil?
|
314
253
|
text_compression_validator = EnumAttributeValidator.new('String', ['None', 'Flate'])
|
315
254
|
return false unless text_compression_validator.valid?(@text_compression)
|
316
|
-
return false if @embed_full_fonts.nil?
|
317
|
-
return false if @compliance.nil?
|
318
255
|
compliance_validator = EnumAttributeValidator.new('String', ['Pdf15', 'PdfA1b', 'PdfA1a', 'PdfUa'])
|
319
256
|
return false unless compliance_validator.valid?(@compliance)
|
320
|
-
return false if @sufficient_resolution.nil?
|
321
|
-
return false if @jpeg_quality.nil?
|
322
|
-
return false if @draw_slides_frame.nil?
|
323
|
-
return false if @show_hidden_slides.nil?
|
324
|
-
return false if @save_metafiles_as_png.nil?
|
325
|
-
return false if @embed_true_type_fonts_for_ascii.nil?
|
326
|
-
return false if @notes_position.nil?
|
327
257
|
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
328
258
|
return false unless notes_position_validator.valid?(@notes_position)
|
329
|
-
return false if @comments_position.nil?
|
330
259
|
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
331
260
|
return false unless comments_position_validator.valid?(@comments_position)
|
332
|
-
return false if @comments_area_width.nil?
|
333
|
-
return false if @show_comments_by_no_author.nil?
|
334
|
-
return false if @apply_image_transparent.nil?
|
335
|
-
return false if @access_permissions.nil?
|
336
261
|
access_permissions_validator = EnumAttributeValidator.new('String', ['None', 'PrintDocument', 'ModifyContent', 'CopyTextAndGraphics', 'AddOrModifyFields', 'FillExistingFields', 'ExtractTextAndGraphics', 'AssembleDocument', 'HighQualityPrint'])
|
337
262
|
return false unless access_permissions_validator.valid?(@access_permissions)
|
338
263
|
true
|
@@ -394,6 +319,8 @@ module AsposeSlidesCloud
|
|
394
319
|
return true if self.equal?(o)
|
395
320
|
self.class == o.class &&
|
396
321
|
default_regular_font == o.default_regular_font &&
|
322
|
+
height == o.height &&
|
323
|
+
width == o.width &&
|
397
324
|
format == o.format &&
|
398
325
|
text_compression == o.text_compression &&
|
399
326
|
embed_full_fonts == o.embed_full_fonts &&
|
@@ -425,7 +352,7 @@ module AsposeSlidesCloud
|
|
425
352
|
# Calculates hash code according to all attributes.
|
426
353
|
# @return [Fixnum] Hash code
|
427
354
|
def hash
|
428
|
-
[default_regular_font, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
355
|
+
[default_regular_font, height, width, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author, image_transparent_color, apply_image_transparent, access_permissions].hash
|
429
356
|
end
|
430
357
|
|
431
358
|
# Builds the object from hash
|
@@ -108,6 +108,7 @@ module AsposeSlidesCloud
|
|
108
108
|
shapes == o.shapes &&
|
109
109
|
fill_format == o.fill_format &&
|
110
110
|
effect_format == o.effect_format &&
|
111
|
+
three_d_format == o.three_d_format &&
|
111
112
|
line_format == o.line_format &&
|
112
113
|
type == o.type &&
|
113
114
|
shape_type == o.shape_type &&
|
@@ -123,7 +124,7 @@ module AsposeSlidesCloud
|
|
123
124
|
# Calculates hash code according to all attributes.
|
124
125
|
# @return [Fixnum] Hash code
|
125
126
|
def hash
|
126
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, picture_fill_format].hash
|
127
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, shape_type, picture_fill_format].hash
|
127
128
|
end
|
128
129
|
|
129
130
|
# Builds the object from hash
|
@@ -79,10 +79,6 @@ module AsposeSlidesCloud
|
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
81
|
invalid_properties = super
|
82
|
-
if @conformance.nil?
|
83
|
-
invalid_properties.push('invalid value for "conformance", conformance cannot be nil.')
|
84
|
-
end
|
85
|
-
|
86
82
|
invalid_properties
|
87
83
|
end
|
88
84
|
|
@@ -90,7 +86,6 @@ module AsposeSlidesCloud
|
|
90
86
|
# @return true if the model is valid
|
91
87
|
def valid?
|
92
88
|
return false if !super
|
93
|
-
return false if @conformance.nil?
|
94
89
|
conformance_validator = EnumAttributeValidator.new('String', ['Ecma376_2006', 'Iso29500_2008_Transitional', 'Iso29500_2008_Strict'])
|
95
90
|
return false unless conformance_validator.valid?(@conformance)
|
96
91
|
true
|
@@ -112,6 +107,8 @@ module AsposeSlidesCloud
|
|
112
107
|
return true if self.equal?(o)
|
113
108
|
self.class == o.class &&
|
114
109
|
default_regular_font == o.default_regular_font &&
|
110
|
+
height == o.height &&
|
111
|
+
width == o.width &&
|
115
112
|
format == o.format &&
|
116
113
|
conformance == o.conformance
|
117
114
|
end
|
@@ -125,7 +122,7 @@ module AsposeSlidesCloud
|
|
125
122
|
# Calculates hash code according to all attributes.
|
126
123
|
# @return [Fixnum] Hash code
|
127
124
|
def hash
|
128
|
-
[default_regular_font, format, conformance].hash
|
125
|
+
[default_regular_font, height, width, format, conformance].hash
|
129
126
|
end
|
130
127
|
|
131
128
|
# Builds the object from hash
|
@@ -109,7 +109,7 @@ module AsposeSlidesCloud
|
|
109
109
|
def valid?
|
110
110
|
return false if !super
|
111
111
|
return false if @format.nil?
|
112
|
-
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
112
|
+
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
113
113
|
return false unless format_validator.valid?(@format)
|
114
114
|
true
|
115
115
|
end
|
@@ -117,7 +117,7 @@ module AsposeSlidesCloud
|
|
117
117
|
# Custom attribute writer method checking allowed values (enum).
|
118
118
|
# @param [Object] format Object to be assigned
|
119
119
|
def format=(format)
|
120
|
-
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
120
|
+
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp'])
|
121
121
|
unless validator.valid?(format)
|
122
122
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
123
123
|
end
|
@@ -117,6 +117,7 @@ module AsposeSlidesCloud
|
|
117
117
|
shapes == o.shapes &&
|
118
118
|
fill_format == o.fill_format &&
|
119
119
|
effect_format == o.effect_format &&
|
120
|
+
three_d_format == o.three_d_format &&
|
120
121
|
line_format == o.line_format &&
|
121
122
|
type == o.type &&
|
122
123
|
shape_type == o.shape_type &&
|
@@ -133,7 +134,7 @@ module AsposeSlidesCloud
|
|
133
134
|
# Calculates hash code according to all attributes.
|
134
135
|
# @return [Fixnum] Hash code
|
135
136
|
def hash
|
136
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type, shape_type, text, paragraphs].hash
|
137
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type, shape_type, text, paragraphs].hash
|
137
138
|
end
|
138
139
|
|
139
140
|
# Builds the object from hash
|
@@ -61,6 +61,9 @@ module AsposeSlidesCloud
|
|
61
61
|
# Gets or sets the effect format.
|
62
62
|
attr_accessor :effect_format
|
63
63
|
|
64
|
+
# Gets or sets the 3D format
|
65
|
+
attr_accessor :three_d_format
|
66
|
+
|
64
67
|
# Gets or sets the line format.
|
65
68
|
attr_accessor :line_format
|
66
69
|
|
@@ -103,6 +106,7 @@ module AsposeSlidesCloud
|
|
103
106
|
:'shapes' => :'Shapes',
|
104
107
|
:'fill_format' => :'FillFormat',
|
105
108
|
:'effect_format' => :'EffectFormat',
|
109
|
+
:'three_d_format' => :'ThreeDFormat',
|
106
110
|
:'line_format' => :'LineFormat',
|
107
111
|
:'type' => :'Type',
|
108
112
|
})
|
@@ -123,6 +127,7 @@ module AsposeSlidesCloud
|
|
123
127
|
:'shapes' => :'ResourceUri',
|
124
128
|
:'fill_format' => :'FillFormat',
|
125
129
|
:'effect_format' => :'EffectFormat',
|
130
|
+
:'three_d_format' => :'ThreeDFormat',
|
126
131
|
:'line_format' => :'LineFormat',
|
127
132
|
:'type' => :'String',
|
128
133
|
})
|
@@ -181,6 +186,10 @@ module AsposeSlidesCloud
|
|
181
186
|
self.effect_format = attributes[:'EffectFormat']
|
182
187
|
end
|
183
188
|
|
189
|
+
if attributes.has_key?(:'ThreeDFormat')
|
190
|
+
self.three_d_format = attributes[:'ThreeDFormat']
|
191
|
+
end
|
192
|
+
|
184
193
|
if attributes.has_key?(:'LineFormat')
|
185
194
|
self.line_format = attributes[:'LineFormat']
|
186
195
|
end
|
@@ -240,6 +249,7 @@ module AsposeSlidesCloud
|
|
240
249
|
shapes == o.shapes &&
|
241
250
|
fill_format == o.fill_format &&
|
242
251
|
effect_format == o.effect_format &&
|
252
|
+
three_d_format == o.three_d_format &&
|
243
253
|
line_format == o.line_format &&
|
244
254
|
type == o.type
|
245
255
|
end
|
@@ -253,7 +263,7 @@ module AsposeSlidesCloud
|
|
253
263
|
# Calculates hash code according to all attributes.
|
254
264
|
# @return [Fixnum] Hash code
|
255
265
|
def hash
|
256
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, line_format, type].hash
|
266
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, shapes, fill_format, effect_format, three_d_format, line_format, type].hash
|
257
267
|
end
|
258
268
|
|
259
269
|
# Builds the object from hash
|