aspose_slides_cloud 22.2.0 → 22.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/TestData/test.pptx +0 -0
  3. data/lib/aspose_slides_cloud/api/slides_api.rb +192 -13
  4. data/lib/aspose_slides_cloud/models/axis.rb +22 -2
  5. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
  6. data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
  7. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
  8. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  9. data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
  10. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
  11. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  12. data/lib/aspose_slides_cloud/models/legend.rb +12 -2
  13. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/portion.rb +32 -2
  15. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
  17. data/lib/aspose_slides_cloud/models/slide_comment.rb +32 -48
  18. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
  19. data/lib/aspose_slides_cloud/models/slide_comments.rb +1 -1
  20. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +269 -0
  21. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
  22. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
  23. data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
  24. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  27. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  28. data/lib/aspose_slides_cloud/models/zoom_object.rb +1 -0
  29. data/lib/aspose_slides_cloud/type_registry.rb +9 -1
  30. data/lib/aspose_slides_cloud/version.rb +1 -1
  31. data/lib/aspose_slides_cloud.rb +7 -1
  32. data/spec/api/slides_api_spec.rb +585 -33
  33. data/spec/use_cases/merge_spec.rb +0 -1
  34. data/spec/use_cases/shape_spec.rb +0 -2
  35. data/testRules.json +5 -3
  36. metadata +8 -2
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
34
34
  # Gets or sets the height of slides in the output format, e.g. image size, pdf page size etc.
35
35
  attr_accessor :width
36
36
 
37
+ # Gets of sets list of font fallback rules.
38
+ attr_accessor :font_fallback_rules
39
+
37
40
  attr_accessor :format
38
41
 
39
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,6 +45,7 @@ module AsposeSlidesCloud
42
45
  :'default_regular_font' => :'DefaultRegularFont',
43
46
  :'height' => :'Height',
44
47
  :'width' => :'Width',
48
+ :'font_fallback_rules' => :'FontFallbackRules',
45
49
  :'format' => :'Format',
46
50
  }
47
51
  end
@@ -52,6 +56,7 @@ module AsposeSlidesCloud
52
56
  :'default_regular_font' => :'String',
53
57
  :'height' => :'Integer',
54
58
  :'width' => :'Integer',
59
+ :'font_fallback_rules' => :'Array<FontFallbackRule>',
55
60
  :'format' => :'String',
56
61
  }
57
62
  end
@@ -76,6 +81,12 @@ module AsposeSlidesCloud
76
81
  self.width = attributes[:'Width']
77
82
  end
78
83
 
84
+ if attributes.has_key?(:'FontFallbackRules')
85
+ if (value = attributes[:'FontFallbackRules']).is_a?(Array)
86
+ self.font_fallback_rules = value
87
+ end
88
+ end
89
+
79
90
  if attributes.has_key?(:'Format')
80
91
  self.format = attributes[:'Format']
81
92
  end
@@ -102,6 +113,7 @@ module AsposeSlidesCloud
102
113
  default_regular_font == o.default_regular_font &&
103
114
  height == o.height &&
104
115
  width == o.width &&
116
+ font_fallback_rules == o.font_fallback_rules &&
105
117
  format == o.format
106
118
  end
107
119
 
@@ -114,7 +126,7 @@ module AsposeSlidesCloud
114
126
  # Calculates hash code according to all attributes.
115
127
  # @return [Fixnum] Hash code
116
128
  def hash
117
- [default_regular_font, height, width, format].hash
129
+ [default_regular_font, height, width, font_fallback_rules, format].hash
118
130
  end
119
131
 
120
132
  # Builds the object from hash
