aspose_slides_cloud 24.2.0 → 24.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +13 -0
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +100 -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/connector.rb +2 -1
  9. data/lib/aspose_slides_cloud/models/effect.rb +23 -1
  10. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  11. data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
  12. data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
  13. data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
  15. data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
  16. data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
  17. data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
  18. data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
  19. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
  20. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
  21. data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
  22. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  23. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/shape.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
  27. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  28. data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
  29. data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
  30. data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
  31. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
  32. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
  33. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
  34. data/lib/aspose_slides_cloud/models/table.rb +2 -1
  35. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
  36. data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
  37. data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
  38. data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
  39. data/lib/aspose_slides_cloud/type_registry.rb +5 -0
  40. data/lib/aspose_slides_cloud/version.rb +1 -1
  41. data/lib/aspose_slides_cloud.rb +3 -0
  42. data/spec/api/slides_api_spec.rb +175 -0
  43. data/spec/use_cases/image_spec.rb +27 -0
  44. data/testRules.json +2 -0
  45. metadata +5 -2
@@ -58,20 +58,8 @@ module AsposeSlidesCloud
58
58
  # Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
59
59
  attr_accessor :additional_common_font_families
60
60
 
61
- # Gets or sets the position of the notes on the page.
62
- attr_accessor :notes_position
63
-
64
- # Gets or sets the position of the comments on the page.
65
- attr_accessor :comments_position
66
-
67
- # Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
68
- attr_accessor :comments_area_width
69
-
70
- # Gets or sets the color of comments area (Applies only if comments are displayed on the right).
71
- attr_accessor :comments_area_color
72
-
73
- # True if comments that have no author are displayed. (Applies only if comments are displayed).
74
- attr_accessor :show_comments_by_no_author
61
+ # Slides layouting options
62
+ attr_accessor :slides_layout_options
75
63
 
76
64
  # Image transparent color.
77
65
  attr_accessor :image_transparent_color
@@ -96,11 +84,7 @@ module AsposeSlidesCloud
96
84
  :'password' => :'Password',
97
85
  :'embed_true_type_fonts_for_ascii' => :'EmbedTrueTypeFontsForASCII',
98
86
  :'additional_common_font_families' => :'AdditionalCommonFontFamilies',
99
- :'notes_position' => :'NotesPosition',
100
- :'comments_position' => :'CommentsPosition',
101
- :'comments_area_width' => :'CommentsAreaWidth',
102
- :'comments_area_color' => :'CommentsAreaColor',
103
- :'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
87
+ :'slides_layout_options' => :'SlidesLayoutOptions',
104
88
  :'image_transparent_color' => :'ImageTransparentColor',
105
89
  :'apply_image_transparent' => :'ApplyImageTransparent',
106
90
  :'access_permissions' => :'AccessPermissions',
@@ -121,11 +105,7 @@ module AsposeSlidesCloud
121
105
  :'password' => :'String',
122
106
  :'embed_true_type_fonts_for_ascii' => :'BOOLEAN',
123
107
  :'additional_common_font_families' => :'Array<String>',
124
- :'notes_position' => :'String',
125
- :'comments_position' => :'String',
126
- :'comments_area_width' => :'Integer',
127
- :'comments_area_color' => :'String',
128
- :'show_comments_by_no_author' => :'BOOLEAN',
108
+ :'slides_layout_options' => :'SlidesLayoutOptions',
129
109
  :'image_transparent_color' => :'String',
130
110
  :'apply_image_transparent' => :'BOOLEAN',
131
111
  :'access_permissions' => :'AccessPermissions',
@@ -183,24 +163,8 @@ module AsposeSlidesCloud
183
163
  end
184
164
  end
185
165
 
