aspose_slides_cloud 24.2.0 → 24.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.lock +6 -6
- data/README.md +18 -0
- data/docker-entrypoint.sh +5 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +290 -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/bubble_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/chart.rb +2 -1
- data/lib/aspose_slides_cloud/models/connector.rb +2 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +11 -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/markdown_export_options.rb +190 -0
- data/lib/aspose_slides_cloud/models/math_format.rb +40 -0
- 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/one_value_chart_data_point.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/scatter_chart_data_point.rb +2 -1
- 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 +782 -0
- data/spec/use_cases/image_spec.rb +27 -0
- data/spec/use_cases/math_spec.rb +3 -3
- data/testRules.json +6 -2
- metadata +7 -2
@@ -0,0 +1,190 @@
|
|
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
|
+
# Provides options that control how a presentation is saved in Html5 format.
|
27
|
+
class MarkdownExportOptions < ExportOptions
|
28
|
+
# Specifies markdown specification to convert presentation. Default is TextOnly.
|
29
|
+
attr_accessor :export_type
|
30
|
+
|
31
|
+
# Specifies markdown specification to convert presentation. Default is MultiMarkdown.
|
32
|
+
attr_accessor :flavor
|
33
|
+
|
34
|
+
# Specifies whether the generated document should have new lines of \\\\r(Macintosh), \\\\n(Unix) or \\\\r\\\\n(Windows). Default is Unix.
|
35
|
+
attr_accessor :new_line_type
|
36
|
+
|
37
|
+
# Specifies folder name to save images. Default is Images.
|
38
|
+
attr_accessor :images_save_folder_name
|
39
|
+
|
40
|
+
# Specifies whether the generated document should include slide number. Default is false.
|
41
|
+
attr_accessor :show_slide_number
|
42
|
+
|
43
|
+
# Specifies whether the generated document should include comments. Default is false.
|
44
|
+
attr_accessor :show_comments
|
45
|
+
|
46
|
+
# Specifies whether the generated document should include hidden slides. Default is false.
|
47
|
+
attr_accessor :show_hidden_slides
|
48
|
+
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
50
|
+
def self.attribute_map
|
51
|
+
super.merge({
|
52
|
+
:'export_type' => :'ExportType',
|
53
|
+
:'flavor' => :'Flavor',
|
54
|
+
:'new_line_type' => :'NewLineType',
|
55
|
+
:'images_save_folder_name' => :'ImagesSaveFolderName',
|
56
|
+
:'show_slide_number' => :'ShowSlideNumber',
|
57
|
+
:'show_comments' => :'ShowComments',
|
58
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
59
|
+
})
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.swagger_types
|
64
|
+
super.merge({
|
65
|
+
:'export_type' => :'String',
|
66
|
+
:'flavor' => :'String',
|
67
|
+
:'new_line_type' => :'String',
|
68
|
+
:'images_save_folder_name' => :'String',
|
69
|
+
:'show_slide_number' => :'BOOLEAN',
|
70
|
+
:'show_comments' => :'BOOLEAN',
|
71
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
72
|
+
})
|
73
|
+
end
|
74
|
+
|
75
|
+
# Initializes the object
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
77
|
+
def initialize(attributes = {})
|
78
|
+
super
|
79
|
+
|
80
|
+
if attributes.has_key?(:'ExportType')
|
81
|
+
self.export_type = attributes[:'ExportType']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'Flavor')
|
85
|
+
self.flavor = attributes[:'Flavor']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'NewLineType')
|
89
|
+
self.new_line_type = attributes[:'NewLineType']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'ImagesSaveFolderName')
|
93
|
+
self.images_save_folder_name = attributes[:'ImagesSaveFolderName']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'ShowSlideNumber')
|
97
|
+
self.show_slide_number = attributes[:'ShowSlideNumber']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'ShowComments')
|
101
|
+
self.show_comments = attributes[:'ShowComments']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'ShowHiddenSlides')
|
105
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
106
|
+
end
|
107
|
+
self.format = 'md'
|
108
|
+
end
|
109
|
+
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
+
# @return Array for valid properties with the reasons
|
112
|
+
def list_invalid_properties
|
113
|
+
invalid_properties = super
|
114
|
+
invalid_properties
|
115
|
+
end
|
116
|
+
|
117
|
+
# Check to see if the all the properties in the model are valid
|
118
|
+
# @return true if the model is valid
|
119
|
+
def valid?
|
120
|
+
return false if !super
|
121
|
+
export_type_validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
|
122
|
+
return false unless export_type_validator.valid?(@export_type)
|
123
|
+
flavor_validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
|
124
|
+
return false unless flavor_validator.valid?(@flavor)
|
125
|
+
new_line_type_validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
|
126
|
+
return false unless new_line_type_validator.valid?(@new_line_type)
|
127
|
+
true
|
128
|
+
end
|
129
|
+
|
130
|
+
# Custom attribute writer method checking allowed values (enum).
|
131
|
+
# @param [Object] export_type Object to be assigned
|
132
|
+
def export_type=(export_type)
|
133
|
+
validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
|
134
|
+
unless validator.valid?(export_type)
|
135
|
+
fail ArgumentError, 'invalid value for "export_type", must be one of #{validator.allowable_values}.'
|
136
|
+
end
|
137
|
+
@export_type = export_type
|
138
|
+
end
|
139
|
+
|
140
|
+
# Custom attribute writer method checking allowed values (enum).
|
141
|
+
# @param [Object] flavor Object to be assigned
|
142
|
+
def flavor=(flavor)
|
143
|
+
validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
|
144
|
+
unless validator.valid?(flavor)
|
145
|
+
fail ArgumentError, 'invalid value for "flavor", must be one of #{validator.allowable_values}.'
|
146
|
+
end
|
147
|
+
@flavor = flavor
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method checking allowed values (enum).
|
151
|
+
# @param [Object] new_line_type Object to be assigned
|
152
|
+
def new_line_type=(new_line_type)
|
153
|
+
validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
|
154
|
+
unless validator.valid?(new_line_type)
|
155
|
+
fail ArgumentError, 'invalid value for "new_line_type", must be one of #{validator.allowable_values}.'
|
156
|
+
end
|
157
|
+
@new_line_type = new_line_type
|
158
|
+
end
|
159
|
+
|
160
|
+
# Checks equality by comparing each attribute.
|
161
|
+
# @param [Object] Object to be compared
|
162
|
+
def ==(o)
|
163
|
+
return true if self.equal?(o)
|
164
|
+
self.class == o.class &&
|
165
|
+
default_regular_font == o.default_regular_font &&
|
166
|
+
font_fallback_rules == o.font_fallback_rules &&
|
167
|
+
font_subst_rules == o.font_subst_rules &&
|
168
|
+
format == o.format &&
|
169
|
+
export_type == o.export_type &&
|
170
|
+
flavor == o.flavor &&
|
171
|
+
new_line_type == o.new_line_type &&
|
172
|
+
images_save_folder_name == o.images_save_folder_name &&
|
173
|
+
show_slide_number == o.show_slide_number &&
|
174
|
+
show_comments == o.show_comments &&
|
175
|
+
show_hidden_slides == o.show_hidden_slides
|
176
|
+
end
|
177
|
+
|
178
|
+
# @see the `==` method
|
179
|
+
# @param [Object] Object to be compared
|
180
|
+
def eql?(o)
|
181
|
+
self == o
|
182
|
+
end
|
183
|
+
|
184
|
+
# Calculates hash code according to all attributes.
|
185
|
+
# @return [Fixnum] Hash code
|
186
|
+
def hash
|
187
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides].hash
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
class MathFormat
|
27
|
+
|
28
|
+
MATH_ML = 'MathML'.freeze
|
29
|
+
LA_TE_X = 'LaTeX'.freeze
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
constantValues = MathFormat.constants.select { |c| MathFormat::const_get(c) == value }
|
36
|
+
raise "Invalid ENUM value #{value} for class #MathFormat" if constantValues.empty?
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
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
|
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
|
|
103
103
|
effect_format == o.effect_format &&
|
104
104
|
three_d_format == o.three_d_format &&
|
105
105
|
line_format == o.line_format &&
|
106
|
+
marker == o.marker &&
|
106
107
|
type == o.type &&
|
107
108
|
value == o.value &&
|
108
109
|
value_formula == o.value_formula &&
|
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
|
|
119
120
|
# Calculates hash code according to all attributes.
|
120
121
|
# @return [Fixnum] Hash code
|
121
122
|
def hash
|
122
|
-
[fill_format, effect_format, three_d_format, line_format, type, value, value_formula, set_as_total, invert_if_negative].hash
|
123
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type, value, value_formula, set_as_total, invert_if_negative].hash
|
123
124
|
end
|
124
125
|
end
|
125
126
|
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
|
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
|
|
103
103
|
effect_format == o.effect_format &&
|
104
104
|
three_d_format == o.three_d_format &&
|
105
105
|
line_format == o.line_format &&
|
106
|
+
marker == o.marker &&
|
106
107
|
type == o.type &&
|
107
108
|
x_value == o.x_value &&
|
108
109
|
y_value == o.y_value &&
|
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
|
|
119
120
|
# Calculates hash code according to all attributes.
|
120
121
|
# @return [Fixnum] Hash code
|
121
122
|
def hash
|
122
|
-
[fill_format, effect_format, three_d_format, line_format, type, x_value, y_value, x_value_formula, y_value_formula].hash
|
123
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type, x_value, y_value, x_value_formula, y_value_formula].hash
|
123
124
|
end
|
124
125
|
end
|
125
126
|
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
|