aspose_slides_cloud 24.1.0 → 24.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +17 -15
  3. data/README.md +17 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +157 -22
  5. data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
  6. data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
  7. data/lib/aspose_slides_cloud/models/chart.rb +2 -1
  8. data/lib/aspose_slides_cloud/models/comment_author.rb +101 -0
  9. data/lib/aspose_slides_cloud/models/comment_authors.rb +93 -0
  10. data/lib/aspose_slides_cloud/models/connector.rb +2 -1
  11. data/lib/aspose_slides_cloud/models/effect.rb +23 -1
  12. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  13. data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
  15. data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
  17. data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
  18. data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
  19. data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
  20. data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
  21. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
  22. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
  23. data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
  24. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  25. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  26. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
  27. data/lib/aspose_slides_cloud/models/shape.rb +2 -1
  28. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
  29. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  30. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
  31. data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
  32. data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
  33. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
  34. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
  35. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
  36. data/lib/aspose_slides_cloud/models/table.rb +2 -1
  37. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
  38. data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
  39. data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
  40. data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
  41. data/lib/aspose_slides_cloud/type_registry.rb +8 -0
  42. data/lib/aspose_slides_cloud/version.rb +1 -1
  43. data/lib/aspose_slides_cloud.rb +5 -0
  44. data/spec/api/slides_api_spec.rb +289 -0
  45. data/spec/use_cases/comment_spec.rb +8 -0
  46. data/spec/use_cases/image_spec.rb +27 -0
  47. data/testRules.json +2 -0
  48. metadata +7 -2
@@ -0,0 +1,93 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Represents comments collection of slide
27
+ class CommentAuthors < ResourceBase
28
+ # Slide comment list.
29
+ attr_accessor :list
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ super.merge({
34
+ :'list' => :'List',
35
+ })
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ super.merge({
41
+ :'list' => :'Array<CommentAuthor>',
42
+ })
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ super
49
+
50
+ if attributes.has_key?(:'List')
51
+ if (value = attributes[:'List']).is_a?(Array)
52
+ self.list = value
53
+ end
54
+ end
55
+ end
56
+
57
+ # Show invalid properties with the reasons. Usually used together with valid?
58
+ # @return Array for valid properties with the reasons
59
+ def list_invalid_properties
60
+ invalid_properties = super
61
+ invalid_properties
62
+ end
63
+
64
+ # Check to see if the all the properties in the model are valid
65
+ # @return true if the model is valid
66
+ def valid?
67
+ return false if !super
68
+ true
69
+ end
70
+
71
+ # Checks equality by comparing each attribute.
72
+ # @param [Object] Object to be compared
73
+ def ==(o)
74
+ return true if self.equal?(o)
75
+ self.class == o.class &&
76
+ self_uri == o.self_uri &&
77
+ alternate_links == o.alternate_links &&
78
+ list == o.list
79
+ end
80
+
81
+ # @see the `==` method
82
+ # @param [Object] Object to be compared
83
+ def eql?(o)
84
+ self == o
85
+ end
86
+
87
+ # Calculates hash code according to all attributes.
88
+ # @return [Fixnum] Hash code
89
+ def hash
90
+ [self_uri, alternate_links, list].hash
91
+ end
92
+ end
93
+ end
@@ -107,6 +107,7 @@ module AsposeSlidesCloud
107
107
  alternative_text == o.alternative_text &&
108
108
  alternative_text_title == o.alternative_text_title &&
109
109
  hidden == o.hidden &&
110
+ is_decorative == o.is_decorative &&
110
111
  x == o.x &&
111
112
  y == o.y &&
112
113
  z_order_position == o.z_order_position &&
@@ -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, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
137
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash
137
138
  end
138
139
  end
139
140
  end
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
34
34
  # Preset class type.
35
35
  attr_accessor :preset_class_type
36
36
 
37
+ # Preset class type.
38
+ attr_accessor :animate_text_type
39
+
37
40
  # Shape index.
38
41
  attr_accessor :shape_index
39
42
 
@@ -94,6 +97,7 @@ module AsposeSlidesCloud
94
97
  :'type' => :'Type',
95
98
  :'subtype' => :'Subtype',
96
99
  :'preset_class_type' => :'PresetClassType',
100
+ :'animate_text_type' => :'AnimateTextType',
97
101
  :'shape_index' => :'ShapeIndex',
98
102
  :'paragraph_index' => :'ParagraphIndex',
99
103
  :'trigger_type' => :'TriggerType',
@@ -121,6 +125,7 @@ module AsposeSlidesCloud
121
125
  :'type' => :'String',