@@ -0,0 +1,243 @@
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 font fallback rule.
27
+ class FontFallbackRule
28
+ # First index of continuous unicode range.
29
+ attr_accessor :range_start_index
30
+
31
+ # Last index of continuous unicode range.
32
+ attr_accessor :range_end_index
33
+
34
+ # List of fallback font links.
35
+ attr_accessor :fallback_font_list
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'range_start_index' => :'RangeStartIndex',
41
+ :'range_end_index' => :'RangeEndIndex',
42
+ :'fallback_font_list' => :'FallbackFontList',
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'range_start_index' => :'Integer',
50
+ :'range_end_index' => :'Integer',
51
+ :'fallback_font_list' => :'Array<String>',
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
+
63
+ if attributes.has_key?(:'RangeStartIndex')
64
+ self.range_start_index = attributes[:'RangeStartIndex']
65
+ end
66
+
67
+ if attributes.has_key?(:'RangeEndIndex')
68
+ self.range_end_index = attributes[:'RangeEndIndex']
69
+ end
70
+
71
+ if attributes.has_key?(:'FallbackFontList')
72
+ if (value = attributes[:'FallbackFontList']).is_a?(Array)
73
+ self.fallback_font_list = value
74
+ end
75
+ end
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = Array.new
82
+ if @range_start_index.nil?
83
+ invalid_properties.push('invalid value for "range_start_index", range_start_index cannot be nil.')
84
+ end
85
+
86
+ if @range_end_index.nil?
87
+ invalid_properties.push('invalid value for "range_end_index", range_end_index cannot be nil.')
88
+ end
89
+
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ return false if @range_start_index.nil?
97
+ return false if @range_end_index.nil?
98
+ true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ range_start_index == o.range_start_index &&
107
+ range_end_index == o.range_end_index &&
108
+ fallback_font_list == o.fallback_font_list
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Fixnum] Hash code
119
+ def hash
120
+ [range_start_index, range_end_index, fallback_font_list].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.swagger_types.each_pair do |key, type|
129
+ mapKey = self.class.attribute_map[key]
130
+ if !mapKey.nil?
131
+ val = attributes[mapKey]
132
+ if val.nil?
133
+ mapKeyString = mapKey.to_s
134
+ mapKeyString[0] = mapKeyString[0].downcase
135
+ mapKey = mapKeyString.to_sym
136
+ val = attributes[mapKey]
137
+ end
138
+ if !val.nil?
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the the attribute
141
+ # is documented as an array but the input is not
142
+ if val.is_a?(Array)
143
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
144
+ end
145
+ else
146
+ self.send("#{key}=", _deserialize(type, val))
147
+ end
148
+ end
149
+ end
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
193
+ if registry_type
194
+ type = registry_type
195
+ end
196
+ temp_model = AsposeSlidesCloud.const_get(type).new
197
+ temp_model.build_from_hash(value)
198
+ end
199
+ end
200
+
201
+ # Returns the string representation of the object
202
+ # @return [String] String presentation of the object
203
+ def to_s
204
+ to_hash.to_s
205
+ end
206
+
207
+ # to_body is an alias to to_hash (backward compatibility)
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_body
210
+ to_hash
211
+ end
212
+
213
+ # Returns the object in the form of hash
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_hash
216
+ hash = {}
217
+ self.class.attribute_map.each_pair do |attr, param|
218
+ value = self.send(attr)
219
+ next if value.nil?
220
+ hash[param] = _to_hash(value)
221
+ end
222
+ hash
223
+ end
224
+
225
+ # Outputs non-array value in the form of hash
226
+ # For object, use to_hash. Otherwise, just return the value
227
+ # @param [Object] value Any valid value
228
+ # @return [Hash] Returns the value in the form of hash
229
+ def _to_hash(value)
230
+ if value.is_a?(Array)
231
+ value.compact.map { |v| _to_hash(v) }
232
+ elsif value.is_a?(Hash)
233
+ {}.tap do |hash|
234
+ value.each { |k, v| hash[k] = _to_hash(v) }
235
+ end
236
+ elsif value.respond_to? :to_hash
237
+ value.to_hash
238
+ else
239
+ value
240
+ end
241
+ end
242
+ end
243
+ end
@@ -93,6 +93,7 @@ module AsposeSlidesCloud
93
93
  default_regular_font == o.default_regular_font &&
94
94
  height == o.height &&
95
95
  width == o.width &&
96
+ font_fallback_rules == o.font_fallback_rules &&
96
97
  format == o.format &&
97
98
  export_hidden_slides == o.export_hidden_slides &&
98
99
  transition_fps == o.transition_fps &&
@@ -108,7 +109,7 @@ module AsposeSlidesCloud
108
109
  # Calculates hash code according to all attributes.
109
110
  # @return [Fixnum] Hash code
