aspose_slides_cloud 24.6.0 → 24.8.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 +9 -7
- data/README.md +20 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +373 -210
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +179 -8
- data/lib/aspose_slides_cloud/api_client.rb +3 -0
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -5
- data/lib/aspose_slides_cloud/models/operation.rb +3 -3
- data/lib/aspose_slides_cloud/models/operation_error.rb +121 -0
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- 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/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +0 -5
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +0 -5
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +1080 -757
- data/spec/api/slides_async_api_spec.rb +773 -0
- data/spec/use_cases/async_api_spec.rb +42 -0
- data/spec/use_cases/font_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +57 -9
- data/testRules.json +3 -0
- metadata +24 -2
@@ -0,0 +1,121 @@
|
|
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 OperationError < BaseObject
|
27
|
+
attr_accessor :code
|
28
|
+
|
29
|
+
attr_accessor :description
|
30
|
+
|
31
|
+
attr_accessor :http_status_code
|
32
|
+
|
33
|
+
attr_accessor :message
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'code' => :'Code',
|
39
|
+
:'description' => :'Description',
|
40
|
+
:'http_status_code' => :'HttpStatusCode',
|
41
|
+
:'message' => :'Message',
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'code' => :'String',
|
49
|
+
:'description' => :'String',
|
50
|
+
:'http_status_code' => :'Integer',
|
51
|
+
:'message' => :'String',
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
+
|
63
|
+
if attributes.has_key?(:'Code')
|
64
|
+
self.code = attributes[:'Code']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'Description')
|
68
|
+
self.description = attributes[:'Description']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'HttpStatusCode')
|
72
|
+
self.http_status_code = attributes[:'HttpStatusCode']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'Message')
|
76
|
+
self.message = attributes[:'Message']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
if @http_status_code.nil?
|
85
|
+
invalid_properties.push('invalid value for "http_status_code", http_status_code cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
invalid_properties
|
89
|
+
end
|
90
|
+
|
91
|
+
# Check to see if the all the properties in the model are valid
|
92
|
+
# @return true if the model is valid
|
93
|
+
def valid?
|
94
|
+
return false if @http_status_code.nil?
|
95
|
+
true
|
96
|
+
end
|
97
|
+
|
98
|
+
# Checks equality by comparing each attribute.
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def ==(o)
|
101
|
+
return true if self.equal?(o)
|
102
|
+
self.class == o.class &&
|
103
|
+
code == o.code &&
|
104
|
+
description == o.description &&
|
105
|
+
http_status_code == o.http_status_code &&
|
106
|
+
message == o.message
|
107
|
+
end
|
108
|
+
|
109
|
+
# @see the `==` method
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def eql?(o)
|
112
|
+
self == o
|
113
|
+
end
|
114
|
+
|
115
|
+
# Calculates hash code according to all attributes.
|
116
|
+
# @return [Fixnum] Hash code
|
117
|
+
def hash
|
118
|
+
[code, description, http_status_code, message].hash
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -76,6 +76,9 @@ module AsposeSlidesCloud
|
|
76
76
|
# True to use ROP operation or Opacity for rendering brush.
|
77
77
|
attr_accessor :interpret_mask_op_as_opacity
|
78
78
|
|
79
|
+
# True if text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.
|
80
|
+
attr_accessor :rasterize_unsupported_font_styles
|
81
|
+
|
79
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
83
|
def self.attribute_map
|
81
84
|
super.merge({
|
@@ -96,6 +99,7 @@ module AsposeSlidesCloud
|
|
96
99
|
:'access_permissions' => :'AccessPermissions',
|
97
100
|
:'hide_ink' => :'HideInk',
|
98
101
|
:'interpret_mask_op_as_opacity' => :'InterpretMaskOpAsOpacity',
|
102
|
+
:'rasterize_unsupported_font_styles' => :'RasterizeUnsupportedFontStyles',
|
99
103
|
})
|
100
104
|
end
|
101
105
|
|
@@ -119,6 +123,7 @@ module AsposeSlidesCloud
|
|
119
123
|
:'access_permissions' => :'AccessPermissions',
|
120
124
|
:'hide_ink' => :'BOOLEAN',
|
121
125
|
:'interpret_mask_op_as_opacity' => :'BOOLEAN',
|
126
|
+
:'rasterize_unsupported_font_styles' => :'BOOLEAN',
|
122
127
|
})
|
123
128
|
end
|
124
129
|
|
@@ -196,6 +201,10 @@ module AsposeSlidesCloud
|
|
196
201
|
if attributes.has_key?(:'InterpretMaskOpAsOpacity')
|
197
202
|
self.interpret_mask_op_as_opacity = attributes[:'InterpretMaskOpAsOpacity']
|
198
203
|
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'RasterizeUnsupportedFontStyles')
|
206
|
+
self.rasterize_unsupported_font_styles = attributes[:'RasterizeUnsupportedFontStyles']
|
207
|
+
end
|
199
208
|
self.format = 'pdf'
|
200
209
|
end
|
201
210
|
|
@@ -243,6 +252,7 @@ module AsposeSlidesCloud
|
|
243
252
|
return true if self.equal?(o)
|
244
253
|
self.class == o.class &&
|
245
254
|
default_regular_font == o.default_regular_font &&
|
255
|
+
gradient_style == o.gradient_style &&
|
246
256
|
font_fallback_rules == o.font_fallback_rules &&
|
247
257
|
font_subst_rules == o.font_subst_rules &&
|
248
258
|
format == o.format &&
|
@@ -262,7 +272,8 @@ module AsposeSlidesCloud
|
|
262
272
|
apply_image_transparent == o.apply_image_transparent &&
|
263
273
|
access_permissions == o.access_permissions &&
|
264
274
|
hide_ink == o.hide_ink &&
|
265
|
-
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity
|
275
|
+
interpret_mask_op_as_opacity == o.interpret_mask_op_as_opacity &&
|
276
|
+
rasterize_unsupported_font_styles == o.rasterize_unsupported_font_styles
|
266
277
|
end
|
267
278
|
|
268
279
|
# @see the `==` method
|
@@ -274,7 +285,7 @@ module AsposeSlidesCloud
|
|
274
285
|
# Calculates hash code according to all attributes.
|
275
286
|
# @return [Fixnum] Hash code
|
276
287
|
def hash
|
277
|
-
[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, hide_ink, interpret_mask_op_as_opacity].hash
|
288
|
+
[default_regular_font, gradient_style, 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, hide_ink, interpret_mask_op_as_opacity, rasterize_unsupported_font_styles].hash
|
278
289
|
end
|
279
290
|
end
|
280
291
|
end
|
@@ -25,13 +25,17 @@ require 'date'
|
|
25
25
|
module AsposeSlidesCloud
|
26
26
|
# Provides options that control how a presentation is saved in PPTX format.
|
27
27
|
class PptxExportOptions < ExportOptions
|
28
|
-
# The conformance class to which the PresentationML document conforms.
|
28
|
+
# The conformance class to which the PresentationML document conforms.
|
29
29
|
attr_accessor :conformance
|
30
30
|
|
31
|
+
# Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
32
|
+
attr_accessor :zip64_mode
|
33
|
+
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
35
|
def self.attribute_map
|
33
36
|
super.merge({
|
34
37
|
:'conformance' => :'Conformance',
|
38
|
+
:'zip64_mode' => :'Zip64Mode',
|
35
39
|
})
|
36
40
|
end
|
37
41
|
|
@@ -39,6 +43,7 @@ module AsposeSlidesCloud
|
|
39
43
|
def self.swagger_types
|
40
44
|
super.merge({
|
41
45
|
:'conformance' => :'String',
|
46
|
+
:'zip64_mode' => :'String',
|
42
47
|
})
|
43
48
|
end
|
44
49
|
|
@@ -50,6 +55,10 @@ module AsposeSlidesCloud
|
|
50
55
|
if attributes.has_key?(:'Conformance')
|
51
56
|
self.conformance = attributes[:'Conformance']
|
52
57
|
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'Zip64Mode')
|
60
|
+
self.zip64_mode = attributes[:'Zip64Mode']
|
61
|
+
end
|
53
62
|
self.format = 'pptx'
|
54
63
|
end
|
55
64
|
|
@@ -66,6 +75,8 @@ module AsposeSlidesCloud
|
|
66
75
|
return false if !super
|
67
76
|
conformance_validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict'])
|
68
77
|
return false unless conformance_validator.valid?(@conformance)
|
78
|
+
zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
79
|
+
return false unless zip64_mode_validator.valid?(@zip64_mode)
|
69
80
|
true
|
70
81
|
end
|
71
82
|
|
@@ -79,16 +90,28 @@ module AsposeSlidesCloud
|
|
79
90
|
@conformance = conformance
|
80
91
|
end
|
81
92
|
|
93
|
+
# Custom attribute writer method checking allowed values (enum).
|
94
|
+
# @param [Object] zip64_mode Object to be assigned
|
95
|
+
def zip64_mode=(zip64_mode)
|
96
|
+
validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
97
|
+
unless validator.valid?(zip64_mode)
|
98
|
+
fail ArgumentError, 'invalid value for "zip64_mode", must be one of #{validator.allowable_values}.'
|
99
|
+
end
|
100
|
+
@zip64_mode = zip64_mode
|
101
|
+
end
|
102
|
+
|
82
103
|
# Checks equality by comparing each attribute.
|
83
104
|
# @param [Object] Object to be compared
|
84
105
|
def ==(o)
|
85
106
|
return true if self.equal?(o)
|
86
107
|
self.class == o.class &&
|
87
108
|
default_regular_font == o.default_regular_font &&
|
109
|
+
gradient_style == o.gradient_style &&
|
88
110
|
font_fallback_rules == o.font_fallback_rules &&
|
89
111
|
font_subst_rules == o.font_subst_rules &&
|
90
112
|
format == o.format &&
|
91
|
-
conformance == o.conformance
|
113
|
+
conformance == o.conformance &&
|
114
|
+
zip64_mode == o.zip64_mode
|
92
115
|
end
|
93
116
|
|
94
117
|
# @see the `==` method
|
@@ -100,7 +123,7 @@ module AsposeSlidesCloud
|
|
100
123
|
# Calculates hash code according to all attributes.
|
101
124
|
# @return [Fixnum] Hash code
|
102
125
|
def hash
|
103
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, conformance].hash
|
126
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash
|
104
127
|
end
|
105
128
|
end
|
106
129
|
end
|
@@ -101,14 +101,6 @@ module AsposeSlidesCloud
|
|
101
101
|
# @return Array for valid properties with the reasons
|
102
102
|
def list_invalid_properties
|
103
103
|
invalid_properties = super
|
104
|
-
if @is_write_protected.nil?
|
105
|
-
invalid_properties.push('invalid value for "is_write_protected", is_write_protected cannot be nil.')
|
106
|
-
end
|
107
|
-
|
108
|
-
if @is_encrypted.nil?
|
109
|
-
invalid_properties.push('invalid value for "is_encrypted", is_encrypted cannot be nil.')
|
110
|
-
end
|
111
|
-
|
112
104
|
invalid_properties
|
113
105
|
end
|
114
106
|
|
@@ -116,8 +108,6 @@ module AsposeSlidesCloud
|
|
116
108
|
# @return true if the model is valid
|
117
109
|
def valid?
|
118
110
|
return false if !super
|
119
|
-
return false if @is_write_protected.nil?
|
120
|
-
return false if @is_encrypted.nil?
|
121
111
|
true
|
122
112
|
end
|
123
113
|
|
@@ -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', 'Md'])
|
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', 'Xml'])
|
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', 'Md'])
|
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', 'Xml'])
|
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', 'Md'])
|
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', 'Xml'])
|
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', 'Md'])
|
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', 'Xml'])
|
131
131
|
unless validator.valid?(format)
|
132
132
|
fail ArgumentError, 'invalid value for "format", must be one of #{validator.allowable_values}.'
|
133
133
|
end
|
@@ -163,10 +163,6 @@ module AsposeSlidesCloud
|
|
163
163
|
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
164
164
|
end
|
165
165
|
|
166
|
-
if @show_master_shapes.nil?
|
167
|
-
invalid_properties.push('invalid value for "show_master_shapes", show_master_shapes cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
166
|
invalid_properties
|
171
167
|
end
|
172
168
|
|
@@ -176,7 +172,6 @@ module AsposeSlidesCloud
|
|
176
172
|
return false if !super
|
177
173
|
return false if @width.nil?
|
178
174
|
return false if @height.nil?
|
179
|
-
return false if @show_master_shapes.nil?
|
180
175
|
true
|
181
176
|
end
|
182
177
|
|
@@ -107,10 +107,6 @@ module AsposeSlidesCloud
|
|
107
107
|
invalid_properties.push('invalid value for "color_style", color_style cannot be nil.')
|
108
108
|
end
|
109
109
|
|
110
|
-
if @is_reversed.nil?
|
111
|
-
invalid_properties.push('invalid value for "is_reversed", is_reversed cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
110
|
invalid_properties
|
115
111
|
end
|
116
112
|
|
@@ -127,7 +123,6 @@ module AsposeSlidesCloud
|
|
127
123
|
return false if @color_style.nil?
|
128
124
|
color_style_validator = EnumAttributeValidator.new('String', ['Dark1Outline', 'Dark2Outline', 'DarkFill', 'ColorfulAccentColors', 'ColorfulAccentColors2to3', 'ColorfulAccentColors3to4', 'ColorfulAccentColors4to5', 'ColorfulAccentColors5to6', 'ColoredOutlineAccent1', 'ColoredFillAccent1', 'GradientRangeAccent1', 'GradientLoopAccent1', 'TransparentGradientRangeAccent1', 'ColoredOutlineAccent2', 'ColoredFillAccent2', 'GradientRangeAccent2', 'GradientLoopAccent2', 'TransparentGradientRangeAccent2', 'ColoredOutlineAccent3', 'ColoredFillAccent3', 'GradientRangeAccent3', 'GradientLoopAccent3', 'TransparentGradientRangeAccent3', 'ColoredOutlineAccent4', 'ColoredFillAccent4', 'GradientRangeAccent4', 'GradientLoopAccent4', 'TransparentGradientRangeAccent4', 'ColoredOutlineAccent5', 'ColoredFillAccent5', 'GradientRangeAccent5', 'GradientLoopAccent5', 'TransparentGradientRangeAccent5', 'ColoredOutlineAccent6', 'ColoredFillAccent6', 'GradientRangeAccent6', 'GradientLoopAccent6', 'TransparentGradientRangeAccent6'])
|
129
125
|
return false unless color_style_validator.valid?(@color_style)
|
130
|
-
return false if @is_reversed.nil?
|
131
126
|
true
|
132
127
|
end
|
133
128
|
|
@@ -106,10 +106,6 @@ module AsposeSlidesCloud
|
|
106
106
|
# @return Array for valid properties with the reasons
|
107
107
|
def list_invalid_properties
|
108
108
|
invalid_properties = Array.new
|
109
|
-
if @is_assistant.nil?
|
110
|
-
invalid_properties.push('invalid value for "is_assistant", is_assistant cannot be nil.')
|
111
|
-
end
|
112
|
-
|
113
109
|
if @org_chart_layout.nil?
|
114
110
|
invalid_properties.push('invalid value for "org_chart_layout", org_chart_layout cannot be nil.')
|
115
111
|
end
|
@@ -120,7 +116,6 @@ module AsposeSlidesCloud
|
|
120
116
|
# Check to see if the all the properties in the model are valid
|
121
117
|
# @return true if the model is valid
|
122
118
|
def valid?
|
123
|
-
return false if @is_assistant.nil?
|
124
119
|
return false if @org_chart_layout.nil?
|
125
120
|
org_chart_layout_validator = EnumAttributeValidator.new('String', ['Initial', 'Standart', 'BothHanging', 'LeftHanging', 'RightHanging'])
|
126
121
|
return false unless org_chart_layout_validator.valid?(@org_chart_layout)
|
@@ -187,6 +187,7 @@ module AsposeSlidesCloud
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
default_regular_font == o.default_regular_font &&
|
190
|
+
gradient_style == o.gradient_style &&
|
190
191
|
font_fallback_rules == o.font_fallback_rules &&
|
191
192
|
font_subst_rules == o.font_subst_rules &&
|
192
193
|
format == o.format &&
|
@@ -212,7 +213,7 @@ module AsposeSlidesCloud
|
|
212
213
|
# Calculates hash code according to all attributes.
|
213
214
|
# @return [Fixnum] Hash code
|
214
215
|
def hash
|
215
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
216
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, vectorize_text, metafile_rasterization_dpi, disable3_d_text, disable_gradient_split, disable_line_end_cropping, jpeg_quality, pictures_compression, delete_pictures_cropped_areas, external_fonts_handling, use_frame_size, use_frame_rotation].hash
|
216
217
|
end
|
217
218
|
end
|
218
219
|
end
|
@@ -268,6 +268,7 @@ module AsposeSlidesCloud
|
|
268
268
|
return true if self.equal?(o)
|
269
269
|
self.class == o.class &&
|
270
270
|
default_regular_font == o.default_regular_font &&
|
271
|
+
gradient_style == o.gradient_style &&
|
271
272
|
font_fallback_rules == o.font_fallback_rules &&
|
272
273
|
font_subst_rules == o.font_subst_rules &&
|
273
274
|
format == o.format &&
|
@@ -302,7 +303,7 @@ module AsposeSlidesCloud
|
|
302
303
|
# Calculates hash code according to all attributes.
|
303
304
|
# @return [Fixnum] Hash code
|
304
305
|
def hash
|
305
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
306
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, compressed, viewer_included, show_page_border, show_full_screen, show_page_stepper, show_search, show_top_pane, show_bottom_pane, show_left_pane, start_open_left_pane, enable_context_menu, logo_image, logo_link, jpeg_quality, notes_position, comments_position, comments_area_width, comments_area_color, show_comments_by_no_author].hash
|
306
307
|
end
|
307
308
|
end
|
308
309
|
end
|
@@ -55,6 +55,9 @@ module AsposeSlidesCloud
|
|
55
55
|
# Determines whether the even columns has to be drawn with a different formatting.
|
56
56
|
attr_accessor :vertical_banding
|
57
57
|
|
58
|
+
# Transparency.
|
59
|
+
attr_accessor :transparency
|
60
|
+
|
58
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
62
|
def self.attribute_map
|
60
63
|
super.merge({
|
@@ -68,6 +71,7 @@ module AsposeSlidesCloud
|
|
68
71
|
:'last_row' => :'LastRow',
|
69
72
|
:'right_to_left' => :'RightToLeft',
|
70
73
|
:'vertical_banding' => :'VerticalBanding',
|
74
|
+
:'transparency' => :'Transparency',
|
71
75
|
})
|
72
76
|
end
|
73
77
|
|
@@ -84,6 +88,7 @@ module AsposeSlidesCloud
|
|
84
88
|
:'last_row' => :'BOOLEAN',
|
85
89
|
:'right_to_left' => :'BOOLEAN',
|
86
90
|
:'vertical_banding' => :'BOOLEAN',
|
91
|
+
:'transparency' => :'Float',
|
87
92
|
})
|
88
93
|
end
|
89
94
|
|
@@ -135,6 +140,10 @@ module AsposeSlidesCloud
|
|
135
140
|
if attributes.has_key?(:'VerticalBanding')
|
136
141
|
self.vertical_banding = attributes[:'VerticalBanding']
|
137
142
|
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'Transparency')
|
145
|
+
self.transparency = attributes[:'Transparency']
|
146
|
+
end
|
138
147
|
self.type = 'Table'
|
139
148
|
end
|
140
149
|
|
@@ -197,7 +206,8 @@ module AsposeSlidesCloud
|
|
197
206
|
last_col == o.last_col &&
|
198
207
|
last_row == o.last_row &&
|
199
208
|
right_to_left == o.right_to_left &&
|
200
|
-
vertical_banding == o.vertical_banding
|
209
|
+
vertical_banding == o.vertical_banding &&
|
210
|
+
transparency == o.transparency
|
201
211
|
end
|
202
212
|
|
203
213
|
# @see the `==` method
|
@@ -209,7 +219,7 @@ module AsposeSlidesCloud
|
|
209
219
|
# Calculates hash code according to all attributes.
|
210
220
|
# @return [Fixnum] Hash code
|
211
221
|
def hash
|
212
|
-
[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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
|
222
|
+
[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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding, transparency].hash
|
213
223
|
end
|
214
224
|
end
|
215
225
|
end
|
@@ -46,6 +46,9 @@ module AsposeSlidesCloud
|
|
46
46
|
# The bottom margin of the cell.
|
47
47
|
attr_accessor :margin_bottom
|
48
48
|
|
49
|
+
# Transparency.
|
50
|
+
attr_accessor :transparency
|
51
|
+
|
49
52
|
# Text anchor type.
|
50
53
|
attr_accessor :text_anchor_type
|
51
54
|
|
@@ -95,6 +98,7 @@ module AsposeSlidesCloud
|
|
95
98
|
:'margin_right' => :'MarginRight',
|
96
99
|
:'margin_left' => :'MarginLeft',
|
97
100
|
:'margin_bottom' => :'MarginBottom',
|
101
|
+
:'transparency' => :'Transparency',
|
98
102
|
:'text_anchor_type' => :'TextAnchorType',
|
99
103
|
:'text_vertical_type' => :'TextVerticalType',
|
100
104
|
:'fill_format' => :'FillFormat',
|
@@ -121,6 +125,7 @@ module AsposeSlidesCloud
|
|
121
125
|
:'margin_right' => :'Float',
|
122
126
|
:'margin_left' => :'Float',
|
123
127
|
:'margin_bottom' => :'Float',
|
128
|
+
:'transparency' => :'Float',
|
124
129
|
:'text_anchor_type' => :'String',
|
125
130
|
:'text_vertical_type' => :'String',
|
126
131
|
:'fill_format' => :'FillFormat',
|
@@ -173,6 +178,10 @@ module AsposeSlidesCloud
|
|
173
178
|
self.margin_bottom = attributes[:'MarginBottom']
|
174
179
|
end
|
175
180
|
|
181
|
+
if attributes.has_key?(:'Transparency')
|
182
|
+
self.transparency = attributes[:'Transparency']
|
183
|
+
end
|
184
|
+
|
176
185
|
if attributes.has_key?(:'TextAnchorType')
|
177
186
|
self.text_anchor_type = attributes[:'TextAnchorType']
|
178
187
|
end
|
@@ -275,6 +284,7 @@ module AsposeSlidesCloud
|
|
275
284
|
margin_right == o.margin_right &&
|
276
285
|
margin_left == o.margin_left &&
|
277
286
|
margin_bottom == o.margin_bottom &&
|
287
|
+
transparency == o.transparency &&
|
278
288
|
text_anchor_type == o.text_anchor_type &&
|
279
289
|
text_vertical_type == o.text_vertical_type &&
|
280
290
|
fill_format == o.fill_format &&
|
@@ -299,7 +309,7 @@ module AsposeSlidesCloud
|
|
299
309
|
# Calculates hash code according to all attributes.
|
300
310
|
# @return [Fixnum] Hash code
|
301
311
|
def hash
|
302
|
-
[text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index, text_frame_format, paragraphs].hash
|
312
|
+
[text, row_span, col_span, margin_top, margin_right, margin_left, margin_bottom, transparency, text_anchor_type, text_vertical_type, fill_format, border_top, border_right, border_left, border_bottom, border_diagonal_up, border_diagonal_down, column_index, row_index, text_frame_format, paragraphs].hash
|
303
313
|
end
|
304
314
|
end
|
305
315
|
end
|
@@ -111,10 +111,6 @@ module AsposeSlidesCloud
|
|
111
111
|
invalid_properties.push('invalid value for "last_cell_index", last_cell_index cannot be nil.')
|
112
112
|
end
|
113
113
|
|
114
|
-
if @allow_splitting.nil?
|
115
|
-
invalid_properties.push('invalid value for "allow_splitting", allow_splitting cannot be nil.')
|
116
|
-
end
|
117
|
-
|
118
114
|
invalid_properties
|
119
115
|
end
|
120
116
|
|
@@ -125,7 +121,6 @@ module AsposeSlidesCloud
|
|
125
121
|
return false if @first_cell_index.nil?
|
126
122
|
return false if @last_row_index.nil?
|
127
123
|
return false if @last_cell_index.nil?
|
128
|
-
return false if @allow_splitting.nil?
|
129
124
|
true
|
130
125
|
end
|
131
126
|
|
@@ -163,6 +163,7 @@ module AsposeSlidesCloud
|
|
163
163
|
return true if self.equal?(o)
|
164
164
|
self.class == o.class &&
|
165
165
|
default_regular_font == o.default_regular_font &&
|
166
|
+
gradient_style == o.gradient_style &&
|
166
167
|
font_fallback_rules == o.font_fallback_rules &&
|
167
168
|
font_subst_rules == o.font_subst_rules &&
|
168
169
|
format == o.format &&
|
@@ -186,7 +187,7 @@ module AsposeSlidesCloud
|
|
186
187
|
# Calculates hash code according to all attributes.
|
187
188
|
# @return [Fixnum] Hash code
|
188
189
|
def hash
|
189
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
190
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, compression, dpi_x, dpi_y, show_hidden_slides, pixel_format, slides_layout_options, bw_conversion_mode].hash
|
190
191
|
end
|
191
192
|
end
|
192
193
|
end
|
@@ -124,6 +124,7 @@ module AsposeSlidesCloud
|
|
124
124
|
return true if self.equal?(o)
|
125
125
|
self.class == o.class &&
|
126
126
|
default_regular_font == o.default_regular_font &&
|
127
|
+
gradient_style == o.gradient_style &&
|
127
128
|
font_fallback_rules == o.font_fallback_rules &&
|
128
129
|
font_subst_rules == o.font_subst_rules &&
|
129
130
|
format == o.format &&
|
@@ -142,7 +143,7 @@ module AsposeSlidesCloud
|
|
142
143
|
# Calculates hash code according to all attributes.
|
143
144
|
# @return [Fixnum] Hash code
|
144
145
|
def hash
|
145
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
146
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
|
146
147
|
end
|
147
148
|
end
|
148
149
|
end
|
@@ -73,6 +73,7 @@ module AsposeSlidesCloud
|
|
73
73
|
return true if self.equal?(o)
|
74
74
|
self.class == o.class &&
|
75
75
|
default_regular_font == o.default_regular_font &&
|
76
|
+
gradient_style == o.gradient_style &&
|
76
77
|
font_fallback_rules == o.font_fallback_rules &&
|
77
78
|
font_subst_rules == o.font_subst_rules &&
|
78
79
|
format == o.format &&
|
@@ -88,7 +89,7 @@ module AsposeSlidesCloud
|
|
88
89
|
# Calculates hash code according to all attributes.
|
89
90
|
# @return [Fixnum] Hash code
|
90
91
|
def hash
|
91
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
92
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, export_hidden_slides].hash
|
92
93
|
end
|
93
94
|
end
|
94
95
|
end
|
@@ -91,6 +91,7 @@ module AsposeSlidesCloud
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
default_regular_font == o.default_regular_font &&
|
94
|
+
gradient_style == o.gradient_style &&
|
94
95
|
font_fallback_rules == o.font_fallback_rules &&
|
95
96
|
font_subst_rules == o.font_subst_rules &&
|
96
97
|
format == o.format &&
|
@@ -108,7 +109,7 @@ module AsposeSlidesCloud
|
|
108
109
|
# Calculates hash code according to all attributes.
|
109
110
|
# @return [Fixnum] Hash code
|
110
111
|
def hash
|
111
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
|
+
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, show_hidden_slides, save_metafiles_as_png, draw_slides_frame].hash
|
112
113
|
end
|
113
114
|
end
|
114
115
|
end
|
@@ -384,6 +384,7 @@ module AsposeSlidesCloud
|
|
384
384
|
:'OneValueChartDataPoint' => { :'Type' => 'OneValue', },
|
385
385
|
:'OneValueSeries' => { :'DataPointType' => 'OneValue', },
|
386
386
|
:'Operation' => { },
|
387
|
+
:'OperationError' => { },
|
387
388
|
:'OperationProgress' => { },
|
388
389
|
:'OrderedMergeRequest' => { },
|
389
390
|
:'OuterShadowEffect' => { },
|