aspose_slides_cloud 22.3.0 → 22.4.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 +20 -0
- data/Rakefile +8 -8
- data/aspose_slides_cloud.gemspec +56 -56
- 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/audio_frame.rb +12 -3
- data/lib/aspose_slides_cloud/models/chart.rb +1 -2
- data/lib/aspose_slides_cloud/models/connector.rb +1 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +1 -21
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -4
- data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
- data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +1 -3
- data/lib/aspose_slides_cloud/models/html_export_options.rb +1 -3
- data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -4
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
- data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -16
- data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +1 -3
- 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/smart_art.rb +1 -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 +1 -3
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +1 -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/tiff_export_options.rb +4 -4
- data/lib/aspose_slides_cloud/models/video_export_options.rb +34 -4
- data/lib/aspose_slides_cloud/models/video_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +1 -3
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +1 -3
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/zoom_object.rb +1 -2
- data/lib/aspose_slides_cloud/type_registry.rb +10 -6
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +6 -3
- data/spec/spec_helper.rb +122 -122
- metadata +5 -4
- data/Dockerfile +0 -16
- data/docker-entrypoint.sh +0 -7
@@ -0,0 +1,222 @@
|
|
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
|
+
# The class provides shared options for image formats.
|
27
|
+
class ImageExportOptionsBase < ExportOptions
|
28
|
+
# Gets or sets the height of slides in the output image format.
|
29
|
+
attr_accessor :height
|
30
|
+
|
31
|
+
# Gets or sets the height of slides in the output the output image format.
|
32
|
+
attr_accessor :width
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
super.merge({
|
37
|
+
:'height' => :'Height',
|
38
|
+
:'width' => :'Width',
|
39
|
+
})
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
super.merge({
|
45
|
+
:'height' => :'Integer',
|
46
|
+
:'width' => :'Integer',
|
47
|
+
})
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
super
|
54
|
+
|
55
|
+
if attributes.has_key?(:'Height')
|
56
|
+
self.height = attributes[:'Height']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'Width')
|
60
|
+
self.width = attributes[:'Width']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = super
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
return false if !super
|
75
|
+
true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
default_regular_font == o.default_regular_font &&
|
84
|
+
font_fallback_rules == o.font_fallback_rules &&
|
85
|
+
format == o.format &&
|
86
|
+
height == o.height &&
|
87
|
+
width == o.width
|
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
|
+
[default_regular_font, font_fallback_rules, format, height, width].hash
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def build_from_hash(attributes)
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
107
|
+
self.class.swagger_types.each_pair do |key, type|
|
108
|
+
mapKey = self.class.attribute_map[key]
|
109
|
+
if !mapKey.nil?
|
110
|
+
val = attributes[mapKey]
|
111
|
+
if val.nil?
|
112
|
+
mapKeyString = mapKey.to_s
|
113
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
114
|
+
mapKey = mapKeyString.to_sym
|
115
|
+
val = attributes[mapKey]
|
116
|
+
end
|
117
|
+
if !val.nil?
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
119
|
+
# check to ensure the input is an array given that the the attribute
|
120
|
+
# is documented as an array but the input is not
|
121
|
+
if val.is_a?(Array)
|
122
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
123
|
+
end
|
124
|
+
else
|
125
|
+
self.send("#{key}=", _deserialize(type, val))
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :BOOLEAN
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
172
|
+
if registry_type
|
173
|
+
type = registry_type
|
174
|
+
end
|
175
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
@@ -31,6 +31,27 @@ module AsposeSlidesCloud
|
|
31
31
|
# The title for OleObject icon.
|
32
32
|
attr_accessor :substitute_picture_title
|
33
33
|
|
34
|
+
# OleObject image fill properties.
|
35
|
+
attr_accessor :substitute_picture_format
|
36
|
+
|
37
|
+
# Returns or sets the name of an object.
|
38
|
+
attr_accessor :object_name
|
39
|
+
|
40
|
+
# File data of embedded OLE object.
|
41
|
+
attr_accessor :embedded_file_base64_data
|
42
|
+
|
43
|
+
# File extension for the current embedded OLE object
|
44
|
+
attr_accessor :embedded_file_extension
|
45
|
+
|
46
|
+
# ProgID of an object.
|
47
|
+
attr_accessor :object_prog_id
|
48
|
+
|
49
|
+
# Full path to a linked file.
|
50
|
+
attr_accessor :link_path
|
51
|
+
|
52
|
+
# Determines if the linked embedded object is automatically updated when the presentation is opened or printed. Read/write Boolean.
|
53
|
+
attr_accessor :update_automatic
|
54
|
+
|
34
55
|
class EnumAttributeValidator
|
35
56
|
attr_reader :datatype
|
36
57
|
attr_reader :allowable_values
|
@@ -58,6 +79,13 @@ module AsposeSlidesCloud
|
|
58
79
|
super.merge({
|
59
80
|
:'is_object_icon' => :'IsObjectIcon',
|
60
81
|
:'substitute_picture_title' => :'SubstitutePictureTitle',
|
82
|
+
:'substitute_picture_format' => :'SubstitutePictureFormat',
|
83
|
+
:'object_name' => :'ObjectName',
|
84
|
+
:'embedded_file_base64_data' => :'EmbeddedFileBase64Data',
|
85
|
+
:'embedded_file_extension' => :'EmbeddedFileExtension',
|
86
|
+
:'object_prog_id' => :'ObjectProgId',
|
87
|
+
:'link_path' => :'LinkPath',
|
88
|
+
:'update_automatic' => :'UpdateAutomatic',
|
61
89
|
})
|
62
90
|
end
|
63
91
|
|
@@ -66,6 +94,13 @@ module AsposeSlidesCloud
|
|
66
94
|
super.merge({
|
67
95
|
:'is_object_icon' => :'BOOLEAN',
|
68
96
|
:'substitute_picture_title' => :'String',
|
97
|
+
:'substitute_picture_format' => :'PictureFill',
|
98
|
+
:'object_name' => :'String',
|
99
|
+
:'embedded_file_base64_data' => :'String',
|
100
|
+
:'embedded_file_extension' => :'String',
|
101
|
+
:'object_prog_id' => :'String',
|
102
|
+
:'link_path' => :'String',
|
103
|
+
:'update_automatic' => :'BOOLEAN',
|
69
104
|
})
|
70
105
|
end
|
71
106
|
|
@@ -81,6 +116,34 @@ module AsposeSlidesCloud
|
|
81
116
|
if attributes.has_key?(:'SubstitutePictureTitle')
|
82
117
|
self.substitute_picture_title = attributes[:'SubstitutePictureTitle']
|
83
118
|
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'SubstitutePictureFormat')
|
121
|
+
self.substitute_picture_format = attributes[:'SubstitutePictureFormat']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'ObjectName')
|
125
|
+
self.object_name = attributes[:'ObjectName']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'EmbeddedFileBase64Data')
|
129
|
+
self.embedded_file_base64_data = attributes[:'EmbeddedFileBase64Data']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'EmbeddedFileExtension')
|
133
|
+
self.embedded_file_extension = attributes[:'EmbeddedFileExtension']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'ObjectProgId')
|
137
|
+
self.object_prog_id = attributes[:'ObjectProgId']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'LinkPath')
|
141
|
+
self.link_path = attributes[:'LinkPath']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'UpdateAutomatic')
|
145
|
+
self.update_automatic = attributes[:'UpdateAutomatic']
|
146
|
+
end
|
84
147
|
self.type = "OleObjectFrame"
|
85
148
|
end
|
86
149
|
|
@@ -119,7 +182,6 @@ module AsposeSlidesCloud
|
|
119
182
|
x == o.x &&
|
120
183
|
y == o.y &&
|
121
184
|
z_order_position == o.z_order_position &&
|
122
|
-
shapes == o.shapes &&
|
123
185
|
fill_format == o.fill_format &&
|
124
186
|
effect_format == o.effect_format &&
|
125
187
|
three_d_format == o.three_d_format &&
|
@@ -128,7 +190,14 @@ module AsposeSlidesCloud
|
|
128
190
|
hyperlink_mouse_over == o.hyperlink_mouse_over &&
|
129
191
|
type == o.type &&
|
130
192
|
is_object_icon == o.is_object_icon &&
|
131
|
-
substitute_picture_title == o.substitute_picture_title
|
193
|
+
substitute_picture_title == o.substitute_picture_title &&
|
194
|
+
substitute_picture_format == o.substitute_picture_format &&
|
195
|
+
object_name == o.object_name &&
|
196
|
+
embedded_file_base64_data == o.embedded_file_base64_data &&
|
197
|
+
embedded_file_extension == o.embedded_file_extension &&
|
198
|
+
object_prog_id == o.object_prog_id &&
|
199
|
+
link_path == o.link_path &&
|
200
|
+
update_automatic == o.update_automatic
|
132
201
|
end
|
133
202
|
|
134
203
|
# @see the `==` method
|
@@ -140,7 +209,7 @@ module AsposeSlidesCloud
|
|
140
209
|
# Calculates hash code according to all attributes.
|
141
210
|
# @return [Fixnum] Hash code
|
142
211
|
def hash
|
143
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
212
|
+
[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, is_object_icon, substitute_picture_title, substitute_picture_format, object_name, embedded_file_base64_data, embedded_file_extension, object_prog_id, link_path, update_automatic].hash
|
144
213
|
end
|
145
214
|
|
146
215
|
# Builds the object from hash
|
@@ -85,6 +85,9 @@ module AsposeSlidesCloud
|
|
85
85
|
# List of portion links.
|
86
86
|
attr_accessor :portion_list
|
87
87
|
|
88
|
+
# Default portion format.
|
89
|
+
attr_accessor :default_portion_format
|
90
|
+
|
88
91
|
class EnumAttributeValidator
|
89
92
|
attr_reader :datatype
|
90
93
|
attr_reader :allowable_values
|
@@ -130,6 +133,7 @@ module AsposeSlidesCloud
|
|
130
133
|
:'latin_line_break' => :'LatinLineBreak',
|
131
134
|
:'right_to_left' => :'RightToLeft',
|
132
135
|
:'portion_list' => :'PortionList',
|
136
|
+
:'default_portion_format' => :'DefaultPortionFormat',
|
133
137
|
})
|
134
138
|
end
|
135
139
|
|
@@ -156,6 +160,7 @@ module AsposeSlidesCloud
|
|
156
160
|
:'latin_line_break' => :'String',
|
157
161
|
:'right_to_left' => :'String',
|
158
162
|
:'portion_list' => :'Array<Portion>',
|
163
|
+
:'default_portion_format' => :'PortionFormat',
|
159
164
|
})
|
160
165
|
end
|
161
166
|
|
@@ -245,6 +250,10 @@ module AsposeSlidesCloud
|
|
245
250
|
self.portion_list = value
|
246
251
|
end
|
247
252
|
end
|
253
|
+
|
254
|
+
if attributes.has_key?(:'DefaultPortionFormat')
|
255
|
+
self.default_portion_format = attributes[:'DefaultPortionFormat']
|
256
|
+
end
|
248
257
|
end
|
249
258
|
|
250
259
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -383,7 +392,8 @@ module AsposeSlidesCloud
|
|
383
392
|
east_asian_line_break == o.east_asian_line_break &&
|
384
393
|
latin_line_break == o.latin_line_break &&
|
385
394
|
right_to_left == o.right_to_left &&
|
386
|
-
portion_list == o.portion_list
|
395
|
+
portion_list == o.portion_list &&
|
396
|
+
default_portion_format == o.default_portion_format
|
387
397
|
end
|
388
398
|
|
389
399
|
# @see the `==` method
|
@@ -395,7 +405,7 @@ module AsposeSlidesCloud
|
|
395
405
|
# Calculates hash code according to all attributes.
|
396
406
|
# @return [Fixnum] Hash code
|
397
407
|
def hash
|
398
|
-
[self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list].hash
|
408
|
+
[self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list, default_portion_format].hash
|
399
409
|
end
|
400
410
|
|
401
411
|
# Builds the object from hash
|
@@ -150,7 +150,7 @@ module AsposeSlidesCloud
|
|
150
150
|
:'show_comments_by_no_author' => :'BOOLEAN',
|
151
151
|
:'image_transparent_color' => :'String',
|
152
152
|
:'apply_image_transparent' => :'BOOLEAN',
|
153
|
-
:'access_permissions' => :'
|
153
|
+
:'access_permissions' => :'AccessPermissions',
|
154
154
|
})
|
155
155
|
end
|
156
156
|
|
@@ -258,8 +258,6 @@ module AsposeSlidesCloud
|
|
258
258
|
return false unless notes_position_validator.valid?(@notes_position)
|
259
259
|
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
260
260
|
return false unless comments_position_validator.valid?(@comments_position)
|
261
|
-
access_permissions_validator = EnumAttributeValidator.new('String', ['None', 'PrintDocument', 'ModifyContent', 'CopyTextAndGraphics', 'AddOrModifyFields', 'FillExistingFields', 'ExtractTextAndGraphics', 'AssembleDocument', 'HighQualityPrint'])
|
262
|
-
return false unless access_permissions_validator.valid?(@access_permissions)
|
263
261
|
true
|
264
262
|
end
|
265
263
|
|
@@ -303,24 +301,12 @@ module AsposeSlidesCloud
|
|
303
301
|
@comments_position = comments_position
|
304
302
|
end
|
305
303
|
|
306
|
-
# Custom attribute writer method checking allowed values (enum).
|
307
|
-
# @param [Object] access_permissions Object to be assigned
|
308
|
-
def access_permissions=(access_permissions)
|
309
|
-
validator = EnumAttributeValidator.new('String', ['None', 'PrintDocument', 'ModifyContent', 'CopyTextAndGraphics', 'AddOrModifyFields', 'FillExistingFields', 'ExtractTextAndGraphics', 'AssembleDocument', 'HighQualityPrint'])
|
310
|
-
unless validator.valid?(access_permissions)
|
311
|
-
fail ArgumentError, 'invalid value for "access_permissions", must be one of #{validator.allowable_values}.'
|
312
|
-
end
|
313
|
-
@access_permissions = access_permissions
|
314
|
-
end
|
315
|
-
|
316
304
|
# Checks equality by comparing each attribute.
|
317
305
|
# @param [Object] Object to be compared
|
318
306
|
def ==(o)
|
319
307
|
return true if self.equal?(o)
|
320
308
|
self.class == o.class &&
|
321
309
|
default_regular_font == o.default_regular_font &&
|
322
|
-
height == o.height &&
|
323
|
-
width == o.width &&
|
324
310
|
font_fallback_rules == o.font_fallback_rules &&
|
325
311
|
format == o.format &&
|
326
312
|
text_compression == o.text_compression &&
|
@@ -353,7 +339,7 @@ module AsposeSlidesCloud
|
|
353
339
|
# Calculates hash code according to all attributes.
|
354
340
|
# @return [Fixnum] Hash code
|
355
341
|
def hash
|
356
|
-
[default_regular_font,
|
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
|
357
343
|
end
|
358
344
|
|
359
345
|
# 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 &&
|
@@ -126,7 +125,7 @@ module AsposeSlidesCloud
|
|
126
125
|
# Calculates hash code according to all attributes.
|
127
126
|
# @return [Fixnum] Hash code
|
128
127
|
def hash
|
129
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
128
|
+
[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
|
130
129
|
end
|
131
130
|
|
132
131
|
# Builds the object from hash
|