122
126
  :'subtype' => :'String',
123
127
  :'preset_class_type' => :'String',
128
+ :'animate_text_type' => :'String',
124
129
  :'shape_index' => :'Integer',
125
130
  :'paragraph_index' => :'Integer',
126
131
  :'trigger_type' => :'String',
@@ -162,6 +167,10 @@ module AsposeSlidesCloud
162
167
  self.preset_class_type = attributes[:'PresetClassType']
163
168
  end
164
169
 
170
+ if attributes.has_key?(:'AnimateTextType')
171
+ self.animate_text_type = attributes[:'AnimateTextType']
172
+ end
173
+
165
174
  if attributes.has_key?(:'ShapeIndex')
166
175
  self.shape_index = attributes[:'ShapeIndex']
167
176
  end
@@ -255,6 +264,8 @@ module AsposeSlidesCloud
255
264
  return false unless subtype_validator.valid?(@subtype)
256
265
  preset_class_type_validator = EnumAttributeValidator.new('String', ['Entrance', 'Exit', 'Emphasis', 'Path', 'MediaCall', 'OLEActionVerbs'])
257
266
  return false unless preset_class_type_validator.valid?(@preset_class_type)
267
+ animate_text_type_validator = EnumAttributeValidator.new('String', ['AllAtOnce', 'ByWord', 'ByLetter'])
268
+ return false unless animate_text_type_validator.valid?(@animate_text_type)
258
269
  return false if @shape_index.nil?
259
270
  trigger_type_validator = EnumAttributeValidator.new('String', ['AfterPrevious', 'OnClick', 'WithPrevious'])
260
271
  return false unless trigger_type_validator.valid?(@trigger_type)
@@ -295,6 +306,16 @@ module AsposeSlidesCloud
295
306
  @preset_class_type = preset_class_type
296
307
  end
297
308
 
309
+ # Custom attribute writer method checking allowed values (enum).
310
+ # @param [Object] animate_text_type Object to be assigned
311
+ def animate_text_type=(animate_text_type)
312
+ validator = EnumAttributeValidator.new('String', ['AllAtOnce', 'ByWord', 'ByLetter'])
313
+ unless validator.valid?(animate_text_type)
314
+ fail ArgumentError, 'invalid value for "animate_text_type", must be one of #{validator.allowable_values}.'
315
+ end
316
+ @animate_text_type = animate_text_type
317
+ end
318
+
298
319
  # Custom attribute writer method checking allowed values (enum).
299
320
  # @param [Object] trigger_type Object to be assigned
300
321
  def trigger_type=(trigger_type)
@@ -333,6 +354,7 @@ module AsposeSlidesCloud
333
354
  type == o.type &&
334
355
  subtype == o.subtype &&
335
356
  preset_class_type == o.preset_class_type &&
357
+ animate_text_type == o.animate_text_type &&
336
358
  shape_index == o.shape_index &&
337
359
  paragraph_index == o.paragraph_index &&
338
360
  trigger_type == o.trigger_type &&
@@ -362,7 +384,7 @@ module AsposeSlidesCloud
362
384
  # Calculates hash code according to all attributes.
363
385
  # @return [Fixnum] Hash code
364
386
  def hash
365
- [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, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound, rewind, after_animation_type, after_animation_color].hash
387
+ [type, subtype, preset_class_type, animate_text_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound, rewind, after_animation_type, after_animation_color].hash
366
388
  end
367
389
  end
368
390
  end
@@ -50,6 +50,7 @@ module AsposeSlidesCloud
50
50
  FODP = 'Fodp'.freeze
51
51
  XAML = 'Xaml'.freeze
52
52
  MPEG4 = 'Mpeg4'.freeze
53
+ MD = 'Md'.freeze
53
54
 
54
55
  # Builds the enum from string
55
56
  # @param [String] The enum value in the form of the string
@@ -96,6 +96,7 @@ module AsposeSlidesCloud
96
96
  alternative_text == o.alternative_text &&
97
97
  alternative_text_title == o.alternative_text_title &&
98
98
  hidden == o.hidden &&
99
+ is_decorative == o.is_decorative &&
99
100
  x == o.x &&
100
101
  y == o.y &&
101
102
  z_order_position == o.z_order_position &&
@@ -118,7 +119,7 @@ module AsposeSlidesCloud
118
119
  # Calculates hash code according to all attributes.
119
120
  # @return [Fixnum] Hash code
120
121
  def hash
121
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type].hash
122
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type].hash
122
123
  end
123
124
  end
124
125
  end
