aspose_slides_cloud 22.12.0 → 23.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,21 +55,6 @@ module AsposeSlidesCloud
55
55
  # Depth.
56
56
  attr_accessor :depth
57
57
 
58
- # Bullet char.
59
- attr_accessor :bullet_char
60
-
61
- # Bullet height.
62
- attr_accessor :bullet_height
63
-
64
- # Bullet type.
65
- attr_accessor :bullet_type
66
-
67
- # Starting number for a numbered bullet.
68
- attr_accessor :numbered_bullet_start_with
69
-
70
- # Numbered bullet style.
71
- attr_accessor :numbered_bullet_style
72
-
73
58
  # True if hanging punctuation is used with the paragraph.
74
59
  attr_accessor :hanging_punctuation
75
60
 
@@ -88,6 +73,24 @@ module AsposeSlidesCloud
88
73
  # Default portion format.
89
74
  attr_accessor :default_portion_format
90
75
 
76
+ # Bullet char.
77
+ attr_accessor :bullet_char
78
+
79
+ # Bullet height.
80
+ attr_accessor :bullet_height
81
+
82
+ # Bullet type.
83
+ attr_accessor :bullet_type
84
+
85
+ # Starting number for a numbered bullet.
86
+ attr_accessor :numbered_bullet_start_with
87
+
88
+ # Numbered bullet style.
89
+ attr_accessor :numbered_bullet_style
90
+
91
+ # Bullet fill format.
92
+ attr_accessor :bullet_fill_format
93
+
91
94
  class EnumAttributeValidator
92
95
  attr_reader :datatype
93
96
  attr_reader :allowable_values
@@ -123,17 +126,18 @@ module AsposeSlidesCloud
123
126
  :'font_alignment' => :'FontAlignment',
124
127
  :'default_tab_size' => :'DefaultTabSize',
125
128
  :'depth' => :'Depth',
126
- :'bullet_char' => :'BulletChar',
127
- :'bullet_height' => :'BulletHeight',
128
- :'bullet_type' => :'BulletType',
129
- :'numbered_bullet_start_with' => :'NumberedBulletStartWith',
130
- :'numbered_bullet_style' => :'NumberedBulletStyle',
131
129
  :'hanging_punctuation' => :'HangingPunctuation',
132
130
  :'east_asian_line_break' => :'EastAsianLineBreak',
133
131
  :'latin_line_break' => :'LatinLineBreak',
134
132
  :'right_to_left' => :'RightToLeft',
135
133
  :'portion_list' => :'PortionList',
136
134
  :'default_portion_format' => :'DefaultPortionFormat',
135
+ :'bullet_char' => :'BulletChar',
136
+ :'bullet_height' => :'BulletHeight',
137
+ :'bullet_type' => :'BulletType',
138
+ :'numbered_bullet_start_with' => :'NumberedBulletStartWith',
139
+ :'numbered_bullet_style' => :'NumberedBulletStyle',
140
+ :'bullet_fill_format' => :'BulletFillFormat',
137
141
  })
138
142
  end
139
143
 
@@ -150,17 +154,18 @@ module AsposeSlidesCloud
150
154
  :'font_alignment' => :'String',
151
155
  :'default_tab_size' => :'Float',
152
156
  :'depth' => :'Integer',
153
- :'bullet_char' => :'String',
154
- :'bullet_height' => :'Float',
155
- :'bullet_type' => :'String',
156
- :'numbered_bullet_start_with' => :'Integer',
157
- :'numbered_bullet_style' => :'String',
158
157
  :'hanging_punctuation' => :'String',
159
158
  :'east_asian_line_break' => :'String',
160
159
  :'latin_line_break' => :'String',
161
160
  :'right_to_left' => :'String',
162
161
  :'portion_list' => :'Array<Portion>',
163
162
  :'default_portion_format' => :'PortionFormat',
163
+ :'bullet_char' => :'String',
164
+ :'bullet_height' => :'Float',
165
+ :'bullet_type' => :'String',
166
+ :'numbered_bullet_start_with' => :'Integer',
167
+ :'numbered_bullet_style' => :'String',
168
+ :'bullet_fill_format' => :'FillFormat',
164
169
  })
165
170
  end
166
171
 
@@ -209,26 +214,6 @@ module AsposeSlidesCloud
209
214
  self.depth = attributes[:'Depth']
210
215
  end
211
216
 
