aspose_slides_cloud 24.3.0 → 24.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +5 -0
- data/docker-entrypoint.sh +5 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +201 -11
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +11 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +190 -0
- data/lib/aspose_slides_cloud/models/math_format.rb +40 -0
- data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +2 -1
- data/lib/aspose_slides_cloud/type_registry.rb +3 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +609 -2
- data/spec/use_cases/math_spec.rb +3 -3
- data/testRules.json +4 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e61ff5f495cbe4c321307a13c5c809dcdfb96c8eda780b87a3776a971360e23d
|
4
|
+
data.tar.gz: 1044e26b099bf029fa81156fbbe1800768c14be8db6fec2e847c425746abc73b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aff2c067a72c77db7f8265ad0d1ab92658e3723873bfe9736d11c6ba03de8fdf40bd335fd56ebc1fe886987f928b8147c0669c220e9014c6bcf4f2f16031831
|
7
|
+
data.tar.gz: ce6ddfc3d81ceb952f95f933a7cd179bf099bf7ca5c20e1906f5bf1e9ab5b4e362b2db1cfd1e101fda63ec98ff02ba4ccc2018d32eb071c50e0d7acbe7dfdcd9
|
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.4.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)
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
ZenTest (>= 4.4.1)
|
18
18
|
autotest-growl (0.2.16)
|
19
19
|
autotest-rails-pure (4.1.2)
|
20
|
-
bigdecimal (3.1.
|
20
|
+
bigdecimal (3.1.8)
|
21
21
|
crack (1.0.0)
|
22
22
|
bigdecimal
|
23
23
|
rexml
|
@@ -47,9 +47,9 @@ GEM
|
|
47
47
|
faraday-retry (1.0.3)
|
48
48
|
hashdiff (1.1.0)
|
49
49
|
httpclient (2.8.3)
|
50
|
-
json (2.7.
|
51
|
-
multipart-post (2.4.
|
52
|
-
public_suffix (5.0.
|
50
|
+
json (2.7.2)
|
51
|
+
multipart-post (2.4.1)
|
52
|
+
public_suffix (5.0.5)
|
53
53
|
rake (12.3.3)
|
54
54
|
rexml (3.2.6)
|
55
55
|
rspec (3.13.0)
|
data/README.md
CHANGED
@@ -27,6 +27,11 @@ 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.4
|
31
|
+
|
32
|
+
* Added **DownloadMathPortion** and **SaveMathPortion** methods to convert math portions to math markup formats (MathML or LaTeX). See [documentation](https://docs.aspose.cloud/slides/export-a-math-formula/) for more info. **DownloadPortionAsMathML** and **SavePortionAsMathML** methods are deprecated and will be removed after 24.6.
|
33
|
+
* Added **Marker** property to **DataPoint** class.
|
34
|
+
|
30
35
|
## Enhancements in Version 24.3
|
31
36
|
|
32
37
|
* Added Markdown (**Md**) to the list of allowed export formats.
|
data/docker-entrypoint.sh
CHANGED
@@ -7,4 +7,8 @@ sed -i 's~@async_base_url@~'"${BASE_ASYNC_URL}"'~g' testConfig.json
|
|
7
7
|
sed -i 's~@base_auth_url@~'"${BASE_AUTH_URL}"'~g' testConfig.json
|
8
8
|
|
9
9
|
mkdir testResults
|
10
|
-
|
10
|
+
|
11
|
+
if [ "${ENABLE_TESTS}" = true ]
|
12
|
+
then
|
13
|
+
rspec spec --format RspecJunitFormatter --out testResults/rspec.xml
|
14
|
+
fi
|
@@ -4754,7 +4754,7 @@ module AsposeSlidesCloud
|
|
4754
4754
|
# @param password Document password.
|
4755
4755
|
# @param folder Document folder.
|
4756
4756
|
# @param storage Presentation storage.
|
4757
|
-
def delete_picture_cropped_areas(name, slide_index, shape_index, password, folder, storage = nil)
|
4757
|
+
def delete_picture_cropped_areas(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
4758
4758
|
delete_picture_cropped_areas_with_http_info(name, slide_index, shape_index, password, folder, storage)
|
4759
4759
|
nil
|
4760
4760
|
end
|
@@ -4766,7 +4766,7 @@ module AsposeSlidesCloud
|
|
4766
4766
|
# @param password Document password.
|
4767
4767
|
# @param folder Document folder.
|
4768
4768
|
# @param storage Presentation storage.
|
4769
|
-
def delete_picture_cropped_areas_with_http_info(name, slide_index, shape_index, password, folder, storage = nil)
|
4769
|
+
def delete_picture_cropped_areas_with_http_info(name, slide_index, shape_index, password = nil, folder = nil, storage = nil)
|
4770
4770
|
if @api_client.config.debugging
|
4771
4771
|
@api_client.config.logger.debug 'Calling API: SlidesApi.delete_picture_cropped_areas ...'
|
4772
4772
|
end
|
@@ -4783,14 +4783,6 @@ module AsposeSlidesCloud
|
|
4783
4783
|
if @api_client.config.client_side_validation && shape_index.nil?
|
4784
4784
|
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.delete_picture_cropped_areas"
|
4785
4785
|
end
|
4786
|
-
# verify the required parameter 'password' is set
|
4787
|
-
if @api_client.config.client_side_validation && password.nil?
|
4788
|
-
fail ArgumentError, "Missing the required parameter 'password' when calling SlidesApi.delete_picture_cropped_areas"
|
4789
|
-
end
|
4790
|
-
# verify the required parameter 'folder' is set
|
4791
|
-
if @api_client.config.client_side_validation && folder.nil?
|
4792
|
-
fail ArgumentError, "Missing the required parameter 'folder' when calling SlidesApi.delete_picture_cropped_areas"
|
4793
|
-
end
|
4794
4786
|
# resource path
|
4795
4787
|
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/pictureCroppedAreas'
|
4796
4788
|
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
@@ -4808,7 +4800,7 @@ module AsposeSlidesCloud
|
|
4808
4800
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4809
4801
|
# HTTP header 'Content-Type'
|
4810
4802
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
4811
|
-
header_params[:'password'] = password
|
4803
|
+
header_params[:'password'] = password unless password.nil?
|
4812
4804
|
|
4813
4805
|
# http body (model)
|
4814
4806
|
post_body = nil
|
@@ -7977,6 +7969,102 @@ module AsposeSlidesCloud
|
|
7977
7969
|
:return_type => 'File')
|
7978
7970
|
return data, status_code, headers
|
7979
7971
|
end
|
7972
|
+
# Convert Mathematical Text to MathML Format
|
7973
|
+
# @param name Document name.
|
7974
|
+
# @param slide_index Slide index.
|
7975
|
+
# @param shape_index Shape index.
|
7976
|
+
# @param paragraph_index Paragraph index.
|
7977
|
+
# @param portion_index Portion index.
|
7978
|
+
# @param format Format.
|
7979
|
+
# @param password Document password.
|
7980
|
+
# @param folder Document folder.
|
7981
|
+
# @param storage Document storage.
|
7982
|
+
def download_math_portion(name, slide_index, shape_index, paragraph_index, portion_index, format, password = nil, folder = nil, storage = nil)
|
7983
|
+
data, _status_code, _headers = download_math_portion_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, format, password, folder, storage)
|
7984
|
+
data
|
7985
|
+
end
|
7986
|
+
|
7987
|
+
# Convert Mathematical Text to MathML Format
|
7988
|
+
# @param name Document name.
|
7989
|
+
# @param slide_index Slide index.
|
7990
|
+
# @param shape_index Shape index.
|
7991
|
+
# @param paragraph_index Paragraph index.
|
7992
|
+
# @param portion_index Portion index.
|
7993
|
+
# @param format Format.
|
7994
|
+
# @param password Document password.
|
7995
|
+
# @param folder Document folder.
|
7996
|
+
# @param storage Document storage.
|
7997
|
+
def download_math_portion_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, format, password = nil, folder = nil, storage = nil)
|
7998
|
+
if @api_client.config.debugging
|
7999
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.download_math_portion ...'
|
8000
|
+
end
|
8001
|
+
|
8002
|
+
# verify the required parameter 'name' is set
|
8003
|
+
if @api_client.config.client_side_validation && name.nil?
|
8004
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_math_portion"
|
8005
|
+
end
|
8006
|
+
# verify the required parameter 'slide_index' is set
|
8007
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
8008
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_math_portion"
|
8009
|
+
end
|
8010
|
+
# verify the required parameter 'shape_index' is set
|
8011
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
8012
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_math_portion"
|
8013
|
+
end
|
8014
|
+
# verify the required parameter 'paragraph_index' is set
|
8015
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
8016
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_math_portion"
|
8017
|
+
end
|
8018
|
+
# verify the required parameter 'portion_index' is set
|
8019
|
+
if @api_client.config.client_side_validation && portion_index.nil?
|
8020
|
+
fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.download_math_portion"
|
8021
|
+
end
|
8022
|
+
# verify the required parameter 'format' is set
|
8023
|
+
if @api_client.config.client_side_validation && format.nil?
|
8024
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_math_portion"
|
8025
|
+
end
|
8026
|
+
# verify enum value
|
8027
|
+
if @api_client.config.client_side_validation && !['MathML', 'LaTeX'].any?{ |s| s.casecmp(format)==0 }
|
8028
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of MathML, LaTeX"
|
8029
|
+
end
|
8030
|
+
# resource path
|
8031
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/{format}'
|
8032
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
8033
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
8034
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
8035
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
8036
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
|
8037
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
8038
|
+
|
8039
|
+
# query parameters
|
8040
|
+
query_params = {}
|
8041
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
8042
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
8043
|
+
|
8044
|
+
# header parameters
|
8045
|
+
header_params = {}
|
8046
|
+
# HTTP header 'Accept' (if needed)
|
8047
|
+
header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
|
8048
|
+
# HTTP header 'Content-Type'
|
8049
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
8050
|
+
header_params[:'password'] = password unless password.nil?
|
8051
|
+
|
8052
|
+
# http body (model)
|
8053
|
+
post_body = nil
|
8054
|
+
|
8055
|
+
# form parameters
|
8056
|
+
post_files = []
|
8057
|
+
|
8058
|
+
auth_names = ['JWT']
|
8059
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
8060
|
+
:header_params => header_params,
|
8061
|
+
:query_params => query_params,
|
8062
|
+
:body => post_body,
|
8063
|
+
:files => post_files,
|
8064
|
+
:auth_names => auth_names,
|
8065
|
+
:return_type => 'File')
|
8066
|
+
return data, status_code, headers
|
8067
|
+
end
|
7980
8068
|
# Convert notes slide to the specified image format.
|
7981
8069
|
# @param name Document name.
|
7982
8070
|
# @param slide_index Slide index.
|
@@ -15145,6 +15233,108 @@ module AsposeSlidesCloud
|
|
15145
15233
|
# @param shape_index Shape index.
|
15146
15234
|
# @param paragraph_index Paragraph index.
|
15147
15235
|
# @param portion_index Portion index.
|
15236
|
+
# @param format Format.
|
15237
|
+
# @param out_path Path to save result.
|
15238
|
+
# @param password Document password.
|
15239
|
+
# @param folder Presentation folder.
|
15240
|
+
# @param storage Presentation storage.
|
15241
|
+
def save_math_portion(name, slide_index, shape_index, paragraph_index, portion_index, format, out_path, password = nil, folder = nil, storage = nil)
|
15242
|
+
save_math_portion_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, format, out_path, password, folder, storage)
|
15243
|
+
nil
|
15244
|
+
end
|
15245
|
+
|
15246
|
+
# Convert Mathematical Text to MathML Format and saves result to the storage
|
15247
|
+
# @param name Document name.
|
15248
|
+
# @param slide_index Slide index.
|
15249
|
+
# @param shape_index Shape index.
|
15250
|
+
# @param paragraph_index Paragraph index.
|
15251
|
+
# @param portion_index Portion index.
|
15252
|
+
# @param format Format.
|
15253
|
+
# @param out_path Path to save result.
|
15254
|
+
# @param password Document password.
|
15255
|
+
# @param folder Presentation folder.
|
15256
|
+
# @param storage Presentation storage.
|
15257
|
+
def save_math_portion_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, format, out_path, password = nil, folder = nil, storage = nil)
|
15258
|
+
if @api_client.config.debugging
|
15259
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.save_math_portion ...'
|
15260
|
+
end
|
15261
|
+
|
15262
|
+
# verify the required parameter 'name' is set
|
15263
|
+
if @api_client.config.client_side_validation && name.nil?
|
15264
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_math_portion"
|
15265
|
+
end
|
15266
|
+
# verify the required parameter 'slide_index' is set
|
15267
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
15268
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_math_portion"
|
15269
|
+
end
|
15270
|
+
# verify the required parameter 'shape_index' is set
|
15271
|
+
if @api_client.config.client_side_validation && shape_index.nil?
|
15272
|
+
fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_math_portion"
|
15273
|
+
end
|
15274
|
+
# verify the required parameter 'paragraph_index' is set
|
15275
|
+
if @api_client.config.client_side_validation && paragraph_index.nil?
|
15276
|
+
fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_math_portion"
|
15277
|
+
end
|
15278
|
+
# verify the required parameter 'portion_index' is set
|
15279
|
+
if @api_client.config.client_side_validation && portion_index.nil?
|
15280
|
+
fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.save_math_portion"
|
15281
|
+
end
|
15282
|
+
# verify the required parameter 'format' is set
|
15283
|
+
if @api_client.config.client_side_validation && format.nil?
|
15284
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_math_portion"
|
15285
|
+
end
|
15286
|
+
# verify enum value
|
15287
|
+
if @api_client.config.client_side_validation && !['MathML', 'LaTeX'].any?{ |s| s.casecmp(format)==0 }
|
15288
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of MathML, LaTeX"
|
15289
|
+
end
|
15290
|
+
# verify the required parameter 'out_path' is set
|
15291
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
15292
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_math_portion"
|
15293
|
+
end
|
15294
|
+
# resource path
|
15295
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/{format}'
|
15296
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
15297
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
15298
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
|
15299
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
|
15300
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
|
15301
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
15302
|
+
|
15303
|
+
# query parameters
|
15304
|
+
query_params = {}
|
15305
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
15306
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
15307
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
15308
|
+
|
15309
|
+
# header parameters
|
15310
|
+
header_params = {}
|
15311
|
+
# HTTP header 'Accept' (if needed)
|
15312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15313
|
+
# HTTP header 'Content-Type'
|
15314
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15315
|
+
header_params[:'password'] = password unless password.nil?
|
15316
|
+
|
15317
|
+
# http body (model)
|
15318
|
+
post_body = nil
|
15319
|
+
|
15320
|
+
# form parameters
|
15321
|
+
post_files = []
|
15322
|
+
|
15323
|
+
auth_names = ['JWT']
|
15324
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
15325
|
+
:header_params => header_params,
|
15326
|
+
:query_params => query_params,
|
15327
|
+
:body => post_body,
|
15328
|
+
:files => post_files,
|
15329
|
+
:auth_names => auth_names)
|
15330
|
+
return data, status_code, headers
|
15331
|
+
end
|
15332
|
+
# Convert Mathematical Text to MathML Format and saves result to the storage
|
15333
|
+
# @param name Document name.
|
15334
|
+
# @param slide_index Slide index.
|
15335
|
+
# @param shape_index Shape index.
|
15336
|
+
# @param paragraph_index Paragraph index.
|
15337
|
+
# @param portion_index Portion index.
|
15148
15338
|
# @param out_path Path to save result.
|
15149
15339
|
# @param password Document password.
|
15150
15340
|
# @param folder Presentation folder.
|
@@ -85,6 +85,7 @@ module AsposeSlidesCloud
|
|
85
85
|
effect_format == o.effect_format &&
|
86
86
|
three_d_format == o.three_d_format &&
|
87
87
|
line_format == o.line_format &&
|
88
|
+
marker == o.marker &&
|
88
89
|
type == o.type &&
|
89
90
|
x_value == o.x_value &&
|
90
91
|
y_value == o.y_value &&
|
@@ -103,7 +104,7 @@ module AsposeSlidesCloud
|
|
103
104
|
# Calculates hash code according to all attributes.
|
104
105
|
# @return [Fixnum] Hash code
|
105
106
|
def hash
|
106
|
-
[fill_format, effect_format, three_d_format, line_format, type, x_value, y_value, x_value_formula, y_value_formula, bubble_size, bubble_size_formula].hash
|
107
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type, x_value, y_value, x_value_formula, y_value_formula, bubble_size, bubble_size_formula].hash
|
107
108
|
end
|
108
109
|
end
|
109
110
|
end
|
@@ -37,6 +37,9 @@ module AsposeSlidesCloud
|
|
37
37
|
# Gets or sets the line format.
|
38
38
|
attr_accessor :line_format
|
39
39
|
|
40
|
+
# Gets or sets the marker.
|
41
|
+
attr_accessor :marker
|
42
|
+
|
40
43
|
attr_accessor :type
|
41
44
|
|
42
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -46,6 +49,7 @@ module AsposeSlidesCloud
|
|
46
49
|
:'effect_format' => :'EffectFormat',
|
47
50
|
:'three_d_format' => :'ThreeDFormat',
|
48
51
|
:'line_format' => :'LineFormat',
|
52
|
+
:'marker' => :'Marker',
|
49
53
|
:'type' => :'Type',
|
50
54
|
}
|
51
55
|
end
|
@@ -57,6 +61,7 @@ module AsposeSlidesCloud
|
|
57
61
|
:'effect_format' => :'EffectFormat',
|
58
62
|
:'three_d_format' => :'ThreeDFormat',
|
59
63
|
:'line_format' => :'LineFormat',
|
64
|
+
:'marker' => :'SeriesMarker',
|
60
65
|
:'type' => :'String',
|
61
66
|
}
|
62
67
|
end
|
@@ -85,6 +90,10 @@ module AsposeSlidesCloud
|
|
85
90
|
self.line_format = attributes[:'LineFormat']
|
86
91
|
end
|
87
92
|
|
93
|
+
if attributes.has_key?(:'Marker')
|
94
|
+
self.marker = attributes[:'Marker']
|
95
|
+
end
|
96
|
+
|
88
97
|
if attributes.has_key?(:'Type')
|
89
98
|
self.type = attributes[:'Type']
|
90
99
|
end
|
@@ -124,6 +133,7 @@ module AsposeSlidesCloud
|
|
124
133
|
effect_format == o.effect_format &&
|
125
134
|
three_d_format == o.three_d_format &&
|
126
135
|
line_format == o.line_format &&
|
136
|
+
marker == o.marker &&
|
127
137
|
type == o.type
|
128
138
|
end
|
129
139
|
|
@@ -136,7 +146,7 @@ module AsposeSlidesCloud
|
|
136
146
|
# Calculates hash code according to all attributes.
|
137
147
|
# @return [Fixnum] Hash code
|
138
148
|
def hash
|
139
|
-
[fill_format, effect_format, three_d_format, line_format, type].hash
|
149
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type].hash
|
140
150
|
end
|
141
151
|
end
|
142
152
|
end
|
@@ -0,0 +1,190 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Provides options that control how a presentation is saved in Html5 format.
|
27
|
+
class MarkdownExportOptions < ExportOptions
|
28
|
+
# Specifies markdown specification to convert presentation. Default is TextOnly.
|
29
|
+
attr_accessor :export_type
|
30
|
+
|
31
|
+
# Specifies markdown specification to convert presentation. Default is MultiMarkdown.
|
32
|
+
attr_accessor :flavor
|
33
|
+
|
34
|
+
# Specifies whether the generated document should have new lines of \\\\r(Macintosh), \\\\n(Unix) or \\\\r\\\\n(Windows). Default is Unix.
|
35
|
+
attr_accessor :new_line_type
|
36
|
+
|
37
|
+
# Specifies folder name to save images. Default is Images.
|
38
|
+
attr_accessor :images_save_folder_name
|
39
|
+
|
40
|
+
# Specifies whether the generated document should include slide number. Default is false.
|
41
|
+
attr_accessor :show_slide_number
|
42
|
+
|
43
|
+
# Specifies whether the generated document should include comments. Default is false.
|
44
|
+
attr_accessor :show_comments
|
45
|
+
|
46
|
+
# Specifies whether the generated document should include hidden slides. Default is false.
|
47
|
+
attr_accessor :show_hidden_slides
|
48
|
+
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
50
|
+
def self.attribute_map
|
51
|
+
super.merge({
|
52
|
+
:'export_type' => :'ExportType',
|
53
|
+
:'flavor' => :'Flavor',
|
54
|
+
:'new_line_type' => :'NewLineType',
|
55
|
+
:'images_save_folder_name' => :'ImagesSaveFolderName',
|
56
|
+
:'show_slide_number' => :'ShowSlideNumber',
|
57
|
+
:'show_comments' => :'ShowComments',
|
58
|
+
:'show_hidden_slides' => :'ShowHiddenSlides',
|
59
|
+
})
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.swagger_types
|
64
|
+
super.merge({
|
65
|
+
:'export_type' => :'String',
|
66
|
+
:'flavor' => :'String',
|
67
|
+
:'new_line_type' => :'String',
|
68
|
+
:'images_save_folder_name' => :'String',
|
69
|
+
:'show_slide_number' => :'BOOLEAN',
|
70
|
+
:'show_comments' => :'BOOLEAN',
|
71
|
+
:'show_hidden_slides' => :'BOOLEAN',
|
72
|
+
})
|
73
|
+
end
|
74
|
+
|
75
|
+
# Initializes the object
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
77
|
+
def initialize(attributes = {})
|
78
|
+
super
|
79
|
+
|
80
|
+
if attributes.has_key?(:'ExportType')
|
81
|
+
self.export_type = attributes[:'ExportType']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'Flavor')
|
85
|
+
self.flavor = attributes[:'Flavor']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'NewLineType')
|
89
|
+
self.new_line_type = attributes[:'NewLineType']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'ImagesSaveFolderName')
|
93
|
+
self.images_save_folder_name = attributes[:'ImagesSaveFolderName']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'ShowSlideNumber')
|
97
|
+
self.show_slide_number = attributes[:'ShowSlideNumber']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'ShowComments')
|
101
|
+
self.show_comments = attributes[:'ShowComments']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'ShowHiddenSlides')
|
105
|
+
self.show_hidden_slides = attributes[:'ShowHiddenSlides']
|
106
|
+
end
|
107
|
+
self.format = 'md'
|
108
|
+
end
|
109
|
+
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
+
# @return Array for valid properties with the reasons
|
112
|
+
def list_invalid_properties
|
113
|
+
invalid_properties = super
|
114
|
+
invalid_properties
|
115
|
+
end
|
116
|
+
|
117
|
+
# Check to see if the all the properties in the model are valid
|
118
|
+
# @return true if the model is valid
|
119
|
+
def valid?
|
120
|
+
return false if !super
|
121
|
+
export_type_validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
|
122
|
+
return false unless export_type_validator.valid?(@export_type)
|
123
|
+
flavor_validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
|
124
|
+
return false unless flavor_validator.valid?(@flavor)
|
125
|
+
new_line_type_validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
|
126
|
+
return false unless new_line_type_validator.valid?(@new_line_type)
|
127
|
+
true
|
128
|
+
end
|
129
|
+
|
130
|
+
# Custom attribute writer method checking allowed values (enum).
|
131
|
+
# @param [Object] export_type Object to be assigned
|
132
|
+
def export_type=(export_type)
|
133
|
+
validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
|
134
|
+
unless validator.valid?(export_type)
|
135
|
+
fail ArgumentError, 'invalid value for "export_type", must be one of #{validator.allowable_values}.'
|
136
|
+
end
|
137
|
+
@export_type = export_type
|
138
|
+
end
|
139
|
+
|
140
|
+
# Custom attribute writer method checking allowed values (enum).
|
141
|
+
# @param [Object] flavor Object to be assigned
|
142
|
+
def flavor=(flavor)
|
143
|
+
validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
|
144
|
+
unless validator.valid?(flavor)
|
145
|
+
fail ArgumentError, 'invalid value for "flavor", must be one of #{validator.allowable_values}.'
|
146
|
+
end
|
147
|
+
@flavor = flavor
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method checking allowed values (enum).
|
151
|
+
# @param [Object] new_line_type Object to be assigned
|
152
|
+
def new_line_type=(new_line_type)
|
153
|
+
validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
|
154
|
+
unless validator.valid?(new_line_type)
|
155
|
+
fail ArgumentError, 'invalid value for "new_line_type", must be one of #{validator.allowable_values}.'
|
156
|
+
end
|
157
|
+
@new_line_type = new_line_type
|
158
|
+
end
|
159
|
+
|
160
|
+
# Checks equality by comparing each attribute.
|
161
|
+
# @param [Object] Object to be compared
|
162
|
+
def ==(o)
|
163
|
+
return true if self.equal?(o)
|
164
|
+
self.class == o.class &&
|
165
|
+
default_regular_font == o.default_regular_font &&
|
166
|
+
font_fallback_rules == o.font_fallback_rules &&
|
167
|
+
font_subst_rules == o.font_subst_rules &&
|
168
|
+
format == o.format &&
|
169
|
+
export_type == o.export_type &&
|
170
|
+
flavor == o.flavor &&
|
171
|
+
new_line_type == o.new_line_type &&
|
172
|
+
images_save_folder_name == o.images_save_folder_name &&
|
173
|
+
show_slide_number == o.show_slide_number &&
|
174
|
+
show_comments == o.show_comments &&
|
175
|
+
show_hidden_slides == o.show_hidden_slides
|
176
|
+
end
|
177
|
+
|
178
|
+
# @see the `==` method
|
179
|
+
# @param [Object] Object to be compared
|
180
|
+
def eql?(o)
|
181
|
+
self == o
|
182
|
+
end
|
183
|
+
|
184
|
+
# Calculates hash code according to all attributes.
|
185
|
+
# @return [Fixnum] Hash code
|
186
|
+
def hash
|
187
|
+
[default_regular_font, font_fallback_rules, font_subst_rules, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides].hash
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
class MathFormat
|
27
|
+
|
28
|
+
MATH_ML = 'MathML'.freeze
|
29
|
+
LA_TE_X = 'LaTeX'.freeze
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
constantValues = MathFormat.constants.select { |c| MathFormat::const_get(c) == value }
|
36
|
+
raise "Invalid ENUM value #{value} for class #MathFormat" if constantValues.empty?
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
|
|
103
103
|
effect_format == o.effect_format &&
|
104
104
|
three_d_format == o.three_d_format &&
|
105
105
|
line_format == o.line_format &&
|
106
|
+
marker == o.marker &&
|
106
107
|
type == o.type &&
|
107
108
|
value == o.value &&
|
108
109
|
value_formula == o.value_formula &&
|
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
|
|
119
120
|
# Calculates hash code according to all attributes.
|
120
121
|
# @return [Fixnum] Hash code
|
121
122
|
def hash
|
122
|
-
[fill_format, effect_format, three_d_format, line_format, type, value, value_formula, set_as_total, invert_if_negative].hash
|
123
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type, value, value_formula, set_as_total, invert_if_negative].hash
|
123
124
|
end
|
124
125
|
end
|
125
126
|
end
|
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
|
|
103
103
|
effect_format == o.effect_format &&
|
104
104
|
three_d_format == o.three_d_format &&
|
105
105
|
line_format == o.line_format &&
|
106
|
+
marker == o.marker &&
|
106
107
|
type == o.type &&
|
107
108
|
x_value == o.x_value &&
|
108
109
|
y_value == o.y_value &&
|
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
|
|
119
120
|
# Calculates hash code according to all attributes.
|
120
121
|
# @return [Fixnum] Hash code
|
121
122
|
def hash
|
122
|
-
[fill_format, effect_format, three_d_format, line_format, type, x_value, y_value, x_value_formula, y_value_formula].hash
|
123
|
+
[fill_format, effect_format, three_d_format, line_format, marker, type, x_value, y_value, x_value_formula, y_value_formula].hash
|
123
124
|
end
|
124
125
|
end
|
125
126
|
end
|