186
- if attributes.has_key?(:'NotesPosition')
187
- self.notes_position = attributes[:'NotesPosition']
188
- end
189
-
190
- if attributes.has_key?(:'CommentsPosition')
191
- self.comments_position = attributes[:'CommentsPosition']
192
- end
193
-
194
- if attributes.has_key?(:'CommentsAreaWidth')
195
- self.comments_area_width = attributes[:'CommentsAreaWidth']
196
- end
197
-
198
- if attributes.has_key?(:'CommentsAreaColor')
199
- self.comments_area_color = attributes[:'CommentsAreaColor']
200
- end
201
-
202
- if attributes.has_key?(:'ShowCommentsByNoAuthor')
203
- self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
166
+ if attributes.has_key?(:'SlidesLayoutOptions')
167
+ self.slides_layout_options = attributes[:'SlidesLayoutOptions']
204
168
  end
205
169
 
206
170
  if attributes.has_key?(:'ImageTransparentColor')
@@ -232,10 +196,6 @@ module AsposeSlidesCloud
232
196
  return false unless text_compression_validator.valid?(@text_compression)
233
197
  compliance_validator = EnumAttributeValidator.new('String', ['Pdf15', 'Pdf16', 'Pdf17', 'PdfA1b', 'PdfA1a', 'PdfA2b', 'PdfA2a', 'PdfA3b', 'PdfA3a', 'PdfUa', 'PdfA2u'])
234
198
  return false unless compliance_validator.valid?(@compliance)
235
- notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
236
- return false unless notes_position_validator.valid?(@notes_position)
237
- comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
238
- return false unless comments_position_validator.valid?(@comments_position)
239
199
  true
240
200
  end
241
201
 
@@ -259,26 +219,6 @@ module AsposeSlidesCloud
259
219
  @compliance = compliance
260
220
  end
261
221
 
262
- # Custom attribute writer method checking allowed values (enum).
263
- # @param [Object] notes_position Object to be assigned
264
- def notes_position=(notes_position)
265
- validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
266
- unless validator.valid?(notes_position)
267
- fail ArgumentError, 'invalid value for "notes_position", must be one of #{validator.allowable_values}.'
268
- end
269
- @notes_position = notes_position
270
- end
271
-
272
- # Custom attribute writer method checking allowed values (enum).
273
- # @param [Object] comments_position Object to be assigned
274
- def comments_position=(comments_position)
275
- validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
276
- unless validator.valid?(comments_position)
277
- fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
278
- end
279
- @comments_position = comments_position
280
- end
281
-
282
222
  # Checks equality by comparing each attribute.
283
223
  # @param [Object] Object to be compared
284
224
  def ==(o)
@@ -299,11 +239,7 @@ module AsposeSlidesCloud
299
239
  password == o.password &&
300
240
  embed_true_type_fonts_for_ascii == o.embed_true_type_fonts_for_ascii &&
301
241
  additional_common_font_families == o.additional_common_font_families &&
302
- notes_position == o.notes_position &&
303
- comments_position == o.comments_position &&
304
- comments_area_width == o.comments_area_width &&
305
- comments_area_color == o.comments_area_color &&
306
- show_comments_by_no_author == o.show_comments_by_no_author &&
242
+ slides_layout_options == o.slides_layout_options &&
307
243
  image_transparent_color == o.image_transparent_color &&
308
244
  apply_image_transparent == o.apply_image_transparent &&
309
245
  access_permissions == o.access_permissions
@@ -318,7 +254,7 @@ module AsposeSlidesCloud
318
254
  # Calculates hash code according to all attributes.
319
255
  # @return [Fixnum] Hash code
320
256
  def hash
