aspose_words_cloud 23.4.0 → 23.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +85 -1
  3. data/lib/aspose_words_cloud/api_client.rb +1 -1
  4. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -11
  5. data/lib/aspose_words_cloud/models/comment.rb +39 -39
  6. data/lib/aspose_words_cloud/models/comment_insert.rb +21 -21
  7. data/lib/aspose_words_cloud/models/comment_update.rb +21 -21
  8. data/lib/aspose_words_cloud/models/custom_xml_part.rb +14 -14
  9. data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +14 -14
  10. data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +14 -14
  11. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +10 -10
  12. data/lib/aspose_words_cloud/models/document.rb +13 -13
  13. data/lib/aspose_words_cloud/models/document_entry.rb +41 -0
  14. data/lib/aspose_words_cloud/models/document_property.rb +15 -15
  15. data/lib/aspose_words_cloud/models/document_stat_data.rb +16 -16
  16. data/lib/aspose_words_cloud/models/drawing_object.rb +41 -41
  17. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -11
  18. data/lib/aspose_words_cloud/models/footnote.rb +21 -21
  19. data/lib/aspose_words_cloud/models/form_field.rb +46 -46
  20. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +59 -59
  21. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +46 -46
  22. data/lib/aspose_words_cloud/models/form_field_text_input.rb +66 -66
  23. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -11
  24. data/lib/aspose_words_cloud/models/header_footer.rb +14 -14
  25. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +10 -10
  26. data/lib/aspose_words_cloud/models/html_save_options_data.rb +10 -10
  27. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -11
  28. data/lib/aspose_words_cloud/models/list_format.rb +15 -15
  29. data/lib/aspose_words_cloud/models/list_info.rb +35 -35
  30. data/lib/aspose_words_cloud/models/list_level.rb +76 -76
  31. data/lib/aspose_words_cloud/models/load_web_document_data.rb +14 -14
  32. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +10 -10
  33. data/lib/aspose_words_cloud/models/page_stat_data.rb +14 -14
  34. data/lib/aspose_words_cloud/models/paragraph_format.rb +21 -21
  35. data/lib/aspose_words_cloud/models/paragraph_format_base.rb +14 -14
  36. data/lib/aspose_words_cloud/models/paragraph_format_update.rb +14 -14
  37. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +10 -10
  38. data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -11
  39. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +10 -10
  40. data/lib/aspose_words_cloud/models/requests/create_document_request.rb +9 -3
  41. data/lib/aspose_words_cloud/models/requests/insert_section_online_request.rb +204 -0
  42. data/lib/aspose_words_cloud/models/requests/insert_section_request.rb +203 -0
  43. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +10 -10
  44. data/lib/aspose_words_cloud/models/save_result.rb +16 -16
  45. data/lib/aspose_words_cloud/models/search_result.rb +14 -14
  46. data/lib/aspose_words_cloud/models/section.rb +15 -15
  47. data/lib/aspose_words_cloud/models/split_document_result.rb +16 -16
  48. data/lib/aspose_words_cloud/models/structured_document_tag.rb +142 -142
  49. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +142 -142
  50. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +142 -142
  51. data/lib/aspose_words_cloud/models/style.rb +71 -71
  52. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +10 -10
  53. data/lib/aspose_words_cloud/models/table.rb +14 -14
  54. data/lib/aspose_words_cloud/models/table_row.rb +14 -14
  55. data/lib/aspose_words_cloud/models/table_row_format.rb +24 -24
  56. data/lib/aspose_words_cloud/models/text_save_options_data.rb +10 -10
  57. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +19 -19
  58. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +10 -10
  59. data/lib/aspose_words_cloud/version.rb +1 -1
  60. data/lib/aspose_words_cloud.rb +2 -0
  61. metadata +4 -2
@@ -35,14 +35,14 @@ module AsposeWordsCloud
35
35
  # Gets or sets the list of child nodes.
36
36
  attr_accessor :child_nodes
37
37
 
38
- # Gets or sets the link to HeaderFooters resource.
39
- attr_accessor :header_footers
38
+ # Gets or sets the link to Paragraphs resource.
39
+ attr_accessor :paragraphs
40
40
 
41
41
  # Gets or sets the link to PageSetup resource.
42
42
  attr_accessor :page_setup
43
43
 
44
- # Gets or sets the link to Paragraphs resource.
45
- attr_accessor :paragraphs
44
+ # Gets or sets the link to HeaderFooters resource.
45
+ attr_accessor :header_footers
46
46
 