212
- if attributes.has_key?(:'BulletChar')
213
- self.bullet_char = attributes[:'BulletChar']
214
- end
215
-
216
- if attributes.has_key?(:'BulletHeight')
217
- self.bullet_height = attributes[:'BulletHeight']
218
- end
219
-
220
- if attributes.has_key?(:'BulletType')
221
- self.bullet_type = attributes[:'BulletType']
222
- end
223
-
224
- if attributes.has_key?(:'NumberedBulletStartWith')
225
- self.numbered_bullet_start_with = attributes[:'NumberedBulletStartWith']
226
- end
227
-
228
- if attributes.has_key?(:'NumberedBulletStyle')
229
- self.numbered_bullet_style = attributes[:'NumberedBulletStyle']
230
- end
231
-
232
217
  if attributes.has_key?(:'HangingPunctuation')
233
218
  self.hanging_punctuation = attributes[:'HangingPunctuation']
234
219
  end
@@ -254,6 +239,30 @@ module AsposeSlidesCloud
254
239
  if attributes.has_key?(:'DefaultPortionFormat')
255
240
  self.default_portion_format = attributes[:'DefaultPortionFormat']
256
241
  end
242
+
243
+ if attributes.has_key?(:'BulletChar')
244
+ self.bullet_char = attributes[:'BulletChar']
245
+ end
246
+
247
+ if attributes.has_key?(:'BulletHeight')
248
+ self.bullet_height = attributes[:'BulletHeight']
249
+ end
250
+
251
+ if attributes.has_key?(:'BulletType')
252
+ self.bullet_type = attributes[:'BulletType']
253
+ end
254
+
255
+ if attributes.has_key?(:'NumberedBulletStartWith')
256
+ self.numbered_bullet_start_with = attributes[:'NumberedBulletStartWith']
257
+ end
258
+
259
+ if attributes.has_key?(:'NumberedBulletStyle')
260
+ self.numbered_bullet_style = attributes[:'NumberedBulletStyle']
261
+ end
262
+
263
+ if attributes.has_key?(:'BulletFillFormat')
264
+ self.bullet_fill_format = attributes[:'BulletFillFormat']
265
+ end
257
266
  end
258
267
 
259
268
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -271,10 +280,6 @@ module AsposeSlidesCloud
271
280
  return false unless alignment_validator.valid?(@alignment)
272
281
  font_alignment_validator = EnumAttributeValidator.new('String', ['Automatic', 'Top', 'Center', 'Bottom', 'Baseline', 'Default'])
273
282
  return false unless font_alignment_validator.valid?(@font_alignment)
274
- bullet_type_validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
275
- return false unless bullet_type_validator.valid?(@bullet_type)
276
- numbered_bullet_style_validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
277
- return false unless numbered_bullet_style_validator.valid?(@numbered_bullet_style)
278
283
  hanging_punctuation_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
279
284
  return false unless hanging_punctuation_validator.valid?(@hanging_punctuation)
280
285
  east_asian_line_break_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
@@ -283,6 +288,10 @@ module AsposeSlidesCloud
283
288
  return false unless latin_line_break_validator.valid?(@latin_line_break)
284
289
  right_to_left_validator = EnumAttributeValidator.new('String', ['False', 'True', 'NotDefined'])
285
290
  return false unless right_to_left_validator.valid?(@right_to_left)
291
+ bullet_type_validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
292
+ return false unless bullet_type_validator.valid?(@bullet_type)
293
+ numbered_bullet_style_validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
294
+ return false unless numbered_bullet_style_validator.valid?(@numbered_bullet_style)
286
295
  true
287
296
  end
288
297
 
@@ -306,26 +315,6 @@ module AsposeSlidesCloud
306
315
  @font_alignment = font_alignment
307
316
  end
308
317
 
309
- # Custom attribute writer method checking allowed values (enum).
310
- # @param [Object] bullet_type Object to be assigned
311
- def bullet_type=(bullet_type)
312
- validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
313
- unless validator.valid?(bullet_type)
314
- fail ArgumentError, 'invalid value for "bullet_type", must be one of #{validator.allowable_values}.'
315
- end
316
- @bullet_type = bullet_type
317
- end
318
-
319
- # Custom attribute writer method checking allowed values (enum).
320
- # @param [Object] numbered_bullet_style Object to be assigned
321
- def numbered_bullet_style=(numbered_bullet_style)
322
- validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
323
- unless validator.valid?(numbered_bullet_style)
324
- fail ArgumentError, 'invalid value for "numbered_bullet_style", must be one of #{validator.allowable_values}.'
325
- end
326
- @numbered_bullet_style = numbered_bullet_style
327
- end
328
-
329
318
  # Custom attribute writer method checking allowed values (enum).
330
319
  # @param [Object] hanging_punctuation Object to be assigned
331
320
  def hanging_punctuation=(hanging_punctuation)
@@ -366,6 +355,26 @@ module AsposeSlidesCloud
366
355
  @right_to_left = right_to_left
367
356
  end
368
357
 