321
- [default_regular_font, font_fallback_rules, font_subst_rules, 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
257
+ [default_regular_font, font_fallback_rules, font_subst_rules, 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, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions].hash
322
258
  end
323
259
  end
324
260
  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 &&
@@ -103,7 +104,7 @@ module AsposeSlidesCloud
103
104
  # Calculates hash code according to all attributes.
104
105
  # @return [Fixnum] Hash code
105
106
  def hash
106
- [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, picture_fill_format].hash
107
+ [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, picture_fill_format].hash
107
108
  end
108
109
  end
109
110
  end
@@ -87,7 +87,7 @@ module AsposeSlidesCloud
87
87
  def valid?
88
88
  return false if !super
89
89
  return false if @format.nil?
90
- 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', 'Xaml', 'Mpeg4'])
90
+ 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', 'Xaml', 'Mpeg4', 'Md'])
91
91
  return false unless format_validator.valid?(@format)
92
92
  true
93
93
  end
@@ -95,7 +95,7 @@ module AsposeSlidesCloud
95
95
  # Custom attribute writer method checking allowed values (enum).
96
96
  # @param [Object] format Object to be assigned
97
97
  def format=(format)
98
- 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', 'Xaml', 'Mpeg4'])
98
+ 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', 'Xaml', 'Mpeg4', 'Md'])
99
99
  unless validator.valid?(format)
100
100
  fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
101
101
  end
@@ -118,7 +118,7 @@ module AsposeSlidesCloud
118
118
  def valid?
119
119
  return false if !super
120
120
  return false if @format.nil?
121
- format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5'])
121
+ format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
122
122
  return false unless format_validator.valid?(@format)
123
123
  return false if @position.nil?
124
124
  true
@@ -127,7 +127,7 @@ module AsposeSlidesCloud
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] format Object to be assigned
129
129
  def format=(format)
130
- validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5'])
130
+ validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
131
131
  unless validator.valid?(format)
132
132
  fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
133
133
  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 &&
@@ -107,7 +108,7 @@ module AsposeSlidesCloud
107
108
  # Calculates hash code according to all attributes.
108
109
  # @return [Fixnum] Hash code
109
110
  def hash