@@ -71,6 +71,7 @@ module AsposeSlidesCloud
71
71
  alternative_text == o.alternative_text &&
72
72
  alternative_text_title == o.alternative_text_title &&
73
73
  hidden == o.hidden &&
74
+ is_decorative == o.is_decorative &&
74
75
  x == o.x &&
75
76
  y == o.y &&
76
77
  z_order_position == o.z_order_position &&
@@ -92,7 +93,7 @@ module AsposeSlidesCloud
92
93
  # Calculates hash code according to all attributes.
93
94
  # @return [Fixnum] Hash code
94
95
  def hash
95
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
96
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
96
97
  end
97
98
  end
98
99
  end
@@ -80,6 +80,7 @@ module AsposeSlidesCloud
80
80
  alternative_text == o.alternative_text &&
81
81
  alternative_text_title == o.alternative_text_title &&
82
82
  hidden == o.hidden &&
83
+ is_decorative == o.is_decorative &&
83
84
  x == o.x &&
84
85
  y == o.y &&
85
86
  z_order_position == o.z_order_position &&
@@ -102,7 +103,7 @@ module AsposeSlidesCloud
102
103
  # Calculates hash code according to all attributes.
103
104
  # @return [Fixnum] Hash code
104
105
  def hash
105
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shapes].hash
106
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shapes].hash
106
107
  end
107
108
  end
108
109
  end
@@ -0,0 +1,133 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Handout layouting options
27
+ class HandoutLayoutingOptions < SlidesLayoutOptions
28
+ # Specified how many pages and in what sequence will be placed on the page.
29
+ attr_accessor :handout
30
+
31
+ # True to print the displayed slide numbers.
32
+ attr_accessor :print_slide_numbers
33
+
34
+ # True to display comments on slide.
35
+ attr_accessor :print_comments
36
+
37
+ # True to draw frames around the displayed slides.
38
+ attr_accessor :print_frame_slide
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ super.merge({
43
+ :'handout' => :'Handout',
44
+ :'print_slide_numbers' => :'PrintSlideNumbers',
45
+ :'print_comments' => :'PrintComments',
46
+ :'print_frame_slide' => :'PrintFrameSlide',
47
+ })
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.swagger_types
52
+ super.merge({
53
+ :'handout' => :'String',
54
+ :'print_slide_numbers' => :'BOOLEAN',
55
+ :'print_comments' => :'BOOLEAN',
56
+ :'print_frame_slide' => :'BOOLEAN',
57
+ })
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ super
64
+
65
+ if attributes.has_key?(:'Handout')
66
+ self.handout = attributes[:'Handout']
67
+ end
68
+
69
+ if attributes.has_key?(:'PrintSlideNumbers')
70
+ self.print_slide_numbers = attributes[:'PrintSlideNumbers']
71
+ end
72
+
73
+ if attributes.has_key?(:'PrintComments')
74
+ self.print_comments = attributes[:'PrintComments']
75
+ end
76
+
77
+ if attributes.has_key?(:'PrintFrameSlide')
78
+ self.print_frame_slide = attributes[:'PrintFrameSlide']
79
+ end
80
+ self.layout_type = 'Handout'
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = super
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ return false if !super
94
+ handout_validator = EnumAttributeValidator.new('String', ['Handouts1', 'Handouts2', 'Handouts3', 'Handouts4Horizontal', 'Handouts4Vertical', 'Handouts6Horizontal', 'Handouts6Vertical', 'Handouts9Horizontal', 'Handouts9Vertical'])
95
+ return false unless handout_validator.valid?(@handout)
96
+ true
97
+ end
98
+
99
+ # Custom attribute writer method checking allowed values (enum).
100
+ # @param [Object] handout Object to be assigned
101
+ def handout=(handout)
102
+ validator = EnumAttributeValidator.new('String', ['Handouts1', 'Handouts2', 'Handouts3', 'Handouts4Horizontal', 'Handouts4Vertical', 'Handouts6Horizontal', 'Handouts6Vertical', 'Handouts9Horizontal', 'Handouts9Vertical'])
103
+ unless validator.valid?(handout)
104
+ fail ArgumentError, 'invalid value for "handout", must be one of #{validator.allowable_values}.'
105
+ end
106
+ @handout = handout
107
+ end
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ layout_type == o.layout_type &&
115
+ handout == o.handout &&
116
+ print_slide_numbers == o.print_slide_numbers &&
117
+ print_comments == o.print_comments &&
118
+ print_frame_slide == o.print_frame_slide
119
+ end
120
+
121
+ # @see the `==` method
122
+ # @param [Object] Object to be compared
123
+ def eql?(o)
124
+ self == o
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Fixnum] Hash code
129
+ def hash
130
+ [layout_type, handout, print_slide_numbers, print_comments, print_frame_slide].hash
131
+ end
132
+ end
133
+ end
@@ -31,11 +31,19 @@ module AsposeSlidesCloud
31
31
  # Gets or sets shapes animation option.