358
+ # Custom attribute writer method checking allowed values (enum).
359
+ # @param [Object] bullet_type Object to be assigned
360
+ def bullet_type=(bullet_type)
361
+ validator = EnumAttributeValidator.new('String', ['None', 'Symbol', 'Numbered', 'Picture', 'NotDefined'])
362
+ unless validator.valid?(bullet_type)
363
+ fail ArgumentError, 'invalid value for "bullet_type", must be one of #{validator.allowable_values}.'
364
+ end
365
+ @bullet_type = bullet_type
366
+ end
367
+
368
+ # Custom attribute writer method checking allowed values (enum).
369
+ # @param [Object] numbered_bullet_style Object to be assigned
370
+ def numbered_bullet_style=(numbered_bullet_style)
371
+ validator = EnumAttributeValidator.new('String', ['BulletAlphaLCPeriod', 'BulletAlphaUCPeriod', 'BulletArabicParenRight', 'BulletArabicPeriod', 'BulletRomanLCParenBoth', 'BulletRomanLCParenRight', 'BulletRomanLCPeriod', 'BulletRomanUCPeriod', 'BulletAlphaLCParenBoth', 'BulletAlphaLCParenRight', 'BulletAlphaUCParenBoth', 'BulletAlphaUCParenRight', 'BulletArabicParenBoth', 'BulletArabicPlain', 'BulletRomanUCParenBoth', 'BulletRomanUCParenRight', 'BulletSimpChinPlain', 'BulletSimpChinPeriod', 'BulletCircleNumDBPlain', 'BulletCircleNumWDWhitePlain', 'BulletCircleNumWDBlackPlain', 'BulletTradChinPlain', 'BulletTradChinPeriod', 'BulletArabicAlphaDash', 'BulletArabicAbjadDash', 'BulletHebrewAlphaDash', 'BulletKanjiKoreanPlain', 'BulletKanjiKoreanPeriod', 'BulletArabicDBPlain', 'BulletArabicDBPeriod', 'BulletThaiAlphaPeriod', 'BulletThaiAlphaParenRight', 'BulletThaiAlphaParenBoth', 'BulletThaiNumPeriod', 'BulletThaiNumParenRight', 'BulletThaiNumParenBoth', 'BulletHindiAlphaPeriod', 'BulletHindiNumPeriod', 'BulletKanjiSimpChinDBPeriod', 'BulletHindiNumParenRight', 'BulletHindiAlpha1Period', 'NotDefined'])
372
+ unless validator.valid?(numbered_bullet_style)
373
+ fail ArgumentError, 'invalid value for "numbered_bullet_style", must be one of #{validator.allowable_values}.'
374
+ end
375
+ @numbered_bullet_style = numbered_bullet_style
376
+ end
377
+
369
378
  # Checks equality by comparing each attribute.
370
379
  # @param [Object] Object to be compared
371
380
  def ==(o)
@@ -383,17 +392,18 @@ module AsposeSlidesCloud
383
392
  font_alignment == o.font_alignment &&
384
393
  default_tab_size == o.default_tab_size &&
385
394
  depth == o.depth &&
386
- bullet_char == o.bullet_char &&
387
- bullet_height == o.bullet_height &&
388
- bullet_type == o.bullet_type &&
389
- numbered_bullet_start_with == o.numbered_bullet_start_with &&
390
- numbered_bullet_style == o.numbered_bullet_style &&
391
395
  hanging_punctuation == o.hanging_punctuation &&
392
396
  east_asian_line_break == o.east_asian_line_break &&
393
397
  latin_line_break == o.latin_line_break &&
394
398
  right_to_left == o.right_to_left &&
395
399
  portion_list == o.portion_list &&
396
- default_portion_format == o.default_portion_format
400
+ default_portion_format == o.default_portion_format &&
401
+ bullet_char == o.bullet_char &&
402
+ bullet_height == o.bullet_height &&
403
+ bullet_type == o.bullet_type &&
404
+ numbered_bullet_start_with == o.numbered_bullet_start_with &&
405
+ numbered_bullet_style == o.numbered_bullet_style &&
406
+ bullet_fill_format == o.bullet_fill_format
397
407
  end
398
408
 
399
409
  # @see the `==` method
@@ -405,7 +415,7 @@ module AsposeSlidesCloud
405
415
  # Calculates hash code according to all attributes.
406
416
  # @return [Fixnum] Hash code
407
417
  def hash
408
- [self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list, default_portion_format].hash
418
+ [self_uri, alternate_links, margin_left, margin_right, space_before, space_after, space_within, indent, alignment, font_alignment, default_tab_size, depth, hanging_punctuation, east_asian_line_break, latin_line_break, right_to_left, portion_list, default_portion_format, bullet_char, bullet_height, bullet_type, numbered_bullet_start_with, numbered_bullet_style, bullet_fill_format].hash
409
419
  end
410
420
 
411
421
  # Builds the object from hash