110
- [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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
111
+ [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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
111
112
  end
112
113
  end
113
114
  end
@@ -98,6 +98,7 @@ module AsposeSlidesCloud
98
98
  alternative_text == o.alternative_text &&
99
99
  alternative_text_title == o.alternative_text_title &&
100
100
  hidden == o.hidden &&
101
+ is_decorative == o.is_decorative &&
101
102
  x == o.x &&
102
103
  y == o.y &&
103
104
  z_order_position == o.z_order_position &&
@@ -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, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, text, paragraphs, text_frame_format].hash
127
+ [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, text, paragraphs, text_frame_format].hash
127
128
  end
128
129
  end
129
130
  end
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
43
43
  # Gets or sets a value indicating whether this ShapeBase is hidden.
44
44
  attr_accessor :hidden
45
45
 
46
+ # Gets or sets 'Mark as decorative' option.
47
+ attr_accessor :is_decorative
48
+
46
49
  # Gets or sets the X
47
50
  attr_accessor :x
48
51
 
@@ -81,6 +84,7 @@ module AsposeSlidesCloud
81
84
  :'alternative_text' => :'AlternativeText',
82
85
  :'alternative_text_title' => :'AlternativeTextTitle',
83
86
  :'hidden' => :'Hidden',
87
+ :'is_decorative' => :'IsDecorative',
84
88
  :'x' => :'X',
85
89
  :'y' => :'Y',
86
90
  :'z_order_position' => :'ZOrderPosition',
@@ -103,6 +107,7 @@ module AsposeSlidesCloud
103
107
  :'alternative_text' => :'String',
104
108
  :'alternative_text_title' => :'String',
105
109
  :'hidden' => :'BOOLEAN',
110
+ :'is_decorative' => :'BOOLEAN',
106
111
  :'x' => :'Float',
107
112
  :'y' => :'Float',
108
113
  :'z_order_position' => :'Integer',
@@ -145,6 +150,10 @@ module AsposeSlidesCloud
145
150
  self.hidden = attributes[:'Hidden']
146
151
  end
147
152
 
153
+ if attributes.has_key?(:'IsDecorative')
154
+ self.is_decorative = attributes[:'IsDecorative']
155
+ end
156
+
148
157
  if attributes.has_key?(:'X')
149
158
  self.x = attributes[:'X']
150
159
  end
@@ -230,6 +239,7 @@ module AsposeSlidesCloud
230
239
  alternative_text == o.alternative_text &&
231
240
  alternative_text_title == o.alternative_text_title &&
232
241
  hidden == o.hidden &&
242
+ is_decorative == o.is_decorative &&
233
243
  x == o.x &&
234
244
  y == o.y &&
235
245
  z_order_position == o.z_order_position &&
@@ -251,7 +261,7 @@ module AsposeSlidesCloud
251
261
  # Calculates hash code according to all attributes.
252
262
  # @return [Fixnum] Hash code
253
263
  def hash
254
- [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
264
+ [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
255
265
  end
256
266
  end
257
267
  end
@@ -48,6 +48,7 @@ module AsposeSlidesCloud
48
48
  FODP = 'Fodp'.freeze
49
49
  XAML = 'Xaml'.freeze
50
50
  HTML5 = 'Html5'.freeze
51
+ MD = 'Md'.freeze
51
52
 
52
53
  # Builds the enum from string
53
54
  # @param [String] The enum value in the form of the string
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
43
43
  # Show narrration.
44
44
  attr_accessor :show_narration
45
45
 
46
+ # Show media controls.
47
+ attr_accessor :show_media_controls
48
+
46
49
  # Use timings.
47
50
  attr_accessor :use_timings
48
51
 
@@ -61,6 +64,7 @@ module AsposeSlidesCloud
61
64
  :'pen_color' => :'PenColor',
62
65
  :'show_animation' => :'ShowAnimation',
63
66
  :'show_narration' => :'ShowNarration',
67
+ :'show_media_controls' => :'ShowMediaControls',
64
68
  :'use_timings' => :'UseTimings',
65
69
  :'slide_show_type' => :'SlideShowType',
66
70
  :'show_scrollbar' => :'ShowScrollbar',
@@ -76,6 +80,7 @@ module AsposeSlidesCloud
76
80
  :'pen_color' => :'String',
77
81
  :'show_animation' => :'BOOLEAN',
78
82
  :'show_narration' => :'BOOLEAN',
83
+ :'show_media_controls' => :'BOOLEAN',
79
84
  :'use_timings' => :'BOOLEAN',
80
85
  :'slide_show_type' => :'String',
81
86
  :'show_scrollbar' => :'BOOLEAN',
@@ -111,6 +116,10 @@ module AsposeSlidesCloud
111
116
  self.show_narration = attributes[:'ShowNarration']
112
117
  end
113
118
 
119
+ if attributes.has_key?(:'ShowMediaControls')
120
+ self.show_media_controls = attributes[:'ShowMediaControls']
121
+ end
122
+
114
123
  if attributes.has_key?(:'UseTimings')
115
124
  self.use_timings = attributes[:'UseTimings']
116
125
  end
@@ -163,6 +172,7 @@ module AsposeSlidesCloud
163
172
  pen_color == o.pen_color &&
164
173
  show_animation == o.show_animation &&
165
174
  show_narration == o.show_narration &&
175
+ show_media_controls == o.show_media_controls &&
166
176
  use_timings == o.use_timings &&
167
177
  slide_show_type == o.slide_show_type &&
168
178
  show_scrollbar == o.show_scrollbar
@@ -177,7 +187,7 @@ module AsposeSlidesCloud
177
187
  # Calculates hash code according to all attributes.
178
188
  # @return [Fixnum] Hash code
179
189
  def hash
180
- [self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, use_timings, slide_show_type, show_scrollbar].hash
190
+ [self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, show_media_controls, use_timings, slide_show_type, show_scrollbar].hash
181
191
  end
182
192
  end
183
193
  end
@@ -0,0 +1,102 @@
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
+ # Slides layouting options.
27
+ class SlidesLayoutOptions < BaseObject
28
+ attr_accessor :layout_type
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'layout_type' => :'LayoutType',
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'layout_type' => :'String',
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ return unless attributes.is_a?(Hash)
48
+
49
+ # convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
+
52
+ if attributes.has_key?(:'LayoutType')
53
+ self.layout_type = attributes[:'LayoutType']
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 = Array.new
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
+ layout_type_validator = EnumAttributeValidator.new('String', ['NotesComments', 'Handout'])
68
+ return false unless layout_type_validator.valid?(@layout_type)
69
+ true
70
+ end
71
+
72
+ # Custom attribute writer method checking allowed values (enum).
73
+ # @param [Object] layout_type Object to be assigned
74
+ def layout_type=(layout_type)
75
+ validator = EnumAttributeValidator.new('String', ['NotesComments', 'Handout'])
76
+ unless validator.valid?(layout_type)
77
+ fail ArgumentError, 'invalid value for "layout_type", must be one of #{validator.allowable_values}.'
78
+ end
79
+ @layout_type = layout_type
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ layout_type == o.layout_type
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [layout_type].hash
100
+ end
101
+ end
102
+ end
@@ -174,6 +174,7 @@ module AsposeSlidesCloud
174
174
  alternative_text == o.alternative_text &&
175
175
  alternative_text_title == o.alternative_text_title &&
176
176
  hidden == o.hidden &&
177
+ is_decorative == o.is_decorative &&
177
178
  x == o.x &&
178
179
  y == o.y &&
179
180
  z_order_position == o.z_order_position &&
@@ -200,7 +201,7 @@ module AsposeSlidesCloud
200
201
  # Calculates hash code according to all attributes.
201
202
  # @return [Fixnum] Hash code
202
203
  def hash
203
- [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, layout, quick_style, color_style, nodes, is_reversed].hash
204
+ [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, layout, quick_style, color_style, nodes, is_reversed].hash
204
205
  end
205
206
  end
206
207
  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 &&
@@ -93,7 +94,7 @@ module AsposeSlidesCloud
93
94
  # Calculates hash code according to all attributes.
94
95
  # @return [Fixnum] Hash code
95
96
  def hash
96
- [self_uri, alternate_linksname, 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, typeshape_type].hash
97
+ [self_uri, alternate_linksname, 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, typeshape_type].hash
97
98
  end
98
99
  end
99
100
  end
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
103
103
  alternative_text == o.alternative_text &&
104
104
  alternative_text_title == o.alternative_text_title &&
105
105
  hidden == o.hidden &&
106
+ is_decorative == o.is_decorative &&
106
107
  x == o.x &&
107
108
  y == o.y &&
108
109
  z_order_position == o.z_order_position &&
@@ -126,7 +127,7 @@ module AsposeSlidesCloud
126
127
  # Calculates hash code according to all attributes.
127
128
  # @return [Fixnum] Hash code
128
129
  def hash
129
- [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, zoom_layout, sections].hash
130
+ [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, zoom_layout, sections].hash
130
131
  end
131
132
  end
132
133
  end
@@ -89,6 +89,7 @@ module AsposeSlidesCloud
89
89
  alternative_text == o.alternative_text &&
90
90
  alternative_text_title == o.alternative_text_title &&
91
91
  hidden == o.hidden &&
92
+ is_decorative == o.is_decorative &&
92
93
  x == o.x &&
93
94
  y == o.y &&
94
95
  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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index, title, description].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, image_type, return_to_parent, show_background, image, transition_duration, target_section_index, title, description].hash
122
123
  end
123
124
  end
124
125
  end
@@ -177,6 +177,7 @@ module AsposeSlidesCloud
177
177
  alternative_text == o.alternative_text &&
178
178
  alternative_text_title == o.alternative_text_title &&
179
179
  hidden == o.hidden &&
180
+ is_decorative == o.is_decorative &&
180
181
  x == o.x &&
181
182
  y == o.y &&
182
183
  z_order_position == o.z_order_position &&
@@ -208,7 +209,7 @@ module AsposeSlidesCloud
208
209
  # Calculates hash code according to all attributes.
209
210
  # @return [Fixnum] Hash code
210
211
  def hash
211
- [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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
212
+ [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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
212
213
  end
213
214
  end
214
215
  end