aspose_slides_cloud 22.8.0 → 22.9.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +11 -1
  4. data/TestData/calibri.ttf +0 -0
  5. data/TestData/test.pptx +0 -0
  6. data/docker-entrypoint.sh +3 -1
  7. data/lib/aspose_slides_cloud/api/slides_api.rb +475 -21
  8. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +5 -1
  9. data/lib/aspose_slides_cloud/models/data_point.rb +42 -2
  10. data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
  11. data/lib/aspose_slides_cloud/models/font_subst_rule.rb +231 -0
  12. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  13. data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
  15. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  16. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
  17. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +5 -1
  18. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
  19. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
  20. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +5 -1
  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/tiff_export_options.rb +2 -1
  24. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  25. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  26. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  27. data/lib/aspose_slides_cloud/type_registry.rb +1 -0
  28. data/lib/aspose_slides_cloud/version.rb +1 -1
  29. data/lib/aspose_slides_cloud.rb +1 -0
  30. data/spec/api/slides_api_spec.rb +1380 -30
  31. data/spec/use_cases/chart_spec.rb +209 -0
  32. data/spec/use_cases/comment_spec.rb +159 -0
  33. data/spec/use_cases/convert_spec.rb +39 -0
  34. data/spec/use_cases/font_spec.rb +143 -0
  35. data/spec/use_cases/layout_slide_spec.rb +18 -0
  36. data/spec/use_cases/master_slide_spec.rb +16 -0
  37. data/spec/use_cases/merge_spec.rb +21 -0
  38. data/spec/use_cases/notes_slide_spec.rb +34 -0
  39. data/spec/use_cases/paragraph_spec.rb +322 -0
  40. data/spec/use_cases/portion_spec.rb +316 -0
  41. data/spec/use_cases/property_spec.rb +36 -0
  42. data/spec/use_cases/shape_spec.rb +193 -0
  43. data/spec/use_cases/slide_spec.rb +197 -0
  44. data/spec/use_cases/text_format_spec.rb +74 -0
  45. data/spec/use_cases/text_spec.rb +39 -0
  46. data/testRules.json +16 -0
  47. metadata +16 -2
@@ -25,15 +25,35 @@ require 'date'
25
25
  module AsposeSlidesCloud
26
26
  # Data point.
27
27
  class DataPoint
28
+ # Gets or sets the fill format.
29
+ attr_accessor :fill_format
30
+
31
+ # Gets or sets the effect format.
32
+ attr_accessor :effect_format
33
+
34
+ # Gets or sets the 3D format
35
+ attr_accessor :three_d_format
36
+
37
+ # Gets or sets the line format.
38
+ attr_accessor :line_format
39
+
28
40
  # Attribute mapping from ruby-style variable name to JSON key.
29
41
  def self.attribute_map
30
42
  {
43
+ :'fill_format' => :'FillFormat',
44
+ :'effect_format' => :'EffectFormat',
45
+ :'three_d_format' => :'ThreeDFormat',
46
+ :'line_format' => :'LineFormat',
31
47
  }
32
48
  end
33
49
 
34
50
  # Attribute type mapping.
35
51
  def self.swagger_types
36
52
  {
53
+ :'fill_format' => :'FillFormat',
54
+ :'effect_format' => :'EffectFormat',
55
+ :'three_d_format' => :'ThreeDFormat',
56
+ :'line_format' => :'LineFormat',
37
57
  }
38
58
  end
39
59
 
@@ -44,6 +64,22 @@ module AsposeSlidesCloud
44
64
 
45
65
  # convert string to symbol for hash key
46
66
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ if attributes.has_key?(:'FillFormat')
69
+ self.fill_format = attributes[:'FillFormat']
70
+ end
71
+
72
+ if attributes.has_key?(:'EffectFormat')
73
+ self.effect_format = attributes[:'EffectFormat']
74
+ end
75
+
76
+ if attributes.has_key?(:'ThreeDFormat')
77
+ self.three_d_format = attributes[:'ThreeDFormat']
78
+ end
79
+
80
+ if attributes.has_key?(:'LineFormat')
81
+ self.line_format = attributes[:'LineFormat']
82
+ end
47
83
  end