110
111
  def hash
111
- [default_regular_font, height, width, format, export_hidden_slides, transition_fps, default_delay].hash
112
+ [default_regular_font, height, width, font_fallback_rules, format, export_hidden_slides, transition_fps, default_delay].hash
112
113
  end
113
114
 
114
115
  # Builds the object from hash
@@ -84,6 +84,7 @@ module AsposeSlidesCloud
84
84
  default_regular_font == o.default_regular_font &&
85
85
  height == o.height &&
86
86
  width == o.width &&
87
+ font_fallback_rules == o.font_fallback_rules &&
87
88
  format == o.format &&
88
89
  animate_transitions == o.animate_transitions &&
89
90
  animate_shapes == o.animate_shapes
@@ -98,7 +99,7 @@ module AsposeSlidesCloud
98
99
  # Calculates hash code according to all attributes.
99
100
  # @return [Fixnum] Hash code
100
101
  def hash
101
- [default_regular_font, height, width, format, animate_transitions, animate_shapes].hash
102
+ [default_regular_font, height, width, font_fallback_rules, format, animate_transitions, animate_shapes].hash
102
103
  end
103
104
 
104
105
  # Builds the object from hash
@@ -232,6 +232,7 @@ module AsposeSlidesCloud
232
232
  default_regular_font == o.default_regular_font &&
233
233
  height == o.height &&
234
234
  width == o.width &&
235
+ font_fallback_rules == o.font_fallback_rules &&
235
236
  format == o.format &&
236
237
  save_as_zip == o.save_as_zip &&
237
238
  sub_directory_name == o.sub_directory_name &&
@@ -256,7 +257,7 @@ module AsposeSlidesCloud
256
257
  # Calculates hash code according to all attributes.
257
258
  # @return [Fixnum] Hash code
258
259
  def 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
260
+ [default_regular_font, height, width, font_fallback_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
260
261
  end
261
262
 
262
263
  # Builds the object from hash
@@ -148,6 +148,7 @@ module AsposeSlidesCloud
148
148
  default_regular_font == o.default_regular_font &&
149
149
  height == o.height &&
150
150
  width == o.width &&
151
+ font_fallback_rules == o.font_fallback_rules &&
151
152
  format == o.format &&
152
153
  notes_position == o.notes_position &&
153
154
  comments_position == o.comments_position &&
@@ -164,7 +165,7 @@ module AsposeSlidesCloud
164
165
  # Calculates hash code according to all attributes.
165
166
  # @return [Fixnum] Hash code
166
167
  def hash
167
- [default_regular_font, height, width, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
168
+ [default_regular_font, height, width, font_fallback_rules, format, notes_position, comments_position, comments_area_width, comments_area_color].hash
168
169
  end
169
170
 
170
171
  # Builds the object from hash
@@ -52,6 +52,9 @@ module AsposeSlidesCloud
52
52
  # Get or sets the line format.
53
53
  attr_accessor :line_format
54
54
 
55
+ # Get or sets value determines the visibility of legend
56
+ attr_accessor :has_legend
57
+
55
58
  class EnumAttributeValidator
56
59
  attr_reader :datatype
57
60
  attr_reader :allowable_values
@@ -86,6 +89,7 @@ module AsposeSlidesCloud
86
89
  :'fill_format' => :'FillFormat',
87
90
  :'effect_format' => :'EffectFormat',
88
91
  :'line_format' => :'LineFormat',
92
+ :'has_legend' => :'HasLegend',
89
93
  }
90
94
  end
91
95
 
@@ -101,6 +105,7 @@ module AsposeSlidesCloud
101
105
  :'fill_format' => :'FillFormat',
102
106
  :'effect_format' => :'EffectFormat',
103
107
  :'line_format' => :'LineFormat',
108
+ :'has_legend' => :'BOOLEAN',
104
109
  }
105
110
  end
106
111
 
@@ -147,6 +152,10 @@ module AsposeSlidesCloud
147
152
  if attributes.has_key?(:'LineFormat')
148
153
  self.line_format = attributes[:'LineFormat']
149
154
  end
155
+
156
+ if attributes.has_key?(:'HasLegend')
157
+ self.has_legend = attributes[:'HasLegend']
158
+ end
150
159
  end