47
47
  # Gets or sets the link to Tables resource.
48
48
  attr_accessor :tables
@@ -51,9 +51,9 @@ module AsposeWordsCloud
51
51
  {
52
52
  :'link' => :'Link',
53
53
  :'child_nodes' => :'ChildNodes',
54
- :'header_footers' => :'HeaderFooters',
55
- :'page_setup' => :'PageSetup',
56
54
  :'paragraphs' => :'Paragraphs',
55
+ :'page_setup' => :'PageSetup',
56
+ :'header_footers' => :'HeaderFooters',
57
57
  :'tables' => :'Tables'
58
58
  }
59
59
  end
@@ -63,9 +63,9 @@ module AsposeWordsCloud
63
63
  {
64
64
  :'link' => :'WordsApiLink',
65
65
  :'child_nodes' => :'Array<NodeLink>',
66
- :'header_footers' => :'LinkElement',
67
- :'page_setup' => :'LinkElement',
68
66
  :'paragraphs' => :'LinkElement',
67
+ :'page_setup' => :'LinkElement',
68
+ :'header_footers' => :'LinkElement',
69
69
  :'tables' => :'LinkElement'
70
70
  }
71
71
  end
@@ -88,16 +88,16 @@ module AsposeWordsCloud
88
88
  end
89
89
  end
90
90
 
91
- if attributes.key?(:'HeaderFooters')
92
- self.header_footers = attributes[:'HeaderFooters']
91
+ if attributes.key?(:'Paragraphs')
92
+ self.paragraphs = attributes[:'Paragraphs']
93
93
  end
94
94
 
95
95
  if attributes.key?(:'PageSetup')
96
96
  self.page_setup = attributes[:'PageSetup']
97
97
  end
98
98
 
99
- if attributes.key?(:'Paragraphs')
100
- self.paragraphs = attributes[:'Paragraphs']
99
+ if attributes.key?(:'HeaderFooters')
100
+ self.header_footers = attributes[:'HeaderFooters']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'Tables')
@@ -125,9 +125,9 @@ module AsposeWordsCloud
125
125
  self.class == other.class &&
126
126
  link == other.link &&
127
127
  child_nodes == other.child_nodes &&
128
- header_footers == other.header_footers &&
129
- page_setup == other.page_setup &&
130
128
  paragraphs == other.paragraphs &&
129
+ page_setup == other.page_setup &&
130
+ header_footers == other.header_footers &&
131
131
  tables == other.tables
132
132
  end
133
133
 
@@ -140,7 +140,7 @@ module AsposeWordsCloud
140
140
  # Calculates hash code according to all attributes.
141
141
  # @return [Fixnum] Hash code
142
142
  def hash
143
- [link, child_nodes, header_footers, page_setup, paragraphs, tables].hash
143
+ [link, child_nodes, paragraphs, page_setup, header_footers, tables].hash
144
144
  end
145
145
 
146
146
  # Builds the object from hash
@@ -29,29 +29,29 @@ module AsposeWordsCloud
29
29
 
30
30
  # Result of splitting document.
31
31
  class SplitDocumentResult
32
- # Gets or sets the list of pages.
33
- attr_accessor :pages
34
-
35
32
  # Gets or sets the link to the source document.
36
33
  attr_accessor :source_document
37
34
 
38
35
  # Gets or sets the link to the file archive with pages.
39
36
  attr_accessor :zipped_pages
37
+
38
+ # Gets or sets the list of pages.
39
+ attr_accessor :pages
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'pages' => :'Pages',
44
43
  :'source_document' => :'SourceDocument',
45
- :'zipped_pages' => :'ZippedPages'
44
+ :'zipped_pages' => :'ZippedPages',
45
+ :'pages' => :'Pages'
46
46
  }
47
47
  end
48
48
 
49
49
  # Attribute type mapping.
50
50
  def self.swagger_types
51
51
  {
52
- :'pages' => :'Array<FileLink>',
53
52
  :'source_document' => :'FileLink',
54
- :'zipped_pages' => :'FileLink'
53
+ :'zipped_pages' => :'FileLink',
54
+ :'pages' => :'Array<FileLink>'
55
55
  }
56
56
  end
57
57
 
@@ -63,12 +63,6 @@ module AsposeWordsCloud
63
63
  # convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
65
 
66
- if attributes.key?(:'Pages')
67
- if (value = attributes[:'Pages']).is_a?(Array)
68
- self.pages = value
69
- end
70
- end
71
-
72
66
  if attributes.key?(:'SourceDocument')
