aspose_slides_cloud 24.8.0 → 24.12.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 +9 -11
- data/README.md +14 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +78 -2
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +110 -0
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +14 -2
- data/lib/aspose_slides_cloud/models/drawing_guide.rb +123 -0
- data/lib/aspose_slides_cloud/models/effect.rb +4 -4
- data/lib/aspose_slides_cloud/models/export_options.rb +11 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
- 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/pdf_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/picture_fill.rb +85 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/shape.rb +4 -2
- data/lib/aspose_slides_cloud/models/shape_base.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_row.rb +0 -10
- 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/view_properties.rb +12 -2
- 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 +246 -1
- data/spec/api/slides_async_api_spec.rb +170 -0
- data/spec/use_cases/image_spec.rb +15 -4
- data/testRules.json +5 -1
- 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: 906ac4d7354457db181c2555c518f68c072ee1cf876addac7542ff8a38291414
|
4
|
+
data.tar.gz: f84e649f544b604408b7aa16d4a447664bb1a964232262ae43fe3aeed25478f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c61237f55714bb39d0a15892ffd48faa733932ddf91dfc27c6038a6931d879abb3c9ac6d9a15346a204073193cc451540d260ba12608d5b0bc2e99cfd4d59c62
|
7
|
+
data.tar.gz: f485293566a91b1e562b7320aea610b09ff0d21053a1a00be4ac1c4e387c1d82622141954c853133f5d92c390a76baf6cb6422012d352dc7036fae4c88610792
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (24.
|
4
|
+
aspose_slides_cloud (24.12.0)
|
5
5
|
faraday (~> 1.0, >= 1.0.0)
|
6
6
|
faraday-httpclient (~> 1.0, >= 1.0.0)
|
7
7
|
httpclient (~> 2.2, >= 2.2.0)
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
bigdecimal
|
24
24
|
rexml
|
25
25
|
diff-lcs (1.5.1)
|
26
|
-
faraday (1.10.
|
26
|
+
faraday (1.10.4)
|
27
27
|
faraday-em_http (~> 1.0)
|
28
28
|
faraday-em_synchrony (~> 1.0)
|
29
29
|
faraday-excon (~> 1.1)
|
@@ -46,32 +46,30 @@ GEM
|
|
46
46
|
faraday-patron (1.0.0)
|
47
47
|
faraday-rack (1.0.0)
|
48
48
|
faraday-retry (1.0.3)
|
49
|
-
hashdiff (1.1.
|
49
|
+
hashdiff (1.1.2)
|
50
50
|
httpclient (2.8.3)
|
51
|
-
json (2.
|
51
|
+
json (2.9.0)
|
52
52
|
multipart-post (2.4.1)
|
53
53
|
public_suffix (6.0.1)
|
54
54
|
rake (12.3.3)
|
55
|
-
rexml (3.3.
|
56
|
-
strscan
|
55
|
+
rexml (3.3.9)
|
57
56
|
rspec (3.13.0)
|
58
57
|
rspec-core (~> 3.13.0)
|
59
58
|
rspec-expectations (~> 3.13.0)
|
60
59
|
rspec-mocks (~> 3.13.0)
|
61
|
-
rspec-core (3.13.
|
60
|
+
rspec-core (3.13.2)
|
62
61
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
62
|
+
rspec-expectations (3.13.3)
|
64
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
64
|
rspec-support (~> 3.13.0)
|
66
|
-
rspec-mocks (3.13.
|
65
|
+
rspec-mocks (3.13.2)
|
67
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
68
67
|
rspec-support (~> 3.13.0)
|
69
|
-
rspec-support (3.13.
|
68
|
+
rspec-support (3.13.2)
|
70
69
|
rspec_junit_formatter (0.6.0)
|
71
70
|
rspec-core (>= 2, < 4, != 2.12.0)
|
72
71
|
ruby2_keywords (0.0.5)
|
73
72
|
rubyzip (2.3.2)
|
74
|
-
strscan (3.1.0)
|
75
73
|
vcr (3.0.3)
|
76
74
|
warning (1.4.0)
|
77
75
|
webmock (1.24.6)
|
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 24.12
|
31
|
+
|
32
|
+
* Added **CompressImage** method. **DeletePictureCroppedAreas** method is deprecated and will be removed after 25.2 release.
|
33
|
+
* The **Paragraphs** property of **Shape** class is now a list of **Paragraph** objects instead of ResourceURIs.
|
34
|
+
* Added **TileScaleX**, **TileScaleY**, **TileOffsetX**, **TileOffsetY**, **TileAlignment** and **TileFlip** properties to **PictureFill** class.
|
35
|
+
* Added **DrawingGuides** property to **CommonSlideViewProperty** class.
|
36
|
+
* Added **DeleteEmbeddedBinaryObjects** boolean property to **ExportOptions** class.
|
37
|
+
* Added **IncludeOleData** boolean property to **PdfExportOptions** class.
|
38
|
+
* Added **GridSpacing** property to **ViewProperties** class.
|
39
|
+
|
40
|
+
## Enhancements in Version 24.9
|
41
|
+
|
42
|
+
* Added **Upload** and **Download** methods to async API. They are identical to **UploadFile** and **DownloadFile** methods of the regular API, but file size is not restricted for them.
|
43
|
+
|
30
44
|
## Enhancements in Version 24.8
|
31
45
|
|
32
46
|
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
@@ -318,6 +318,82 @@ module AsposeSlidesCloud
|
|
318
318
|
:return_type => 'File')
|
319
319
|
return data, status_code, headers
|
320
320
|
end
|
321
|
+
# Deletes cropped areas of a pictire.
|
322
|
+
# @param name Document name.
|
323
|
+
# @param slide_index Slide index.
|
324
|
+
# @param shape_index Shape index (must refer to a picture frame).
|
325
|
+
# @param resolution Target resolution in DPI.
|
326
|
+
# @param delete_picture_cropped_areas true to delete picture cropped areas.
|
327
|
+
# @param password Document password.
|
328
|
+
# @param folder Document folder.
|
329
|
+
# @param storage Presentation storage.
|
330
|
+
def compress_image(name, slide_index, shape_index, resolution = nil, delete_picture_cropped_areas = nil, password = nil, folder = nil, storage = nil)
|
331
|
+
compress_image_with_http_info(name, slide_index, shape_index, resolution, delete_picture_cropped_areas, password, folder, storage)
|
332
|
+
nil
|
333
|
+
end
|
334
|
+
|
335
|
+
# Deletes cropped areas of a pictire.
|
336
|
+
# @param name Document name.
|
337
|
+
# @param slide_index Slide index.
|
338
|
+
# @param shape_index Shape index (must refer to a picture frame).
|
339
|
+
# @param resolution Target resolution in DPI.
|
340
|
+
# @param delete_picture_cropped_areas true to delete picture cropped areas.
|
341
|
+
# @param password Document password.
|
342
|
+
# @param folder Document folder.
|
343
|
+
# @param storage Presentation storage.
|
344
|
+
def compress_image_with_http_info(name, slide_index, shape_index, resolution = nil, delete_picture_cropped_areas = nil, password = nil, folder = nil, storage = nil)
|
345
|
+
if @api_client.config.debugging
|
346
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.compress_image ...'
|
347
|
+
end
|
348
|
+
|
349
|
+
# verify the required parameter 'name' is set
|
350
|
+
if @api_client.config.client_side_validation && name.nil?
|
351
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.compress_image"
|
352
|
+
end
|
353
|
+
# verify the required parameter 'slide_index' is set
|
354
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
355
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.compress_image"
|
356
|
+
end
|
357
|
+
# verify the required parameter 'shape_index' is set
|
358
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
359
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.compress_image"
|
360
|
+
end
|
361
|
+
# resource path
|
362
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/compressImage'
|
363
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
364
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
365
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
366
|
+
|
367
|
+
# query parameters
|
368
|
+
query_params = {}
|
369
|
+
query_params[:'resolution'] = @api_client.prepare_for_query(resolution) unless resolution.nil?
|
370
|
+
query_params[:'deletePictureCroppedAreas'] = @api_client.prepare_for_query(delete_picture_cropped_areas) unless delete_picture_cropped_areas.nil?
|
371
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
372
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
373
|
+
|
374
|
+
# header parameters
|
375
|
+
header_params = {}
|
376
|
+
# HTTP header 'Accept' (if needed)
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
378
|
+
# HTTP header 'Content-Type'
|
379
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
380
|
+
header_params[:'password'] = password unless password.nil?
|
381
|
+
|
382
|
+
# http body (model)
|
383
|
+
post_body = nil
|
384
|
+
|
385
|
+
# form parameters
|
386
|
+
post_files = []
|
387
|
+
|
388
|
+
auth_names = ['JWT']
|
389
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
390
|
+
:header_params => header_params,
|
391
|
+
:query_params => query_params,
|
392
|
+
:body => post_body,
|
393
|
+
:files => post_files,
|
394
|
+
:auth_names => auth_names)
|
395
|
+
return data, status_code, headers
|
396
|
+
end
|
321
397
|
# Convert presentation from request content to format specified.
|
322
398
|
# @param document Document data.
|
323
399
|
# @param format Export format.
|
@@ -11397,7 +11473,7 @@ module AsposeSlidesCloud
|
|
11397
11473
|
# @param folder Document folder.
|
11398
11474
|
# @param storage Document storage.
|
11399
11475
|
# @param shape_type Shape type.
|
11400
|
-
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
11476
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2\").
|
11401
11477
|
def get_shapes(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil, sub_shape = nil)
|
11402
11478
|
data, _status_code, _headers = get_shapes_with_http_info(name, slide_index, password, folder, storage, shape_type, sub_shape)
|
11403
11479
|
data
|
@@ -11410,7 +11486,7 @@ module AsposeSlidesCloud
|
|
11410
11486
|
# @param folder Document folder.
|
11411
11487
|
# @param storage Document storage.
|
11412
11488
|
# @param shape_type Shape type.
|
11413
|
-
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
11489
|
+
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2\").
|
11414
11490
|
def get_shapes_with_http_info(name, slide_index, password = nil, folder = nil, storage = nil, shape_type = nil, sub_shape = nil)
|
11415
11491
|
if @api_client.config.debugging
|
11416
11492
|
@api_client.config.logger.debug 'Calling API: SlidesApi.get_shapes ...'
|
@@ -30,6 +30,58 @@ module AsposeSlidesCloud
|
|
30
30
|
@api_client = AsposeSlidesCloud::ApiClient.new(configuration)
|
31
31
|
end
|
32
32
|
|
33
|
+
# @param path
|
34
|
+
# @param storage_name
|
35
|
+
# @param version_id
|
36
|
+
def download(path, storage_name = nil, version_id = nil)
|
37
|
+
data, _status_code, _headers = download_with_http_info(path, storage_name, version_id)
|
38
|
+
data
|
39
|
+
end
|
40
|
+
|
41
|
+
# @param path
|
42
|
+
# @param storage_name
|
43
|
+
# @param version_id
|
44
|
+
def download_with_http_info(path, storage_name = nil, version_id = nil)
|
45
|
+
if @api_client.config.debugging
|
46
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.download ...'
|
47
|
+
end
|
48
|
+
|
49
|
+
# verify the required parameter 'path' is set
|
50
|
+
if @api_client.config.client_side_validation && path.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.download"
|
52
|
+
end
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/slides/async/storage/file/{path}'
|
55
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)
|
56
|
+
|
57
|
+
# query parameters
|
58
|
+
query_params = {}
|
59
|
+
query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.nil?
|
60
|
+
query_params[:'versionId'] = @api_client.prepare_for_query(version_id) unless version_id.nil?
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
66
|
+
# HTTP header 'Content-Type'
|
67
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
post_files = []
|
74
|
+
|
75
|
+
auth_names = ['JWT']
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:body => post_body,
|
80
|
+
:files => post_files,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'File')
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
33
85
|
# @param id
|
34
86
|
def get_operation_result(id)
|
35
87
|
data, _status_code, _headers = get_operation_result_with_http_info(id)
|
@@ -706,5 +758,63 @@ module AsposeSlidesCloud
|
|
706
758
|
:return_type => 'String')
|
707
759
|
return data, status_code, headers
|
708
760
|
end
|
761
|
+
# @param path
|
762
|
+
# @param file File to upload
|
763
|
+
# @param storage_name
|
764
|
+
def upload(path, file, storage_name = nil)
|
765
|
+
data, _status_code, _headers = upload_with_http_info(path, file, storage_name)
|
766
|
+
data
|
767
|
+
end
|
768
|
+
|
769
|
+
# @param path
|
770
|
+
# @param file File to upload
|
771
|
+
# @param storage_name
|
772
|
+
def upload_with_http_info(path, file, storage_name = nil)
|
773
|
+
if @api_client.config.debugging
|
774
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.upload ...'
|
775
|
+
end
|
776
|
+
|
777
|
+
# verify the required parameter 'path' is set
|
778
|
+
if @api_client.config.client_side_validation && path.nil?
|
779
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling SlidesAsyncApi.upload"
|
780
|
+
end
|
781
|
+
# verify the required parameter 'file' is set
|
782
|
+
if @api_client.config.client_side_validation && file.nil?
|
783
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling SlidesAsyncApi.upload"
|
784
|
+
end
|
785
|
+
# resource path
|
786
|
+
local_var_path = '/slides/async/storage/file/{path}'
|
787
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'path', path)
|
788
|
+
|
789
|
+
# query parameters
|
790
|
+
query_params = {}
|
791
|
+
query_params[:'storageName'] = @api_client.prepare_for_query(storage_name) unless storage_name.nil?
|
792
|
+
|
793
|
+
# header parameters
|
794
|
+
header_params = {}
|
795
|
+
# HTTP header 'Accept' (if needed)
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
797
|
+
# HTTP header 'Content-Type'
|
798
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
799
|
+
|
800
|
+
# http body (model)
|
801
|
+
post_body = nil
|
802
|
+
|
803
|
+
# form parameters
|
804
|
+
post_files = []
|
805
|
+
if file
|
806
|
+
post_files = post_files.push(file)
|
807
|
+
end
|
808
|
+
|
809
|
+
auth_names = ['JWT']
|
810
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
811
|
+
:header_params => header_params,
|
812
|
+
:query_params => query_params,
|
813
|
+
:body => post_body,
|
814
|
+
:files => post_files,
|
815
|
+
:auth_names => auth_names,
|
816
|
+
:return_type => 'FilesUploadResult')
|
817
|
+
return data, status_code, headers
|
818
|
+
end
|
709
819
|
end
|
710
820
|
end
|
@@ -31,11 +31,15 @@ module AsposeSlidesCloud
|
|
31
31
|
# True if the view content should automatically scale to best fit the current window size.
|
32
32
|
attr_accessor :variable_scale
|
33
33
|
|
34
|
+
# Drawing guides
|
35
|
+
attr_accessor :drawing_guides
|
36
|
+
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
38
|
def self.attribute_map
|
36
39
|
{
|
37
40
|
:'scale' => :'Scale',
|
38
41
|
:'variable_scale' => :'VariableScale',
|
42
|
+
:'drawing_guides' => :'DrawingGuides',
|
39
43
|
}
|
40
44
|
end
|
41
45
|
|
@@ -44,6 +48,7 @@ module AsposeSlidesCloud
|
|
44
48
|
{
|
45
49
|
:'scale' => :'Integer',
|
46
50
|
:'variable_scale' => :'BOOLEAN',
|
51
|
+
:'drawing_guides' => :'Array<DrawingGuide>',
|
47
52
|
}
|
48
53
|
end
|
49
54
|
|
@@ -62,6 +67,12 @@ module AsposeSlidesCloud
|
|
62
67
|
if attributes.has_key?(:'VariableScale')
|
63
68
|
self.variable_scale = attributes[:'VariableScale']
|
64
69
|
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'DrawingGuides')
|
72
|
+
if (value = attributes[:'DrawingGuides']).is_a?(Array)
|
73
|
+
self.drawing_guides = value
|
74
|
+
end
|
75
|
+
end
|
65
76
|
end
|
66
77
|
|
67
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -83,7 +94,8 @@ module AsposeSlidesCloud
|
|
83
94
|
return true if self.equal?(o)
|
84
95
|
self.class == o.class &&
|
85
96
|
scale == o.scale &&
|
86
|
-
variable_scale == o.variable_scale
|
97
|
+
variable_scale == o.variable_scale &&
|
98
|
+
drawing_guides == o.drawing_guides
|
87
99
|
end
|
88
100
|
|
89
101
|
# @see the `==` method
|
@@ -95,7 +107,7 @@ module AsposeSlidesCloud
|
|
95
107
|
# Calculates hash code according to all attributes.
|
96
108
|
# @return [Fixnum] Hash code
|
97
109
|
def hash
|
98
|
-
[scale, variable_scale].hash
|
110
|
+
[scale, variable_scale, drawing_guides].hash
|
99
111
|
end
|
100
112
|
end
|
101
113
|
end
|
@@ -0,0 +1,123 @@
|
|
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
|
+
# Drawing guide.
|
27
|
+
class DrawingGuide < BaseObject
|
28
|
+
# Last used view mode.
|
29
|
+
attr_accessor :orientation
|
30
|
+
|
31
|
+
# Horizontal bar state.
|
32
|
+
attr_accessor :position
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'orientation' => :'Orientation',
|
38
|
+
:'position' => :'Position',
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.swagger_types
|
44
|
+
{
|
45
|
+
:'orientation' => :'String',
|
46
|
+
:'position' => :'Float',
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'Orientation')
|
59
|
+
self.orientation = attributes[:'Orientation']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'Position')
|
63
|
+
self.position = attributes[:'Position']
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
if @orientation.nil?
|
72
|
+
invalid_properties.push('invalid value for "orientation", orientation cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @position.nil?
|
76
|
+
invalid_properties.push('invalid value for "position", position cannot be nil.')
|
77
|
+
end
|
78
|
+
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
return false if @orientation.nil?
|
86
|
+
orientation_validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
|
87
|
+
return false unless orientation_validator.valid?(@orientation)
|
88
|
+
return false if @position.nil?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Custom attribute writer method checking allowed values (enum).
|
93
|
+
# @param [Object] orientation Object to be assigned
|
94
|
+
def orientation=(orientation)
|
95
|
+
validator = EnumAttributeValidator.new('String', ['Horizontal', 'Vertical'])
|
96
|
+
unless validator.valid?(orientation)
|
97
|
+
fail ArgumentError, 'invalid value for "orientation", must be one of #{validator.allowable_values}.'
|
98
|
+
end
|
99
|
+
@orientation = orientation
|
100
|
+
end
|
101
|
+
|
102
|
+
# Checks equality by comparing each attribute.
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def ==(o)
|
105
|
+
return true if self.equal?(o)
|
106
|
+
self.class == o.class &&
|
107
|
+
orientation == o.orientation &&
|
108
|
+
position == o.position
|
109
|
+
end
|
110
|
+
|
111
|
+
# @see the `==` method
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def eql?(o)
|
114
|
+
self == o
|
115
|
+
end
|
116
|
+
|
117
|
+
# Calculates hash code according to all attributes.
|
118
|
+
# @return [Fixnum] Hash code
|
119
|
+
def hash
|
120
|
+
[orientation, position].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -258,9 +258,9 @@ module AsposeSlidesCloud
|
|
258
258
|
# Check to see if the all the properties in the model are valid
|
259
259
|
# @return true if the model is valid
|
260
260
|
def valid?
|
261
|
-
type_validator = EnumAttributeValidator.new('String', ['Appear', 'CurveUpDown', 'Ascend', 'Blast', 'Blinds', 'Blink', 'BoldFlash', 'BoldReveal', 'Boomerang', 'Bounce', 'Box', 'BrushOnColor', 'BrushOnUnderline', 'CenterRevolve', 'ChangeFillColor', 'ChangeFont', 'ChangeFontColor', 'ChangeFontSize', 'ChangeFontStyle', 'ChangeLineColor', 'Checkerboard', 'Circle', 'ColorBlend', 'ColorTypewriter', 'ColorWave', 'ComplementaryColor', 'ComplementaryColor2', 'Compress', 'ContrastingColor', 'Crawl', 'Credits', 'Custom', 'Darken', 'Desaturate', 'Descend', 'Diamond', 'Dissolve', 'EaseInOut', 'Expand', 'Fade', 'FadedSwivel', 'FadedZoom', 'FlashBulb', 'FlashOnce', 'Flicker', 'Flip', 'Float', 'Fly', 'Fold', 'Glide', 'GrowAndTurn', 'GrowShrink', 'GrowWithColor', 'Lighten', 'LightSpeed', 'MediaPause', 'MediaPlay', 'MediaStop', 'Path4PointStar', 'Path5PointStar', 'Path6PointStar', 'Path8PointStar', 'PathArcDown', 'PathArcLeft', 'PathArcRight', 'PathArcUp', 'PathBean', 'PathBounceLeft', 'PathBounceRight', 'PathBuzzsaw', 'PathCircle', 'PathCrescentMoon', 'PathCurvedSquare', 'PathCurvedX', 'PathCurvyLeft', 'PathCurvyRight', 'PathCurvyStar', 'PathDecayingWave', 'PathDiagonalDownRight', 'PathDiagonalUpRight', 'PathDiamond', 'PathDown', 'PathEqualTriangle', 'PathFigure8Four', 'PathFootball', 'PathFunnel', 'PathHeart', 'PathHeartbeat', 'PathHexagon', 'PathHorizontalFigure8', 'PathInvertedSquare', 'PathInvertedTriangle', 'PathLeft', 'PathLoopdeLoop', 'PathNeutron', 'PathOctagon', 'PathParallelogram', 'PathPeanut', 'PathPentagon', 'PathPlus', 'PathPointyStar', 'PathRight', 'PathRightTriangle', 'PathSCurve1', 'PathSCurve2', 'PathSineWave', 'PathSpiralLeft', 'PathSpiralRight', 'PathSpring', 'PathSquare', 'PathStairsDown', 'PathSwoosh', 'PathTeardrop', 'PathTrapezoid', 'PathTurnDown', 'PathTurnRight', 'PathTurnUp', 'PathTurnUpRight', 'PathUp', 'PathUser', 'PathVerticalFigure8', 'PathWave', 'PathZigzag', 'Peek', 'Pinwheel', 'Plus', 'RandomBars', 'RandomEffects', 'RiseUp', 'Shimmer', 'Sling', 'Spin', 'Spinner', 'Spiral', 'Split', 'Stretch', 'Strips', 'StyleEmphasis', 'Swish', 'Swivel', 'Teeter', 'Thread', 'Transparency', 'Unfold', 'VerticalGrow', 'Wave', 'Wedge', 'Wheel', 'Whip', 'Wipe', 'Magnify', 'Zoom', 'OLEObjectShow', 'OLEObjectEdit', 'OLEObjectOpen'])
|
261
|
+
type_validator = EnumAttributeValidator.new('String', ['Appear', 'CurveUpDown', 'Ascend', 'FloatUp', 'Blast', 'Blinds', 'Blink', 'BoldFlash', 'BoldReveal', 'Boomerang', 'Bounce', 'Box', 'BrushOnColor', 'BrushOnUnderline', 'CenterRevolve', 'ChangeFillColor', 'ChangeFont', 'ChangeFontColor', 'ChangeFontSize', 'ChangeFontStyle', 'ChangeLineColor', 'Checkerboard', 'Circle', 'ColorBlend', 'ColorTypewriter', 'ColorWave', 'ComplementaryColor', 'ComplementaryColor2', 'Compress', 'ContrastingColor', 'Crawl', 'Credits', 'Custom', 'Darken', 'Desaturate', 'Descend', 'Floatdown', 'Diamond', 'Dissolve', 'EaseInOut', 'Expand', 'Fade', 'FadedSwivel', 'FadedZoom', 'FlashBulb', 'FlashOnce', 'Flicker', 'Flip', 'Float', 'Fly', 'Fold', 'Glide', 'GrowAndTurn', 'GrowShrink', 'GrowWithColor', 'Lighten', 'LightSpeed', 'MediaPause', 'MediaPlay', 'MediaStop', 'Path4PointStar', 'Path5PointStar', 'Path6PointStar', 'Path8PointStar', 'PathArcDown', 'PathArcLeft', 'PathArcRight', 'PathArcUp', 'PathBean', 'PathBounceLeft', 'PathBounceRight', 'PathBuzzsaw', 'PathCircle', 'PathCrescentMoon', 'PathCurvedSquare', 'PathCurvedX', 'PathCurvyLeft', 'PathCurvyRight', 'PathCurvyStar', 'PathDecayingWave', 'PathDiagonalDownRight', 'PathDiagonalUpRight', 'PathDiamond', 'PathDown', 'PathEqualTriangle', 'PathFigure8Four', 'PathFootball', 'PathFunnel', 'PathHeart', 'PathHeartbeat', 'PathHexagon', 'PathHorizontalFigure8', 'PathInvertedSquare', 'PathInvertedTriangle', 'PathLeft', 'PathLoopdeLoop', 'PathNeutron', 'PathOctagon', 'PathParallelogram', 'PathPeanut', 'PathPentagon', 'PathPlus', 'PathPointyStar', 'PathRight', 'PathRightTriangle', 'PathSCurve1', 'PathSCurve2', 'PathSineWave', 'PathSpiralLeft', 'PathSpiralRight', 'PathSpring', 'PathSquare', 'PathStairsDown', 'PathSwoosh', 'PathTeardrop', 'PathTrapezoid', 'PathTurnDown', 'PathTurnRight', 'PathTurnUp', 'PathTurnUpRight', 'PathUp', 'PathUser', 'PathVerticalFigure8', 'PathWave', 'PathZigzag', 'Peek', 'Pinwheel', 'Plus', 'RandomBars', 'RandomEffects', 'RiseUp', 'Shimmer', 'Sling', 'Spin', 'Spinner', 'Spiral', 'Split', 'Stretch', 'Strips', 'StyleEmphasis', 'Swish', 'Swivel', 'Teeter', 'Thread', 'Transparency', 'Unfold', 'VerticalGrow', 'Wave', 'Wedge', 'Wheel', 'Whip', 'Wipe', 'Magnify', 'Zoom', 'OLEObjectShow', 'OLEObjectEdit', 'OLEObjectOpen'])
|
262
262
|
return false unless type_validator.valid?(@type)
|
263
|
-
subtype_validator = EnumAttributeValidator.new('String', ['None', 'Across', 'Bottom', 'BottomLeft', 'BottomRight', 'Center', 'Clockwise', 'CounterClockwise', 'GradualAndCycleClockwise', 'GradualAndCycleCounterClockwise', 'Down', 'DownLeft', 'DownRight', 'FontAllCaps', 'FontBold', 'FontItalic', 'FontShadow', 'FontStrikethrough', 'FontUnderline', 'Gradual', 'Horizontal', 'HorizontalIn', 'HorizontalOut', 'In', 'InBottom', 'InCenter', 'InSlightly', 'Instant', 'Left', 'OrdinalMask', 'Out', 'OutBottom', 'OutCenter', 'OutSlightly', 'Right', 'Slightly', 'Top', 'TopLeft', 'TopRight', 'Up', 'UpLeft', 'UpRight', 'Vertical', 'VerticalIn', 'VerticalOut', 'Wheel1', 'Wheel2', 'Wheel3', 'Wheel4', 'Wheel8'])
|
263
|
+
subtype_validator = EnumAttributeValidator.new('String', ['None', 'Across', 'Bottom', 'BottomLeft', 'BottomRight', 'Center', 'ObjectCenter', 'SlideCenter', 'Clockwise', 'CounterClockwise', 'GradualAndCycleClockwise', 'GradualAndCycleCounterClockwise', 'Down', 'DownLeft', 'DownRight', 'FontAllCaps', 'FontBold', 'FontItalic', 'FontShadow', 'FontStrikethrough', 'FontUnderline', 'Gradual', 'Horizontal', 'HorizontalIn', 'HorizontalOut', 'In', 'InBottom', 'InCenter', 'InSlightly', 'Instant', 'Left', 'OrdinalMask', 'Out', 'OutBottom', 'OutCenter', 'OutSlightly', 'Right', 'Slightly', 'Top', 'TopLeft', 'TopRight', 'Up', 'UpLeft', 'UpRight', 'Vertical', 'VerticalIn', 'VerticalOut', 'Wheel1', 'Wheel2', 'Wheel3', 'Wheel4', 'Wheel8'])
|
264
264
|
return false unless subtype_validator.valid?(@subtype)
|
265
265
|
preset_class_type_validator = EnumAttributeValidator.new('String', ['Entrance', 'Exit', 'Emphasis', 'Path', 'MediaCall', 'OLEActionVerbs'])
|
266
266
|
return false unless preset_class_type_validator.valid?(@preset_class_type)
|
@@ -279,7 +279,7 @@ module AsposeSlidesCloud
|
|
279
279
|
# Custom attribute writer method checking allowed values (enum).
|
280
280
|
# @param [Object] type Object to be assigned
|
281
281
|
def type=(type)
|
282
|
-
validator = EnumAttributeValidator.new('String', ['Appear', 'CurveUpDown', 'Ascend', 'Blast', 'Blinds', 'Blink', 'BoldFlash', 'BoldReveal', 'Boomerang', 'Bounce', 'Box', 'BrushOnColor', 'BrushOnUnderline', 'CenterRevolve', 'ChangeFillColor', 'ChangeFont', 'ChangeFontColor', 'ChangeFontSize', 'ChangeFontStyle', 'ChangeLineColor', 'Checkerboard', 'Circle', 'ColorBlend', 'ColorTypewriter', 'ColorWave', 'ComplementaryColor', 'ComplementaryColor2', 'Compress', 'ContrastingColor', 'Crawl', 'Credits', 'Custom', 'Darken', 'Desaturate', 'Descend', 'Diamond', 'Dissolve', 'EaseInOut', 'Expand', 'Fade', 'FadedSwivel', 'FadedZoom', 'FlashBulb', 'FlashOnce', 'Flicker', 'Flip', 'Float', 'Fly', 'Fold', 'Glide', 'GrowAndTurn', 'GrowShrink', 'GrowWithColor', 'Lighten', 'LightSpeed', 'MediaPause', 'MediaPlay', 'MediaStop', 'Path4PointStar', 'Path5PointStar', 'Path6PointStar', 'Path8PointStar', 'PathArcDown', 'PathArcLeft', 'PathArcRight', 'PathArcUp', 'PathBean', 'PathBounceLeft', 'PathBounceRight', 'PathBuzzsaw', 'PathCircle', 'PathCrescentMoon', 'PathCurvedSquare', 'PathCurvedX', 'PathCurvyLeft', 'PathCurvyRight', 'PathCurvyStar', 'PathDecayingWave', 'PathDiagonalDownRight', 'PathDiagonalUpRight', 'PathDiamond', 'PathDown', 'PathEqualTriangle', 'PathFigure8Four', 'PathFootball', 'PathFunnel', 'PathHeart', 'PathHeartbeat', 'PathHexagon', 'PathHorizontalFigure8', 'PathInvertedSquare', 'PathInvertedTriangle', 'PathLeft', 'PathLoopdeLoop', 'PathNeutron', 'PathOctagon', 'PathParallelogram', 'PathPeanut', 'PathPentagon', 'PathPlus', 'PathPointyStar', 'PathRight', 'PathRightTriangle', 'PathSCurve1', 'PathSCurve2', 'PathSineWave', 'PathSpiralLeft', 'PathSpiralRight', 'PathSpring', 'PathSquare', 'PathStairsDown', 'PathSwoosh', 'PathTeardrop', 'PathTrapezoid', 'PathTurnDown', 'PathTurnRight', 'PathTurnUp', 'PathTurnUpRight', 'PathUp', 'PathUser', 'PathVerticalFigure8', 'PathWave', 'PathZigzag', 'Peek', 'Pinwheel', 'Plus', 'RandomBars', 'RandomEffects', 'RiseUp', 'Shimmer', 'Sling', 'Spin', 'Spinner', 'Spiral', 'Split', 'Stretch', 'Strips', 'StyleEmphasis', 'Swish', 'Swivel', 'Teeter', 'Thread', 'Transparency', 'Unfold', 'VerticalGrow', 'Wave', 'Wedge', 'Wheel', 'Whip', 'Wipe', 'Magnify', 'Zoom', 'OLEObjectShow', 'OLEObjectEdit', 'OLEObjectOpen'])
|
282
|
+
validator = EnumAttributeValidator.new('String', ['Appear', 'CurveUpDown', 'Ascend', 'FloatUp', 'Blast', 'Blinds', 'Blink', 'BoldFlash', 'BoldReveal', 'Boomerang', 'Bounce', 'Box', 'BrushOnColor', 'BrushOnUnderline', 'CenterRevolve', 'ChangeFillColor', 'ChangeFont', 'ChangeFontColor', 'ChangeFontSize', 'ChangeFontStyle', 'ChangeLineColor', 'Checkerboard', 'Circle', 'ColorBlend', 'ColorTypewriter', 'ColorWave', 'ComplementaryColor', 'ComplementaryColor2', 'Compress', 'ContrastingColor', 'Crawl', 'Credits', 'Custom', 'Darken', 'Desaturate', 'Descend', 'Floatdown', 'Diamond', 'Dissolve', 'EaseInOut', 'Expand', 'Fade', 'FadedSwivel', 'FadedZoom', 'FlashBulb', 'FlashOnce', 'Flicker', 'Flip', 'Float', 'Fly', 'Fold', 'Glide', 'GrowAndTurn', 'GrowShrink', 'GrowWithColor', 'Lighten', 'LightSpeed', 'MediaPause', 'MediaPlay', 'MediaStop', 'Path4PointStar', 'Path5PointStar', 'Path6PointStar', 'Path8PointStar', 'PathArcDown', 'PathArcLeft', 'PathArcRight', 'PathArcUp', 'PathBean', 'PathBounceLeft', 'PathBounceRight', 'PathBuzzsaw', 'PathCircle', 'PathCrescentMoon', 'PathCurvedSquare', 'PathCurvedX', 'PathCurvyLeft', 'PathCurvyRight', 'PathCurvyStar', 'PathDecayingWave', 'PathDiagonalDownRight', 'PathDiagonalUpRight', 'PathDiamond', 'PathDown', 'PathEqualTriangle', 'PathFigure8Four', 'PathFootball', 'PathFunnel', 'PathHeart', 'PathHeartbeat', 'PathHexagon', 'PathHorizontalFigure8', 'PathInvertedSquare', 'PathInvertedTriangle', 'PathLeft', 'PathLoopdeLoop', 'PathNeutron', 'PathOctagon', 'PathParallelogram', 'PathPeanut', 'PathPentagon', 'PathPlus', 'PathPointyStar', 'PathRight', 'PathRightTriangle', 'PathSCurve1', 'PathSCurve2', 'PathSineWave', 'PathSpiralLeft', 'PathSpiralRight', 'PathSpring', 'PathSquare', 'PathStairsDown', 'PathSwoosh', 'PathTeardrop', 'PathTrapezoid', 'PathTurnDown', 'PathTurnRight', 'PathTurnUp', 'PathTurnUpRight', 'PathUp', 'PathUser', 'PathVerticalFigure8', 'PathWave', 'PathZigzag', 'Peek', 'Pinwheel', 'Plus', 'RandomBars', 'RandomEffects', 'RiseUp', 'Shimmer', 'Sling', 'Spin', 'Spinner', 'Spiral', 'Split', 'Stretch', 'Strips', 'StyleEmphasis', 'Swish', 'Swivel', 'Teeter', 'Thread', 'Transparency', 'Unfold', 'VerticalGrow', 'Wave', 'Wedge', 'Wheel', 'Whip', 'Wipe', 'Magnify', 'Zoom', 'OLEObjectShow', 'OLEObjectEdit', 'OLEObjectOpen'])
|
283
283
|
unless validator.valid?(type)
|
284
284
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
285
285
|
end
|
@@ -289,7 +289,7 @@ module AsposeSlidesCloud
|
|
289
289
|
# Custom attribute writer method checking allowed values (enum).
|
290
290
|
# @param [Object] subtype Object to be assigned
|
291
291
|
def subtype=(subtype)
|
292
|
-
validator = EnumAttributeValidator.new('String', ['None', 'Across', 'Bottom', 'BottomLeft', 'BottomRight', 'Center', 'Clockwise', 'CounterClockwise', 'GradualAndCycleClockwise', 'GradualAndCycleCounterClockwise', 'Down', 'DownLeft', 'DownRight', 'FontAllCaps', 'FontBold', 'FontItalic', 'FontShadow', 'FontStrikethrough', 'FontUnderline', 'Gradual', 'Horizontal', 'HorizontalIn', 'HorizontalOut', 'In', 'InBottom', 'InCenter', 'InSlightly', 'Instant', 'Left', 'OrdinalMask', 'Out', 'OutBottom', 'OutCenter', 'OutSlightly', 'Right', 'Slightly', 'Top', 'TopLeft', 'TopRight', 'Up', 'UpLeft', 'UpRight', 'Vertical', 'VerticalIn', 'VerticalOut', 'Wheel1', 'Wheel2', 'Wheel3', 'Wheel4', 'Wheel8'])
|
292
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Across', 'Bottom', 'BottomLeft', 'BottomRight', 'Center', 'ObjectCenter', 'SlideCenter', 'Clockwise', 'CounterClockwise', 'GradualAndCycleClockwise', 'GradualAndCycleCounterClockwise', 'Down', 'DownLeft', 'DownRight', 'FontAllCaps', 'FontBold', 'FontItalic', 'FontShadow', 'FontStrikethrough', 'FontUnderline', 'Gradual', 'Horizontal', 'HorizontalIn', 'HorizontalOut', 'In', 'InBottom', 'InCenter', 'InSlightly', 'Instant', 'Left', 'OrdinalMask', 'Out', 'OutBottom', 'OutCenter', 'OutSlightly', 'Right', 'Slightly', 'Top', 'TopLeft', 'TopRight', 'Up', 'UpLeft', 'UpRight', 'Vertical', 'VerticalIn', 'VerticalOut', 'Wheel1', 'Wheel2', 'Wheel3', 'Wheel4', 'Wheel8'])
|
293
293
|
unless validator.valid?(subtype)
|
294
294
|
fail ArgumentError, 'invalid value for "subtype", must be one of #{validator.allowable_values}.'
|
295
295
|
end
|
@@ -28,6 +28,9 @@ module AsposeSlidesCloud
|
|
28
28
|
# Default regular font for rendering the presentation.
|
29
29
|
attr_accessor :default_regular_font
|
30
30
|
|
31
|
+
# True to delete delete all embedded binary objects.
|
32
|
+
attr_accessor :delete_embedded_binary_objects
|
33
|
+
|
31
34
|
# Default regular font for rendering the presentation.
|
32
35
|
attr_accessor :gradient_style
|
33
36
|
|
@@ -43,6 +46,7 @@ module AsposeSlidesCloud
|
|
43
46
|
def self.attribute_map
|
44
47
|
{
|
45
48
|
:'default_regular_font' => :'DefaultRegularFont',
|
49
|
+
:'delete_embedded_binary_objects' => :'DeleteEmbeddedBinaryObjects',
|
46
50
|
:'gradient_style' => :'GradientStyle',
|
47
51
|
:'font_fallback_rules' => :'FontFallbackRules',
|
48
52
|
:'font_subst_rules' => :'FontSubstRules',
|
@@ -54,6 +58,7 @@ module AsposeSlidesCloud
|
|
54
58
|
def self.swagger_types
|
55
59
|
{
|
56
60
|
:'default_regular_font' => :'String',
|
61
|
+
:'delete_embedded_binary_objects' => :'BOOLEAN',
|
57
62
|
:'gradient_style' => :'String',
|
58
63
|
:'font_fallback_rules' => :'Array<FontFallbackRule>',
|
59
64
|
:'font_subst_rules' => :'Array<FontSubstRule>',
|
@@ -73,6 +78,10 @@ module AsposeSlidesCloud
|
|
73
78
|
self.default_regular_font = attributes[:'DefaultRegularFont']
|
74
79
|
end
|
75
80
|
|
81
|
+
if attributes.has_key?(:'DeleteEmbeddedBinaryObjects')
|
82
|
+
self.delete_embedded_binary_objects = attributes[:'DeleteEmbeddedBinaryObjects']
|
83
|
+
end
|
84
|
+
|
76
85
|
if attributes.has_key?(:'GradientStyle')
|
77
86
|
self.gradient_style = attributes[:'GradientStyle']
|
78
87
|
end
|
@@ -125,6 +134,7 @@ module AsposeSlidesCloud
|
|
125
134
|
return true if self.equal?(o)
|
126
135
|
self.class == o.class &&
|
127
136
|
default_regular_font == o.default_regular_font &&
|
137
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
128
138
|
gradient_style == o.gradient_style &&
|
129
139
|
font_fallback_rules == o.font_fallback_rules &&
|
130
140
|
font_subst_rules == o.font_subst_rules &&
|
@@ -140,7 +150,7 @@ module AsposeSlidesCloud
|
|
140
150
|
# Calculates hash code according to all attributes.
|
141
151
|
# @return [Fixnum] Hash code
|
142
152
|
def hash
|
143
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format].hash
|
153
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format].hash
|
144
154
|
end
|
145
155
|
end
|
146
156
|
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
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
94
95
|
gradient_style == o.gradient_style &&
|
95
96
|
font_fallback_rules == o.font_fallback_rules &&
|
96
97
|
font_subst_rules == o.font_subst_rules &&
|
@@ -111,7 +112,7 @@ module AsposeSlidesCloud
|
|
111
112
|
# Calculates hash code according to all attributes.
|
112
113
|
# @return [Fixnum] Hash code
|
113
114
|
def hash
|
114
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
115
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, height, width, export_hidden_slides, transition_fps, default_delay].hash
|
115
116
|
end
|
116
117
|
end
|
117
118
|
end
|
@@ -109,6 +109,7 @@ module AsposeSlidesCloud
|
|
109
109
|
return true if self.equal?(o)
|
110
110
|
self.class == o.class &&
|
111
111
|
default_regular_font == o.default_regular_font &&
|
112
|
+
delete_embedded_binary_objects == o.delete_embedded_binary_objects &&
|
112
113
|
gradient_style == o.gradient_style &&
|
113
114
|
font_fallback_rules == o.font_fallback_rules &&
|
114
115
|
font_subst_rules == o.font_subst_rules &&
|
@@ -129,7 +130,7 @@ module AsposeSlidesCloud
|
|
129
130
|
# Calculates hash code according to all attributes.
|
130
131
|
# @return [Fixnum] Hash code
|
131
132
|
def hash
|
132
|
-
[default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting, templates_path].hash
|
133
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting, templates_path].hash
|
133
134
|
end
|
134
135
|
end
|
135
136
|
end
|