151
160
 
152
161
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -187,7 +196,8 @@ module AsposeSlidesCloud
187
196
  overlay == o.overlay &&
188
197
  fill_format == o.fill_format &&
189
198
  effect_format == o.effect_format &&
190
- line_format == o.line_format
199
+ line_format == o.line_format &&
200
+ has_legend == o.has_legend
191
201
  end
192
202
 
193
203
  # @see the `==` method
@@ -199,7 +209,7 @@ module AsposeSlidesCloud
199
209
  # Calculates hash code according to all attributes.
200
210
  # @return [Fixnum] Hash code
201
211
  def hash
202
- [position, x, y, width, height, overlay, fill_format, effect_format, line_format].hash
212
+ [position, x, y, width, height, overlay, fill_format, effect_format, line_format, has_legend].hash
203
213
  end
204
214
 
205
215
  # Builds the object from hash
@@ -321,6 +321,7 @@ module AsposeSlidesCloud
321
321
  default_regular_font == o.default_regular_font &&
322
322
  height == o.height &&
323
323
  width == o.width &&
324
+ font_fallback_rules == o.font_fallback_rules &&
324
325
  format == o.format &&
325
326
  text_compression == o.text_compression &&
326
327
  embed_full_fonts == o.embed_full_fonts &&
@@ -352,7 +353,7 @@ module AsposeSlidesCloud
352
353
  # Calculates hash code according to all attributes.
353
354
  # @return [Fixnum] Hash code
354
355
  def 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
356
+ [default_regular_font, height, width, font_fallback_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
356
357
  end
357
358
 
358
359
  # Builds the object from hash
@@ -109,6 +109,15 @@ module AsposeSlidesCloud
109
109
  # Hyperlink defined for mouse over.
110
110
  attr_accessor :hyperlink_mouse_over
111
111
 
112
+ # Returns or sets the Latin font info.
113
+ attr_accessor :latin_font
114
+
115
+ # Returns or sets the East Asian font info.
116
+ attr_accessor :east_asian_font
117
+
118
+ # Returns or sets the complex script font info.
119
+ attr_accessor :complex_script_font
120
+
112
121
  class EnumAttributeValidator
113
122
  attr_reader :datatype
114
123
  attr_reader :allowable_values
@@ -162,6 +171,9 @@ module AsposeSlidesCloud
162
171
  :'underline_line_format' => :'UnderlineLineFormat',
163
172
  :'hyperlink_click' => :'HyperlinkClick',
164
173
  :'hyperlink_mouse_over' => :'HyperlinkMouseOver',
174
+ :'latin_font' => :'LatinFont',
175
+ :'east_asian_font' => :'EastAsianFont',
176
+ :'complex_script_font' => :'ComplexScriptFont',
165
177
  })
166
178
  end
167
179
 
@@ -196,6 +208,9 @@ module AsposeSlidesCloud
196
208
  :'underline_line_format' => :'LineFormat',
197
209
  :'hyperlink_click' => :'Hyperlink',
198
210
  :'hyperlink_mouse_over' => :'Hyperlink',
211
+ :'latin_font' => :'String',
212
+ :'east_asian_font' => :'String',
213
+ :'complex_script_font' => :'String',
199
214
  })
200
215
  end
201
216
 
@@ -315,6 +330,18 @@ module AsposeSlidesCloud
315
330
  if attributes.has_key?(:'HyperlinkMouseOver')
316
331
  self.hyperlink_mouse_over = attributes[:'HyperlinkMouseOver']
317
332
  end
333
+
334
+ if attributes.has_key?(:'LatinFont')
335
+ self.latin_font = attributes[:'LatinFont']
336
+ end
337
+
338
+ if attributes.has_key?(:'EastAsianFont')
339
+ self.east_asian_font = attributes[:'EastAsianFont']
340
+ end
341
+
342
+ if attributes.has_key?(:'ComplexScriptFont')
343
+ self.complex_script_font = attributes[:'ComplexScriptFont']
344
+ end
318
345
  end
319
346
 
320
347
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -485,7 +512,10 @@ module AsposeSlidesCloud
485
512
  underline_fill_format == o.underline_fill_format &&
