aspose_slides_cloud 22.2.0 → 22.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -7
- data/LICENSE +20 -20
- data/README.md +27 -0
- data/Rakefile +8 -8
- data/TestData/oleObject.xlsx +0 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +56 -56
- data/lib/aspose_slides_cloud/api/slides_api.rb +192 -13
- data/lib/aspose_slides_cloud/api_error.rb +48 -48
- data/lib/aspose_slides_cloud/configuration.rb +188 -188
- data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -0
- data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +16 -26
- data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
- data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -3
- data/lib/aspose_slides_cloud/models/axis.rb +22 -2
- data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
- data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/chart.rb +1 -2
- data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -0
- data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
- data/lib/aspose_slides_cloud/models/connector.rb +1 -2
- data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +10 -18
- data/lib/aspose_slides_cloud/models/fill_overlay_image_effect.rb +260 -0
- data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -0
- data/lib/aspose_slides_cloud/models/geometry_shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/graphical_object.rb +1 -2
- data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +26 -13
- data/lib/aspose_slides_cloud/models/group_shape.rb +12 -3
- data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/image_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -0
- data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
- data/lib/aspose_slides_cloud/models/legend.rb +12 -2
- data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +72 -3
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +12 -2
- data/lib/aspose_slides_cloud/models/one_value_series.rb +74 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +12 -2
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +3 -16
- data/lib/aspose_slides_cloud/models/picture_fill.rb +14 -2
- data/lib/aspose_slides_cloud/models/picture_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/portion.rb +32 -2
- data/lib/aspose_slides_cloud/models/portion_format.rb +633 -0
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -2
- data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/shape_base.rb +1 -11
- data/lib/aspose_slides_cloud/models/shape_type.rb +54 -0
- data/lib/aspose_slides_cloud/models/slide_comment.rb +32 -48
- data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -0
- data/lib/aspose_slides_cloud/models/slide_comments.rb +1 -1
- data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → slide_modern_comment.rb} +37 -68
- data/lib/aspose_slides_cloud/models/smart_art.rb +1 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/models/smart_art_shape.rb +1 -2
- data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +1 -2
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/table.rb +1 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +22 -2
- data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -0
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +4 -3
- data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
- data/lib/aspose_slides_cloud/models/video_export_options.rb +35 -4
- data/lib/aspose_slides_cloud/models/video_frame.rb +12 -3
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -3
- data/lib/aspose_slides_cloud/models/zoom_frame.rb +1 -2
- data/lib/aspose_slides_cloud/models/zoom_object.rb +2 -2
- data/lib/aspose_slides_cloud/type_registry.rb +54 -13
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +31 -7
- data/spec/api/slides_api_spec.rb +585 -33
- data/spec/spec_helper.rb +122 -122
- data/spec/use_cases/merge_spec.rb +0 -1
- data/spec/use_cases/shape_spec.rb +0 -2
- data/testRules.json +6 -4
- metadata +30 -7
- data/Dockerfile +0 -16
- data/docker-entrypoint.sh +0 -7
@@ -23,22 +23,16 @@ SOFTWARE.
|
|
23
23
|
require 'date'
|
24
24
|
|
25
25
|
module AsposeSlidesCloud
|
26
|
-
#
|
27
|
-
class
|
28
|
-
#
|
29
|
-
attr_accessor :
|
26
|
+
# Represents modern comment of slide
|
27
|
+
class SlideModernComment < SlideCommentBase
|
28
|
+
# Returns or sets starting position of text selection in text frame if the comment associated with AutoShape. Read/write Int32.
|
29
|
+
attr_accessor :text_selection_start
|
30
30
|
|
31
|
-
#
|
32
|
-
attr_accessor :
|
31
|
+
# Returns or sets text selection length in text frame if the comment associated with AutoShape. Read/write Int32.
|
32
|
+
attr_accessor :text_selection_length
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
36
|
-
|
37
|
-
# True if mean markers are shown.
|
38
|
-
attr_accessor :show_mean_markers
|
39
|
-
|
40
|
-
# True if outlier points are shown.
|
41
|
-
attr_accessor :show_outlier_points
|
34
|
+
# Returns or sets the status of the comment. Read/write ModernCommentStatus.
|
35
|
+
attr_accessor :status
|
42
36
|
|
43
37
|
class EnumAttributeValidator
|
44
38
|
attr_reader :datatype
|
@@ -65,22 +59,18 @@ module AsposeSlidesCloud
|
|
65
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
60
|
def self.attribute_map
|
67
61
|
super.merge({
|
68
|
-
:'
|
69
|
-
:'
|
70
|
-
:'
|
71
|
-
:'show_mean_markers' => :'ShowMeanMarkers',
|
72
|
-
:'show_outlier_points' => :'ShowOutlierPoints',
|
62
|
+
:'text_selection_start' => :'TextSelectionStart',
|
63
|
+
:'text_selection_length' => :'TextSelectionLength',
|
64
|
+
:'status' => :'Status',
|
73
65
|
})
|
74
66
|
end
|
75
67
|
|
76
68
|
# Attribute type mapping.
|
77
69
|
def self.swagger_types
|
78
70
|
super.merge({
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'show_mean_markers' => :'BOOLEAN',
|
83
|
-
:'show_outlier_points' => :'BOOLEAN',
|
71
|
+
:'text_selection_start' => :'Integer',
|
72
|
+
:'text_selection_length' => :'Integer',
|
73
|
+
:'status' => :'String',
|
84
74
|
})
|
85
75
|
end
|
86
76
|
|
@@ -89,26 +79,18 @@ module AsposeSlidesCloud
|
|
89
79
|
def initialize(attributes = {})
|
90
80
|
super
|
91
81
|
|
92
|
-
if attributes.has_key?(:'
|
93
|
-
self.
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.has_key?(:'ShowInnerPoints')
|
97
|
-
self.show_inner_points = attributes[:'ShowInnerPoints']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.has_key?(:'ShowMeanLine')
|
101
|
-
self.show_mean_line = attributes[:'ShowMeanLine']
|
82
|
+
if attributes.has_key?(:'TextSelectionStart')
|
83
|
+
self.text_selection_start = attributes[:'TextSelectionStart']
|
102
84
|
end
|
103
85
|
|
104
|
-
if attributes.has_key?(:'
|
105
|
-
self.
|
86
|
+
if attributes.has_key?(:'TextSelectionLength')
|
87
|
+
self.text_selection_length = attributes[:'TextSelectionLength']
|
106
88
|
end
|
107
89
|
|
108
|
-
if attributes.has_key?(:'
|
109
|
-
self.
|
90
|
+
if attributes.has_key?(:'Status')
|
91
|
+
self.status = attributes[:'Status']
|
110
92
|
end
|
111
|
-
self.
|
93
|
+
self.type = "Modern"
|
112
94
|
end
|
113
95
|
|
114
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -122,19 +104,19 @@ module AsposeSlidesCloud
|
|
122
104
|
# @return true if the model is valid
|
123
105
|
def valid?
|
124
106
|
return false if !super
|
125
|
-
|
126
|
-
return false unless
|
107
|
+
status_validator = EnumAttributeValidator.new('String', ['NotDefined', 'Active', 'Resolved', 'Closed'])
|
108
|
+
return false unless status_validator.valid?(@status)
|
127
109
|
true
|
128
110
|
end
|
129
111
|
|
130
112
|
# Custom attribute writer method checking allowed values (enum).
|
131
|
-
# @param [Object]
|
132
|
-
def
|
133
|
-
validator = EnumAttributeValidator.new('String', ['
|
134
|
-
unless validator.valid?(
|
135
|
-
fail ArgumentError, 'invalid value for "
|
113
|
+
# @param [Object] status Object to be assigned
|
114
|
+
def status=(status)
|
115
|
+
validator = EnumAttributeValidator.new('String', ['NotDefined', 'Active', 'Resolved', 'Closed'])
|
116
|
+
unless validator.valid?(status)
|
117
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
136
118
|
end
|
137
|
-
@
|
119
|
+
@status = status
|
138
120
|
end
|
139
121
|
|
140
122
|
# Checks equality by comparing each attribute.
|
@@ -142,27 +124,14 @@ module AsposeSlidesCloud
|
|
142
124
|
def ==(o)
|
143
125
|
return true if self.equal?(o)
|
144
126
|
self.class == o.class &&
|
127
|
+
author == o.author &&
|
128
|
+
text == o.text &&
|
129
|
+
created_time == o.created_time &&
|
130
|
+
child_comments == o.child_comments &&
|
145
131
|
type == o.type &&
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
smooth == o.smooth &&
|
150
|
-
plot_on_second_axis == o.plot_on_second_axis &&
|
151
|
-
order == o.order &&
|
152
|
-
invert_if_negative == o.invert_if_negative &&
|
153
|
-
explosion == o.explosion &&
|
154
|
-
marker == o.marker &&
|
155
|
-
fill_format == o.fill_format &&
|
156
|
-
effect_format == o.effect_format &&
|
157
|
-
line_format == o.line_format &&
|
158
|
-
data_point_type == o.data_point_type &&
|
159
|
-
data_points == o.data_points &&
|
160
|
-
number_format_of_values == o.number_format_of_values &&
|
161
|
-
quartile_method == o.quartile_method &&
|
162
|
-
show_inner_points == o.show_inner_points &&
|
163
|
-
show_mean_line == o.show_mean_line &&
|
164
|
-
show_mean_markers == o.show_mean_markers &&
|
165
|
-
show_outlier_points == o.show_outlier_points
|
132
|
+
text_selection_start == o.text_selection_start &&
|
133
|
+
text_selection_length == o.text_selection_length &&
|
134
|
+
status == o.status
|
166
135
|
end
|
167
136
|
|
168
137
|
# @see the `==` method
|
@@ -174,7 +143,7 @@ module AsposeSlidesCloud
|
|
174
143
|
# Calculates hash code according to all attributes.
|
175
144
|
# @return [Fixnum] Hash code
|
176
145
|
def hash
|
177
|
-
[
|
146
|
+
[author, text, created_time, child_comments, type, text_selection_start, text_selection_length, status].hash
|
178
147
|
end
|
179
148
|
|
180
149
|
# Builds the object from hash
|
@@ -199,7 +199,6 @@ module AsposeSlidesCloud
|
|
199
199
|
x == o.x &&
|
200
200
|
y == o.y &&
|
201
201
|
z_order_position == o.z_order_position &&
|
202
|
-
shapes == o.shapes &&
|
203
202
|
fill_format == o.fill_format &&
|
204
203
|
effect_format == o.effect_format &&
|
205
204
|
three_d_format == o.three_d_format &&
|
@@ -223,7 +222,7 @@ module AsposeSlidesCloud
|
|
223
222
|
# Calculates hash code according to all attributes.
|
224
223
|
# @return [Fixnum] Hash code
|
225
224
|
def hash
|
226
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
225
|
+
[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, layout, quick_style, color_style, nodes, is_reversed].hash
|
227
226
|
end
|
228
227
|
|
229
228
|
# Builds the object from hash
|
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
|
|
40
40
|
# Organization chart layout type associated with current node.
|
41
41
|
attr_accessor :org_chart_layout
|
42
42
|
|
43
|
+
# Get or sets list to paragraphs list
|
44
|
+
attr_accessor :paragraphs
|
45
|
+
|
43
46
|
class EnumAttributeValidator
|
44
47
|
attr_reader :datatype
|
45
48
|
attr_reader :allowable_values
|
@@ -70,6 +73,7 @@ module AsposeSlidesCloud
|
|
70
73
|
:'is_assistant' => :'IsAssistant',
|
71
74
|
:'text' => :'Text',
|
72
75
|
:'org_chart_layout' => :'OrgChartLayout',
|
76
|
+
:'paragraphs' => :'Paragraphs',
|
73
77
|
}
|
74
78
|
end
|
75
79
|
|
@@ -81,6 +85,7 @@ module AsposeSlidesCloud
|
|
81
85
|
:'is_assistant' => :'BOOLEAN',
|
82
86
|
:'text' => :'String',
|
83
87
|
:'org_chart_layout' => :'String',
|
88
|
+
:'paragraphs' => :'ResourceUri',
|
84
89
|
}
|
85
90
|
end
|
86
91
|
|
@@ -113,6 +118,10 @@ module AsposeSlidesCloud
|
|
113
118
|
if attributes.has_key?(:'OrgChartLayout')
|
114
119
|
self.org_chart_layout = attributes[:'OrgChartLayout']
|
115
120
|
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'Paragraphs')
|
123
|
+
self.paragraphs = attributes[:'Paragraphs']
|
124
|
+
end
|
116
125
|
end
|
117
126
|
|
118
127
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -159,7 +168,8 @@ module AsposeSlidesCloud
|
|
159
168
|
shapes == o.shapes &&
|
160
169
|
is_assistant == o.is_assistant &&
|
161
170
|
text == o.text &&
|
162
|
-
org_chart_layout == o.org_chart_layout
|
171
|
+
org_chart_layout == o.org_chart_layout &&
|
172
|
+
paragraphs == o.paragraphs
|
163
173
|
end
|
164
174
|
|
165
175
|
# @see the `==` method
|
@@ -171,7 +181,7 @@ module AsposeSlidesCloud
|
|
171
181
|
# Calculates hash code according to all attributes.
|
172
182
|
# @return [Fixnum] Hash code
|
173
183
|
def hash
|
174
|
-
[nodes, shapes, is_assistant, text, org_chart_layout].hash
|
184
|
+
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs].hash
|
175
185
|
end
|
176
186
|
|
177
187
|
# Builds the object from hash
|
@@ -96,7 +96,6 @@ module AsposeSlidesCloud
|
|
96
96
|
x == o.x &&
|
97
97
|
y == o.y &&
|
98
98
|
z_order_position == o.z_order_position &&
|
99
|
-
shapes == o.shapes &&
|
100
99
|
fill_format == o.fill_format &&
|
101
100
|
effect_format == o.effect_format &&
|
102
101
|
three_d_format == o.three_d_format &&
|
@@ -116,7 +115,7 @@ module AsposeSlidesCloud
|
|
116
115
|
# Calculates hash code according to all attributes.
|
117
116
|
# @return [Fixnum] Hash code
|
118
117
|
def hash
|
119
|
-
[self_uri, alternate_linksname, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
118
|
+
[self_uri, alternate_linksname, 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, typeshape_type].hash
|
120
119
|
end
|
121
120
|
|
122
121
|
# Builds the object from hash
|
@@ -128,7 +128,6 @@ module AsposeSlidesCloud
|
|
128
128
|
x == o.x &&
|
129
129
|
y == o.y &&
|
130
130
|
z_order_position == o.z_order_position &&
|
131
|
-
shapes == o.shapes &&
|
132
131
|
fill_format == o.fill_format &&
|
133
132
|
effect_format == o.effect_format &&
|
134
133
|
three_d_format == o.three_d_format &&
|
@@ -149,7 +148,7 @@ module AsposeSlidesCloud
|
|
149
148
|
# Calculates hash code according to all attributes.
|
150
149
|
# @return [Fixnum] Hash code
|
151
150
|
def hash
|
152
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
151
|
+
[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, zoom_layout, sections].hash
|
153
152
|
end
|
154
153
|
|
155
154
|
# Builds the object from hash
|
@@ -114,7 +114,6 @@ module AsposeSlidesCloud
|
|
114
114
|
x == o.x &&
|
115
115
|
y == o.y &&
|
116
116
|
z_order_position == o.z_order_position &&
|
117
|
-
shapes == o.shapes &&
|
118
117
|
fill_format == o.fill_format &&
|
119
118
|
effect_format == o.effect_format &&
|
120
119
|
three_d_format == o.three_d_format &&
|
@@ -141,7 +140,7 @@ module AsposeSlidesCloud
|
|
141
140
|
# Calculates hash code according to all attributes.
|
142
141
|
# @return [Fixnum] Hash code
|
143
142
|
def hash
|
144
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
143
|
+
[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, title, description].hash
|
145
144
|
end
|
146
145
|
|
147
146
|
# Builds the object from hash
|
@@ -191,8 +191,7 @@ module AsposeSlidesCloud
|
|
191
191
|
return true if self.equal?(o)
|
192
192
|
self.class == o.class &&
|
193
193
|
default_regular_font == o.default_regular_font &&
|
194
|
-
|
195
|
-
width == o.width &&
|
194
|
+
font_fallback_rules == o.font_fallback_rules &&
|
196
195
|
format == o.format &&
|
197
196
|
vectorize_text == o.vectorize_text &&
|
198
197
|
metafile_rasterization_dpi == o.metafile_rasterization_dpi &&
|
@@ -214,7 +213,7 @@ module AsposeSlidesCloud
|
|
214
213
|
# Calculates hash code according to all attributes.
|
215
214
|
# @return [Fixnum] Hash code
|
216
215
|
def hash
|
217
|
-
[default_regular_font,
|
216
|
+
[default_regular_font, font_fallback_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].hash
|
218
217
|
end
|
219
218
|
|
220
219
|
# Builds the object from hash
|
@@ -290,8 +290,7 @@ module AsposeSlidesCloud
|
|
290
290
|
return true if self.equal?(o)
|
291
291
|
self.class == o.class &&
|
292
292
|
default_regular_font == o.default_regular_font &&
|
293
|
-
|
294
|
-
width == o.width &&
|
293
|
+
font_fallback_rules == o.font_fallback_rules &&
|
295
294
|
format == o.format &&
|
296
295
|
show_hidden_slides == o.show_hidden_slides &&
|
297
296
|
compressed == o.compressed &&
|
@@ -324,7 +323,7 @@ module AsposeSlidesCloud
|
|
324
323
|
# Calculates hash code according to all attributes.
|
325
324
|
# @return [Fixnum] Hash code
|
326
325
|
def hash
|
327
|
-
[default_regular_font,
|
326
|
+
[default_regular_font, font_fallback_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
|
328
327
|
end
|
329
328
|
|
330
329
|
# Builds the object from hash
|
@@ -202,7 +202,6 @@ module AsposeSlidesCloud
|
|
202
202
|
x == o.x &&
|
203
203
|
y == o.y &&
|
204
204
|
z_order_position == o.z_order_position &&
|
205
|
-
shapes == o.shapes &&
|
206
205
|
fill_format == o.fill_format &&
|
207
206
|
effect_format == o.effect_format &&
|
208
207
|
three_d_format == o.three_d_format &&
|
@@ -231,7 +230,7 @@ module AsposeSlidesCloud
|
|
231
230
|
# Calculates hash code according to all attributes.
|
232
231
|
# @return [Fixnum] Hash code
|
233
232
|
def hash
|
234
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position,
|
233
|
+
[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, style, rows, columns, first_col, first_row, horizontal_banding, last_col, last_row, right_to_left, vertical_banding].hash
|
235
234
|
end
|
236
235
|
|
237
236
|
# Builds the object from hash
|
@@ -73,6 +73,12 @@ module AsposeSlidesCloud
|
|
73
73
|
# Line properties set for the diagonal down border of the cell.
|
74
74
|
attr_accessor :border_diagonal_down
|
75
75
|
|
76
|
+
# Cell column index
|
77
|
+
attr_accessor :column_index
|
78
|
+
|
79
|
+
# Cell row index
|
80
|
+
attr_accessor :row_index
|
81
|
+
|
76
82
|
class EnumAttributeValidator
|
77
83
|
attr_reader :datatype
|
78
84
|
attr_reader :allowable_values
|
@@ -114,6 +120,8 @@ module AsposeSlidesCloud
|
|
114
120
|
:'border_bottom' => :'BorderBottom',
|
115
121
|
:'border_diagonal_up' => :'BorderDiagonalUp',
|
116
122
|
:'border_diagonal_down' => :'BorderDiagonalDown',
|
123
|
+
:'column_index' => :'ColumnIndex',
|
124
|
+
:'row_index' => :'RowIndex',
|
117
125
|
}
|
118
126
|
end
|
119
127
|
|
@@ -136,6 +144,8 @@ module AsposeSlidesCloud
|
|
136
144
|
:'border_bottom' => :'LineFormat',
|
137
145
|
:'border_diagonal_up' => :'LineFormat',
|
138
146
|
:'border_diagonal_down' => :'LineFormat',
|
147
|
+
:'column_index' => :'Integer',
|
148
|
+
:'row_index' => :'Integer',
|
139
149
|
}
|
140
150
|
end
|
141
151
|
|
@@ -210,6 +220,14 @@ module AsposeSlidesCloud
|
|
210
220
|
if attributes.has_key?(:'BorderDiagonalDown')
|
211
221
|
self.border_diagonal_down = attributes[:'BorderDiagonalDown']
|
212
222
|
end
|
223
|
+
|
224
|
+
if attributes.has_key?(:'ColumnIndex')
|
225
|
+
self.column_index = attributes[:'ColumnIndex']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.has_key?(:'RowIndex')
|
229
|
+
self.row_index = attributes[:'RowIndex']
|
230
|
+
end
|
213
231
|
end
|
214
232
|
|
215
233
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -269,7 +287,9 @@ module AsposeSlidesCloud
|
|
269
287
|
border_left == o.border_left &&
|
270
288
|
border_bottom == o.border_bottom &&
|
271
289
|
border_diagonal_up == o.border_diagonal_up &&
|
272
|
-
border_diagonal_down == o.border_diagonal_down
|
290
|
+
border_diagonal_down == o.border_diagonal_down &&
|
291
|
+
column_index == o.column_index &&
|
292
|
+
row_index == o.row_index
|
273
293
|
end
|
274
294
|
|
275
295
|
# @see the `==` method
|
@@ -281,7 +301,7 @@ module AsposeSlidesCloud
|
|
281
301
|
# Calculates hash code according to all attributes.
|
282
302
|
# @return [Fixnum] Hash code
|
283
303
|
def hash
|
284
|
-
[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].hash
|
304
|
+
[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].hash
|
285
305
|
end
|
286
306
|
|
287
307
|
# Builds the object from hash
|
@@ -0,0 +1,261 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Represents text bounds within a paragraph or portion.
|
27
|
+
class TextBounds
|
28
|
+
# X coordinate of the text bounds.
|
29
|
+
attr_accessor :x
|
30
|
+
|
31
|
+
# X coordinate of the text bounds.
|
32
|
+
attr_accessor :y
|
33
|
+
|
34
|
+
# Width of the text bounds.
|
35
|
+
attr_accessor :width
|
36
|
+
|
37
|
+
# Height of the text bounds.
|
38
|
+
attr_accessor :height
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'x' => :'X',
|
44
|
+
:'y' => :'Y',
|
45
|
+
:'width' => :'Width',
|
46
|
+
:'height' => :'Height',
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.swagger_types
|
52
|
+
{
|
53
|
+
:'x' => :'Float',
|
54
|
+
:'y' => :'Float',
|
55
|
+
:'width' => :'Float',
|
56
|
+
:'height' => :'Float',
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'X')
|
69
|
+
self.x = attributes[:'X']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'Y')
|
73
|
+
self.y = attributes[:'Y']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'Width')
|
77
|
+
self.width = attributes[:'Width']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'Height')
|
81
|
+
self.height = attributes[:'Height']
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @x.nil?
|
90
|
+
invalid_properties.push('invalid value for "x", x cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @y.nil?
|
94
|
+
invalid_properties.push('invalid value for "y", y cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @width.nil?
|
98
|
+
invalid_properties.push('invalid value for "width", width cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @height.nil?
|
102
|
+
invalid_properties.push('invalid value for "height", height cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
invalid_properties
|
106
|
+
end
|
107
|
+
|
108
|
+
# Check to see if the all the properties in the model are valid
|
109
|
+
# @return true if the model is valid
|
110
|
+
def valid?
|
111
|
+
return false if @x.nil?
|
112
|
+
return false if @y.nil?
|
113
|
+
return false if @width.nil?
|
114
|
+
return false if @height.nil?
|
115
|
+
true
|
116
|
+
end
|
117
|
+
|
118
|
+
# Checks equality by comparing each attribute.
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
x == o.x &&
|
124
|
+
y == o.y &&
|
125
|
+
width == o.width &&
|
126
|
+
height == o.height
|
127
|
+
end
|
128
|
+
|
129
|
+
# @see the `==` method
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def eql?(o)
|
132
|
+
self == o
|
133
|
+
end
|
134
|
+
|
135
|
+
# Calculates hash code according to all attributes.
|
136
|
+
# @return [Fixnum] Hash code
|
137
|
+
def hash
|
138
|
+
[x, y, width, height].hash
|
139
|
+
end
|
140
|
+
|
141
|
+
# Builds the object from hash
|
142
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
143
|
+
# @return [Object] Returns the model itself
|
144
|
+
def build_from_hash(attributes)
|
145
|
+
return nil unless attributes.is_a?(Hash)
|
146
|
+
self.class.swagger_types.each_pair do |key, type|
|
147
|
+
mapKey = self.class.attribute_map[key]
|
148
|
+
if !mapKey.nil?
|
149
|
+
val = attributes[mapKey]
|
150
|
+
if val.nil?
|
151
|
+
mapKeyString = mapKey.to_s
|
152
|
+
mapKeyString[0] = mapKeyString[0].downcase
|
153
|
+
mapKey = mapKeyString.to_sym
|
154
|
+
val = attributes[mapKey]
|
155
|
+
end
|
156
|
+
if !val.nil?
|
157
|
+
if type =~ /\AArray<(.*)>/i
|
158
|
+
# check to ensure the input is an array given that the the attribute
|
159
|
+
# is documented as an array but the input is not
|
160
|
+
if val.is_a?(Array)
|
161
|
+
self.send("#{key}=", val.map { |v| _deserialize($1, v) })
|
162
|
+
end
|
163
|
+
else
|
164
|
+
self.send("#{key}=", _deserialize(type, val))
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
self
|
171
|
+
end
|
172
|
+
|
173
|
+
# Deserializes the data based on type
|
174
|
+
# @param string type Data type
|
175
|
+
# @param string value Value to be deserialized
|
176
|
+
# @return [Object] Deserialized data
|
177
|
+
def _deserialize(type, value)
|
178
|
+
case type.to_sym
|
179
|
+
when :DateTime
|
180
|
+
DateTime.parse(value)
|
181
|
+
when :Date
|
182
|
+
Date.parse(value)
|
183
|
+
when :String
|
184
|
+
value.to_s
|
185
|
+
when :Integer
|
186
|
+
value.to_i
|
187
|
+
when :Float
|
188
|
+
value.to_f
|
189
|
+
when :BOOLEAN
|
190
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
191
|
+
true
|
192
|
+
else
|
193
|
+
false
|
194
|
+
end
|
195
|
+
when :Object
|
196
|
+
# generic object (usually a Hash), return directly
|
197
|
+
value
|
198
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
199
|
+
inner_type = Regexp.last_match[:inner_type]
|
200
|
+
value.map { |v| _deserialize(inner_type, v) }
|
201
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
202
|
+
k_type = Regexp.last_match[:k_type]
|
203
|
+
v_type = Regexp.last_match[:v_type]
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each do |k, v|
|
206
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
else # model
|
210
|
+
registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
|
211
|
+
if registry_type
|
212
|
+
type = registry_type
|
213
|
+
end
|
214
|
+
temp_model = AsposeSlidesCloud.const_get(type).new
|
215
|
+
temp_model.build_from_hash(value)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns the string representation of the object
|
220
|
+
# @return [String] String presentation of the object
|
221
|
+
def to_s
|
222
|
+
to_hash.to_s
|
223
|
+
end
|
224
|
+
|
225
|
+
# to_body is an alias to to_hash (backward compatibility)
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
227
|
+
def to_body
|
228
|
+
to_hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Returns the object in the form of hash
|
232
|
+
# @return [Hash] Returns the object in the form of hash
|
233
|
+
def to_hash
|
234
|
+
hash = {}
|
235
|
+
self.class.attribute_map.each_pair do |attr, param|
|
236
|
+
value = self.send(attr)
|
237
|
+
next if value.nil?
|
238
|
+
hash[param] = _to_hash(value)
|
239
|
+
end
|
240
|
+
hash
|
241
|
+
end
|
242
|
+
|
243
|
+
# Outputs non-array value in the form of hash
|
244
|
+
# For object, use to_hash. Otherwise, just return the value
|
245
|
+
# @param [Object] value Any valid value
|
246
|
+
# @return [Hash] Returns the value in the form of hash
|
247
|
+
def _to_hash(value)
|
248
|
+
if value.is_a?(Array)
|
249
|
+
value.compact.map { |v| _to_hash(v) }
|
250
|
+
elsif value.is_a?(Hash)
|
251
|
+
{}.tap do |hash|
|
252
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
253
|
+
end
|
254
|
+
elsif value.respond_to? :to_hash
|
255
|
+
value.to_hash
|
256
|
+
else
|
257
|
+
value
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
261
|
+
end
|