48
84
 
49
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -63,7 +99,11 @@ module AsposeSlidesCloud
63
99
  # @param [Object] Object to be compared
64
100
  def ==(o)
65
101
  return true if self.equal?(o)
66
- self.class == o.class
102
+ self.class == o.class &&
103
+ fill_format == o.fill_format &&
104
+ effect_format == o.effect_format &&
105
+ three_d_format == o.three_d_format &&
106
+ line_format == o.line_format
67
107
  end
68
108
 
69
109
  # @see the `==` method
@@ -75,7 +115,7 @@ module AsposeSlidesCloud
75
115
  # Calculates hash code according to all attributes.
76
116
  # @return [Fixnum] Hash code
77
117
  def hash
78
- [].hash
118
+ [fill_format, effect_format, three_d_format, line_format].hash
79
119
  end
80
120
 
81
121
  # Builds the object from hash
@@ -31,6 +31,9 @@ module AsposeSlidesCloud
31
31
  # Gets of sets list of font fallback rules.
32
32
  attr_accessor :font_fallback_rules
33
33
 
34
+ # Gets of sets list of font substitution rules.
35
+ attr_accessor :font_subst_rules
36
+
34
37
  attr_accessor :format
35
38
 
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,6 +41,7 @@ module AsposeSlidesCloud
38
41
  {
39
42
  :'default_regular_font' => :'DefaultRegularFont',
40
43
  :'font_fallback_rules' => :'FontFallbackRules',
44
+ :'font_subst_rules' => :'FontSubstRules',
41
45
  :'format' => :'Format',
42
46
  }
43
47
  end
@@ -47,6 +51,7 @@ module AsposeSlidesCloud
47
51
  {
48
52
  :'default_regular_font' => :'String',
49
53
  :'font_fallback_rules' => :'Array<FontFallbackRule>',
54
+ :'font_subst_rules' => :'Array<FontSubstRule>',
50
55
  :'format' => :'String',
51
56
  }
52
57
  end
@@ -69,6 +74,12 @@ module AsposeSlidesCloud
69
74
  end
70
75
  end
71
76
 
77
+ if attributes.has_key?(:'FontSubstRules')
78
+ if (value = attributes[:'FontSubstRules']).is_a?(Array)
79
+ self.font_subst_rules = value
80
+ end
81
+ end
82
+
72
83
  if attributes.has_key?(:'Format')
73
84
  self.format = attributes[:'Format']
74
85
  end
@@ -94,6 +105,7 @@ module AsposeSlidesCloud
94
105
  self.class == o.class &&
95
106
  default_regular_font == o.default_regular_font &&
96
107
  font_fallback_rules == o.font_fallback_rules &&
108
+ font_subst_rules == o.font_subst_rules &&
97
109
  format == o.format
98
110
  end
99
111
 
@@ -106,7 +118,7 @@ module AsposeSlidesCloud
106
118
  # Calculates hash code according to all attributes.
107
119
  # @return [Fixnum] Hash code
108
120
  def hash
109
- [default_regular_font, font_fallback_rules, format].hash
121
+ [default_regular_font, font_fallback_rules, font_subst_rules, format].hash
110
122
  end
111
123
 
112
124
  # Builds the object from hash