73
67
  self.source_document = attributes[:'SourceDocument']
74
68
  end
@@ -76,6 +70,12 @@ module AsposeWordsCloud
76
70
  if attributes.key?(:'ZippedPages')
77
71
  self.zipped_pages = attributes[:'ZippedPages']
78
72
  end
73
+
74
+ if attributes.key?(:'Pages')
75
+ if (value = attributes[:'Pages']).is_a?(Array)
76
+ self.pages = value
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -96,9 +96,9 @@ module AsposeWordsCloud
96
96
  def ==(other)
97
97
  return true if self.equal?(other)
98
98
  self.class == other.class &&
99
- pages == other.pages &&
100
99
  source_document == other.source_document &&
101
- zipped_pages == other.zipped_pages
100
+ zipped_pages == other.zipped_pages &&
101
+ pages == other.pages
102
102
  end
103
103
 
104
104
  # @see the `==` method
@@ -110,7 +110,7 @@ module AsposeWordsCloud
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Fixnum] Hash code
112
112
  def hash
113
- [pages, source_document, zipped_pages].hash
113
+ [source_document, zipped_pages, pages].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash
@@ -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 the appearance of a structured document tag.
39
- attr_accessor :appearance
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 color of the structured document tag.
54
- attr_accessor :color
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 language format for the date displayed in this SDT.
60
- attr_accessor :date_display_locale
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 the full date and time last entered into this SDT.
67
- attr_accessor :full_date
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 a unique read-only persistent numerical Id for this SDT.
70
- attr_accessor :id
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 the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
73
- # If set to true, this state shall be resumed (showing placeholder text) upon opening his document.
74
- attr_accessor :is_showing_placeholder_text
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 Aspose.Words.Markup.SdtListItemCollection associated with this SDT.
83
- attr_accessor :list_items
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 allows multiple lines of text.
92
- attr_accessor :multiline
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 the friendly name associated with this SDT. Can not be null.
108
- attr_accessor :title
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
- :'appearance' => :'Appearance',
141
- :'building_block_category' => :'BuildingBlockCategory',
142
- :'building_block_gallery' => :'BuildingBlockGallery',
143
- :'calendar_type' => :'CalendarType',
140
+ :'list_items' => :'ListItems',
144
141
  :'checked' => :'Checked',
145
- :'color' => :'Color',
146
- :'date_display_format' => :'DateDisplayFormat',
142
+ :'appearance' => :'Appearance',
147
143
  :'date_display_locale' => :'DateDisplayLocale',
148
- :'date_storage_format' => :'DateStorageFormat',
144
+ :'date_display_format' => :'DateDisplayFormat',
149
145
  :'full_date' => :'FullDate',
150
- :'id' => :'Id',
151
- :'is_showing_placeholder_text' => :'IsShowingPlaceholderText',
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
- :'list_items' => :'ListItems',
156
+ :'sdt_type' => :'SdtType',
157
+ :'placeholder_name' => :'PlaceholderName',
155
158
  :'lock_content_control' => :'LockContentControl',
156
159
  :'lock_contents' => :'LockContents',
157
- :'multiline' => :'Multiline',
158
- :'placeholder_name' => :'PlaceholderName',
159
- :'sdt_type' => :'SdtType',
160
- :'style_name' => :'StyleName',
160
+ :'is_showing_placeholder_text' => :'IsShowingPlaceholderText',
161
161
  :'tag' => :'Tag',
162
- :'title' => :'Title',
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
- :'appearance' => :'String',
173
- :'building_block_category' => :'String',
174
- :'building_block_gallery' => :'String',
175
- :'calendar_type' => :'String',
172
+ :'list_items' => :'Array<StructuredDocumentTagListItem>',
176
173
  :'checked' => :'BOOLEAN',
177
- :'color' => :'String',
178
- :'date_display_format' => :'String',
174
+ :'appearance' => :'String',
179
175
  :'date_display_locale' => :'Integer',
180
- :'date_storage_format' => :'String',
176
+ :'date_display_format' => :'String',
181
177
  :'full_date' => :'DateTime',
182
- :'id' => :'Integer',
183
- :'is_showing_placeholder_text' => :'BOOLEAN',
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
- :'list_items' => :'Array<StructuredDocumentTagListItem>',
188
+ :'sdt_type' => :'String',
189
+ :'placeholder_name' => :'String',
187
190
  :'lock_content_control' => :'BOOLEAN',