32
32
  attr_accessor :animate_shapes
33
33
 
34
+ # Gets or sets embed images option.
35
+ attr_accessor :embed_images
36
+
37
+ # Slides layouting options
38
+ attr_accessor :notes_comments_layouting
39
+
34
40
  # Attribute mapping from ruby-style variable name to JSON key.
35
41
  def self.attribute_map
36
42
  super.merge({
37
43
  :'animate_transitions' => :'AnimateTransitions',
38
44
  :'animate_shapes' => :'AnimateShapes',
45
+ :'embed_images' => :'EmbedImages',
46
+ :'notes_comments_layouting' => :'NotesCommentsLayouting',
39
47
  })
40
48
  end
41
49
 
@@ -44,6 +52,8 @@ module AsposeSlidesCloud
44
52
  super.merge({
45
53
  :'animate_transitions' => :'BOOLEAN',
46
54
  :'animate_shapes' => :'BOOLEAN',
55
+ :'embed_images' => :'BOOLEAN',
56
+ :'notes_comments_layouting' => :'NotesCommentsLayoutingOptions',
47
57
  })
48
58
  end
49
59
 
@@ -59,6 +69,14 @@ module AsposeSlidesCloud
59
69
  if attributes.has_key?(:'AnimateShapes')
60
70
  self.animate_shapes = attributes[:'AnimateShapes']
61
71
  end
72
+
73
+ if attributes.has_key?(:'EmbedImages')
74
+ self.embed_images = attributes[:'EmbedImages']
75
+ end
76
+
77
+ if attributes.has_key?(:'NotesCommentsLayouting')
78
+ self.notes_comments_layouting = attributes[:'NotesCommentsLayouting']
79
+ end
62
80
  self.format = 'html5'
63
81
  end
64
82
 
@@ -86,7 +104,9 @@ module AsposeSlidesCloud
86
104
  font_subst_rules == o.font_subst_rules &&
87
105
  format == o.format &&
88
106
  animate_transitions == o.animate_transitions &&
89
- animate_shapes == o.animate_shapes
107
+ animate_shapes == o.animate_shapes &&
108
+ embed_images == o.embed_images &&
109
+ notes_comments_layouting == o.notes_comments_layouting
90
110
  end
91
111
 
92
112
  # @see the `==` method
@@ -98,7 +118,7 @@ module AsposeSlidesCloud
98
118
  # Calculates hash code according to all attributes.
99
119
  # @return [Fixnum] Hash code
100
120
  def hash
101
- [default_regular_font, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes].hash
121
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting].hash
102
122
  end
103
123
  end
104
124
  end
@@ -46,20 +46,8 @@ module AsposeSlidesCloud
46
46
  # A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)
47
47
  attr_accessor :delete_pictures_cropped_areas
48
48
 
49
- # Gets or sets the position of the notes on the page.
50
- attr_accessor :notes_position
51
-
52
- # Gets or sets the position of the comments on the page.
53
- attr_accessor :comments_position
54
-
55
- # Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
56
- attr_accessor :comments_area_width
57
-
58
- # Gets or sets the color of comments area (Applies only if comments are displayed on the right).
59
- attr_accessor :comments_area_color
60
-
61
- # True if comments that have no author are displayed. (Applies only if comments are displayed).
62
- attr_accessor :show_comments_by_no_author
49
+ # Slides layouting options
50
+ attr_accessor :slides_layout_options
63
51
 
64
52
  # Attribute mapping from ruby-style variable name to JSON key.
65
53
  def self.attribute_map
@@ -71,11 +59,7 @@ module AsposeSlidesCloud
71
59
  :'jpeg_quality' => :'JpegQuality',
72
60
  :'pictures_compression' => :'PicturesCompression',
73
61
  :'delete_pictures_cropped_areas' => :'DeletePicturesCroppedAreas',
74
- :'notes_position' => :'NotesPosition',
75
- :'comments_position' => :'CommentsPosition',
76
- :'comments_area_width' => :'CommentsAreaWidth',
77
- :'comments_area_color' => :'CommentsAreaColor',
78
- :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
62
+ :'slides_layout_options' => :'SlidesLayoutOptions',
79
63
  })