@@ -0,0 +1,231 @@
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 substitution rule.
27
+ class FontSubstRule
28
+ # Font to substitute.
29
+ attr_accessor :source_font
30
+
31
+ # Substitution font.
32
+ attr_accessor :target_font
33
+
34
+ # Substitute when font is not found. Default: true.
35
+ attr_accessor :not_found_only
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'source_font' => :'SourceFont',
41
+ :'target_font' => :'TargetFont',
42
+ :'not_found_only' => :'NotFoundOnly',
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'source_font' => :'String',
50
+ :'target_font' => :'String',
51
+ :'not_found_only' => :'BOOLEAN',
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?(:'SourceFont')
64
+ self.source_font = attributes[:'SourceFont']
65
+ end
66
+
67
+ if attributes.has_key?(:'TargetFont')
68
+ self.target_font = attributes[:'TargetFont']
69
+ end
70
+
71
+ if attributes.has_key?(:'NotFoundOnly')
72
+ self.not_found_only = attributes[:'NotFoundOnly']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ invalid_properties
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ def valid?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ source_font == o.source_font &&
95
+ target_font == o.target_font &&
96
+ not_found_only == o.not_found_only
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param [Object] Object to be compared
101
+ def eql?(o)
102
+ self == o
103
+ end
104
+
105
+ # Calculates hash code according to all attributes.
106
+ # @return [Fixnum] Hash code
107
+ def hash
108
+ [source_font, target_font, not_found_only].hash
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ self.class.swagger_types.each_pair do |key, type|
117
+ mapKey = self.class.attribute_map[key]
118
+ if !mapKey.nil?
119
+ val = attributes[mapKey]
120
+ if val.nil?
121
+ mapKeyString = mapKey.to_s
122
+ mapKeyString[0] = mapKeyString[0].downcase
123
+ mapKey = mapKeyString.to_sym
124
+ val = attributes[mapKey]
125
+ end
126
+ if !val.nil?
127
+ if type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the the attribute
129
+ # is documented as an array but the input is not
130
+ if val.is_a?(Array)
131
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
132
+ end
133
+ else
134
+ self.send("#{key}=", _deserialize(type, val))
135
+ end
136
+ end
137
+ end
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ DateTime.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :BOOLEAN
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
181
+ if registry_type
182
+ type = registry_type
183
+ end
184
+ temp_model = AsposeSlidesCloud.const_get(type).new
185
+ temp_model.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ next if value.nil?
208
+ hash[param] = _to_hash(value)
209
+ end
210
+ hash
211
+ end
212
+
213
+ # Outputs non-array value in the form of hash
214
+ # For object, use to_hash. Otherwise, just return the value
215
+ # @param [Object] value Any valid value
216
+ # @return [Hash] Returns the value in the form of hash
217
+ def _to_hash(value)
218
+ if value.is_a?(Array)
219
+ value.compact.map { |v| _to_hash(v) }
220
+ elsif value.is_a?(Hash)
221
+ {}.tap do |hash|
222
+ value.each { |k, v| hash[k] = _to_hash(v) }
223
+ end
224
+ elsif value.respond_to? :to_hash
225
+ value.to_hash
226
+ else
227
+ value
228
+ end
229
+ end
230
+ end
231
+ end
@@ -92,6 +92,7 @@ module AsposeSlidesCloud
92
92
  self.class == o.class &&
93
93
  default_regular_font == o.default_regular_font &&
94
94
  font_fallback_rules == o.font_fallback_rules &&
95
+ font_subst_rules == o.font_subst_rules &&
95
96
  format == o.format &&
96
97
  height == o.height &&
97
98
  width == o.width &&
@@ -109,7 +110,7 @@ module AsposeSlidesCloud
109
110
  # Calculates hash code according to all attributes.
110
111
  # @return [Fixnum] Hash code
111
112
  def hash
