aspose_slides_cloud 23.1.0 → 23.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +14 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +70 -8
- data/lib/aspose_slides_cloud/models/effect.rb +12 -2
- data/lib/aspose_slides_cloud/models/hyperlink.rb +12 -2
- data/lib/aspose_slides_cloud/models/image_export_options.rb +12 -2
- data/lib/aspose_slides_cloud/models/paragraph.rb +86 -76
- data/lib/aspose_slides_cloud/models/paragraph_format.rb +533 -0
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -2
- data/lib/aspose_slides_cloud/models/text_frame_format.rb +202 -2
- 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 +163 -23
- data/spec/use_cases/shape_spec.rb +10 -0
- data/spec/use_cases/text_format_spec.rb +30 -0
- data/testRules.json +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66c9fd65542698f042084161460065bbea80b1327cc146ee1588af04829cc483
|
4
|
+
data.tar.gz: ac102307a9b78a833abf0ab09a9a69cdd5427b35a0fe9193516d92456b15126e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2997bf173a00c426a96f7db1513eba935b4a504191edba0607ad5cda1e789219287620a34f8cd9b8d238739a89342f5883b14fbfce956631dea3d94ae53a5cd
|
7
|
+
data.tar.gz: 436d7d3163948b6392f67acc0821172f7b5a8f05b1fe79d0a6b1cacacca044a695ab71d7059aa0144e39e34698fa65cd49ed0ae0da92c92bd4b50730979d9ab0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (23.
|
4
|
+
aspose_slides_cloud (23.3.0)
|
5
5
|
faraday (~> 0.17, >= 0.17.3)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
|
@@ -33,12 +33,12 @@ GEM
|
|
33
33
|
rspec-core (~> 3.12.0)
|
34
34
|
rspec-expectations (~> 3.12.0)
|
35
35
|
rspec-mocks (~> 3.12.0)
|
36
|
-
rspec-core (3.12.
|
36
|
+
rspec-core (3.12.1)
|
37
37
|
rspec-support (~> 3.12.0)
|
38
38
|
rspec-expectations (3.12.2)
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
40
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-mocks (3.12.
|
41
|
+
rspec-mocks (3.12.4)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
43
|
rspec-support (~> 3.12.0)
|
44
44
|
rspec-support (3.12.0)
|
data/README.md
CHANGED
@@ -27,6 +27,20 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
27
27
|
**Web:** HTML/HTML5
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
29
29
|
|
30
|
+
## Enhancements in Version 23.3
|
31
|
+
|
32
|
+
* Added **options** parameter to **SplitOnline** and **SplitAndSaveOnline** methods. Those options are the same as for other split & convert methods.
|
33
|
+
* Added **ShowHiddenSlides** boolean property to **ImageExportOptions** class.
|
34
|
+
|
35
|
+
## Enhancements in Version 23.2
|
36
|
+
|
37
|
+
* New **DownloadShapeFromDto** method allows to convert charts and other shapes from DTO to SVG and other formats without creating and storing presentation files.
|
38
|
+
* Added **SoundBase64** property to **Hyperlink** class to support getting and setting hyperlink sounds.
|
39
|
+
* Added **BulletFillFormat** property to **Paragraph** class.
|
40
|
+
* Added **StopPreviousSound** property to animation **Effect** class.
|
41
|
+
* Added a number of properties to **TextFrameFormat** that enable formatting shape text: **MarginLeft**, **MarginRight**, **MarginTop**, **MarginBottom**, **WrapText**, **AnchoringType**, **CenterText**, **TextVerticalType**, **AutofitType**, **ColumnCount**, **ColumnSpacing**, **KeepTextFlat**, **RotationAngle**, **DefaultParagraphFormat**.
|
42
|
+
* Added **Pdf16**, **Pdf17**, **PdfA2b**, **PdfA2a**, **PdfA2u**, **PdfA3a**, **PdfA3b** to the list of allowed values for **PdfExportOptions.Compliance** property.
|
43
|
+
|
30
44
|
## Enhancements in Version 23.1
|
31
45
|
|
32
46
|
* New **CompressEmbeddedFonts** and **CompressEmbeddedFontsOnline** methods allow to reduce the size taken by embedded fonts by excluding unused characters.
|
@@ -7658,6 +7658,64 @@ module AsposeSlidesCloud
|
|
7658
7658
|
:return_type => 'File')
|
7659
7659
|
return data, status_code, headers
|
7660
7660
|
end
|
7661
|
+
# Creates the shape from the DTO and returns the result in the specified format.
|
7662
|
+
# @param format Export format
|
7663
|
+
# @param dto Shape DTO.
|
7664
|
+
def download_shape_from_dto(format, dto)
|
7665
|
+
data, _status_code, _headers = download_shape_from_dto_with_http_info(format, dto)
|
7666
|
+
data
|
7667
|
+
end
|
7668
|
+
|
7669
|
+
# Creates the shape from the DTO and returns the result in the specified format.
|
7670
|
+
# @param format Export format
|
7671
|
+
# @param dto Shape DTO.
|
7672
|
+
def download_shape_from_dto_with_http_info(format, dto)
|
7673
|
+
if @api_client.config.debugging
|
7674
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.download_shape_from_dto ...'
|
7675
|
+
end
|
7676
|
+
|
7677
|
+
# verify the required parameter 'format' is set
|
7678
|
+
if @api_client.config.client_side_validation && format.nil?
|
7679
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_shape_from_dto"
|
7680
|
+
end
|
7681
|
+
# verify enum value
|
7682
|
+
if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Svg'].any?{ |s| s.casecmp(format)==0 }
|
7683
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Svg"
|
7684
|
+
end
|
7685
|
+
# verify the required parameter 'dto' is set
|
7686
|
+
if @api_client.config.client_side_validation && dto.nil?
|
7687
|
+
fail ArgumentError, "Missing the required parameter 'dto' when calling SlidesApi.download_shape_from_dto"
|
7688
|
+
end
|
7689
|
+
# resource path
|
7690
|
+
local_var_path = '/slides/shape/{format}'
|
7691
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
7692
|
+
|
7693
|
+
# query parameters
|
7694
|
+
query_params = {}
|
7695
|
+
|
7696
|
+
# header parameters
|
7697
|
+
header_params = {}
|
7698
|
+
# HTTP header 'Accept' (if needed)
|
7699
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
7700
|
+
# HTTP header 'Content-Type'
|
7701
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
7702
|
+
|
7703
|
+
# http body (model)
|
7704
|
+
post_body = @api_client.object_to_http_body(dto)
|
7705
|
+
|
7706
|
+
# form parameters
|
7707
|
+
post_files = []
|
7708
|
+
|
7709
|
+
auth_names = ['JWT']
|
7710
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
7711
|
+
:header_params => header_params,
|
7712
|
+
:query_params => query_params,
|
7713
|
+
:body => post_body,
|
7714
|
+
:files => post_files,
|
7715
|
+
:auth_names => auth_names,
|
7716
|
+
:return_type => 'File')
|
7717
|
+
return data, status_code, headers
|
7718
|
+
end
|
7661
7719
|
# Render shape to specified picture format.
|
7662
7720
|
# @param document Document data.
|
7663
7721
|
# @param slide_index Slide index.
|
@@ -15843,8 +15901,9 @@ module AsposeSlidesCloud
|
|
15843
15901
|
# @param password Document password.
|
15844
15902
|
# @param storage Document storage.
|
15845
15903
|
# @param fonts_folder Custom fonts folder.
|
15846
|
-
|
15847
|
-
|
15904
|
+
# @param options Export options.
|
15905
|
+
def split_and_save_online(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
15906
|
+
data, _status_code, _headers = split_and_save_online_with_http_info(document, format, dest_folder, width, height, from, to, password, storage, fonts_folder, options)
|
15848
15907
|
data
|
15849
15908
|
end
|
15850
15909
|
|
@@ -15859,7 +15918,8 @@ module AsposeSlidesCloud
|
|
15859
15918
|
# @param password Document password.
|
15860
15919
|
# @param storage Document storage.
|
15861
15920
|
# @param fonts_folder Custom fonts folder.
|
15862
|
-
|
15921
|
+
# @param options Export options.
|
15922
|
+
def split_and_save_online_with_http_info(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
15863
15923
|
if @api_client.config.debugging
|
15864
15924
|
@api_client.config.logger.debug 'Calling API: SlidesApi.split_and_save_online ...'
|
15865
15925
|
end
|
@@ -15899,7 +15959,7 @@ module AsposeSlidesCloud
|
|
15899
15959
|
header_params[:'password'] = password unless password.nil?
|
15900
15960
|
|
15901
15961
|
# http body (model)
|
15902
|
-
post_body =
|
15962
|
+
post_body = @api_client.object_to_http_body(options)
|
15903
15963
|
|
15904
15964
|
# form parameters
|
15905
15965
|
post_files = []
|
@@ -15927,8 +15987,9 @@ module AsposeSlidesCloud
|
|
15927
15987
|
# @param password Document password.
|
15928
15988
|
# @param storage Document storage.
|
15929
15989
|
# @param fonts_folder Custom fonts folder.
|
15930
|
-
|
15931
|
-
|
15990
|
+
# @param options Export options.
|
15991
|
+
def split_online(document, format, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
15992
|
+
data, _status_code, _headers = split_online_with_http_info(document, format, width, height, from, to, password, storage, fonts_folder, options)
|
15932
15993
|
data
|
15933
15994
|
end
|
15934
15995
|
|
@@ -15942,7 +16003,8 @@ module AsposeSlidesCloud
|
|
15942
16003
|
# @param password Document password.
|
15943
16004
|
# @param storage Document storage.
|
15944
16005
|
# @param fonts_folder Custom fonts folder.
|
15945
|
-
|
16006
|
+
# @param options Export options.
|
16007
|
+
def split_online_with_http_info(document, format, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
15946
16008
|
if @api_client.config.debugging
|
15947
16009
|
@api_client.config.logger.debug 'Calling API: SlidesApi.split_online ...'
|
15948
16010
|
end
|
@@ -15981,7 +16043,7 @@ module AsposeSlidesCloud
|
|
15981
16043
|
header_params[:'password'] = password unless password.nil?
|
15982
16044
|
|
15983
16045
|
# http body (model)
|
15984
|
-
post_body =
|
16046
|
+
post_body = @api_client.object_to_http_body(options)
|
15985
16047
|
|
15986
16048
|
# form parameters
|
15987
16049
|
post_files = []
|
@@ -76,6 +76,9 @@ module AsposeSlidesCloud
|
|
76
76
|
# Specifies if the effect will repeat until the next click.
|
77
77
|
attr_accessor :repeat_until_next_click
|
78
78
|
|
79
|
+
# This attribute specifies if the animation effect stops the previous sound.
|
80
|
+
attr_accessor :stop_previous_sound
|
81
|
+
|
79
82
|
class EnumAttributeValidator
|
80
83
|
attr_reader :datatype
|
81
84
|
attr_reader :allowable_values
|
@@ -118,6 +121,7 @@ module AsposeSlidesCloud
|
|
118
121
|
:'trigger_delay_time' => :'TriggerDelayTime',
|
119
122
|
:'repeat_until_end_slide' => :'RepeatUntilEndSlide',
|
120
123
|
:'repeat_until_next_click' => :'RepeatUntilNextClick',
|
124
|
+
:'stop_previous_sound' => :'StopPreviousSound',
|
121
125
|
}
|
122
126
|
end
|
123
127
|
|
@@ -141,6 +145,7 @@ module AsposeSlidesCloud
|
|
141
145
|
:'trigger_delay_time' => :'Float',
|
142
146
|
:'repeat_until_end_slide' => :'BOOLEAN',
|
143
147
|
:'repeat_until_next_click' => :'BOOLEAN',
|
148
|
+
:'stop_previous_sound' => :'BOOLEAN',
|
144
149
|
}
|
145
150
|
end
|
146
151
|
|
@@ -219,6 +224,10 @@ module AsposeSlidesCloud
|
|
219
224
|
if attributes.has_key?(:'RepeatUntilNextClick')
|
220
225
|
self.repeat_until_next_click = attributes[:'RepeatUntilNextClick']
|
221
226
|
end
|
227
|
+
|
228
|
+
if attributes.has_key?(:'StopPreviousSound')
|
229
|
+
self.stop_previous_sound = attributes[:'StopPreviousSound']
|
230
|
+
end
|
222
231
|
end
|
223
232
|
|
224
233
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -320,7 +329,8 @@ module AsposeSlidesCloud
|
|
320
329
|
speed == o.speed &&
|
321
330
|
trigger_delay_time == o.trigger_delay_time &&
|
322
331
|
repeat_until_end_slide == o.repeat_until_end_slide &&
|
323
|
-
repeat_until_next_click == o.repeat_until_next_click
|
332
|
+
repeat_until_next_click == o.repeat_until_next_click &&
|
333
|
+
stop_previous_sound == o.stop_previous_sound
|
324
334
|
end
|
325
335
|
|
326
336
|
# @see the `==` method
|
@@ -332,7 +342,7 @@ module AsposeSlidesCloud
|
|
332
342
|
# Calculates hash code according to all attributes.
|
333
343
|
# @return [Fixnum] Hash code
|
334
344
|
def hash
|
335
|
-
[type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click].hash
|
345
|
+
[type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound].hash
|
336
346
|
end
|
337
347
|
|
338
348
|
# Builds the object from hash
|
@@ -55,6 +55,9 @@ module AsposeSlidesCloud
|
|
55
55
|
# Represents the source of hyperlink color
|
56
56
|
attr_accessor :color_source
|
57
57
|
|
58
|
+
# Audio data encoded in base64. Represents the playing sound of the hyperlink.
|
59
|
+
attr_accessor :sound_base64
|
60
|
+
|
58
61
|
class EnumAttributeValidator
|
59
62
|
attr_reader :datatype
|
60
63
|
attr_reader :allowable_values
|
@@ -90,6 +93,7 @@ module AsposeSlidesCloud
|
|
90
93
|
:'highlight_click' => :'HighlightClick',
|
91
94
|
:'stop_sound_on_click' => :'StopSoundOnClick',
|
92
95
|
:'color_source' => :'ColorSource',
|
96
|
+
:'sound_base64' => :'SoundBase64',
|
93
97
|
}
|
94
98
|
end
|
95
99
|
|
@@ -106,6 +110,7 @@ module AsposeSlidesCloud
|
|
106
110
|
:'highlight_click' => :'BOOLEAN',
|
107
111
|
:'stop_sound_on_click' => :'BOOLEAN',
|
108
112
|
:'color_source' => :'String',
|
113
|
+
:'sound_base64' => :'String',
|
109
114
|
}
|
110
115
|
end
|
111
116
|
|
@@ -156,6 +161,10 @@ module AsposeSlidesCloud
|
|
156
161
|
if attributes.has_key?(:'ColorSource')
|
157
162
|
self.color_source = attributes[:'ColorSource']
|
158
163
|
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'SoundBase64')
|
166
|
+
self.sound_base64 = attributes[:'SoundBase64']
|
167
|
+
end
|
159
168
|
end
|
160
169
|
|
161
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -214,7 +223,8 @@ module AsposeSlidesCloud
|
|
214
223
|
history == o.history &&
|
215
224
|
highlight_click == o.highlight_click &&
|
216
225
|
stop_sound_on_click == o.stop_sound_on_click &&
|
217
|
-
color_source == o.color_source
|
226
|
+
color_source == o.color_source &&
|
227
|
+
sound_base64 == o.sound_base64
|
218
228
|
end
|
219
229
|
|
220
230
|
# @see the `==` method
|
@@ -226,7 +236,7 @@ module AsposeSlidesCloud
|
|
226
236
|
# Calculates hash code according to all attributes.
|
227
237
|
# @return [Fixnum] Hash code
|
228
238
|
def hash
|
229
|
-
[is_disabled, action_type, external_url, target_slide_index, target_frame, tooltip, history, highlight_click, stop_sound_on_click, color_source].hash
|
239
|
+
[is_disabled, action_type, external_url, target_slide_index, target_frame, tooltip, history, highlight_click, stop_sound_on_click, color_source, sound_base64].hash
|
230
240
|
end
|
231
241
|
|
232
242
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module AsposeSlidesCloud
|
|
37
37
|
# Gets or sets the color of comments area (Applies only if comments are displayed on the right).
|
38
38
|
attr_accessor :comments_area_color
|
39
39
|
|
40
|
+
# Show hidden slides. If true, hidden are exported.
|
41
|
+
attr_accessor :show_hidden_slides
|
42
|
+
|
40
43
|
class EnumAttributeValidator
|
41
44
|
attr_reader :datatype
|
42
45
|
attr_reader :allowable_values
|
@@ -66,6 +69,7 @@ module AsposeSlidesCloud
|
|
66
69
|
:'comments_position' => :'CommentsPosition',
|
67
70
|
:'comments_area_width' => :'CommentsAreaWidth',
|
68
71
|
:'comments_area_color' => :'CommentsAreaColor',
|
72
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
69
73
|
})
|
70
74
|
end
|
71
75
|
|
@@ -76,6 +80,7 @@ module AsposeSlidesCloud
|
|
76
80
|
:'comments_position' => :'String',
|
77
81
|
:'comments_area_width' => :'Integer',
|
78
82
|
:'comments_area_color' => :'String',
|
83
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
79
84
|
})
|
80
85
|
end
|
81
86
|
|
@@ -99,6 +104,10 @@ module AsposeSlidesCloud
|
|
99
104
|
if attributes.has_key?(:'CommentsAreaColor')
|
100
105
|
self.comments_area_color = attributes[:'CommentsAreaColor']
|
101
106
|
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'ShowHiddenSlides')
|
109
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
110
|
+
end
|
102
111
|
self.format = 'image'
|
103
112
|
end
|
104
113
|
|
@@ -154,7 +163,8 @@ module AsposeSlidesCloud
|
|
154
163
|
notes_position == o.notes_position &&
|
155
164
|
comments_position == o.comments_position &&
|
156
165
|
comments_area_width == o.comments_area_width &&
|
157
|
-
comments_area_color == o.comments_area_color
|
166
|
+
comments_area_color == o.comments_area_color &&
|
167
|
+
show_hidden_slides == o.show_hidden_slides
|
158
168
|
end
|
159
169
|
|
160
170
|
# @see the `==` method
|
@@ -166,7 +176,7 @@ module AsposeSlidesCloud
|
|
166
176
|
# Calculates hash code according to all attributes.
|
167
177
|
# @return [Fixnum] Hash code
|
168
178
|
def hash
|
169
|
-
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color].hash
|
179
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, height, width, notes_position, comments_position, comments_area_width, comments_area_color, show_hidden_slides].hash
|
170
180
|
end
|
171
181
|
|
172
182
|
# Builds the object from hash
|
@@ -55,21 +55,6 @@ module AsposeSlidesCloud
|
|
55
55
|
# Depth.
|
56
56
|
attr_accessor :depth
|
57
57
|
|
58
|
-
# Bullet char.
|
59
|
-
attr_accessor :bullet_char
|
60
|
-
|
61
|
-
# Bullet height.
|
62
|
-
attr_accessor :bullet_height
|
63
|
-
|
64
|
-
# Bullet type.
|
65
|
-
attr_accessor :bullet_type
|
66
|
-
|
67
|
-
# Starting number for a numbered bullet.
|
68
|
-
attr_accessor :numbered_bullet_start_with
|
69
|
-
|
70
|
-
# Numbered bullet style.
|
71
|
-
attr_accessor :numbered_bullet_style
|
72
|
-
|
73
58
|
# True if hanging punctuation is used with the paragraph.
|
74
59
|
attr_accessor :hanging_punctuation
|
75
60
|
|
@@ -88,6 +73,24 @@ module AsposeSlidesCloud
|
|
88
73
|
# Default portion format.
|
89
74
|
attr_accessor :default_portion_format
|
90
75
|
|
76
|
+
# Bullet char.
|
77
|
+
attr_accessor :bullet_char
|
78
|
+
|
79
|
+
# Bullet height.
|
80
|
+
attr_accessor :bullet_height
|
81
|
+
|
82
|
+
# Bullet type.
|
83
|
+
attr_accessor :bullet_type
|
84
|
+
|
85
|
+
# Starting number for a numbered bullet.
|
86
|
+
attr_accessor :numbered_bullet_start_with
|
87
|
+
|
88
|
+
# Numbered bullet style.
|
89
|
+
attr_accessor :numbered_bullet_style
|
90
|
+
|
91
|
+
# Bullet fill format.
|
92
|
+
attr_accessor :bullet_fill_format
|
93
|
+
|
91
94
|
class EnumAttributeValidator
|
92
95
|
attr_reader :datatype
|
93
96
|
attr_reader :allowable_values
|
@@ -123,17 +126,18 @@ module AsposeSlidesCloud
|
|
123
126
|
:'font_alignment' => :'FontAlignment',
|
124
127
|
:'default_tab_size' => :'DefaultTabSize',
|
125
128
|
:'depth' => :'Depth',
|
126
|
-
:'bullet_char' => :'BulletChar',
|
127
|
-
:'bullet_height' => :'BulletHeight',
|
128
|
-
:'bullet_type' => :'BulletType',
|
129
|
-
:'numbered_bullet_start_with' => :'NumberedBulletStartWith',
|
130
|
-
:'numbered_bullet_style' => :'NumberedBulletStyle',
|
131
129
|
:'hanging_punctuation' => :'HangingPunctuation',
|
132
130
|
:'east_asian_line_break' => :'EastAsianLineBreak',
|
133
131
|
:'latin_line_break' => :'LatinLineBreak',
|
134
132
|
:'right_to_left' => :'RightToLeft',
|
135
133
|
:'portion_list' => :'PortionList',
|
136
134
|
:'default_portion_format' => :'DefaultPortionFormat',
|
135
|
+
:'bullet_char' => :'BulletChar',
|
136
|
+
:'bullet_height' => :'BulletHeight',
|
137
|
+
:'bullet_type' => :'BulletType',
|
138
|
+
:'numbered_bullet_start_with' => :'NumberedBulletStartWith',
|
139
|
+
:'numbered_bullet_style' => :'NumberedBulletStyle',
|
140
|
+
:'bullet_fill_format' => :'BulletFillFormat',
|
137
141
|
})
|
138
142
|
end
|
139
143
|
|
@@ -150,17 +154,18 @@ module AsposeSlidesCloud
|
|
150
154
|
:'font_alignment' => :'String',
|
151
155
|
:'default_tab_size' => :'Float',
|
152
156
|
:'depth' => :'Integer',
|
153
|
-
:'bullet_char' => :'String',
|
154
|
-
:'bullet_height' => :'Float',
|
155
|
-
:'bullet_type' => :'String',
|
156
|
-
:'numbered_bullet_start_with' => :'Integer',
|
157
|
-
:'numbered_bullet_style' => :'String',
|
158
157
|
:'hanging_punctuation' => :'String',
|
159
158
|
:'east_asian_line_break' => :'String',
|
160
159
|
:'latin_line_break' => :'String',
|
161
160
|
:'right_to_left' => :'String',
|
162
161
|
:'portion_list' => :'Array<Portion>',
|
163
162
|
:'default_portion_format' => :'PortionFormat',
|
163
|
+
:'bullet_char' => :'String',
|
164
|
+
:'bullet_height' => :'Float',
|
165
|
+
:'bullet_type' => :'String',
|
166
|
+
:'numbered_bullet_start_with' => :'Integer',
|
167
|
+
:'numbered_bullet_style' => :'String',
|
168
|
+
:'bullet_fill_format' => :'FillFormat',
|
164
169
|
})
|
165
170
|
end
|
166
171
|
|
@@ -209,26 +214,6 @@ module AsposeSlidesCloud
|
|
209
214
|
self.depth = attributes[:'Depth']
|
210
215
|
end
|
211
216
|
|
212
|
-
if attributes.has_key?(:'BulletChar')
|
213
|
-
self.bullet_char = attributes[:'BulletChar']
|
214
|
-
end
|
215
|
-
|
216
|
-
if attributes.has_key?(:'BulletHeight')
|
217
|
-
self.bullet_height = attributes[:'BulletHeight']
|
218
|
-
end
|
219
|
-
|
220
|
-
if attributes.has_key?(:'BulletType')
|
221
|
-
self.bullet_type = attributes[:'BulletType']
|
222
|
-
end
|
223
|
-
|
224
|
-
if attributes.has_key?(:'NumberedBulletStartWith')
|
225
|
-
self.numbered_bullet_start_with = attributes[:'NumberedBulletStartWith']
|
226
|
-
end
|
227
|
-
|
228
|
-
if attributes.has_key?(:'NumberedBulletStyle')
|
229
|
-
self.numbered_bullet_style = attributes[:'NumberedBulletStyle']
|
230
|
-
end
|
231
|
-
|
232
217
|
if attributes.has_key?(:'HangingPunctuation')
|
233
218
|
self.hanging_punctuation = attributes[:'HangingPunctuation']
|
234
219
|
end
|
@@ -254,6 +239,30 @@ module AsposeSlidesCloud
|
|
254
239
|
if attributes.has_key?(:'DefaultPortionFormat')
|
255
240
|
self.default_portion_format = attributes[:'DefaultPortionFormat']
|
256
241
|
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'BulletChar')
|
244
|
+
self.bullet_char = attributes[:'BulletChar']
|
245
|
+
end
|
246
|
+
|
247
|
+
if attributes.has_key?(:'BulletHeight')
|
248
|
+
self.bullet_height = attributes[:'BulletHeight']
|
249
|
+
end
|
250
|
+
|
251
|
+
if attributes.has_key?(:'BulletType')
|
252
|
+
self.bullet_type = attributes[:'BulletType']
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.has_key?(:'NumberedBulletStartWith')
|
256
|
+
self.numbered_bullet_start_with = attributes[:'NumberedBulletStartWith']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.has_key?(:'NumberedBulletStyle')
|
260
|
+
self.numbered_bullet_style = attributes[:'NumberedBulletStyle']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.has_key?(:'BulletFillFormat')
|
264
|
+
self.bullet_fill_format = attributes[:'BulletFillFormat']
|
265
|
+
end
|
257
266
|
end
|
258
267
|
|
259
268
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -271,10 +280,6 @@ module AsposeSlidesCloud
|
|
271
280
|
return false unless alignment_validator.valid?(@alignment)
|
272
281
|
font_alignment_validator = EnumAttributeValidator.new('String', ['Automatic', 'Top', 'Center', 'Bottom', 'Baseline', 'Default'])
|
273
282
|
return false unless font_alignment_validator.valid?(@font_alignment)
|
274
|
-
bullet_type_validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
|
275
|
-
return false unless bullet_type_validator.valid?(@bullet_type)
|
276
|
-
numbered_bullet_style_validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
|
277
|
-
return false unless numbered_bullet_style_validator.valid?(@numbered_bullet_style)
|
278
283
|
hanging_punctuation_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
|
279
284
|
return false unless hanging_punctuation_validator.valid?(@hanging_punctuation)
|
280
285
|
east_asian_line_break_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
|
@@ -283,6 +288,10 @@ module AsposeSlidesCloud
|
|
283
288
|
return false unless latin_line_break_validator.valid?(@latin_line_break)
|
284
289
|
right_to_left_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
|
285
290
|
return false unless right_to_left_validator.valid?(@right_to_left)
|
291
|
+
bullet_type_validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
|
292
|
+
return false unless bullet_type_validator.valid?(@bullet_type)
|
293
|
+
numbered_bullet_style_validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
|
294
|
+
return false unless numbered_bullet_style_validator.valid?(@numbered_bullet_style)
|
286
295
|
true
|
287
296
|
end
|
288
297
|
|
@@ -306,26 +315,6 @@ module AsposeSlidesCloud
|
|
306
315
|
@font_alignment = font_alignment
|
307
316
|
end
|
308
317
|
|
309
|
-
# Custom attribute writer method checking allowed values (enum).
|
310
|
-
# @param [Object] bullet_type Object to be assigned
|
311
|
-
def bullet_type=(bullet_type)
|
312
|
-
validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
|
313
|
-
unless validator.valid?(bullet_type)
|
314
|
-
fail ArgumentError, 'invalid value for "bullet_type", must be one of #{validator.allowable_values}.'
|
315
|
-
end
|
316
|
-
@bullet_type = bullet_type
|
317
|
-
end
|
318
|
-
|
319
|
-
# Custom attribute writer method checking allowed values (enum).
|
320
|
-
# @param [Object] numbered_bullet_style Object to be assigned
|
321
|
-
def numbered_bullet_style=(numbered_bullet_style)
|
322
|
-
validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
|
323
|
-
unless validator.valid?(numbered_bullet_style)
|
324
|
-
fail ArgumentError, 'invalid value for "numbered_bullet_style", must be one of #{validator.allowable_values}.'
|
325
|
-
end
|
326
|
-
@numbered_bullet_style = numbered_bullet_style
|
327
|
-
end
|
328
|
-
|
329
318
|
# Custom attribute writer method checking allowed values (enum).
|
330
319
|
# @param [Object] hanging_punctuation Object to be assigned
|
331
320
|
def hanging_punctuation=(hanging_punctuation)
|
@@ -366,6 +355,26 @@ module AsposeSlidesCloud
|
|
366
355
|
@right_to_left = right_to_left
|
367
356
|
end
|
368
357
|
|
358
|
+
# Custom attribute writer method checking allowed values (enum).
|
359
|
+
# @param [Object] bullet_type Object to be assigned
|
360
|
+
def bullet_type=(bullet_type)
|
361
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
|
362
|
+
unless validator.valid?(bullet_type)
|
363
|
+
fail ArgumentError, 'invalid value for "bullet_type", must be one of #{validator.allowable_values}.'
|
364
|
+
end
|
365
|
+
@bullet_type = bullet_type
|
366
|
+
end
|
367
|
+
|
368
|
+
# Custom attribute writer method checking allowed values (enum).
|
369
|
+
# @param [Object] numbered_bullet_style Object to be assigned
|
370
|
+
def numbered_bullet_style=(numbered_bullet_style)
|
371
|
+
validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
|
372
|
+
unless validator.valid?(numbered_bullet_style)
|
373
|
+
fail ArgumentError, 'invalid value for "numbered_bullet_style", must be one of #{validator.allowable_values}.'
|
374
|
+
end
|
375
|
+
@numbered_bullet_style = numbered_bullet_style
|
376
|
+
end
|
377
|
+
|
369
378
|
# Checks equality by comparing each attribute.
|
370
379
|
# @param [Object] Object to be compared
|
371
380
|
def ==(o)
|
@@ -383,17 +392,18 @@ module AsposeSlidesCloud
|
|
383
392
|
font_alignment == o.font_alignment &&
|
384
393
|
default_tab_size == o.default_tab_size &&
|
385
394
|
depth == o.depth &&
|
386
|
-
bullet_char == o.bullet_char &&
|
387
|
-
bullet_height == o.bullet_height &&
|
388
|
-
bullet_type == o.bullet_type &&
|
389
|
-
numbered_bullet_start_with == o.numbered_bullet_start_with &&
|
390
|
-
numbered_bullet_style == o.numbered_bullet_style &&
|
391
395
|
hanging_punctuation == o.hanging_punctuation &&
|
392
396
|
east_asian_line_break == o.east_asian_line_break &&
|
393
397
|
latin_line_break == o.latin_line_break &&
|
394
398
|
right_to_left == o.right_to_left &&
|
395
399
|
portion_list == o.portion_list &&
|
396
|
-
default_portion_format == o.default_portion_format
|
400
|
+
default_portion_format == o.default_portion_format &&
|
401
|
+
bullet_char == o.bullet_char &&
|
402
|
+
bullet_height == o.bullet_height &&
|
403
|
+
bullet_type == o.bullet_type &&
|
404
|
+
numbered_bullet_start_with == o.numbered_bullet_start_with &&
|
405
|
+
numbered_bullet_style == o.numbered_bullet_style &&
|
406
|
+
bullet_fill_format == o.bullet_fill_format
|
397
407
|
end
|
398
408
|
|
399
409
|
# @see the `==` method
|
@@ -405,7 +415,7 @@ module AsposeSlidesCloud
|
|
405
415
|
# Calculates hash code according to all attributes.
|
406
416
|
# @return [Fixnum] Hash code
|
407
417
|
def hash
|
408
|
-
[self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth,
|
418
|
+
[self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list, default_portion_format, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, bullet_fill_format].hash
|
409
419
|
end
|
410
420
|
|
411
421
|
# Builds the object from hash
|