80
64
  end
81
65
 
@@ -89,11 +73,7 @@ module AsposeSlidesCloud
89
73
  :'jpeg_quality' => :'Integer',
90
74
  :'pictures_compression' => :'String',
91
75
  :'delete_pictures_cropped_areas' => :'BOOLEAN',
92
- :'notes_position' => :'String',
93
- :'comments_position' => :'String',
94
- :'comments_area_width' => :'Integer',
95
- :'comments_area_color' => :'String',
96
- :'show_comments_by_no_author' => :'BOOLEAN',
76
+ :'slides_layout_options' => :'SlidesLayoutOptions',
97
77
  })
98
78
  end
99
79
 
@@ -130,24 +110,8 @@ module AsposeSlidesCloud
130
110
  self.delete_pictures_cropped_areas = attributes[:'DeletePicturesCroppedAreas']
131
111
  end
132
112
 
133
- if attributes.has_key?(:'NotesPosition')
134
- self.notes_position = attributes[:'NotesPosition']
135
- end
136
-
137
- if attributes.has_key?(:'CommentsPosition')
138
- self.comments_position = attributes[:'CommentsPosition']
139
- end
140
-
141
- if attributes.has_key?(:'CommentsAreaWidth')
142
- self.comments_area_width = attributes[:'CommentsAreaWidth']
143
- end
144
-
145
- if attributes.has_key?(:'CommentsAreaColor')
146
- self.comments_area_color = attributes[:'CommentsAreaColor']
147
- end
148
-
149
- if attributes.has_key?(:'ShowCommentsByNoAuthor')
150
- self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
113
+ if attributes.has_key?(:'SlidesLayoutOptions')
114
+ self.slides_layout_options = attributes[:'SlidesLayoutOptions']
151
115
  end
152
116
  self.format = 'html'
153
117
  end
@@ -165,10 +129,6 @@ module AsposeSlidesCloud
165
129
  return false if !super
166
130
  pictures_compression_validator = EnumAttributeValidator.new('String', ['Dpi330', 'Dpi220', 'Dpi150', 'Dpi96', 'Dpi72', 'DocumentResolution'])
167
131
  return false unless pictures_compression_validator.valid?(@pictures_compression)
168
- notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
169
- return false unless notes_position_validator.valid?(@notes_position)
170
- comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
171
- return false unless comments_position_validator.valid?(@comments_position)
172
132
  true
173
133
  end
174
134
 
@@ -182,26 +142,6 @@ module AsposeSlidesCloud
182
142
  @pictures_compression = pictures_compression
183
143
  end
184
144
 
185
- # Custom attribute writer method checking allowed values (enum).
186
- # @param [Object] notes_position Object to be assigned
187
- def notes_position=(notes_position)
188
- validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
189
- unless validator.valid?(notes_position)
190
- fail ArgumentError, 'invalid value for "notes_position", must be one of #{validator.allowable_values}.'
191
- end
192
- @notes_position = notes_position
193
- end
194
-
195
- # Custom attribute writer method checking allowed values (enum).
196
- # @param [Object] comments_position Object to be assigned
197
- def comments_position=(comments_position)
198
- validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
199
- unless validator.valid?(comments_position)
200
- fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
201
- end
202
- @comments_position = comments_position
203
- end
204
-
205
145
  # Checks equality by comparing each attribute.
206
146
  # @param [Object] Object to be compared
207
147
  def ==(o)
@@ -218,11 +158,7 @@ module AsposeSlidesCloud
218
158
  jpeg_quality == o.jpeg_quality &&
219
159
  pictures_compression == o.pictures_compression &&
220
160
  delete_pictures_cropped_areas == o.delete_pictures_cropped_areas &&
221
- notes_position == o.notes_position &&
222
- comments_position == o.comments_position &&
223
- comments_area_width == o.comments_area_width &&
224
- comments_area_color == o.comments_area_color &&
225
- show_comments_by_no_author == o.show_comments_by_no_author
161
+ slides_layout_options == o.slides_layout_options
226
162
  end
227
163
 
228
164
  # @see the `==` method
@@ -234,7 +170,7 @@ module AsposeSlidesCloud
234
170
  # Calculates hash code according to all attributes.
235
171
  # @return [Fixnum] Hash code
236
172
  def hash
237
- [default_regular_font, font_fallback_rules, font_subst_rules, 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
173
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, save_as_zip, sub_directory_name, show_hidden_slides, svg_responsive_layout, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, slides_layout_options].hash
238
174
  end
239
175
  end
240
176
  end