aspose_words_cloud 23.4.0 → 23.7.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/api/words_api.rb +85 -1
- data/lib/aspose_words_cloud/api_client.rb +1 -1
- data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/comment.rb +39 -39
- data/lib/aspose_words_cloud/models/comment_insert.rb +21 -21
- data/lib/aspose_words_cloud/models/comment_update.rb +21 -21
- data/lib/aspose_words_cloud/models/custom_xml_part.rb +14 -14
- data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +14 -14
- data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +14 -14
- data/lib/aspose_words_cloud/models/doc_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/document.rb +13 -13
- data/lib/aspose_words_cloud/models/document_entry.rb +41 -0
- data/lib/aspose_words_cloud/models/document_property.rb +15 -15
- data/lib/aspose_words_cloud/models/document_stat_data.rb +16 -16
- data/lib/aspose_words_cloud/models/drawing_object.rb +41 -41
- data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/footnote.rb +21 -21
- data/lib/aspose_words_cloud/models/form_field.rb +46 -46
- data/lib/aspose_words_cloud/models/form_field_checkbox.rb +59 -59
- data/lib/aspose_words_cloud/models/form_field_drop_down.rb +46 -46
- data/lib/aspose_words_cloud/models/form_field_text_input.rb +66 -66
- data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/header_footer.rb +14 -14
- data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/html_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/list_format.rb +15 -15
- data/lib/aspose_words_cloud/models/list_info.rb +35 -35
- data/lib/aspose_words_cloud/models/list_level.rb +76 -76
- data/lib/aspose_words_cloud/models/load_web_document_data.rb +14 -14
- data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/page_stat_data.rb +14 -14
- data/lib/aspose_words_cloud/models/paragraph_format.rb +21 -21
- data/lib/aspose_words_cloud/models/paragraph_format_base.rb +14 -14
- data/lib/aspose_words_cloud/models/paragraph_format_update.rb +14 -14
- data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -11
- data/lib/aspose_words_cloud/models/ps_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/requests/create_document_request.rb +9 -3
- data/lib/aspose_words_cloud/models/requests/insert_section_online_request.rb +204 -0
- data/lib/aspose_words_cloud/models/requests/insert_section_request.rb +203 -0
- data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/save_result.rb +16 -16
- data/lib/aspose_words_cloud/models/search_result.rb +14 -14
- data/lib/aspose_words_cloud/models/section.rb +15 -15
- data/lib/aspose_words_cloud/models/split_document_result.rb +16 -16
- data/lib/aspose_words_cloud/models/structured_document_tag.rb +142 -142
- data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +142 -142
- data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +142 -142
- data/lib/aspose_words_cloud/models/style.rb +71 -71
- data/lib/aspose_words_cloud/models/svg_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/table.rb +14 -14
- data/lib/aspose_words_cloud/models/table_row.rb +14 -14
- data/lib/aspose_words_cloud/models/table_row_format.rb +24 -24
- data/lib/aspose_words_cloud/models/text_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +19 -19
- data/lib/aspose_words_cloud/models/xps_save_options_data.rb +10 -10
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +2 -0
- metadata +4 -2
@@ -35,43 +35,48 @@ module AsposeWordsCloud
|
|
35
35
|
# Gets or sets the node id.
|
36
36
|
attr_accessor :node_id
|
37
37
|
|
38
|
-
# Gets or sets
|
39
|
-
attr_accessor :
|
40
|
-
|
41
|
-
# Gets or sets category of building block for this SDT node. Can not be null.
|
42
|
-
attr_accessor :building_block_category
|
43
|
-
|
44
|
-
# Gets or sets type of building block for this SDT. Can not be null.
|
45
|
-
attr_accessor :building_block_gallery
|
46
|
-
|
47
|
-
# Gets or sets the type of calendar for this SDT. Default is Aspose.Words.Markup.SdtCalendarType.Default.
|
48
|
-
attr_accessor :calendar_type
|
38
|
+
# Gets or sets Aspose.Words.Markup.SdtListItemCollection associated with this SDT.
|
39
|
+
attr_accessor :list_items
|
49
40
|
|
50
41
|
# Gets or sets a value indicating whether current state of the Checkbox SDT. Default value for this property.
|
51
42
|
attr_accessor :checked
|
52
43
|
|
53
|
-
# Gets or sets the
|
54
|
-
attr_accessor :
|
44
|
+
# Gets or sets the appearance of a structured document tag.
|
45
|
+
attr_accessor :appearance
|
46
|
+
|
47
|
+
# Gets or sets the language format for the date displayed in this SDT.
|
48
|
+
attr_accessor :date_display_locale
|
55
49
|
|
56
50
|
# Gets or sets String that represents the format in which dates are displayed. Can not be null. The dates for English (U.S.) is "mm/dd/yyyy".
|
57
51
|
attr_accessor :date_display_format
|
58
52
|
|
59
|
-
# Gets or sets the
|
60
|
-
attr_accessor :
|
53
|
+
# Gets or sets the full date and time last entered into this SDT.
|
54
|
+
attr_accessor :full_date
|
55
|
+
|
56
|
+
# Gets or sets the friendly name associated with this SDT. Can not be null.
|
57
|
+
attr_accessor :title
|
61
58
|
|
62
59
|
# Gets or sets format in which the date for a date SDT is stored when the SDT is bound to an XML node in the document's data store.
|
63
60
|
# Default value is Aspose.Words.Markup.SdtDateStorageFormat.DateTime.
|
64
61
|
attr_accessor :date_storage_format
|
65
62
|
|
66
|
-
# Gets or sets
|
67
|
-
attr_accessor :
|
63
|
+
# Gets or sets type of building block for this SDT. Can not be null.
|
64
|
+
attr_accessor :building_block_gallery
|
68
65
|
|
69
|
-
# Gets or sets
|
70
|
-
attr_accessor :
|
66
|
+
# Gets or sets category of building block for this SDT node. Can not be null.
|
67
|
+
attr_accessor :building_block_category
|
71
68
|
|
72
|
-
# Gets or sets a value indicating whether
|
73
|
-
|
74
|
-
|
69
|
+
# Gets or sets a value indicating whether this SDT allows multiple lines of text.
|
70
|
+
attr_accessor :multiline
|
71
|
+
|
72
|
+
# Gets or sets the color of the structured document tag.
|
73
|
+
attr_accessor :color
|
74
|
+
|
75
|
+
# Gets or sets the name of the style applied to the structured document tag.
|
76
|
+
attr_accessor :style_name
|
77
|
+
|
78
|
+
# Gets or sets the type of calendar for this SDT. Default is Aspose.Words.Markup.SdtCalendarType.Default.
|
79
|
+
attr_accessor :calendar_type
|
75
80
|
|
76
81
|
# Gets or sets a value indicating whether this SDT shall be removed from the WordProcessingML document when its contents are modified.
|
77
82
|
attr_accessor :is_temporary
|
@@ -79,8 +84,12 @@ module AsposeWordsCloud
|
|
79
84
|
# Gets or sets the level at which this SDT occurs in the document tree.
|
80
85
|
attr_accessor :level
|
81
86
|
|
82
|
-
# Gets or sets
|
83
|
-
attr_accessor :
|
87
|
+
# Gets or sets type of this Structured document tag.
|
88
|
+
attr_accessor :sdt_type
|
89
|
+
|
90
|
+
# Gets or sets Name of the Aspose.Words.BuildingBlocks.BuildingBlock containing placeholder text.
|
91
|
+
# Aspose.Words.BuildingBlocks.BuildingBlock with this name Aspose.Words.BuildingBlocks.BuildingBlock.Name has to be present in the Aspose.Words.Document.GlossaryDocument otherwise System.InvalidOperationException will occur.
|
92
|
+
attr_accessor :placeholder_name
|
84
93
|
|
85
94
|
# Gets or sets a value indicating whether, this property will prohibit a user from deleting this SDT.
|
86
95
|
attr_accessor :lock_content_control
|
@@ -88,24 +97,15 @@ module AsposeWordsCloud
|
|
88
97
|
# Gets or sets a value indicating whether, this property will prohibit a user from editing the contents of this SDT.
|
89
98
|
attr_accessor :lock_contents
|
90
99
|
|
91
|
-
# Gets or sets a value indicating whether this SDT
|
92
|
-
|
93
|
-
|
94
|
-
# Gets or sets Name of the Aspose.Words.BuildingBlocks.BuildingBlock containing placeholder text.
|
95
|
-
# Aspose.Words.BuildingBlocks.BuildingBlock with this name Aspose.Words.BuildingBlocks.BuildingBlock.Name has to be present in the Aspose.Words.Document.GlossaryDocument otherwise System.InvalidOperationException will occur.
|
96
|
-
attr_accessor :placeholder_name
|
97
|
-
|
98
|
-
# Gets or sets type of this Structured document tag.
|
99
|
-
attr_accessor :sdt_type
|
100
|
-
|
101
|
-
# Gets or sets the name of the style applied to the structured document tag.
|
102
|
-
attr_accessor :style_name
|
100
|
+
# Gets or sets a value indicating whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
|
101
|
+
# If set to true, this state shall be resumed (showing placeholder text) upon opening his document.
|
102
|
+
attr_accessor :is_showing_placeholder_text
|
103
103
|
|
104
104
|
# Gets or sets a tag associated with the current SDT node. Can not be null.
|
105
105
|
attr_accessor :tag
|
106
106
|
|
107
|
-
# Gets or sets
|
108
|
-
attr_accessor :
|
107
|
+
# Gets or sets a unique read-only persistent numerical Id for this SDT.
|
108
|
+
attr_accessor :id
|
109
109
|
|
110
110
|
# Gets a string that represents the XML contained within the node in the Aspose.Words.SaveFormat.FlatOpc format.
|
111
111
|
attr_accessor :word_open_xml
|
@@ -137,29 +137,29 @@ module AsposeWordsCloud
|
|
137
137
|
{
|
138
138
|
:'link' => :'Link',
|
139
139
|
:'node_id' => :'NodeId',
|
140
|
-
:'
|
141
|
-
:'building_block_category' => :'BuildingBlockCategory',
|
142
|
-
:'building_block_gallery' => :'BuildingBlockGallery',
|
143
|
-
:'calendar_type' => :'CalendarType',
|
140
|
+
:'list_items' => :'ListItems',
|
144
141
|
:'checked' => :'Checked',
|
145
|
-
:'
|
146
|
-
:'date_display_format' => :'DateDisplayFormat',
|
142
|
+
:'appearance' => :'Appearance',
|
147
143
|
:'date_display_locale' => :'DateDisplayLocale',
|
148
|
-
:'
|
144
|
+
:'date_display_format' => :'DateDisplayFormat',
|
149
145
|
:'full_date' => :'FullDate',
|
150
|
-
:'
|
151
|
-
:'
|
146
|
+
:'title' => :'Title',
|
147
|
+
:'date_storage_format' => :'DateStorageFormat',
|
148
|
+
:'building_block_gallery' => :'BuildingBlockGallery',
|
149
|
+
:'building_block_category' => :'BuildingBlockCategory',
|
150
|
+
:'multiline' => :'Multiline',
|
151
|
+
:'color' => :'Color',
|
152
|
+
:'style_name' => :'StyleName',
|
153
|
+
:'calendar_type' => :'CalendarType',
|
152
154
|
:'is_temporary' => :'IsTemporary',
|
153
155
|
:'level' => :'Level',
|
154
|
-
:'
|
156
|
+
:'sdt_type' => :'SdtType',
|
157
|
+
:'placeholder_name' => :'PlaceholderName',
|
155
158
|
:'lock_content_control' => :'LockContentControl',
|
156
159
|
:'lock_contents' => :'LockContents',
|
157
|
-
:'
|
158
|
-
:'placeholder_name' => :'PlaceholderName',
|
159
|
-
:'sdt_type' => :'SdtType',
|
160
|
-
:'style_name' => :'StyleName',
|
160
|
+
:'is_showing_placeholder_text' => :'IsShowingPlaceholderText',
|
161
161
|
:'tag' => :'Tag',
|
162
|
-
:'
|
162
|
+
:'id' => :'Id',
|
163
163
|
:'word_open_xml' => :'WordOpenXML'
|
164
164
|
}
|
165
165
|
end
|
@@ -169,29 +169,29 @@ module AsposeWordsCloud
|
|
169
169
|
{
|
170
170
|
:'link' => :'WordsApiLink',
|
171
171
|
:'node_id' => :'String',
|
172
|
-
:'
|
173
|
-
:'building_block_category' => :'String',
|
174
|
-
:'building_block_gallery' => :'String',
|
175
|
-
:'calendar_type' => :'String',
|
172
|
+
:'list_items' => :'Array<StructuredDocumentTagListItem>',
|
176
173
|
:'checked' => :'BOOLEAN',
|
177
|
-
:'
|
178
|
-
:'date_display_format' => :'String',
|
174
|
+
:'appearance' => :'String',
|
179
175
|
:'date_display_locale' => :'Integer',
|
180
|
-
:'
|
176
|
+
:'date_display_format' => :'String',
|
181
177
|
:'full_date' => :'DateTime',
|
182
|
-
:'
|
183
|
-
:'
|
178
|
+
:'title' => :'String',
|
179
|
+
:'date_storage_format' => :'String',
|
180
|
+
:'building_block_gallery' => :'String',
|
181
|
+
:'building_block_category' => :'String',
|
182
|
+
:'multiline' => :'BOOLEAN',
|
183
|
+
:'color' => :'String',
|
184
|
+
:'style_name' => :'String',
|
185
|
+
:'calendar_type' => :'String',
|
184
186
|
:'is_temporary' => :'BOOLEAN',
|
185
187
|
:'level' => :'String',
|
186
|
-
:'
|
188
|
+
:'sdt_type' => :'String',
|
189
|
+
:'placeholder_name' => :'String',
|
187
190
|
:'lock_content_control' => :'BOOLEAN',
|
188
191
|
:'lock_contents' => :'BOOLEAN',
|
189
|
-
:'
|
190
|
-
:'placeholder_name' => :'String',
|
191
|
-
:'sdt_type' => :'String',
|
192
|
-
:'style_name' => :'String',
|
192
|
+
:'is_showing_placeholder_text' => :'BOOLEAN',
|
193
193
|
:'tag' => :'String',
|
194
|
-
:'
|
194
|
+
:'id' => :'Integer',
|
195
195
|
:'word_open_xml' => :'String'
|
196
196
|
}
|
197
197
|
end
|
@@ -212,52 +212,62 @@ module AsposeWordsCloud
|
|
212
212
|
self.node_id = attributes[:'NodeId']
|
213
213
|
end
|
214
214
|
|
215
|
+
if attributes.key?(:'ListItems')
|
216
|
+
if (value = attributes[:'ListItems']).is_a?(Array)
|
217
|
+
self.list_items = value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.key?(:'Checked')
|
222
|
+
self.checked = attributes[:'Checked']
|
223
|
+
end
|
224
|
+
|
215
225
|
if attributes.key?(:'Appearance')
|
216
226
|
self.appearance = attributes[:'Appearance']
|
217
227
|
end
|
218
228
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
self.
|
229
|
+
if attributes.key?(:'DateDisplayLocale')
|
230
|
+
self.date_display_locale = attributes[:'DateDisplayLocale']
|
221
231
|
end
|
222
232
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
233
|
+
if attributes.key?(:'DateDisplayFormat')
|
234
|
+
self.date_display_format = attributes[:'DateDisplayFormat']
|
225
235
|
end
|
226
236
|
|
227
|
-
if attributes.key?(:'
|
228
|
-
self.
|
237
|
+
if attributes.key?(:'FullDate')
|
238
|
+
self.full_date = attributes[:'FullDate']
|
229
239
|
end
|
230
240
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
self.
|
241
|
+
if attributes.key?(:'Title')
|
242
|
+
self.title = attributes[:'Title']
|
233
243
|
end
|
234
244
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
245
|
+
if attributes.key?(:'DateStorageFormat')
|
246
|
+
self.date_storage_format = attributes[:'DateStorageFormat']
|
237
247
|
end
|
238
248
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
249
|
+
if attributes.key?(:'BuildingBlockGallery')
|
250
|
+
self.building_block_gallery = attributes[:'BuildingBlockGallery']
|
241
251
|
end
|
242
252
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
self.
|
253
|
+
if attributes.key?(:'BuildingBlockCategory')
|
254
|
+
self.building_block_category = attributes[:'BuildingBlockCategory']
|
245
255
|
end
|
246
256
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
257
|
+
if attributes.key?(:'Multiline')
|
258
|
+
self.multiline = attributes[:'Multiline']
|
249
259
|
end
|
250
260
|
|
251
|
-
if attributes.key?(:'
|
252
|
-
self.
|
261
|
+
if attributes.key?(:'Color')
|
262
|
+
self.color = attributes[:'Color']
|
253
263
|
end
|
254
264
|
|
255
|
-
if attributes.key?(:'
|
256
|
-
self.
|
265
|
+
if attributes.key?(:'StyleName')
|
266
|
+
self.style_name = attributes[:'StyleName']
|
257
267
|
end
|
258
268
|
|
259
|
-
if attributes.key?(:'
|
260
|
-
self.
|
269
|
+
if attributes.key?(:'CalendarType')
|
270
|
+
self.calendar_type = attributes[:'CalendarType']
|
261
271
|
end
|
262
272
|
|
263
273
|
if attributes.key?(:'IsTemporary')
|
@@ -268,10 +278,12 @@ module AsposeWordsCloud
|
|
268
278
|
self.level = attributes[:'Level']
|
269
279
|
end
|
270
280
|
|
271
|
-
if attributes.key?(:'
|
272
|
-
|
273
|
-
|
274
|
-
|
281
|
+
if attributes.key?(:'SdtType')
|
282
|
+
self.sdt_type = attributes[:'SdtType']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.key?(:'PlaceholderName')
|
286
|
+
self.placeholder_name = attributes[:'PlaceholderName']
|
275
287
|
end
|
276
288
|
|
277
289
|
if attributes.key?(:'LockContentControl')
|
@@ -282,28 +294,16 @@ module AsposeWordsCloud
|
|
282
294
|
self.lock_contents = attributes[:'LockContents']
|
283
295
|
end
|
284
296
|
|
285
|
-
if attributes.key?(:'
|
286
|
-
self.
|
287
|
-
end
|
288
|
-
|
289
|
-
if attributes.key?(:'PlaceholderName')
|
290
|
-
self.placeholder_name = attributes[:'PlaceholderName']
|
291
|
-
end
|
292
|
-
|
293
|
-
if attributes.key?(:'SdtType')
|
294
|
-
self.sdt_type = attributes[:'SdtType']
|
295
|
-
end
|
296
|
-
|
297
|
-
if attributes.key?(:'StyleName')
|
298
|
-
self.style_name = attributes[:'StyleName']
|
297
|
+
if attributes.key?(:'IsShowingPlaceholderText')
|
298
|
+
self.is_showing_placeholder_text = attributes[:'IsShowingPlaceholderText']
|
299
299
|
end
|
300
300
|
|
301
301
|
if attributes.key?(:'Tag')
|
302
302
|
self.tag = attributes[:'Tag']
|
303
303
|
end
|
304
304
|
|
305
|
-
if attributes.key?(:'
|
306
|
-
self.
|
305
|
+
if attributes.key?(:'Id')
|
306
|
+
self.id = attributes[:'Id']
|
307
307
|
end
|
308
308
|
|
309
309
|
if attributes.key?(:'WordOpenXML')
|
@@ -323,10 +323,10 @@ module AsposeWordsCloud
|
|
323
323
|
def valid?
|
324
324
|
appearance_validator = EnumAttributeValidator.new('String', ["Default", "BoundingBox", "Tags", "Hidden"])
|
325
325
|
return false unless appearance_validator.valid?(@appearance)
|
326
|
-
calendar_type_validator = EnumAttributeValidator.new('String', ["Default", "Gregorian", "GregorianArabic", "GregorianMeFrench", "GregorianUs", "GregorianXlitEnglish", "GregorianXlitFrench", "Hebrew", "Hijri", "Japan", "Korea", "None", "Saka", "Taiwan", "Thai"])
|
327
|
-
return false unless calendar_type_validator.valid?(@calendar_type)
|
328
326
|
date_storage_format_validator = EnumAttributeValidator.new('String', ["Date", "DateTime", "Default", "Text"])
|
329
327
|
return false unless date_storage_format_validator.valid?(@date_storage_format)
|
328
|
+
calendar_type_validator = EnumAttributeValidator.new('String', ["Default", "Gregorian", "GregorianArabic", "GregorianMeFrench", "GregorianUs", "GregorianXlitEnglish", "GregorianXlitFrench", "Hebrew", "Hijri", "Japan", "Korea", "None", "Saka", "Taiwan", "Thai"])
|
329
|
+
return false unless calendar_type_validator.valid?(@calendar_type)
|
330
330
|
level_validator = EnumAttributeValidator.new('String', ["Unknown", "Inline", "Block", "Row", "Cell"])
|
331
331
|
return false unless level_validator.valid?(@level)
|
332
332
|
sdt_type_validator = EnumAttributeValidator.new('String', ["None", "Bibliography", "Citation", "Equation", "DropDownList", "ComboBox", "Date", "BuildingBlockGallery", "DocPartObj", "Group", "Picture", "RichText", "PlainText", "Checkbox", "RepeatingSection", "RepeatingSectionItem", "EntityPicker"])
|
@@ -349,20 +349,6 @@ module AsposeWordsCloud
|
|
349
349
|
end
|
350
350
|
end
|
351
351
|
|
352
|
-
# Custom attribute writer method checking allowed values (enum).
|
353
|
-
# @param [Object] calendar_type Object to be assigned
|
354
|
-
def calendar_type=(calendar_type)
|
355
|
-
validator = EnumAttributeValidator.new('String', ["Default", "Gregorian", "GregorianArabic", "GregorianMeFrench", "GregorianUs", "GregorianXlitEnglish", "GregorianXlitFrench", "Hebrew", "Hijri", "Japan", "Korea", "None", "Saka", "Taiwan", "Thai"])
|
356
|
-
if calendar_type.to_i == 0
|
357
|
-
unless validator.valid?(calendar_type)
|
358
|
-
raise ArgumentError, "invalid value for 'calendar_type', must be one of #{validator.allowable_values}."
|
359
|
-
end
|
360
|
-
@calendar_type = calendar_type
|
361
|
-
else
|
362
|
-
@calendar_type = validator.allowable_values[calendar_type.to_i]
|
363
|
-
end
|
364
|
-
end
|
365
|
-
|
366
352
|
# Custom attribute writer method checking allowed values (enum).
|
367
353
|
# @param [Object] date_storage_format Object to be assigned
|
368
354
|
def date_storage_format=(date_storage_format)
|
@@ -377,6 +363,20 @@ module AsposeWordsCloud
|
|
377
363
|
end
|
378
364
|
end
|
379
365
|
|
366
|
+
# Custom attribute writer method checking allowed values (enum).
|
367
|
+
# @param [Object] calendar_type Object to be assigned
|
368
|
+
def calendar_type=(calendar_type)
|
369
|
+
validator = EnumAttributeValidator.new('String', ["Default", "Gregorian", "GregorianArabic", "GregorianMeFrench", "GregorianUs", "GregorianXlitEnglish", "GregorianXlitFrench", "Hebrew", "Hijri", "Japan", "Korea", "None", "Saka", "Taiwan", "Thai"])
|
370
|
+
if calendar_type.to_i == 0
|
371
|
+
unless validator.valid?(calendar_type)
|
372
|
+
raise ArgumentError, "invalid value for 'calendar_type', must be one of #{validator.allowable_values}."
|
373
|
+
end
|
374
|
+
@calendar_type = calendar_type
|
375
|
+
else
|
376
|
+
@calendar_type = validator.allowable_values[calendar_type.to_i]
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
380
380
|
# Custom attribute writer method checking allowed values (enum).
|
381
381
|
# @param [Object] level Object to be assigned
|
382
382
|
def level=(level)
|
@@ -413,29 +413,29 @@ module AsposeWordsCloud
|
|
413
413
|
self.class == other.class &&
|
414
414
|
link == other.link &&
|
415
415
|
node_id == other.node_id &&
|
416
|
-
|
417
|
-
building_block_category == other.building_block_category &&
|
418
|
-
building_block_gallery == other.building_block_gallery &&
|
419
|
-
calendar_type == other.calendar_type &&
|
416
|
+
list_items == other.list_items &&
|
420
417
|
checked == other.checked &&
|
421
|
-
|
422
|
-
date_display_format == other.date_display_format &&
|
418
|
+
appearance == other.appearance &&
|
423
419
|
date_display_locale == other.date_display_locale &&
|
424
|
-
|
420
|
+
date_display_format == other.date_display_format &&
|
425
421
|
full_date == other.full_date &&
|
426
|
-
|
427
|
-
|
422
|
+
title == other.title &&
|
423
|
+
date_storage_format == other.date_storage_format &&
|
424
|
+
building_block_gallery == other.building_block_gallery &&
|
425
|
+
building_block_category == other.building_block_category &&
|
426
|
+
multiline == other.multiline &&
|
427
|
+
color == other.color &&
|
428
|
+
style_name == other.style_name &&
|
429
|
+
calendar_type == other.calendar_type &&
|
428
430
|
is_temporary == other.is_temporary &&
|
429
431
|
level == other.level &&
|
430
|
-
|
432
|
+
sdt_type == other.sdt_type &&
|
433
|
+
placeholder_name == other.placeholder_name &&
|
431
434
|
lock_content_control == other.lock_content_control &&
|
432
435
|
lock_contents == other.lock_contents &&
|
433
|
-
|
434
|
-
placeholder_name == other.placeholder_name &&
|
435
|
-
sdt_type == other.sdt_type &&
|
436
|
-
style_name == other.style_name &&
|
436
|
+
is_showing_placeholder_text == other.is_showing_placeholder_text &&
|
437
437
|
tag == other.tag &&
|
438
|
-
|
438
|
+
id == other.id &&
|
439
439
|
word_open_xml == other.word_open_xml
|
440
440
|
end
|
441
441
|
|
@@ -448,7 +448,7 @@ module AsposeWordsCloud
|
|
448
448
|
# Calculates hash code according to all attributes.
|
449
449
|
# @return [Fixnum] Hash code
|
450
450
|
def hash
|
451
|
-
[link, node_id,
|
451
|
+
[link, node_id, list_items, checked, appearance, date_display_locale, date_display_format, full_date, title, date_storage_format, building_block_gallery, building_block_category, multiline, color, style_name, calendar_type, is_temporary, level, sdt_type, placeholder_name, lock_content_control, lock_contents, is_showing_placeholder_text, tag, id, word_open_xml].hash
|
452
452
|
end
|
453
453
|
|
454
454
|
# Builds the object from hash
|