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,216 @@
|
|
1
|
+
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
module AsposeWordsCloud
|
5
|
+
#
|
6
|
+
# --------------------------------------------------------------------------------------------------------------------
|
7
|
+
# <copyright company="Aspose" file="ListsResponse.rb">
|
8
|
+
# Copyright (c) 2019 Aspose.Words for Cloud
|
9
|
+
# </copyright>
|
10
|
+
# <summary>
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
|
+
# of this software and associated documentation files (the "Software"), to deal
|
13
|
+
# in the Software without restriction, including without limitation the rights
|
14
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
15
|
+
# copies of the Software, and to permit persons to whom the Software is
|
16
|
+
# furnished to do so, subject to the following conditions:
|
17
|
+
#
|
18
|
+
# The above copyright notice and this permission notice shall be included in all
|
19
|
+
# copies or substantial portions of the Software.
|
20
|
+
#
|
21
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
27
|
+
# SOFTWARE.
|
28
|
+
# </summary>
|
29
|
+
# --------------------------------------------------------------------------------------------------------------------
|
30
|
+
#
|
31
|
+
|
32
|
+
# This response should be returned by the service when handling: GET https://api.aspose.cloud/v4.0/words/Test.doc/lists.
|
33
|
+
class ListsResponse
|
34
|
+
# Gets or sets request Id.
|
35
|
+
attr_accessor :request_id
|
36
|
+
|
37
|
+
attr_accessor :lists
|
38
|
+
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'request_id' => :'RequestId',
|
44
|
+
:'lists' => :'Lists'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
:'request_id' => :'String',
|
52
|
+
:'lists' => :'Lists'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
return unless attributes.is_a?(Hash)
|
60
|
+
|
61
|
+
# convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
|
+
|
64
|
+
if attributes.key?(:'RequestId')
|
65
|
+
self.request_id = attributes[:'RequestId']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'Lists')
|
69
|
+
self.lists = attributes[:'Lists']
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
+
# @return Array for valid properies with the reasons
|
76
|
+
def list_invalid_properties
|
77
|
+
invalid_properties = []
|
78
|
+
return invalid_properties
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
def valid?
|
84
|
+
return true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(other)
|
90
|
+
return true if self.equal?(other)
|
91
|
+
self.class == other.class &&
|
92
|
+
request_id == other.request_id &&
|
93
|
+
lists == other.lists
|
94
|
+
end
|
95
|
+
|
96
|
+
# @see the `==` method
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def eql?(other)
|
99
|
+
self == other
|
100
|
+
end
|
101
|
+
|
102
|
+
# Calculates hash code according to all attributes.
|
103
|
+
# @return [Fixnum] Hash code
|
104
|
+
def hash
|
105
|
+
[request_id, lists].hash
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.swagger_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end
|
123
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
Time.at(/\d/.match(value)[0].to_f).to_datetime
|
137
|
+
when :Date
|
138
|
+
Time.at(/\d/.match(value)[0].to_f).to_date
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else
|
166
|
+
# model
|
167
|
+
temp_model = AsposeWordsCloud.const_get(type).new
|
168
|
+
temp_model.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
next if value.nil?
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
215
|
+
|
216
|
+
end
|
@@ -172,6 +172,12 @@ module AsposeWordsCloud
|
|
172
172
|
# 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
|
173
173
|
attr_accessor :update_fields
|
174
174
|
|
175
|
+
# Gets or sets a value determining how 3D effects are rendered.
|
176
|
+
attr_accessor :dml3_d_effects_rendering_mode
|
177
|
+
|
178
|
+
# Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastPrinted property is updated before saving.
|
179
|
+
attr_accessor :update_last_printed_property
|
180
|
+
|
175
181
|
# Gets or sets specifies whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents. Default value is false.
|
176
182
|
attr_accessor :export_cid_urls_for_mhtml_resources
|
177
183
|
|
@@ -247,6 +253,8 @@ module AsposeWordsCloud
|
|
247
253
|
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
248
254
|
:'update_sdt_content' => :'UpdateSdtContent',
|
249
255
|
:'update_fields' => :'UpdateFields',
|
256
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
257
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty',
|
250
258
|
:'export_cid_urls_for_mhtml_resources' => :'ExportCidUrlsForMhtmlResources'
|
251
259
|
}
|
252
260
|
end
|
@@ -301,6 +309,8 @@ module AsposeWordsCloud
|
|
301
309
|
:'update_last_saved_time_property' => :'BOOLEAN',
|
302
310
|
:'update_sdt_content' => :'BOOLEAN',
|
303
311
|
:'update_fields' => :'BOOLEAN',
|
312
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
313
|
+
:'update_last_printed_property' => :'BOOLEAN',
|
304
314
|
:'export_cid_urls_for_mhtml_resources' => :'BOOLEAN'
|
305
315
|
}
|
306
316
|
end
|
@@ -501,6 +511,14 @@ module AsposeWordsCloud
|
|
501
511
|
self.update_fields = attributes[:'UpdateFields']
|
502
512
|
end
|
503
513
|
|
514
|
+
if attributes.key?(:'Dml3DEffectsRenderingMode')
|
515
|
+
self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
|
516
|
+
end
|
517
|
+
|
518
|
+
if attributes.key?(:'UpdateLastPrintedProperty')
|
519
|
+
self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
|
520
|
+
end
|
521
|
+
|
504
522
|
if attributes.key?(:'ExportCidUrlsForMhtmlResources')
|
505
523
|
self.export_cid_urls_for_mhtml_resources = attributes[:'ExportCidUrlsForMhtmlResources']
|
506
524
|
end
|
@@ -523,6 +541,8 @@ module AsposeWordsCloud
|
|
523
541
|
return false unless metafile_format_validator.valid?(@metafile_format)
|
524
542
|
office_math_output_mode_validator = EnumAttributeValidator.new('String', ["Image", "MathML", "Text"])
|
525
543
|
return false unless office_math_output_mode_validator.valid?(@office_math_output_mode)
|
544
|
+
dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
545
|
+
return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
|
526
546
|
return true
|
527
547
|
end
|
528
548
|
|
@@ -568,6 +588,20 @@ module AsposeWordsCloud
|
|
568
588
|
end
|
569
589
|
end
|
570
590
|
|
591
|
+
# Custom attribute writer method checking allowed values (enum).
|
592
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
593
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
594
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
595
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
596
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
597
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
598
|
+
end
|
599
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
600
|
+
else
|
601
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
602
|
+
end
|
603
|
+
end
|
604
|
+
|
571
605
|
# Checks equality by comparing each attribute.
|
572
606
|
# @param [Object] Object to be compared
|
573
607
|
def ==(other)
|
@@ -620,6 +654,8 @@ module AsposeWordsCloud
|
|
620
654
|
update_last_saved_time_property == other.update_last_saved_time_property &&
|
621
655
|
update_sdt_content == other.update_sdt_content &&
|
622
656
|
update_fields == other.update_fields &&
|
657
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
658
|
+
update_last_printed_property == other.update_last_printed_property &&
|
623
659
|
export_cid_urls_for_mhtml_resources == other.export_cid_urls_for_mhtml_resources
|
624
660
|
end
|
625
661
|
|
@@ -632,7 +668,7 @@ module AsposeWordsCloud
|
|
632
668
|
# Calculates hash code according to all attributes.
|
633
669
|
# @return [Fixnum] Hash code
|
634
670
|
def hash
|
635
|
-
[allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, export_cid_urls_for_mhtml_resources].hash
|
671
|
+
[allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, 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_cid_urls_for_mhtml_resources].hash
|
636
672
|
end
|
637
673
|
|
638
674
|
# Builds the object from hash
|
@@ -55,12 +55,21 @@ 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 specifies whether export should correspond to ODT specification 1.1 strictly.
|
59
65
|
attr_accessor :is_strict_schema11
|
60
66
|
|
61
67
|
# Gets or sets allows to specify units of measure to apply to document content. The default value is Aspose.Words.Saving.OdtSaveMeasureUnit.Centimeters. Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.
|
62
68
|
attr_accessor :measure_unit
|
63
69
|
|
70
|
+
# Gets or sets a password to encrypt document.
|
71
|
+
attr_accessor :password
|
72
|
+
|
64
73
|
# Gets or sets specifies whether or not use pretty formats output.
|
65
74
|
attr_accessor :pretty_format
|
66
75
|
|
@@ -97,8 +106,11 @@ module AsposeWordsCloud
|
|
97
106
|
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
98
107
|
:'update_sdt_content' => :'UpdateSdtContent',
|
99
108
|
:'update_fields' => :'UpdateFields',
|
109
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
110
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty',
|
100
111
|
:'is_strict_schema11' => :'IsStrictSchema11',
|
101
112
|
:'measure_unit' => :'MeasureUnit',
|
113
|
+
:'password' => :'Password',
|
102
114
|
:'pretty_format' => :'PrettyFormat'
|
103
115
|
}
|
104
116
|
end
|
@@ -114,8 +126,11 @@ module AsposeWordsCloud
|
|
114
126
|
:'update_last_saved_time_property' => :'BOOLEAN',
|
115
127
|
:'update_sdt_content' => :'BOOLEAN',
|
116
128
|
:'update_fields' => :'BOOLEAN',
|
129
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
130
|
+
:'update_last_printed_property' => :'BOOLEAN',
|
117
131
|
:'is_strict_schema11' => :'BOOLEAN',
|
118
132
|
:'measure_unit' => :'String',
|
133
|
+
:'password' => :'String',
|
119
134
|
:'pretty_format' => :'BOOLEAN'
|
120
135
|
}
|
121
136
|
end
|
@@ -160,6 +175,14 @@ module AsposeWordsCloud
|
|
160
175
|
self.update_fields = attributes[:'UpdateFields']
|
161
176
|
end
|
162
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
|
+
|
163
186
|
if attributes.key?(:'IsStrictSchema11')
|
164
187
|
self.is_strict_schema11 = attributes[:'IsStrictSchema11']
|
165
188
|
end
|
@@ -168,6 +191,10 @@ module AsposeWordsCloud
|
|
168
191
|
self.measure_unit = attributes[:'MeasureUnit']
|
169
192
|
end
|
170
193
|
|
194
|
+
if attributes.key?(:'Password')
|
195
|
+
self.password = attributes[:'Password']
|
196
|
+
end
|
197
|
+
|
171
198
|
if attributes.key?(:'PrettyFormat')
|
172
199
|
self.pretty_format = attributes[:'PrettyFormat']
|
173
200
|
end
|
@@ -184,11 +211,27 @@ module AsposeWordsCloud
|
|
184
211
|
# Check to see if the all the properties in the model are valid
|
185
212
|
# @return true if the model is valid
|
186
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)
|
187
216
|
measure_unit_validator = EnumAttributeValidator.new('String', ["Centimeters", "Inches"])
|
188
217
|
return false unless measure_unit_validator.valid?(@measure_unit)
|
189
218
|
return true
|
190
219
|
end
|
191
220
|
|
221
|
+
# Custom attribute writer method checking allowed values (enum).
|
222
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
223
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
224
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
225
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
226
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
227
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
228
|
+
end
|
229
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
230
|
+
else
|
231
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
192
235
|
# Custom attribute writer method checking allowed values (enum).
|
193
236
|
# @param [Object] measure_unit Object to be assigned
|
194
237
|
def measure_unit=(measure_unit)
|
@@ -216,8 +259,11 @@ module AsposeWordsCloud
|
|
216
259
|
update_last_saved_time_property == other.update_last_saved_time_property &&
|
217
260
|
update_sdt_content == other.update_sdt_content &&
|
218
261
|
update_fields == other.update_fields &&
|
262
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
263
|
+
update_last_printed_property == other.update_last_printed_property &&
|
219
264
|
is_strict_schema11 == other.is_strict_schema11 &&
|
220
265
|
measure_unit == other.measure_unit &&
|
266
|
+
password == other.password &&
|
221
267
|
pretty_format == other.pretty_format
|
222
268
|
end
|
223
269
|
|
@@ -230,7 +276,7 @@ module AsposeWordsCloud
|
|
230
276
|
# Calculates hash code according to all attributes.
|
231
277
|
# @return [Fixnum] Hash code
|
232
278
|
def hash
|
233
|
-
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, is_strict_schema11, measure_unit, pretty_format].hash
|
279
|
+
[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, is_strict_schema11, measure_unit, password, pretty_format].hash
|
234
280
|
end
|
235
281
|
|
236
282
|
# Builds the object from hash
|
@@ -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 specifies the OOXML version for the output document.
|
59
65
|
attr_accessor :compliance
|
60
66
|
|
@@ -64,6 +70,27 @@ module AsposeWordsCloud
|
|
64
70
|
# Gets or sets specifies whether or not use pretty formats output.
|
65
71
|
attr_accessor :pretty_format
|
66
72
|
|
73
|
+
class EnumAttributeValidator
|
74
|
+
attr_reader :datatype
|
75
|
+
attr_reader :allowable_values
|
76
|
+
|
77
|
+
def initialize(datatype, allowable_values)
|
78
|
+
@allowable_values = allowable_values.map do |value|
|
79
|
+
case datatype.to_s
|
80
|
+
when /Integer/i
|
81
|
+
value.to_i
|
82
|
+
when /Float/i
|
83
|
+
value.to_f
|
84
|
+
else
|
85
|
+
value
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def valid?(value)
|
91
|
+
!value || allowable_values.include?(value)
|
92
|
+
end
|
93
|
+
end
|
67
94
|
|
68
95
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
96
|
def self.attribute_map
|
@@ -76,6 +103,8 @@ module AsposeWordsCloud
|
|
76
103
|
:'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
|
77
104
|
:'update_sdt_content' => :'UpdateSdtContent',
|
78
105
|
:'update_fields' => :'UpdateFields',
|
106
|
+
:'dml3_d_effects_rendering_mode' => :'Dml3DEffectsRenderingMode',
|
107
|
+
:'update_last_printed_property' => :'UpdateLastPrintedProperty',
|
79
108
|
:'compliance' => :'Compliance',
|
80
109
|
:'password' => :'Password',
|
81
110
|
:'pretty_format' => :'PrettyFormat'
|
@@ -93,6 +122,8 @@ module AsposeWordsCloud
|
|
93
122
|
:'update_last_saved_time_property' => :'BOOLEAN',
|
94
123
|
:'update_sdt_content' => :'BOOLEAN',
|
95
124
|
:'update_fields' => :'BOOLEAN',
|
125
|
+
:'dml3_d_effects_rendering_mode' => :'String',
|
126
|
+
:'update_last_printed_property' => :'BOOLEAN',
|
96
127
|
:'compliance' => :'String',
|
97
128
|
:'password' => :'String',
|
98
129
|
:'pretty_format' => :'BOOLEAN'
|
@@ -139,6 +170,14 @@ module AsposeWordsCloud
|
|
139
170
|
self.update_fields = attributes[:'UpdateFields']
|
140
171
|
end
|
141
172
|
|
173
|
+
if attributes.key?(:'Dml3DEffectsRenderingMode')
|
174
|
+
self.dml3_d_effects_rendering_mode = attributes[:'Dml3DEffectsRenderingMode']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'UpdateLastPrintedProperty')
|
178
|
+
self.update_last_printed_property = attributes[:'UpdateLastPrintedProperty']
|
179
|
+
end
|
180
|
+
|
142
181
|
if attributes.key?(:'Compliance')
|
143
182
|
self.compliance = attributes[:'Compliance']
|
144
183
|
end
|
@@ -163,9 +202,25 @@ module AsposeWordsCloud
|
|
163
202
|
# Check to see if the all the properties in the model are valid
|
164
203
|
# @return true if the model is valid
|
165
204
|
def valid?
|
205
|
+
dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
206
|
+
return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
|
166
207
|
return true
|
167
208
|
end
|
168
209
|
|
210
|
+
# Custom attribute writer method checking allowed values (enum).
|
211
|
+
# @param [Object] dml3_d_effects_rendering_mode Object to be assigned
|
212
|
+
def dml3_d_effects_rendering_mode=(dml3_d_effects_rendering_mode)
|
213
|
+
validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
|
214
|
+
if dml3_d_effects_rendering_mode.to_i == 0
|
215
|
+
unless validator.valid?(dml3_d_effects_rendering_mode)
|
216
|
+
raise ArgumentError, "invalid value for 'dml3_d_effects_rendering_mode', must be one of #{validator.allowable_values}."
|
217
|
+
end
|
218
|
+
@dml3_d_effects_rendering_mode = dml3_d_effects_rendering_mode
|
219
|
+
else
|
220
|
+
@dml3_d_effects_rendering_mode = validator.allowable_values[dml3_d_effects_rendering_mode.to_i]
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
169
224
|
# Checks equality by comparing each attribute.
|
170
225
|
# @param [Object] Object to be compared
|
171
226
|
def ==(other)
|
@@ -179,6 +234,8 @@ module AsposeWordsCloud
|
|
179
234
|
update_last_saved_time_property == other.update_last_saved_time_property &&
|
180
235
|
update_sdt_content == other.update_sdt_content &&
|
181
236
|
update_fields == other.update_fields &&
|
237
|
+
dml3_d_effects_rendering_mode == other.dml3_d_effects_rendering_mode &&
|
238
|
+
update_last_printed_property == other.update_last_printed_property &&
|
182
239
|
compliance == other.compliance &&
|
183
240
|
password == other.password &&
|
184
241
|
pretty_format == other.pretty_format
|
@@ -193,7 +250,7 @@ module AsposeWordsCloud
|
|
193
250
|
# Calculates hash code according to all attributes.
|
194
251
|
# @return [Fixnum] Hash code
|
195
252
|
def hash
|
196
|
-
[save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, compliance, password, pretty_format].hash
|
253
|
+
[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, compliance, password, pretty_format].hash
|
197
254
|
end
|
198
255
|
|
199
256
|
# Builds the object from hash
|