486
513
  underline_line_format == o.underline_line_format &&
487
514
  hyperlink_click == o.hyperlink_click &&
488
- hyperlink_mouse_over == o.hyperlink_mouse_over
515
+ hyperlink_mouse_over == o.hyperlink_mouse_over &&
516
+ latin_font == o.latin_font &&
517
+ east_asian_font == o.east_asian_font &&
518
+ complex_script_font == o.complex_script_font
489
519
  end
490
520
 
491
521
  # @see the `==` method
@@ -497,7 +527,7 @@ module AsposeSlidesCloud
497
527
  # Calculates hash code according to all attributes.
498
528
  # @return [Fixnum] Hash code
499
529
  def hash
500
- [self_uri, alternate_links, text, math_paragraph, font_bold, font_italic, font_underline, strikethrough_type, text_cap_type, escapement, spacing, font_color, highlight_color, font_height, normalise_height, proof_disabled, smart_tag_clean, kerning_minimal_size, kumimoji, language_id, alternative_language_id, is_hard_underline_fill, is_hard_underline_line, fill_format, effect_format, line_format, underline_fill_format, underline_line_format, hyperlink_click, hyperlink_mouse_over].hash
530
+ [self_uri, alternate_links, text, math_paragraph, font_bold, font_italic, font_underline, strikethrough_type, text_cap_type, escapement, spacing, font_color, highlight_color, font_height, normalise_height, proof_disabled, smart_tag_clean, kerning_minimal_size, kumimoji, language_id, alternative_language_id, is_hard_underline_fill, is_hard_underline_line, fill_format, effect_format, line_format, underline_fill_format, underline_line_format, hyperlink_click, hyperlink_mouse_over, latin_font, east_asian_font, complex_script_font].hash
501
531
  end
502
532
 
503
533
  # Builds the object from hash
@@ -109,6 +109,7 @@ module AsposeSlidesCloud
109
109
  default_regular_font == o.default_regular_font &&
110
110
  height == o.height &&
111
111
  width == o.width &&
112
+ font_fallback_rules == o.font_fallback_rules &&
112
113
  format == o.format &&
113
114
  conformance == o.conformance
114
115
  end
@@ -122,7 +123,7 @@ module AsposeSlidesCloud
122
123
  # Calculates hash code according to all attributes.
123
124
  # @return [Fixnum] Hash code
124
125
  def hash
125
- [default_regular_font, height, width, format, conformance].hash
126
+ [default_regular_font, height, width, font_fallback_rules, format, conformance].hash
126
127
  end
127
128
 
128
129
  # Builds the object from hash
@@ -0,0 +1,54 @@
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
+ class ShapeType
27
+
28
+ SHAPE = "Shape".freeze
29
+ CHART = "Chart".freeze
30
+ TABLE = "Table".freeze
31
+ PICTURE_FRAME = "PictureFrame".freeze
32
+ VIDEO_FRAME = "VideoFrame".freeze
33
+ AUDIO_FRAME = "AudioFrame".freeze
34
+ SMART_ART = "SmartArt".freeze
35
+ OLE_OBJECT_FRAME = "OleObjectFrame".freeze
36
+ GROUP_SHAPE = "GroupShape".freeze
37
+ GRAPHICAL_OBJECT = "GraphicalObject".freeze
38
+ CONNECTOR = "Connector".freeze
39
+ SMART_ART_SHAPE = "SmartArtShape".freeze
40
+ ZOOM_FRAME = "ZoomFrame".freeze
41
+ SECTION_ZOOM_FRAME = "SectionZoomFrame".freeze
42
+ SUMMARY_ZOOM_FRAME = "SummaryZoomFrame".freeze
43
+ SUMMARY_ZOOM_SECTION = "SummaryZoomSection".freeze
44
+
45
+ # Builds the enum from string
46
+ # @param [String] The enum value in the form of the string
47
+ # @return [String] The enum value
48
+ def build_from_hash(value)
49
+ constantValues = ShapeType.constants.select { |c| ShapeType::const_get(c) == value }
50
+ raise "Invalid ENUM value #{value} for class #ShapeType" if constantValues.empty?
51
+ value
52
+ end
53
+ end
54
+ end