aspose_slides_cloud 22.2.0 → 22.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -7
- data/LICENSE +20 -20
- data/README.md +27 -0
- data/Rakefile +8 -8
- data/TestData/oleObject.xlsx +0 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +56 -56
- data/lib/aspose_slides_cloud/api/slides_api.rb +192 -13
- data/lib/aspose_slides_cloud/api_error.rb +48 -48
- data/lib/aspose_slides_cloud/configuration.rb +188 -188
- data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -0
- data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +16 -26
- data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -3
- data/lib/aspose_slides_cloud/models/axis.rb +22 -2
- data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/chart.rb +1 -2
- data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
- data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
- data/lib/aspose_slides_cloud/models/connector.rb +1 -2
- data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +10 -18
- data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +260 -0
- data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
- data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +26 -13
- data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
- data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
- data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
- data/lib/aspose_slides_cloud/models/legend.rb +12 -2
- data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +12 -2
- data/lib/aspose_slides_cloud/models/one_value_series.rb +74 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +3 -16
- data/lib/aspose_slides_cloud/models/picture_fill.rb +14 -2
- data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/portion.rb +32 -2
- data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -2
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/shape_base.rb +1 -11
- data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
- data/lib/aspose_slides_cloud/models/slide_comment.rb +32 -48
- data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
- data/lib/aspose_slides_cloud/models/slide_comments.rb +1 -1
- data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → slide_modern_comment.rb} +37 -68
- data/lib/aspose_slides_cloud/models/smart_art.rb +1 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/table.rb +1 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -2
- data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/video_export_options.rb +35 -4
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -3
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -2
- data/lib/aspose_slides_cloud/type_registry.rb +54 -13
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +31 -7
- data/spec/api/slides_api_spec.rb +585 -33
- data/spec/spec_helper.rb +122 -122
- data/spec/use_cases/merge_spec.rb +0 -1
- data/spec/use_cases/shape_spec.rb +0 -2
- data/testRules.json +6 -4
- metadata +30 -7
- data/Dockerfile +0 -16
- data/docker-entrypoint.sh +0 -7
@@ -24,7 +24,7 @@ require 'date'
|
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in TIFF format.
|
27
|
-
class TiffExportOptions <
|
27
|
+
class TiffExportOptions < ImageExportOptionsBase
|
28
28
|
# Compression type.
|
29
29
|
attr_accessor :compression
|
30
30
|
|
@@ -224,9 +224,10 @@ module AsposeSlidesCloud
|
|
224
224
|
return true if self.equal?(o)
|
225
225
|
self.class == o.class &&
|
226
226
|
default_regular_font == o.default_regular_font &&
|
227
|
+
font_fallback_rules == o.font_fallback_rules &&
|
228
|
+
format == o.format &&
|
227
229
|
height == o.height &&
|
228
230
|
width == o.width &&
|
229
|
-
format == o.format &&
|
230
231
|
compression == o.compression &&
|
231
232
|
dpi_x == o.dpi_x &&
|
232
233
|
dpi_y == o.dpi_y &&
|
@@ -248,7 +249,7 @@ module AsposeSlidesCloud
|
|
248
249
|
# Calculates hash code according to all attributes.
|
249
250
|
# @return [Fixnum] Hash code
|
250
251
|
def hash
|
251
|
-
[default_regular_font, height, width,
|
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
|
252
253
|
end
|
253
254
|
|
254
255
|
# Builds the object from hash
|
@@ -0,0 +1,253 @@
|
|
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 a Tint effect.
|
27
|
+
class TintEffect < ImageTransformEffect
|
28
|
+
# Hue
|
29
|
+
attr_accessor :hue
|
30
|
+
|
31
|
+
# Amount
|
32
|
+
attr_accessor :amount
|
33
|
+
|
34
|
+
class EnumAttributeValidator
|
35
|
+
attr_reader :datatype
|
36
|
+
attr_reader :allowable_values
|
37
|
+
|
38
|
+
def initialize(datatype, allowable_values)
|
39
|
+
@allowable_values = allowable_values.map do |value|
|
40
|
+
case datatype.to_s
|
41
|
+
when /Integer/i
|
42
|
+
value.to_i
|
43
|
+
when /Float/i
|
44
|
+
value.to_f
|
45
|
+
else
|
46
|
+
value
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def valid?(value)
|
52
|
+
!value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
57
|
+
def self.attribute_map
|
58
|
+
super.merge({
|
59
|
+
:'hue' => :'Hue',
|
60
|
+
:'amount' => :'Amount',
|
61
|
+
})
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute type mapping.
|
65
|
+
def self.swagger_types
|
66
|
+
super.merge({
|
67
|
+
:'hue' => :'Float',
|
68
|
+
:'amount' => :'Float',
|
69
|
+
})
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
super
|
76
|
+
|
77
|
+
if attributes.has_key?(:'Hue')
|
78
|
+
self.hue = attributes[:'Hue']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'Amount')
|
82
|
+
self.amount = attributes[:'Amount']
|
83
|
+
end
|
84
|
+
self.type = "Tint"
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = super
|
91
|
+
if @hue.nil?
|
92
|
+
invalid_properties.push('invalid value for "hue", hue cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @amount.nil?
|
96
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return false if !super
|
106
|
+
return false if @hue.nil?
|
107
|
+
return false if @amount.nil?
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
type == o.type &&
|
117
|
+
hue == o.hue &&
|
118
|
+
amount == o.amount
|
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
|
+
[type, hue, amount].hash
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
self.class.swagger_types.each_pair do |key, type|
|
139
|
+
mapKey = self.class.attribute_map[key]
|
140
|
+
if !mapKey.nil?
|
141
|
+
val = attributes[mapKey]
|
142
|
+
if val.nil?
|
143
|
+
mapKeyString = mapKey.to_s
|
144
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
145
|
+
mapKey = mapKeyString.to_sym
|
146
|
+
val = attributes[mapKey]
|
147
|
+
end
|
148
|
+
if !val.nil?
|
149
|
+
if type =~ /\AArray<(.*)>/i
|
150
|
+
# check to ensure the input is an array given that the the attribute
|
151
|
+
# is documented as an array but the input is not
|
152
|
+
if val.is_a?(Array)
|
153
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
154
|
+
end
|
155
|
+
else
|
156
|
+
self.send("#{key}=", _deserialize(type, val))
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :DateTime
|
172
|
+
DateTime.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value.to_s
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :BOOLEAN
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
203
|
+
if registry_type
|
204
|
+
type = registry_type
|
205
|
+
end
|
206
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
207
|
+
temp_model.build_from_hash(value)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the string representation of the object
|
212
|
+
# @return [String] String presentation of the object
|
213
|
+
def to_s
|
214
|
+
to_hash.to_s
|
215
|
+
end
|
216
|
+
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = self.send(attr)
|
229
|
+
next if value.nil?
|
230
|
+
hash[param] = _to_hash(value)
|
231
|
+
end
|
232
|
+
hash
|
233
|
+
end
|
234
|
+
|
235
|
+
# Outputs non-array value in the form of hash
|
236
|
+
# For object, use to_hash. Otherwise, just return the value
|
237
|
+
# @param [Object] value Any valid value
|
238
|
+
# @return [Hash] Returns the value in the form of hash
|
239
|
+
def _to_hash(value)
|
240
|
+
if value.is_a?(Array)
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
242
|
+
elsif value.is_a?(Hash)
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
245
|
+
end
|
246
|
+
elsif value.respond_to? :to_hash
|
247
|
+
value.to_hash
|
248
|
+
else
|
249
|
+
value
|
250
|
+
end
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
@@ -25,7 +25,13 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in an video format.
|
27
27
|
class VideoExportOptions < ExportOptions
|
28
|
-
#
|
28
|
+
# Slides transition duration.
|
29
|
+
attr_accessor :slides_transition_duration
|
30
|
+
|
31
|
+
# Video transition type
|
32
|
+
attr_accessor :transition_type
|
33
|
+
|
34
|
+
# Duration of transition defined in TransitionType property.
|
29
35
|
attr_accessor :transition_duration
|
30
36
|
|
31
37
|
# Video resolution type
|
@@ -56,6 +62,8 @@ module AsposeSlidesCloud
|
|
56
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
63
|
def self.attribute_map
|
58
64
|
super.merge({
|
65
|
+
:'slides_transition_duration' => :'SlidesTransitionDuration',
|
66
|
+
:'transition_type' => :'TransitionType',
|
59
67
|
:'transition_duration' => :'TransitionDuration',
|
60
68
|
:'video_resolution_type' => :'VideoResolutionType',
|
61
69
|
})
|
@@ -64,6 +72,8 @@ module AsposeSlidesCloud
|
|
64
72
|
# Attribute type mapping.
|
65
73
|
def self.swagger_types
|
66
74
|
super.merge({
|
75
|
+
:'slides_transition_duration' => :'Integer',
|
76
|
+
:'transition_type' => :'String',
|
67
77
|
:'transition_duration' => :'Integer',
|
68
78
|
:'video_resolution_type' => :'String',
|
69
79
|
})
|
@@ -74,6 +84,14 @@ module AsposeSlidesCloud
|
|
74
84
|
def initialize(attributes = {})
|
75
85
|
super
|
76
86
|
|
87
|
+
if attributes.has_key?(:'SlidesTransitionDuration')
|
88
|
+
self.slides_transition_duration = attributes[:'SlidesTransitionDuration']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'TransitionType')
|
92
|
+
self.transition_type = attributes[:'TransitionType']
|
93
|
+
end
|
94
|
+
|
77
95
|
if attributes.has_key?(:'TransitionDuration')
|
78
96
|
self.transition_duration = attributes[:'TransitionDuration']
|
79
97
|
end
|
@@ -95,11 +113,23 @@ module AsposeSlidesCloud
|
|
95
113
|
# @return true if the model is valid
|
96
114
|
def valid?
|
97
115
|
return false if !super
|
116
|
+
transition_type_validator = EnumAttributeValidator.new('String', ['None', 'Fade', 'Distance', 'Slidedown', 'Slideright', 'Slideleft', 'Slideup', 'Smoothleft', 'Smoothright', 'Smoothup', 'Smoothdown', 'Rectcrop', 'Circlecrop', 'Circleclose', 'Circleopen', 'Horzclose', 'Horzopen', 'Vertclose', 'Vertopen', 'Diagbl', 'Diagbr', 'Diagtl', 'Diagtr', 'Hlslice', 'Hrslice', 'Vuslice', 'Vdslice', 'Dissolve', 'Pixelize', 'Radial'])
|
117
|
+
return false unless transition_type_validator.valid?(@transition_type)
|
98
118
|
video_resolution_type_validator = EnumAttributeValidator.new('String', ['FullHD', 'SD', 'HD', 'QHD'])
|
99
119
|
return false unless video_resolution_type_validator.valid?(@video_resolution_type)
|
100
120
|
true
|
101
121
|
end
|
102
122
|
|
123
|
+
# Custom attribute writer method checking allowed values (enum).
|
124
|
+
# @param [Object] transition_type Object to be assigned
|
125
|
+
def transition_type=(transition_type)
|
126
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Fade', 'Distance', 'Slidedown', 'Slideright', 'Slideleft', 'Slideup', 'Smoothleft', 'Smoothright', 'Smoothup', 'Smoothdown', 'Rectcrop', 'Circlecrop', 'Circleclose', 'Circleopen', 'Horzclose', 'Horzopen', 'Vertclose', 'Vertopen', 'Diagbl', 'Diagbr', 'Diagtl', 'Diagtr', 'Hlslice', 'Hrslice', 'Vuslice', 'Vdslice', 'Dissolve', 'Pixelize', 'Radial'])
|
127
|
+
unless validator.valid?(transition_type)
|
128
|
+
fail ArgumentError, 'invalid value for "transition_type", must be one of #{validator.allowable_values}.'
|
129
|
+
end
|
130
|
+
@transition_type = transition_type
|
131
|
+
end
|
132
|
+
|
103
133
|
# Custom attribute writer method checking allowed values (enum).
|
104
134
|
# @param [Object] video_resolution_type Object to be assigned
|
105
135
|
def video_resolution_type=(video_resolution_type)
|
@@ -116,9 +146,10 @@ module AsposeSlidesCloud
|
|
116
146
|
return true if self.equal?(o)
|
117
147
|
self.class == o.class &&
|
118
148
|
default_regular_font == o.default_regular_font &&
|
119
|
-
|
120
|
-
width == o.width &&
|
149
|
+
font_fallback_rules == o.font_fallback_rules &&
|
121
150
|
format == o.format &&
|
151
|
+
slides_transition_duration == o.slides_transition_duration &&
|
152
|
+
transition_type == o.transition_type &&
|
122
153
|
transition_duration == o.transition_duration &&
|
123
154
|
video_resolution_type == o.video_resolution_type
|
124
155
|
end
|
@@ -132,7 +163,7 @@ module AsposeSlidesCloud
|
|
132
163
|
# Calculates hash code according to all attributes.
|
133
164
|
# @return [Fixnum] Hash code
|
134
165
|
def hash
|
135
|
-
[default_regular_font,
|
166
|
+
[default_regular_font, font_fallback_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
136
167
|
end
|
137
168
|
|
138
169
|
# Builds the object from hash
|
@@ -46,6 +46,9 @@ module AsposeSlidesCloud
|
|
46
46
|
# Video data encoded in base64.
|
47
47
|
attr_accessor :base64_data
|
48
48
|
|
49
|
+
# Picture fill format.
|
50
|
+
attr_accessor :picture_fill_format
|
51
|
+
|
49
52
|
class EnumAttributeValidator
|
50
53
|
attr_reader :datatype
|
51
54
|
attr_reader :allowable_values
|
@@ -78,6 +81,7 @@ module AsposeSlidesCloud
|
|
78
81
|
:'rewind_video' => :'RewindVideo',
|
79
82
|
:'volume' => :'Volume',
|
80
83
|
:'base64_data' => :'Base64Data',
|
84
|
+
:'picture_fill_format' => :'PictureFillFormat',
|
81
85
|
})
|
82
86
|
end
|
83
87
|
|
@@ -91,6 +95,7 @@ module AsposeSlidesCloud
|
|
91
95
|
:'rewind_video' => :'BOOLEAN',
|
92
96
|
:'volume' => :'String',
|
93
97
|
:'base64_data' => :'String',
|
98
|
+
:'picture_fill_format' => :'PictureFill',
|
94
99
|
})
|
95
100
|
end
|
96
101
|
|
@@ -126,6 +131,10 @@ module AsposeSlidesCloud
|
|
126
131
|
if attributes.has_key?(:'Base64Data')
|
127
132
|
self.base64_data = attributes[:'Base64Data']
|
128
133
|
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'PictureFillFormat')
|
136
|
+
self.picture_fill_format = attributes[:'PictureFillFormat']
|
137
|
+
end
|
129
138
|
self.type = "VideoFrame"
|
130
139
|
end
|
131
140
|
|
@@ -183,7 +192,6 @@ module AsposeSlidesCloud
|
|
183
192
|
x == o.x &&
|
184
193
|
y == o.y &&
|
185
194
|
z_order_position == o.z_order_position &&
|
186
|
-
shapes == o.shapes &&
|
187
195
|
fill_format == o.fill_format &&
|
188
196
|
effect_format == o.effect_format &&
|
189
197
|
three_d_format == o.three_d_format &&
|
@@ -198,7 +206,8 @@ module AsposeSlidesCloud
|
|
198
206
|
play_mode == o.play_mode &&
|
199
207
|
rewind_video == o.rewind_video &&
|
200
208
|
volume == o.volume &&
|
201
|
-
base64_data == o.base64_data
|
209
|
+
base64_data == o.base64_data &&
|
210
|
+
picture_fill_format == o.picture_fill_format
|
202
211
|
end
|
203
212
|
|
204
213
|
# @see the `==` method
|
@@ -210,7 +219,7 @@ module AsposeSlidesCloud
|
|
210
219
|
# Calculates hash code according to all attributes.
|
211
220
|
# @return [Fixnum] Hash code
|
212
221
|
def hash
|
213
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
222
|
+
[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, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data, picture_fill_format].hash
|
214
223
|
end
|
215
224
|
|
216
225
|
# Builds the object from hash
|
@@ -73,8 +73,7 @@ module AsposeSlidesCloud
|
|
73
73
|
return true if self.equal?(o)
|
74
74
|
self.class == o.class &&
|
75
75
|
default_regular_font == o.default_regular_font &&
|
76
|
-
|
77
|
-
width == o.width &&
|
76
|
+
font_fallback_rules == o.font_fallback_rules &&
|
78
77
|
format == o.format &&
|
79
78
|
export_hidden_slides == o.export_hidden_slides
|
80
79
|
end
|
@@ -88,7 +87,7 @@ module AsposeSlidesCloud
|
|
88
87
|
# Calculates hash code according to all attributes.
|
89
88
|
# @return [Fixnum] Hash code
|
90
89
|
def hash
|
91
|
-
[default_regular_font,
|
90
|
+
[default_regular_font, font_fallback_rules, format, export_hidden_slides].hash
|
92
91
|
end
|
93
92
|
|
94
93
|
# Builds the object from hash
|
@@ -91,8 +91,7 @@ module AsposeSlidesCloud
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
|
-
|
95
|
-
width == o.width &&
|
94
|
+
font_fallback_rules == o.font_fallback_rules &&
|
96
95
|
format == o.format &&
|
97
96
|
show_hidden_slides == o.show_hidden_slides &&
|
98
97
|
save_metafiles_as_png == o.save_metafiles_as_png &&
|
@@ -108,7 +107,7 @@ module AsposeSlidesCloud
|
|
108
107
|
# Calculates hash code according to all attributes.
|
109
108
|
# @return [Fixnum] Hash code
|
110
109
|
def hash
|
111
|
-
[default_regular_font,
|
110
|
+
[default_regular_font, font_fallback_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
111
|
end
|
113
112
|
|
114
113
|
# Builds the object from hash
|
@@ -105,7 +105,6 @@ module AsposeSlidesCloud
|
|
105
105
|
x == o.x &&
|
106
106
|
y == o.y &&
|
107
107
|
z_order_position == o.z_order_position &&
|
108
|
-
shapes == o.shapes &&
|
109
108
|
fill_format == o.fill_format &&
|
110
109
|
effect_format == o.effect_format &&
|
111
110
|
three_d_format == o.three_d_format &&
|
@@ -130,7 +129,7 @@ module AsposeSlidesCloud
|
|
130
129
|
# Calculates hash code according to all attributes.
|
131
130
|
# @return [Fixnum] Hash code
|
132
131
|
def hash
|
133
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
132
|
+
[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_slide_index].hash
|
134
133
|
end
|
135
134
|
|
136
135
|
# Builds the object from hash
|
@@ -23,6 +23,7 @@ SOFTWARE.
|
|
23
23
|
require 'date'
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
|
+
# Zoom object.
|
26
27
|
class ZoomObject < ShapeBase
|
27
28
|
# Image type of a zoom object.
|
28
29
|
attr_accessor :image_type
|
@@ -151,7 +152,6 @@ module AsposeSlidesCloud
|
|
151
152
|
x == o.x &&
|
152
153
|
y == o.y &&
|
153
154
|
z_order_position == o.z_order_position &&
|
154
|
-
shapes == o.shapes &&
|
155
155
|
fill_format == o.fill_format &&
|
156
156
|
effect_format == o.effect_format &&
|
157
157
|
three_d_format == o.three_d_format &&
|
@@ -175,7 +175,7 @@ module AsposeSlidesCloud
|
|
175
175
|
# Calculates hash code according to all attributes.
|
176
176
|
# @return [Fixnum] Hash code
|
177
177
|
def hash
|
178
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
178
|
+
[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].hash
|
179
179
|
end
|
180
180
|
|
181
181
|
# Builds the object from hash
|