188
191
  :'lock_contents' => :'BOOLEAN',
189
- :'multiline' => :'BOOLEAN',
190
- :'placeholder_name' => :'String',
191
- :'sdt_type' => :'String',
192
- :'style_name' => :'String',
192
+ :'is_showing_placeholder_text' => :'BOOLEAN',
193
193
  :'tag' => :'String',
194
- :'title' => :'String',
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?(:'BuildingBlockCategory')
220
- self.building_block_category = attributes[:'BuildingBlockCategory']
229
+ if attributes.key?(:'DateDisplayLocale')
230
+ self.date_display_locale = attributes[:'DateDisplayLocale']
221
231
  end
222
232
 
223
- if attributes.key?(:'BuildingBlockGallery')
224
- self.building_block_gallery = attributes[:'BuildingBlockGallery']
233
+ if attributes.key?(:'DateDisplayFormat')
234
+ self.date_display_format = attributes[:'DateDisplayFormat']
225
235
  end
226
236
 
227
- if attributes.key?(:'CalendarType')
228
- self.calendar_type = attributes[:'CalendarType']
237
+ if attributes.key?(:'FullDate')
238
+ self.full_date = attributes[:'FullDate']
229
239
  end
230
240
 
231
- if attributes.key?(:'Checked')
232
- self.checked = attributes[:'Checked']
241
+ if attributes.key?(:'Title')
242
+ self.title = attributes[:'Title']
233
243
  end
234
244
 
235
- if attributes.key?(:'Color')
236
- self.color = attributes[:'Color']
245
+ if attributes.key?(:'DateStorageFormat')
246
+ self.date_storage_format = attributes[:'DateStorageFormat']
237
247
  end
238
248
 
239
- if attributes.key?(:'DateDisplayFormat')
240
- self.date_display_format = attributes[:'DateDisplayFormat']
249
+ if attributes.key?(:'BuildingBlockGallery')
250
+ self.building_block_gallery = attributes[:'BuildingBlockGallery']
241
251
  end
242
252
 
243
- if attributes.key?(:'DateDisplayLocale')
244
- self.date_display_locale = attributes[:'DateDisplayLocale']
253
+ if attributes.key?(:'BuildingBlockCategory')
254
+ self.building_block_category = attributes[:'BuildingBlockCategory']
245
255
  end
246
256
 
247
- if attributes.key?(:'DateStorageFormat')
248
- self.date_storage_format = attributes[:'DateStorageFormat']
257
+ if attributes.key?(:'Multiline')
258
+ self.multiline = attributes[:'Multiline']
249
259
  end
250
260
 
251
- if attributes.key?(:'FullDate')
252
- self.full_date = attributes[:'FullDate']
261
+ if attributes.key?(:'Color')
262
+ self.color = attributes[:'Color']
253
263
  end
254
264
 
255
- if attributes.key?(:'Id')
256
- self.id = attributes[:'Id']
265
+ if attributes.key?(:'StyleName')
266
+ self.style_name = attributes[:'StyleName']
257
267
  end
258
268
 
259
- if attributes.key?(:'IsShowingPlaceholderText')
260
- self.is_showing_placeholder_text = attributes[:'IsShowingPlaceholderText']
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?(:'ListItems')
272
- if (value = attributes[:'ListItems']).is_a?(Array)
273
- self.list_items = value
274
- end
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?(:'Multiline')
286
- self.multiline = attributes[:'Multiline']
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?(:'Title')
306
- self.title = attributes[:'Title']
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
- appearance == other.appearance &&
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
- color == other.color &&
422
- date_display_format == other.date_display_format &&
418
+ appearance == other.appearance &&
423
419
  date_display_locale == other.date_display_locale &&
424
- date_storage_format == other.date_storage_format &&
420
+ date_display_format == other.date_display_format &&
425
421
  full_date == other.full_date &&
426
- id == other.id &&
427
- is_showing_placeholder_text == other.is_showing_placeholder_text &&
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
- list_items == other.list_items &&
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
- multiline == other.multiline &&
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
- title == other.title &&
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, appearance, building_block_category, building_block_gallery, calendar_type, checked, color, date_display_format, date_display_locale, date_storage_format, full_date, id, is_showing_placeholder_text, is_temporary, level, list_items, lock_content_control, lock_contents, multiline, placeholder_name, sdt_type, style_name, tag, title, word_open_xml].hash
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