aspose_words_cloud 20.4.0 → 20.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud.rb +30 -0
- data/lib/aspose_words_cloud/api/words_api.rb +4292 -2201
- data/lib/aspose_words_cloud/api_client.rb +1 -0
- data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/csv_data_load_options.rb +237 -0
- data/lib/aspose_words_cloud/models/doc_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/emf_save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/epub_save_options_data.rb +37 -1
- data/lib/aspose_words_cloud/models/fixed_page_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/gif_save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +71 -4
- data/lib/aspose_words_cloud/models/html_save_options_data.rb +37 -1
- data/lib/aspose_words_cloud/models/image_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/list_format.rb +236 -0
- data/lib/aspose_words_cloud/models/list_format_update.rb +217 -0
- data/lib/aspose_words_cloud/models/list_info.rb +274 -0
- data/lib/aspose_words_cloud/models/list_insert.rb +244 -0
- data/lib/aspose_words_cloud/models/list_level.rb +393 -0
- data/lib/aspose_words_cloud/models/list_level_update.rb +366 -0
- data/lib/aspose_words_cloud/models/list_levels.rb +218 -0
- data/lib/aspose_words_cloud/models/list_response.rb +216 -0
- data/lib/aspose_words_cloud/models/list_update.rb +207 -0
- data/lib/aspose_words_cloud/models/lists.rb +218 -0
- data/lib/aspose_words_cloud/models/lists_response.rb +216 -0
- data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +37 -1
- data/lib/aspose_words_cloud/models/odt_save_options_data.rb +47 -1
- data/lib/aspose_words_cloud/models/ooxml_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/paragraph_format.rb +10 -1
- data/lib/aspose_words_cloud/models/paragraph_list_format_response.rb +216 -0
- data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +47 -1
- data/lib/aspose_words_cloud/models/png_save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/ps_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/report_build_options.rb +26 -0
- data/lib/aspose_words_cloud/models/report_engine_settings.rb +275 -0
- data/lib/aspose_words_cloud/models/requests/ApplyStyleToDocumentElementRequest.rb +81 -0
- data/lib/aspose_words_cloud/models/requests/BuildReportOnlineRequest.rb +57 -0
- data/lib/aspose_words_cloud/models/requests/BuildReportRequest.rb +73 -0
- data/lib/aspose_words_cloud/models/requests/CopyStyleRequest.rb +77 -0
- data/lib/aspose_words_cloud/models/requests/DeleteAllParagraphTabStopsRequest.rb +73 -0
- data/lib/aspose_words_cloud/models/requests/DeleteParagraphListFormatRequest.rb +81 -0
- data/lib/aspose_words_cloud/models/requests/DeleteParagraphTabStopRequest.rb +77 -0
- data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeOnlineRequest.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeRequest.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/GetDocumentFieldNamesRequest.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/GetListRequest.rb +65 -0
- data/lib/aspose_words_cloud/models/requests/GetListsRequest.rb +61 -0
- data/lib/aspose_words_cloud/models/requests/GetParagraphListFormatRequest.rb +69 -0
- data/lib/aspose_words_cloud/models/requests/GetParagraphListFormatWithoutNodePathRequest.rb +65 -0
- data/lib/aspose_words_cloud/models/requests/GetParagraphTabStopsRequest.rb +69 -0
- data/lib/aspose_words_cloud/models/requests/GetStyleFromDocumentElementRequest.rb +65 -0
- data/lib/aspose_words_cloud/models/requests/GetStyleRequest.rb +65 -0
- data/lib/aspose_words_cloud/models/requests/GetStylesRequest.rb +61 -0
- data/lib/aspose_words_cloud/models/requests/InsertListRequest.rb +77 -0
- data/lib/aspose_words_cloud/models/requests/InsertOrUpdateParagraphTabStopRequest.rb +77 -0
- data/lib/aspose_words_cloud/models/requests/InsertStyleRequest.rb +77 -0
- data/lib/aspose_words_cloud/models/requests/UpdateListLevelRequest.rb +85 -0
- data/lib/aspose_words_cloud/models/requests/UpdateListRequest.rb +81 -0
- data/lib/aspose_words_cloud/models/requests/UpdateParagraphListFormatRequest.rb +85 -0
- data/lib/aspose_words_cloud/models/requests/UpdateStyleRequest.rb +81 -0
- data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/save_options_data.rb +61 -4
- data/lib/aspose_words_cloud/models/shading.rb +262 -0
- data/lib/aspose_words_cloud/models/style.rb +370 -0
- data/lib/aspose_words_cloud/models/style_apply.rb +207 -0
- data/lib/aspose_words_cloud/models/style_copy.rb +207 -0
- data/lib/aspose_words_cloud/models/style_insert.rb +254 -0
- data/lib/aspose_words_cloud/models/style_response.rb +216 -0
- data/lib/aspose_words_cloud/models/style_update.rb +237 -0
- data/lib/aspose_words_cloud/models/styles.rb +218 -0
- data/lib/aspose_words_cloud/models/styles_response.rb +216 -0
- data/lib/aspose_words_cloud/models/svg_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/tab_stop.rb +290 -0
- data/lib/aspose_words_cloud/models/tab_stop_base.rb +280 -0
- data/lib/aspose_words_cloud/models/tab_stop_insert.rb +280 -0
- data/lib/aspose_words_cloud/models/tab_stops_response.rb +219 -0
- data/lib/aspose_words_cloud/models/text_save_options_data.rb +37 -1
- data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/models/xps_save_options_data.rb +58 -1
- data/lib/aspose_words_cloud/version.rb +1 -1
- metadata +52 -2
@@ -0,0 +1,81 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="UpdateListRequest.rb">
|
4
|
+
# Copyright (c) 2019 Aspose.Words for Cloud
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module AsposeWordsCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for update_list operation.
|
32
|
+
#
|
33
|
+
class UpdateListRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# List object.
|
38
|
+
attr_accessor :list_update
|
39
|
+
# List unique identifier.
|
40
|
+
attr_accessor :list_id
|
41
|
+
# Original document folder.
|
42
|
+
attr_accessor :folder
|
43
|
+
# Original document storage.
|
44
|
+
attr_accessor :storage
|
45
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
46
|
+
attr_accessor :load_encoding
|
47
|
+
# Password for opening an encrypted document.
|
48
|
+
attr_accessor :password
|
49
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
50
|
+
attr_accessor :dest_file_name
|
51
|
+
# Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
52
|
+
attr_accessor :revision_author
|
53
|
+
# The date and time to use for revisions.
|
54
|
+
attr_accessor :revision_date_time
|
55
|
+
|
56
|
+
#
|
57
|
+
# Initializes a new instance.
|
58
|
+
# @param name The document name.
|
59
|
+
# @param list_update List object.
|
60
|
+
# @param list_id List unique identifier.
|
61
|
+
# @param folder Original document folder.
|
62
|
+
# @param storage Original document storage.
|
63
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
64
|
+
# @param password Password for opening an encrypted document.
|
65
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
66
|
+
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
67
|
+
# @param revision_date_time The date and time to use for revisions.
|
68
|
+
def initialize(name, list_update, list_id, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
|
69
|
+
self.name = name
|
70
|
+
self.list_update = list_update
|
71
|
+
self.list_id = list_id
|
72
|
+
self.folder = folder
|
73
|
+
self.storage = storage
|
74
|
+
self.load_encoding = load_encoding
|
75
|
+
self.password = password
|
76
|
+
self.dest_file_name = dest_file_name
|
77
|
+
self.revision_author = revision_author
|
78
|
+
self.revision_date_time = revision_date_time
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="UpdateParagraphListFormatRequest.rb">
|
4
|
+
# Copyright (c) 2019 Aspose.Words for Cloud
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module AsposeWordsCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for update_paragraph_list_format operation.
|
32
|
+
#
|
33
|
+
class UpdateParagraphListFormatRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# Paragraph format object.
|
38
|
+
attr_accessor :dto
|
39
|
+
# Path to the node which contains paragraphs.
|
40
|
+
attr_accessor :node_path
|
41
|
+
# Object index.
|
42
|
+
attr_accessor :index
|
43
|
+
# Original document folder.
|
44
|
+
attr_accessor :folder
|
45
|
+
# Original document storage.
|
46
|
+
attr_accessor :storage
|
47
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
48
|
+
attr_accessor :load_encoding
|
49
|
+
# Password for opening an encrypted document.
|
50
|
+
attr_accessor :password
|
51
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
52
|
+
attr_accessor :dest_file_name
|
53
|
+
# Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
54
|
+
attr_accessor :revision_author
|
55
|
+
# The date and time to use for revisions.
|
56
|
+
attr_accessor :revision_date_time
|
57
|
+
|
58
|
+
#
|
59
|
+
# Initializes a new instance.
|
60
|
+
# @param name The document name.
|
61
|
+
# @param dto Paragraph format object.
|
62
|
+
# @param node_path Path to the node which contains paragraphs.
|
63
|
+
# @param index Object index.
|
64
|
+
# @param folder Original document folder.
|
65
|
+
# @param storage Original document storage.
|
66
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
67
|
+
# @param password Password for opening an encrypted document.
|
68
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
69
|
+
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
70
|
+
# @param revision_date_time The date and time to use for revisions.
|
71
|
+
def initialize(name, dto, node_path, index, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
|
72
|
+
self.name = name
|
73
|
+
self.dto = dto
|
74
|
+
self.node_path = node_path
|
75
|
+
self.index = index
|
76
|
+
self.folder = folder
|
77
|
+
self.storage = storage
|
78
|
+
self.load_encoding = load_encoding
|
79
|
+
self.password = password
|
80
|
+
self.dest_file_name = dest_file_name
|
81
|
+
self.revision_author = revision_author
|
82
|
+
self.revision_date_time = revision_date_time
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="UpdateStyleRequest.rb">
|
4
|
+
# Copyright (c) 2019 Aspose.Words for Cloud
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
12
|
+
# furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
15
|
+
# copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
# SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
26
|
+
#
|
27
|
+
|
28
|
+
module AsposeWordsCloud
|
29
|
+
|
30
|
+
#
|
31
|
+
# Request model for update_style operation.
|
32
|
+
#
|
33
|
+
class UpdateStyleRequest
|
34
|
+
|
35
|
+
# The document name.
|
36
|
+
attr_accessor :name
|
37
|
+
# Style properties to update.
|
38
|
+
attr_accessor :style_update
|
39
|
+
# Style name.
|
40
|
+
attr_accessor :style_name
|
41
|
+
# Original document folder.
|
42
|
+
attr_accessor :folder
|
43
|
+
# Original document storage.
|
44
|
+
attr_accessor :storage
|
45
|
+
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
46
|
+
attr_accessor :load_encoding
|
47
|
+
# Password for opening an encrypted document.
|
48
|
+
attr_accessor :password
|
49
|
+
# Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
50
|
+
attr_accessor :dest_file_name
|
51
|
+
# Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
52
|
+
attr_accessor :revision_author
|
53
|
+
# The date and time to use for revisions.
|
54
|
+
attr_accessor :revision_date_time
|
55
|
+
|
56
|
+
#
|
57
|
+
# Initializes a new instance.
|
58
|
+
# @param name The document name.
|
59
|
+
# @param style_update Style properties to update.
|
60
|
+
# @param style_name Style name.
|
61
|
+
# @param folder Original document folder.
|
62
|
+
# @param storage Original document storage.
|
63
|
+
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
64
|
+
# @param password Password for opening an encrypted document.
|
65
|
+
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
66
|
+
# @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
|
67
|
+
# @param revision_date_time The date and time to use for revisions.
|
68
|
+
def initialize(name, style_update, style_name, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil, revision_author = nil, revision_date_time = nil)
|
69
|
+
self.name = name
|
70
|
+
self.style_update = style_update
|
71
|
+
self.style_name = style_name
|
72
|
+
self.folder = folder
|
73
|
+
self.storage = storage
|
74
|
+
self.load_encoding = load_encoding
|
75
|
+
self.password = password
|
76
|
+
self.dest_file_name = dest_file_name
|
77
|
+
self.revision_author = revision_author
|
78
|
+
self.revision_date_time = revision_date_time
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -55,6 +55,12 @@ module AsposeWordsCloud
|
|
55
55
|
# Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
|
56
56
|
attr_accessor :update_fields
|
57
57
|
|
58
|
+
# Gets or sets a value determining how 3D effects are rendered.
|
59
|
+
attr_accessor :dml3_d_effects_rendering_mode
|
60
|
+
|
61
|
+
# Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
|
62
|
+
attr_accessor :update_last_printed_property
|
63
|
+
|
58
64
|
# Gets or sets allows to make output RTF documents smaller in size, but if they contain RTL (right-to-left) text, it will not be displayed correctly.
|
59
65
|
attr_accessor :export_compact_size
|
60
66
|
|
@@ -67,6 +73,27 @@ module AsposeWordsCloud
|
|
67
73
|
# Gets or sets a value indicating whether when true all images will be saved as WMF. This option might help to avoid WordPad warning messages.
|
68
74
|
attr_accessor :save_images_as_wmf
|
69
75
|
|
76
|
+
class EnumAttributeValidator
|
77
|
+
attr_reader :datatype
|
78
|
+
attr_reader :allowable_values
|
79
|
+
|
80
|
+
def initialize(datatype, allowable_values)
|
81
|
+
@allowable_values = allowable_values.map do |value|
|
82
|
+
case datatype.to_s
|
83
|
+
when /Integer/i
|
84
|
+
value.to_i
|
85
|
+
when /Float/i
|
86
|
+
value.to_f
|
87
|
+
else
|
88
|
+
value
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
def valid?(value)
|
94
|
+
!value || allowable_values.include?(value)
|
95
|
+
end
|
96
|
+
end
|
70
97
|
|
71
98
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
99
|
def self.attribute_map
|
@@ -79,6 +106,8 @@ module AsposeWordsCloud
|
|
79
106
|
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
80
107
|
:'update_sdt_content' => :'UpdateSdtContent',
|
81
108
|
:'update_fields' => :'UpdateFields',
|
109
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
110
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty',
|
82
111
|
:'export_compact_size' => :'ExportCompactSize',
|
83
112
|
:'export_images_for_old_readers' => :'ExportImagesForOldReaders',
|
84
113
|
:'pretty_format' => :'PrettyFormat',
|
@@ -97,6 +126,8 @@ module AsposeWordsCloud
|
|
97
126
|
:'update_last_saved_time_property' => :'BOOLEAN',
|
98
127
|
:'update_sdt_content' => :'BOOLEAN',
|
99
128
|
:'update_fields' => :'BOOLEAN',
|
129
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
130
|
+
:'update_last_printed_property' => :'BOOLEAN',
|
100
131
|
:'export_compact_size' => :'BOOLEAN',
|
101
132
|
:'export_images_for_old_readers' => :'BOOLEAN',
|
102
133
|
:'pretty_format' => :'BOOLEAN',
|
@@ -144,6 +175,14 @@ module AsposeWordsCloud
|
|
144
175
|
self.update_fields = attributes[:'UpdateFields']
|
145
176
|
end
|
146
177
|
|
178
|
+
if attributes.key?(:'Dml3DEffectsRenderingMode')
|
179
|
+
self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'UpdateLastPrintedProperty')
|
183
|
+
self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
|
184
|
+
end
|
185
|
+
|
147
186
|
if attributes.key?(:'ExportCompactSize')
|
148
187
|
self.export_compact_size = attributes[:'ExportCompactSize']
|
149
188
|
end
|
@@ -172,9 +211,25 @@ module AsposeWordsCloud
|
|
172
211
|
# Check to see if the all the properties in the model are valid
|
173
212
|
# @return true if the model is valid
|
174
213
|
def valid?
|
214
|
+
dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
215
|
+
return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
|
175
216
|
return true
|
176
217
|
end
|
177
218
|
|
219
|
+
# Custom attribute writer method checking allowed values (enum).
|
220
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
221
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
222
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
223
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
224
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
225
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
226
|
+
end
|
227
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
228
|
+
else
|
229
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
178
233
|
# Checks equality by comparing each attribute.
|
179
234
|
# @param [Object] Object to be compared
|
180
235
|
def ==(other)
|
@@ -188,6 +243,8 @@ module AsposeWordsCloud
|
|
188
243
|
update_last_saved_time_property == other.update_last_saved_time_property &&
|
189
244
|
update_sdt_content == other.update_sdt_content &&
|
190
245
|
update_fields == other.update_fields &&
|
246
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
247
|
+
update_last_printed_property == other.update_last_printed_property &&
|
191
248
|
export_compact_size == other.export_compact_size &&
|
192
249
|
export_images_for_old_readers == other.export_images_for_old_readers &&
|
193
250
|
pretty_format == other.pretty_format &&
|
@@ -203,7 +260,7 @@ module AsposeWordsCloud
|
|
203
260
|
# Calculates hash code according to all attributes.
|
204
261
|
# @return [Fixnum] Hash code
|
205
262
|
def hash
|
206
|
-
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, export_compact_size, export_images_for_old_readers, pretty_format, save_images_as_wmf].hash
|
263
|
+
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, dml3_d_effects_rendering_mode, update_last_printed_property, export_compact_size, export_images_for_old_readers, pretty_format, save_images_as_wmf].hash
|
207
264
|
end
|
208
265
|
|
209
266
|
# Builds the object from hash
|
@@ -55,6 +55,33 @@ module AsposeWordsCloud
|
|
55
55
|
# Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
|
56
56
|
attr_accessor :update_fields
|
57
57
|
|
58
|
+
# Gets or sets a value determining how 3D effects are rendered.
|
59
|
+
attr_accessor :dml3_d_effects_rendering_mode
|
60
|
+
|
61
|
+
# Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
|
62
|
+
attr_accessor :update_last_printed_property
|
63
|
+
|
64
|
+
class EnumAttributeValidator
|
65
|
+
attr_reader :datatype
|
66
|
+
attr_reader :allowable_values
|
67
|
+
|
68
|
+
def initialize(datatype, allowable_values)
|
69
|
+
@allowable_values = allowable_values.map do |value|
|
70
|
+
case datatype.to_s
|
71
|
+
when /Integer/i
|
72
|
+
value.to_i
|
73
|
+
when /Float/i
|
74
|
+
value.to_f
|
75
|
+
else
|
76
|
+
value
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def valid?(value)
|
82
|
+
!value || allowable_values.include?(value)
|
83
|
+
end
|
84
|
+
end
|
58
85
|
|
59
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
87
|
def self.attribute_map
|
@@ -66,7 +93,9 @@ module AsposeWordsCloud
|
|
66
93
|
:'zip_output' => :'ZipOutput',
|
67
94
|
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
68
95
|
:'update_sdt_content' => :'UpdateSdtContent',
|
69
|
-
:'update_fields' => :'UpdateFields'
|
96
|
+
:'update_fields' => :'UpdateFields',
|
97
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
98
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty'
|
70
99
|
}
|
71
100
|
end
|
72
101
|
|
@@ -80,7 +109,9 @@ module AsposeWordsCloud
|
|
80
109
|
:'zip_output' => :'BOOLEAN',
|
81
110
|
:'update_last_saved_time_property' => :'BOOLEAN',
|
82
111
|
:'update_sdt_content' => :'BOOLEAN',
|
83
|
-
:'update_fields' => :'BOOLEAN'
|
112
|
+
:'update_fields' => :'BOOLEAN',
|
113
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
114
|
+
:'update_last_printed_property' => :'BOOLEAN'
|
84
115
|
}
|
85
116
|
end
|
86
117
|
|
@@ -124,6 +155,14 @@ module AsposeWordsCloud
|
|
124
155
|
self.update_fields = attributes[:'UpdateFields']
|
125
156
|
end
|
126
157
|
|
158
|
+
if attributes.key?(:'Dml3DEffectsRenderingMode')
|
159
|
+
self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'UpdateLastPrintedProperty')
|
163
|
+
self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
|
164
|
+
end
|
165
|
+
|
127
166
|
end
|
128
167
|
|
129
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -136,9 +175,25 @@ module AsposeWordsCloud
|
|
136
175
|
# Check to see if the all the properties in the model are valid
|
137
176
|
# @return true if the model is valid
|
138
177
|
def valid?
|
178
|
+
dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
179
|
+
return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
|
139
180
|
return true
|
140
181
|
end
|
141
182
|
|
183
|
+
# Custom attribute writer method checking allowed values (enum).
|
184
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
185
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
186
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
187
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
188
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
189
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
190
|
+
end
|
191
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
192
|
+
else
|
193
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
142
197
|
# Checks equality by comparing each attribute.
|
143
198
|
# @param [Object] Object to be compared
|
144
199
|
def ==(other)
|
@@ -151,7 +206,9 @@ module AsposeWordsCloud
|
|
151
206
|
zip_output == other.zip_output &&
|
152
207
|
update_last_saved_time_property == other.update_last_saved_time_property &&
|
153
208
|
update_sdt_content == other.update_sdt_content &&
|
154
|
-
update_fields == other.update_fields
|
209
|
+
update_fields == other.update_fields &&
|
210
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
211
|
+
update_last_printed_property == other.update_last_printed_property
|
155
212
|
end
|
156
213
|
|
157
214
|
# @see the `==` method
|
@@ -163,7 +220,7 @@ module AsposeWordsCloud
|
|
163
220
|
# Calculates hash code according to all attributes.
|
164
221
|
# @return [Fixnum] Hash code
|
165
222
|
def hash
|
166
|
-
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields].hash
|
223
|
+
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, dml3_d_effects_rendering_mode, update_last_printed_property].hash
|
167
224
|
end
|
168
225
|
|
169
226
|
# Builds the object from hash
|