112
- [default_regular_font, font_fallback_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
113
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
113
114
  end
114
115
 
115
116
  # Builds the object from hash
@@ -83,6 +83,7 @@ module AsposeSlidesCloud
83
83
  self.class == o.class &&
84
84
  default_regular_font == o.default_regular_font &&
85
85
  font_fallback_rules == o.font_fallback_rules &&
86
+ font_subst_rules == o.font_subst_rules &&
86
87
  format == o.format &&
87
88
  animate_transitions == o.animate_transitions &&
88
89
  animate_shapes == o.animate_shapes
@@ -97,7 +98,7 @@ module AsposeSlidesCloud
97
98
  # Calculates hash code according to all attributes.
98
99
  # @return [Fixnum] Hash code
99
100
  def hash
100
- [default_regular_font, font_fallback_rules, format, animate_transitions, animate_shapes].hash
101
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes].hash
101
102
  end
102
103
 
103
104
  # Builds the object from hash
@@ -231,6 +231,7 @@ module AsposeSlidesCloud
231
231
  self.class == o.class &&
232
232
  default_regular_font == o.default_regular_font &&
233
233
  font_fallback_rules == o.font_fallback_rules &&
234
+ font_subst_rules == o.font_subst_rules &&
234
235
  format == o.format &&
235
236
  save_as_zip == o.save_as_zip &&
236
237
  sub_directory_name == o.sub_directory_name &&
@@ -255,7 +256,7 @@ module AsposeSlidesCloud
255
256
  # Calculates hash code according to all attributes.
256
257
  # @return [Fixnum] Hash code
257
258
  def hash
