aspose_slides_cloud 24.1.0 → 24.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -15
- data/README.md +17 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +157 -22
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/models/audio_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/chart.rb +2 -1
- data/lib/aspose_slides_cloud/models/comment_author.rb +101 -0
- data/lib/aspose_slides_cloud/models/comment_authors.rb +93 -0
- data/lib/aspose_slides_cloud/models/connector.rb +2 -1
- data/lib/aspose_slides_cloud/models/effect.rb +23 -1
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/graphical_object.rb +2 -1
- data/lib/aspose_slides_cloud/models/group_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/handout_layouting_options.rb +133 -0
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +22 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -66
- data/lib/aspose_slides_cloud/models/notes_comments_layouting_options.rb +155 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +8 -72
- data/lib/aspose_slides_cloud/models/picture_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape_base.rb +11 -1
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/slide_show_properties.rb +11 -1
- data/lib/aspose_slides_cloud/models/slides_layout_options.rb +102 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +2 -1
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +2 -1
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +23 -65
- data/lib/aspose_slides_cloud/models/video_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +2 -1
- data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +8 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +5 -0
- data/spec/api/slides_api_spec.rb +289 -0
- data/spec/use_cases/comment_spec.rb +8 -0
- data/spec/use_cases/image_spec.rb +27 -0
- data/testRules.json +2 -0
- metadata +7 -2
@@ -25,40 +25,25 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in an image format.
|
27
27
|
class ImageExportOptions < ImageExportOptionsBase
|
28
|
-
# Gets or sets the position of the notes on the page.
|
29
|
-
attr_accessor :notes_position
|
30
|
-
|
31
|
-
# Gets or sets the position of the comments on the page.
|
32
|
-
attr_accessor :comments_position
|
33
|
-
|
34
|
-
# Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
|
35
|
-
attr_accessor :comments_area_width
|
36
|
-
|
37
|
-
# Gets or sets the color of comments area (Applies only if comments are displayed on the right).
|
38
|
-
attr_accessor :comments_area_color
|
39
|
-
|
40
28
|
# Show hidden slides. If true, hidden are exported.
|
41
29
|
attr_accessor :show_hidden_slides
|
42
30
|
|
31
|
+
# Slides layouting options
|
32
|
+
attr_accessor :slides_layout_options
|
33
|
+
|
43
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
35
|
def self.attribute_map
|
45
36
|
super.merge({
|
46
|
-
:'notes_position' => :'NotesPosition',
|
47
|
-
:'comments_position' => :'CommentsPosition',
|
48
|
-
:'comments_area_width' => :'CommentsAreaWidth',
|
49
|
-
:'comments_area_color' => :'CommentsAreaColor',
|
50
37
|
:'show_hidden_slides' => :'ShowHiddenSlides',
|
38
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
51
39
|
})
|
52
40
|
end
|
53
41
|
|
54
42
|
# Attribute type mapping.
|
55
43
|
def self.swagger_types
|
56
44
|
super.merge({
|
57
|
-
:'notes_position' => :'String',
|
58
|
-
:'comments_position' => :'String',
|
59
|
-
:'comments_area_width' => :'Integer',
|
60
|
-
:'comments_area_color' => :'String',
|
61
45
|
:'show_hidden_slides' => :'BOOLEAN',
|
46
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
62
47
|
})
|
63
48
|
end
|
64
49
|
|
@@ -67,25 +52,13 @@ module AsposeSlidesCloud
|
|
67
52
|
def initialize(attributes = {})
|
68
53
|
super
|
69
54
|
|
70
|
-
if attributes.has_key?(:'NotesPosition')
|
71
|
-
self.notes_position = attributes[:'NotesPosition']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.has_key?(:'CommentsPosition')
|
75
|
-
self.comments_position = attributes[:'CommentsPosition']
|
76
|
-
end
|
77
|
-
|
78
|
-
if attributes.has_key?(:'CommentsAreaWidth')
|
79
|
-
self.comments_area_width = attributes[:'CommentsAreaWidth']
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.has_key?(:'CommentsAreaColor')
|
83
|
-
self.comments_area_color = attributes[:'CommentsAreaColor']
|
84
|
-
end
|
85
|
-
|
86
55
|
if attributes.has_key?(:'ShowHiddenSlides')
|
87
56
|
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
88
57
|
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'SlidesLayoutOptions')
|
60
|
+
self.slides_layout_options = attributes[:'SlidesLayoutOptions']
|
61
|
+
end
|
89
62
|
self.format = 'image'
|
90
63
|
end
|
91
64
|
|
@@ -100,33 +73,9 @@ module AsposeSlidesCloud
|
|
100
73
|
# @return true if the model is valid
|
101
74
|
def valid?
|
102
75
|
return false if !super
|
103
|
-
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
104
|
-
return false unless notes_position_validator.valid?(@notes_position)
|
105
|
-
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
106
|
-
return false unless comments_position_validator.valid?(@comments_position)
|
107
76
|
true
|
108
77
|
end
|
109
78
|
|
110
|
-
# Custom attribute writer method checking allowed values (enum).
|
111
|
-
# @param [Object] notes_position Object to be assigned
|
112
|
-
def notes_position=(notes_position)
|
113
|
-
validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
114
|
-
unless validator.valid?(notes_position)
|
115
|
-
fail ArgumentError, 'invalid value for "notes_position", must be one of #{validator.allowable_values}.'
|
116
|
-
end
|
117
|
-
@notes_position = notes_position
|
118
|
-
end
|
119
|
-
|
120
|
-
# Custom attribute writer method checking allowed values (enum).
|
121
|
-
# @param [Object] comments_position Object to be assigned
|
122
|
-
def comments_position=(comments_position)
|
123
|
-
validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
124
|
-
unless validator.valid?(comments_position)
|
125
|
-
fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
|
126
|
-
end
|
127
|
-
@comments_position = comments_position
|
128
|
-
end
|
129
|
-
|
130
79
|
# Checks equality by comparing each attribute.
|
131
80
|
# @param [Object] Object to be compared
|
132
81
|
def ==(o)
|
@@ -138,11 +87,8 @@ module AsposeSlidesCloud
|
|
138
87
|
format == o.format &&
|
139
88
|
height == o.height &&
|
140
89
|
width == o.width &&
|
141
|
-
|
142
|
-
|
143
|
-
comments_area_width == o.comments_area_width &&
|
144
|
-
comments_area_color == o.comments_area_color &&
|
145
|
-
show_hidden_slides == o.show_hidden_slides
|
90
|
+
show_hidden_slides == o.show_hidden_slides &&
|
91
|
+
slides_layout_options == o.slides_layout_options
|
146
92
|
end
|
147
93
|
|
148
94
|
# @see the `==` method
|
@@ -154,7 +100,7 @@ module AsposeSlidesCloud
|
|
154
100
|
# Calculates hash code according to all attributes.
|
155
101
|
# @return [Fixnum] Hash code
|
156
102
|
def hash
|
157
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width,
|
103
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, show_hidden_slides, slides_layout_options].hash
|
158
104
|
end
|
159
105
|
end
|
160
106
|
end
|
@@ -0,0 +1,155 @@
|
|
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
|
+
# Notes & comments layouting options.
|
27
|
+
class NotesCommentsLayoutingOptions < SlidesLayoutOptions
|
28
|
+
# Gets or sets the position of the notes on the page.
|
29
|
+
attr_accessor :notes_position
|
30
|
+
|
31
|
+
# Gets or sets the position of the comments on the page.
|
32
|
+
attr_accessor :comments_position
|
33
|
+
|
34
|
+
# Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
|
35
|
+
attr_accessor :comments_area_width
|
36
|
+
|
37
|
+
# Gets or sets the color of comments area (Applies only if comments are displayed on the right).
|
38
|
+
attr_accessor :comments_area_color
|
39
|
+
|
40
|
+
# True if comments that have no author are displayed. (Applies only if comments are displayed).
|
41
|
+
attr_accessor :show_comments_by_no_author
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
super.merge({
|
46
|
+
:'notes_position' => :'NotesPosition',
|
47
|
+
:'comments_position' => :'CommentsPosition',
|
48
|
+
:'comments_area_width' => :'CommentsAreaWidth',
|
49
|
+
:'comments_area_color' => :'CommentsAreaColor',
|
50
|
+
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
51
|
+
})
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.swagger_types
|
56
|
+
super.merge({
|
57
|
+
:'notes_position' => :'String',
|
58
|
+
:'comments_position' => :'String',
|
59
|
+
:'comments_area_width' => :'Integer',
|
60
|
+
:'comments_area_color' => :'String',
|
61
|
+
:'show_comments_by_no_author' => :'BOOLEAN',
|
62
|
+
})
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
super
|
69
|
+
|
70
|
+
if attributes.has_key?(:'NotesPosition')
|
71
|
+
self.notes_position = attributes[:'NotesPosition']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'CommentsPosition')
|
75
|
+
self.comments_position = attributes[:'CommentsPosition']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'CommentsAreaWidth')
|
79
|
+
self.comments_area_width = attributes[:'CommentsAreaWidth']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'CommentsAreaColor')
|
83
|
+
self.comments_area_color = attributes[:'CommentsAreaColor']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'ShowCommentsByNoAuthor')
|
87
|
+
self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
|
88
|
+
end
|
89
|
+
self.layout_type = 'NotesComments'
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = super
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
return false if !super
|
103
|
+
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
104
|
+
return false unless notes_position_validator.valid?(@notes_position)
|
105
|
+
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
106
|
+
return false unless comments_position_validator.valid?(@comments_position)
|
107
|
+
true
|
108
|
+
end
|
109
|
+
|
110
|
+
# Custom attribute writer method checking allowed values (enum).
|
111
|
+
# @param [Object] notes_position Object to be assigned
|
112
|
+
def notes_position=(notes_position)
|
113
|
+
validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
114
|
+
unless validator.valid?(notes_position)
|
115
|
+
fail ArgumentError, 'invalid value for "notes_position", must be one of #{validator.allowable_values}.'
|
116
|
+
end
|
117
|
+
@notes_position = notes_position
|
118
|
+
end
|
119
|
+
|
120
|
+
# Custom attribute writer method checking allowed values (enum).
|
121
|
+
# @param [Object] comments_position Object to be assigned
|
122
|
+
def comments_position=(comments_position)
|
123
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
124
|
+
unless validator.valid?(comments_position)
|
125
|
+
fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
|
126
|
+
end
|
127
|
+
@comments_position = comments_position
|
128
|
+
end
|
129
|
+
|
130
|
+
# Checks equality by comparing each attribute.
|
131
|
+
# @param [Object] Object to be compared
|
132
|
+
def ==(o)
|
133
|
+
return true if self.equal?(o)
|
134
|
+
self.class == o.class &&
|
135
|
+
layout_type == o.layout_type &&
|
136
|
+
notes_position == o.notes_position &&
|
137
|
+
comments_position == o.comments_position &&
|
138
|
+
comments_area_width == o.comments_area_width &&
|
139
|
+
comments_area_color == o.comments_area_color &&
|
140
|
+
show_comments_by_no_author == o.show_comments_by_no_author
|
141
|
+
end
|
142
|
+
|
143
|
+
# @see the `==` method
|
144
|
+
# @param [Object] Object to be compared
|
145
|
+
def eql?(o)
|
146
|
+
self == o
|
147
|
+
end
|
148
|
+
|
149
|
+
# Calculates hash code according to all attributes.
|
150
|
+
# @return [Fixnum] Hash code
|
151
|
+
def hash
|
152
|
+
[layout_type, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
@@ -157,6 +157,7 @@ module AsposeSlidesCloud
|
|
157
157
|
alternative_text == o.alternative_text &&
|
158
158
|
alternative_text_title == o.alternative_text_title &&
|
159
159
|
hidden == o.hidden &&
|
160
|
+
is_decorative == o.is_decorative &&
|
160
161
|
x == o.x &&
|
161
162
|
y == o.y &&
|
162
163
|
z_order_position == o.z_order_position &&
|
@@ -187,7 +188,7 @@ module AsposeSlidesCloud
|
|
187
188
|
# Calculates hash code according to all attributes.
|
188
189
|
# @return [Fixnum] Hash code
|
189
190
|
def hash
|
190
|
-
[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
|
191
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, 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
|
191
192
|
end
|
192
193
|
end
|
193
194
|
end
|
@@ -58,20 +58,8 @@ module AsposeSlidesCloud
|
|
58
58
|
# Returns or sets an array of user-defined names of font families which Aspose.Slides should consider common.
|
59
59
|
attr_accessor :additional_common_font_families
|
60
60
|
|
61
|
-
#
|
62
|
-
attr_accessor :
|
63
|
-
|
64
|
-
# Gets or sets the position of the comments on the page.
|
65
|
-
attr_accessor :comments_position
|
66
|
-
|
67
|
-
# Gets or sets the width of the comment output area in pixels (Applies only if comments are displayed on the right).
|
68
|
-
attr_accessor :comments_area_width
|
69
|
-
|
70
|
-
# Gets or sets the color of comments area (Applies only if comments are displayed on the right).
|
71
|
-
attr_accessor :comments_area_color
|
72
|
-
|
73
|
-
# True if comments that have no author are displayed. (Applies only if comments are displayed).
|
74
|
-
attr_accessor :show_comments_by_no_author
|
61
|
+
# Slides layouting options
|
62
|
+
attr_accessor :slides_layout_options
|
75
63
|
|
76
64
|
# Image transparent color.
|
77
65
|
attr_accessor :image_transparent_color
|
@@ -96,11 +84,7 @@ module AsposeSlidesCloud
|
|
96
84
|
:'password' => :'Password',
|
97
85
|
:'embed_true_type_fonts_for_ascii' => :'EmbedTrueTypeFontsForASCII',
|
98
86
|
:'additional_common_font_families' => :'AdditionalCommonFontFamilies',
|
99
|
-
:'
|
100
|
-
:'comments_position' => :'CommentsPosition',
|
101
|
-
:'comments_area_width' => :'CommentsAreaWidth',
|
102
|
-
:'comments_area_color' => :'CommentsAreaColor',
|
103
|
-
:'show_comments_by_no_author' => :'ShowCommentsByNoAuthor',
|
87
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
104
88
|
:'image_transparent_color' => :'ImageTransparentColor',
|
105
89
|
:'apply_image_transparent' => :'ApplyImageTransparent',
|
106
90
|
:'access_permissions' => :'AccessPermissions',
|
@@ -121,11 +105,7 @@ module AsposeSlidesCloud
|
|
121
105
|
:'password' => :'String',
|
122
106
|
:'embed_true_type_fonts_for_ascii' => :'BOOLEAN',
|
123
107
|
:'additional_common_font_families' => :'Array<String>',
|
124
|
-
:'
|
125
|
-
:'comments_position' => :'String',
|
126
|
-
:'comments_area_width' => :'Integer',
|
127
|
-
:'comments_area_color' => :'String',
|
128
|
-
:'show_comments_by_no_author' => :'BOOLEAN',
|
108
|
+
:'slides_layout_options' => :'SlidesLayoutOptions',
|
129
109
|
:'image_transparent_color' => :'String',
|
130
110
|
:'apply_image_transparent' => :'BOOLEAN',
|
131
111
|
:'access_permissions' => :'AccessPermissions',
|
@@ -183,24 +163,8 @@ module AsposeSlidesCloud
|
|
183
163
|
end
|
184
164
|
end
|
185
165
|
|
186
|
-
if attributes.has_key?(:'
|
187
|
-
self.
|
188
|
-
end
|
189
|
-
|
190
|
-
if attributes.has_key?(:'CommentsPosition')
|
191
|
-
self.comments_position = attributes[:'CommentsPosition']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.has_key?(:'CommentsAreaWidth')
|
195
|
-
self.comments_area_width = attributes[:'CommentsAreaWidth']
|
196
|
-
end
|
197
|
-
|
198
|
-
if attributes.has_key?(:'CommentsAreaColor')
|
199
|
-
self.comments_area_color = attributes[:'CommentsAreaColor']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes.has_key?(:'ShowCommentsByNoAuthor')
|
203
|
-
self.show_comments_by_no_author = attributes[:'ShowCommentsByNoAuthor']
|
166
|
+
if attributes.has_key?(:'SlidesLayoutOptions')
|
167
|
+
self.slides_layout_options = attributes[:'SlidesLayoutOptions']
|
204
168
|
end
|
205
169
|
|
206
170
|
if attributes.has_key?(:'ImageTransparentColor')
|
@@ -232,10 +196,6 @@ module AsposeSlidesCloud
|
|
232
196
|
return false unless text_compression_validator.valid?(@text_compression)
|
233
197
|
compliance_validator = EnumAttributeValidator.new('String', ['Pdf15', 'Pdf16', 'Pdf17', 'PdfA1b', 'PdfA1a', 'PdfA2b', 'PdfA2a', 'PdfA3b', 'PdfA3a', 'PdfUa', 'PdfA2u'])
|
234
198
|
return false unless compliance_validator.valid?(@compliance)
|
235
|
-
notes_position_validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
236
|
-
return false unless notes_position_validator.valid?(@notes_position)
|
237
|
-
comments_position_validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
238
|
-
return false unless comments_position_validator.valid?(@comments_position)
|
239
199
|
true
|
240
200
|
end
|
241
201
|
|
@@ -259,26 +219,6 @@ module AsposeSlidesCloud
|
|
259
219
|
@compliance = compliance
|
260
220
|
end
|
261
221
|
|
262
|
-
# Custom attribute writer method checking allowed values (enum).
|
263
|
-
# @param [Object] notes_position Object to be assigned
|
264
|
-
def notes_position=(notes_position)
|
265
|
-
validator = EnumAttributeValidator.new('String', ['None', 'BottomFull', 'BottomTruncated'])
|
266
|
-
unless validator.valid?(notes_position)
|
267
|
-
fail ArgumentError, 'invalid value for "notes_position", must be one of #{validator.allowable_values}.'
|
268
|
-
end
|
269
|
-
@notes_position = notes_position
|
270
|
-
end
|
271
|
-
|
272
|
-
# Custom attribute writer method checking allowed values (enum).
|
273
|
-
# @param [Object] comments_position Object to be assigned
|
274
|
-
def comments_position=(comments_position)
|
275
|
-
validator = EnumAttributeValidator.new('String', ['None', 'Bottom', 'Right'])
|
276
|
-
unless validator.valid?(comments_position)
|
277
|
-
fail ArgumentError, 'invalid value for "comments_position", must be one of #{validator.allowable_values}.'
|
278
|
-
end
|
279
|
-
@comments_position = comments_position
|
280
|
-
end
|
281
|
-
|
282
222
|
# Checks equality by comparing each attribute.
|
283
223
|
# @param [Object] Object to be compared
|
284
224
|
def ==(o)
|
@@ -299,11 +239,7 @@ module AsposeSlidesCloud
|
|
299
239
|
password == o.password &&
|
300
240
|
embed_true_type_fonts_for_ascii == o.embed_true_type_fonts_for_ascii &&
|
301
241
|
additional_common_font_families == o.additional_common_font_families &&
|
302
|
-
|
303
|
-
comments_position == o.comments_position &&
|
304
|
-
comments_area_width == o.comments_area_width &&
|
305
|
-
comments_area_color == o.comments_area_color &&
|
306
|
-
show_comments_by_no_author == o.show_comments_by_no_author &&
|
242
|
+
slides_layout_options == o.slides_layout_options &&
|
307
243
|
image_transparent_color == o.image_transparent_color &&
|
308
244
|
apply_image_transparent == o.apply_image_transparent &&
|
309
245
|
access_permissions == o.access_permissions
|
@@ -318,7 +254,7 @@ module AsposeSlidesCloud
|
|
318
254
|
# Calculates hash code according to all attributes.
|
319
255
|
# @return [Fixnum] Hash code
|
320
256
|
def hash
|
321
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families,
|
257
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, text_compression, embed_full_fonts, compliance, sufficient_resolution, jpeg_quality, draw_slides_frame, show_hidden_slides, save_metafiles_as_png, password, embed_true_type_fonts_for_ascii, additional_common_font_families, slides_layout_options, image_transparent_color, apply_image_transparent, access_permissions].hash
|
322
258
|
end
|
323
259
|
end
|
324
260
|
end
|
@@ -80,6 +80,7 @@ module AsposeSlidesCloud
|
|
80
80
|
alternative_text == o.alternative_text &&
|
81
81
|
alternative_text_title == o.alternative_text_title &&
|
82
82
|
hidden == o.hidden &&
|
83
|
+
is_decorative == o.is_decorative &&
|
83
84
|
x == o.x &&
|
84
85
|
y == o.y &&
|
85
86
|
z_order_position == o.z_order_position &&
|
@@ -103,7 +104,7 @@ module AsposeSlidesCloud
|
|
103
104
|
# Calculates hash code according to all attributes.
|
104
105
|
# @return [Fixnum] Hash code
|
105
106
|
def hash
|
106
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, picture_fill_format].hash
|
107
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, picture_fill_format].hash
|
107
108
|
end
|
108
109
|
end
|
109
110
|
end
|
@@ -87,7 +87,7 @@ module AsposeSlidesCloud
|
|
87
87
|
def valid?
|
88
88
|
return false if !super
|
89
89
|
return false if @format.nil?
|
90
|
-
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4'])
|
90
|
+
format_validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'])
|
91
91
|
return false unless format_validator.valid?(@format)
|
92
92
|
true
|
93
93
|
end
|
@@ -95,7 +95,7 @@ module AsposeSlidesCloud
|
|
95
95
|
# Custom attribute writer method checking allowed values (enum).
|
96
96
|
# @param [Object] format Object to be assigned
|
97
97
|
def format=(format)
|
98
|
-
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4'])
|
98
|
+
validator = EnumAttributeValidator.new('String', ['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'])
|
99
99
|
unless validator.valid?(format)
|
100
100
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
101
101
|
end
|
@@ -118,7 +118,7 @@ module AsposeSlidesCloud
|
|
118
118
|
def valid?
|
119
119
|
return false if !super
|
120
120
|
return false if @format.nil?
|
121
|
-
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5'])
|
121
|
+
format_validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
|
122
122
|
return false unless format_validator.valid?(@format)
|
123
123
|
return false if @position.nil?
|
124
124
|
true
|
@@ -127,7 +127,7 @@ module AsposeSlidesCloud
|
|
127
127
|
# Custom attribute writer method checking allowed values (enum).
|
128
128
|
# @param [Object] format Object to be assigned
|
129
129
|
def format=(format)
|
130
|
-
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5'])
|
130
|
+
validator = EnumAttributeValidator.new('String', ['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'])
|
131
131
|
unless validator.valid?(format)
|
132
132
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
133
133
|
end
|
@@ -80,6 +80,7 @@ module AsposeSlidesCloud
|
|
80
80
|
alternative_text == o.alternative_text &&
|
81
81
|
alternative_text_title == o.alternative_text_title &&
|
82
82
|
hidden == o.hidden &&
|
83
|
+
is_decorative == o.is_decorative &&
|
83
84
|
x == o.x &&
|
84
85
|
y == o.y &&
|
85
86
|
z_order_position == o.z_order_position &&
|
@@ -107,7 +108,7 @@ module AsposeSlidesCloud
|
|
107
108
|
# Calculates hash code according to all attributes.
|
108
109
|
# @return [Fixnum] Hash code
|
109
110
|
def hash
|
110
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
|
111
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, image_type, return_to_parent, show_background, image, transition_duration, target_section_index].hash
|
111
112
|
end
|
112
113
|
end
|
113
114
|
end
|
@@ -98,6 +98,7 @@ module AsposeSlidesCloud
|
|
98
98
|
alternative_text == o.alternative_text &&
|
99
99
|
alternative_text_title == o.alternative_text_title &&
|
100
100
|
hidden == o.hidden &&
|
101
|
+
is_decorative == o.is_decorative &&
|
101
102
|
x == o.x &&
|
102
103
|
y == o.y &&
|
103
104
|
z_order_position == o.z_order_position &&
|
@@ -123,7 +124,7 @@ module AsposeSlidesCloud
|
|
123
124
|
# Calculates hash code according to all attributes.
|
124
125
|
# @return [Fixnum] Hash code
|
125
126
|
def hash
|
126
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, text, paragraphs, text_frame_format].hash
|
127
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, text, paragraphs, text_frame_format].hash
|
127
128
|
end
|
128
129
|
end
|
129
130
|
end
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
43
43
|
# Gets or sets a value indicating whether this ShapeBase is hidden.
|
44
44
|
attr_accessor :hidden
|
45
45
|
|
46
|
+
# Gets or sets 'Mark as decorative' option.
|
47
|
+
attr_accessor :is_decorative
|
48
|
+
|
46
49
|
# Gets or sets the X
|
47
50
|
attr_accessor :x
|
48
51
|
|
@@ -81,6 +84,7 @@ module AsposeSlidesCloud
|
|
81
84
|
:'alternative_text' => :'AlternativeText',
|
82
85
|
:'alternative_text_title' => :'AlternativeTextTitle',
|
83
86
|
:'hidden' => :'Hidden',
|
87
|
+
:'is_decorative' => :'IsDecorative',
|
84
88
|
:'x' => :'X',
|
85
89
|
:'y' => :'Y',
|
86
90
|
:'z_order_position' => :'ZOrderPosition',
|
@@ -103,6 +107,7 @@ module AsposeSlidesCloud
|
|
103
107
|
:'alternative_text' => :'String',
|
104
108
|
:'alternative_text_title' => :'String',
|
105
109
|
:'hidden' => :'BOOLEAN',
|
110
|
+
:'is_decorative' => :'BOOLEAN',
|
106
111
|
:'x' => :'Float',
|
107
112
|
:'y' => :'Float',
|
108
113
|
:'z_order_position' => :'Integer',
|
@@ -145,6 +150,10 @@ module AsposeSlidesCloud
|
|
145
150
|
self.hidden = attributes[:'Hidden']
|
146
151
|
end
|
147
152
|
|
153
|
+
if attributes.has_key?(:'IsDecorative')
|
154
|
+
self.is_decorative = attributes[:'IsDecorative']
|
155
|
+
end
|
156
|
+
|
148
157
|
if attributes.has_key?(:'X')
|
149
158
|
self.x = attributes[:'X']
|
150
159
|
end
|
@@ -230,6 +239,7 @@ module AsposeSlidesCloud
|
|
230
239
|
alternative_text == o.alternative_text &&
|
231
240
|
alternative_text_title == o.alternative_text_title &&
|
232
241
|
hidden == o.hidden &&
|
242
|
+
is_decorative == o.is_decorative &&
|
233
243
|
x == o.x &&
|
234
244
|
y == o.y &&
|
235
245
|
z_order_position == o.z_order_position &&
|
@@ -251,7 +261,7 @@ module AsposeSlidesCloud
|
|
251
261
|
# Calculates hash code according to all attributes.
|
252
262
|
# @return [Fixnum] Hash code
|
253
263
|
def hash
|
254
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
|
264
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash
|
255
265
|
end
|
256
266
|
end
|
257
267
|
end
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
43
43
|
# Show narrration.
|
44
44
|
attr_accessor :show_narration
|
45
45
|
|
46
|
+
# Show media controls.
|
47
|
+
attr_accessor :show_media_controls
|
48
|
+
|
46
49
|
# Use timings.
|
47
50
|
attr_accessor :use_timings
|
48
51
|
|
@@ -61,6 +64,7 @@ module AsposeSlidesCloud
|
|
61
64
|
:'pen_color' => :'PenColor',
|
62
65
|
:'show_animation' => :'ShowAnimation',
|
63
66
|
:'show_narration' => :'ShowNarration',
|
67
|
+
:'show_media_controls' => :'ShowMediaControls',
|
64
68
|
:'use_timings' => :'UseTimings',
|
65
69
|
:'slide_show_type' => :'SlideShowType',
|
66
70
|
:'show_scrollbar' => :'ShowScrollbar',
|
@@ -76,6 +80,7 @@ module AsposeSlidesCloud
|
|
76
80
|
:'pen_color' => :'String',
|
77
81
|
:'show_animation' => :'BOOLEAN',
|
78
82
|
:'show_narration' => :'BOOLEAN',
|
83
|
+
:'show_media_controls' => :'BOOLEAN',
|
79
84
|
:'use_timings' => :'BOOLEAN',
|
80
85
|
:'slide_show_type' => :'String',
|
81
86
|
:'show_scrollbar' => :'BOOLEAN',
|
@@ -111,6 +116,10 @@ module AsposeSlidesCloud
|
|
111
116
|
self.show_narration = attributes[:'ShowNarration']
|
112
117
|
end
|
113
118
|
|
119
|
+
if attributes.has_key?(:'ShowMediaControls')
|
120
|
+
self.show_media_controls = attributes[:'ShowMediaControls']
|
121
|
+
end
|
122
|
+
|
114
123
|
if attributes.has_key?(:'UseTimings')
|
115
124
|
self.use_timings = attributes[:'UseTimings']
|
116
125
|
end
|
@@ -163,6 +172,7 @@ module AsposeSlidesCloud
|
|
163
172
|
pen_color == o.pen_color &&
|
164
173
|
show_animation == o.show_animation &&
|
165
174
|
show_narration == o.show_narration &&
|
175
|
+
show_media_controls == o.show_media_controls &&
|
166
176
|
use_timings == o.use_timings &&
|
167
177
|
slide_show_type == o.slide_show_type &&
|
168
178
|
show_scrollbar == o.show_scrollbar
|
@@ -177,7 +187,7 @@ module AsposeSlidesCloud
|
|
177
187
|
# Calculates hash code according to all attributes.
|
178
188
|
# @return [Fixnum] Hash code
|
179
189
|
def hash
|
180
|
-
[self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, use_timings, slide_show_type, show_scrollbar].hash
|
190
|
+
[self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, show_media_controls, use_timings, slide_show_type, show_scrollbar].hash
|
181
191
|
end
|
182
192
|
end
|
183
193
|
end
|