258
- [default_regular_font, 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
259
+ [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
259
260
  end
260
261
 
261
262
  # Builds the object from hash
@@ -147,6 +147,7 @@ module AsposeSlidesCloud
147
147
  self.class == o.class &&
148
148
  default_regular_font == o.default_regular_font &&
149
149
  font_fallback_rules == o.font_fallback_rules &&
150
+ font_subst_rules == o.font_subst_rules &&
150
151
  format == o.format &&
151
152
  height == o.height &&
152
153
  width == o.width &&
@@ -165,7 +166,7 @@ module AsposeSlidesCloud
165
166
  # Calculates hash code according to all attributes.
166
167
  # @return [Fixnum] Hash code
167
168
  def hash
168
- [default_regular_font, font_fallback_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
169
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
169
170
  end
170
171
 
171
172
  # Builds the object from hash
@@ -82,6 +82,7 @@ module AsposeSlidesCloud
82
82
  self.class == o.class &&
83
83
  default_regular_font == o.default_regular_font &&
84
84
  font_fallback_rules == o.font_fallback_rules &&
85
+ font_subst_rules == o.font_subst_rules &&
85
86
  format == o.format &&
86
87
  height == o.height &&
87
88
  width == o.width
@@ -96,7 +97,7 @@ module AsposeSlidesCloud
96
97
  # Calculates hash code according to all attributes.
97
98
  # @return [Fixnum] Hash code
98
99
  def hash
99
- [default_regular_font, font_fallback_rules, format, height, width].hash
100
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, height, width].hash
100
101
  end
101
102
 
102
103
  # Builds the object from hash
@@ -94,6 +94,10 @@ module AsposeSlidesCloud
94
94
  def ==(o)
95
95
  return true if self.equal?(o)
96
96
  self.class == o.class &&
97
+ fill_format == o.fill_format &&
98
+ effect_format == o.effect_format &&
99
+ three_d_format == o.three_d_format &&
100
+ line_format == o.line_format &&
97
101
  value == o.value &&
98
102
  set_as_total == o.set_as_total &&
99
103
  invert_if_negative == o.invert_if_negative
@@ -108,7 +112,7 @@ module AsposeSlidesCloud
108
112
  # Calculates hash code according to all attributes.
109
113
  # @return [Fixnum] Hash code
110
114
  def hash
111
- [value, set_as_total, invert_if_negative].hash
115
+ [fill_format, effect_format, three_d_format, line_format, value, set_as_total, invert_if_negative].hash
112
116
  end
113
117
 
114
118
  # Builds the object from hash
@@ -308,6 +308,7 @@ module AsposeSlidesCloud
308
308
  self.class == o.class &&
309
309
  default_regular_font == o.default_regular_font &&
310
310
  font_fallback_rules == o.font_fallback_rules &&
311
+ font_subst_rules == o.font_subst_rules &&
311
312
  format == o.format &&
312
313
  text_compression == o.text_compression &&
313
314
  embed_full_fonts == o.embed_full_fonts &&
@@ -339,7 +340,7 @@ module AsposeSlidesCloud
339
340
  # Calculates hash code according to all attributes.
340
341
  # @return [Fixnum] Hash code
341
342
  def hash
342
- [default_regular_font, 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
343
+ [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
343
344
  end
344
345
 
345
346
  # Builds the object from hash
@@ -108,6 +108,7 @@ module AsposeSlidesCloud
108
108
  self.class == o.class &&
109
109
  default_regular_font == o.default_regular_font &&
110
110
  font_fallback_rules == o.font_fallback_rules &&
111
+ font_subst_rules == o.font_subst_rules &&
111
112
  format == o.format &&
112
113
  conformance == o.conformance
113
114
  end
@@ -121,7 +122,7 @@ module AsposeSlidesCloud
121
122
  # Calculates hash code according to all attributes.
122
123
  # @return [Fixnum] Hash code
123
124
  def hash
124
- [default_regular_font, font_fallback_rules, format, conformance].hash
125
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, conformance].hash
125
126
  end
126
127
 
127
128
  # Builds the object from hash
@@ -90,6 +90,10 @@ module AsposeSlidesCloud
90
90
  def ==(o)
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
+ fill_format == o.fill_format &&
94
+ effect_format == o.effect_format &&
95
+ three_d_format == o.three_d_format &&
96
+ line_format == o.line_format &&
93
97
  x_value == o.x_value &&
94
98
  y_value == o.y_value
95
99
  end
@@ -103,7 +107,7 @@ module AsposeSlidesCloud
103
107
  # Calculates hash code according to all attributes.
104
108
  # @return [Fixnum] Hash code
105
109
  def hash
106
- [x_value, y_value].hash
110
+ [fill_format, effect_format, three_d_format, line_format, x_value, y_value].hash
107
111
  end
108
112
 
109
113
  # Builds the object from hash
@@ -192,6 +192,7 @@ module AsposeSlidesCloud
192
192
  self.class == o.class &&
193
193
  default_regular_font == o.default_regular_font &&
194
194
  font_fallback_rules == o.font_fallback_rules &&
195
+ font_subst_rules == o.font_subst_rules &&
195
196
  format == o.format &&
196
197
  vectorize_text == o.vectorize_text &&
197
198
  metafile_rasterization_dpi == o.metafile_rasterization_dpi &&
@@ -213,7 +214,7 @@ module AsposeSlidesCloud
213
214
  # Calculates hash code according to all attributes.
214
215
  # @return [Fixnum] Hash code
215
216
  def hash
216
- [default_regular_font, font_fallback_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling].hash
217
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling].hash
217
218
  end
218
219
 
219
220
  # Builds the object from hash
@@ -291,6 +291,7 @@ module AsposeSlidesCloud
291
291
  self.class == o.class &&
292
292
  default_regular_font == o.default_regular_font &&
293
293
  font_fallback_rules == o.font_fallback_rules &&
294
+ font_subst_rules == o.font_subst_rules &&
294
295
  format == o.format &&
295
296
  show_hidden_slides == o.show_hidden_slides &&
296
297
  compressed == o.compressed &&
@@ -323,7 +324,7 @@ module AsposeSlidesCloud
323
324
  # Calculates hash code according to all attributes.
324
325
  # @return [Fixnum] Hash code
325
326
  def hash
326
- [default_regular_font, font_fallback_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
327
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
327
328
  end
328
329
 
329
330
  # Builds the object from hash
@@ -225,6 +225,7 @@ module AsposeSlidesCloud
225
225
  self.class == o.class &&
226
226
  default_regular_font == o.default_regular_font &&
227
227
  font_fallback_rules == o.font_fallback_rules &&
228
+ font_subst_rules == o.font_subst_rules &&
228
229
  format == o.format &&
229
230
  height == o.height &&
230
231
  width == o.width &&
@@ -249,7 +250,7 @@ module AsposeSlidesCloud
249
250
  # Calculates hash code according to all attributes.
250
251
  # @return [Fixnum] Hash code
251
252
  def hash
252
- [default_regular_font, font_fallback_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
253
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
253
254
  end
254
255
 
255
256
  # Builds the object from hash
@@ -147,6 +147,7 @@ module AsposeSlidesCloud
147
147
  self.class == o.class &&
148
148
  default_regular_font == o.default_regular_font &&
149
149
  font_fallback_rules == o.font_fallback_rules &&
150
+ font_subst_rules == o.font_subst_rules &&
150
151
  format == o.format &&
151
152
  slides_transition_duration == o.slides_transition_duration &&
152
153
  transition_type == o.transition_type &&
@@ -163,7 +164,7 @@ module AsposeSlidesCloud
163
164
  # Calculates hash code according to all attributes.
164
165
  # @return [Fixnum] Hash code
165
166
  def hash
166
- [default_regular_font, font_fallback_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
167
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
167
168
  end
168
169
 
169
170
  # Builds the object from hash
@@ -74,6 +74,7 @@ module AsposeSlidesCloud
74
74
  self.class == o.class &&
75
75
  default_regular_font == o.default_regular_font &&
76
76
  font_fallback_rules == o.font_fallback_rules &&
77
+ font_subst_rules == o.font_subst_rules &&
77
78
  format == o.format &&
78
79
  export_hidden_slides == o.export_hidden_slides
79
80
  end
@@ -87,7 +88,7 @@ module AsposeSlidesCloud
87
88
  # Calculates hash code according to all attributes.
88
89
  # @return [Fixnum] Hash code
89
90
  def hash
90
- [default_regular_font, font_fallback_rules, format, export_hidden_slides].hash
91
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
91
92
  end
92
93
 
93
94
  # Builds the object from hash
@@ -92,6 +92,7 @@ module AsposeSlidesCloud
92
92
  self.class == o.class &&
93
93
  default_regular_font == o.default_regular_font &&
94
94
  font_fallback_rules == o.font_fallback_rules &&
95
+ font_subst_rules == o.font_subst_rules &&
95
96
  format == o.format &&
96
97
  show_hidden_slides == o.show_hidden_slides &&
97
98
  save_metafiles_as_png == o.save_metafiles_as_png &&
@@ -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
- [default_regular_font, font_fallback_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
111
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
111
112
  end
112
113
 
113
114
  # Builds the object from hash
@@ -256,6 +256,7 @@ module AsposeSlidesCloud
256
256
  :'FontData' => { },
257
257
  :'FontFallbackRule' => { },
258
258
  :'FontSet' => { },
259
+ :'FontSubstRule' => { },
259
260
  :'FontsData' => { },
260
261
  :'GeometryPath' => { },
261
262
  :'GeometryPaths' => { },
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '22.8.0'
24
+ VERSION = '22.9.0'
25
25
  end
@@ -61,6 +61,7 @@ require 'aspose_slides_cloud/models/fill_overlay_effect'
61
61
  require 'aspose_slides_cloud/models/font_data'
62
62
  require 'aspose_slides_cloud/models/font_fallback_rule'
63
63
  require 'aspose_slides_cloud/models/font_set'
64
+ require 'aspose_slides_cloud/models/font_subst_rule'
64
65
  require 'aspose_slides_cloud/models/fonts_data'
65
66
  require 'aspose_slides_cloud/models/geometry_path'
66
67
  require 'aspose_slides_cloud/models/geometry_paths'