aspose_slides_cloud 24.3.0 → 24.5.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.
@@ -37,6 +37,9 @@ module AsposeSlidesCloud
37
37
  # Gets or sets the line format.
38
38
  attr_accessor :line_format
39
39
 
40
+ # Gets or sets the marker.
41
+ attr_accessor :marker
42
+
40
43
  attr_accessor :type
41
44
 
42
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,6 +49,7 @@ module AsposeSlidesCloud
46
49
  :'effect_format' => :'EffectFormat',
47
50
  :'three_d_format' => :'ThreeDFormat',
48
51
  :'line_format' => :'LineFormat',
52
+ :'marker' => :'Marker',
49
53
  :'type' => :'Type',
50
54
  }
51
55
  end
@@ -57,6 +61,7 @@ module AsposeSlidesCloud
57
61
  :'effect_format' => :'EffectFormat',
58
62
  :'three_d_format' => :'ThreeDFormat',
59
63
  :'line_format' => :'LineFormat',
64
+ :'marker' => :'SeriesMarker',
60
65
  :'type' => :'String',
61
66
  }
62
67
  end
@@ -85,6 +90,10 @@ module AsposeSlidesCloud
85
90
  self.line_format = attributes[:'LineFormat']
86
91
  end
87
92
 
93
+ if attributes.has_key?(:'Marker')
94
+ self.marker = attributes[:'Marker']
95
+ end
96
+
88
97
  if attributes.has_key?(:'Type')
89
98
  self.type = attributes[:'Type']
90
99
  end
@@ -124,6 +133,7 @@ module AsposeSlidesCloud
124
133
  effect_format == o.effect_format &&
125
134
  three_d_format == o.three_d_format &&
126
135
  line_format == o.line_format &&
136
+ marker == o.marker &&
127
137
  type == o.type
128
138
  end
129
139
 
@@ -136,7 +146,7 @@ module AsposeSlidesCloud
136
146
  # Calculates hash code according to all attributes.
137
147
  # @return [Fixnum] Hash code
138
148
  def hash
139
- [fill_format, effect_format, three_d_format, line_format, type].hash
149
+ [fill_format, effect_format, three_d_format, line_format, marker, type].hash
140
150
  end
141
151
  end
142
152
  end
@@ -0,0 +1,190 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Provides options that control how a presentation is saved in Html5 format.
27
+ class MarkdownExportOptions < ExportOptions
28
+ # Specifies markdown specification to convert presentation. Default is TextOnly.
29
+ attr_accessor :export_type
30
+
31
+ # Specifies markdown specification to convert presentation. Default is MultiMarkdown.
32
+ attr_accessor :flavor
33
+
34
+ # Specifies whether the generated document should have new lines of \\\\r(Macintosh), \\\\n(Unix) or \\\\r\\\\n(Windows). Default is Unix.
35
+ attr_accessor :new_line_type
36
+
37
+ # Specifies folder name to save images. Default is Images.
38
+ attr_accessor :images_save_folder_name
39
+
40
+ # Specifies whether the generated document should include slide number. Default is false.
41
+ attr_accessor :show_slide_number
42
+
43
+ # Specifies whether the generated document should include comments. Default is false.
44
+ attr_accessor :show_comments
45
+
46
+ # Specifies whether the generated document should include hidden slides. Default is false.
47
+ attr_accessor :show_hidden_slides
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ super.merge({
52
+ :'export_type' => :'ExportType',
53
+ :'flavor' => :'Flavor',
54
+ :'new_line_type' => :'NewLineType',
55
+ :'images_save_folder_name' => :'ImagesSaveFolderName',
56
+ :'show_slide_number' => :'ShowSlideNumber',
57
+ :'show_comments' => :'ShowComments',
58
+ :'show_hidden_slides' => :'ShowHiddenSlides',
59
+ })
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.swagger_types
64
+ super.merge({
65
+ :'export_type' => :'String',
66
+ :'flavor' => :'String',
67
+ :'new_line_type' => :'String',
68
+ :'images_save_folder_name' => :'String',
69
+ :'show_slide_number' => :'BOOLEAN',
70
+ :'show_comments' => :'BOOLEAN',
71
+ :'show_hidden_slides' => :'BOOLEAN',
72
+ })
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ super
79
+
80
+ if attributes.has_key?(:'ExportType')
81
+ self.export_type = attributes[:'ExportType']
82
+ end
83
+
84
+ if attributes.has_key?(:'Flavor')
85
+ self.flavor = attributes[:'Flavor']
86
+ end
87
+
88
+ if attributes.has_key?(:'NewLineType')
89
+ self.new_line_type = attributes[:'NewLineType']
90
+ end
91
+
92
+ if attributes.has_key?(:'ImagesSaveFolderName')
93
+ self.images_save_folder_name = attributes[:'ImagesSaveFolderName']
94
+ end
95
+
96
+ if attributes.has_key?(:'ShowSlideNumber')
97
+ self.show_slide_number = attributes[:'ShowSlideNumber']
98
+ end
99
+
100
+ if attributes.has_key?(:'ShowComments')
101
+ self.show_comments = attributes[:'ShowComments']
102
+ end
103
+
104
+ if attributes.has_key?(:'ShowHiddenSlides')
105
+ self.show_hidden_slides = attributes[:'ShowHiddenSlides']
106
+ end
107
+ self.format = 'md'
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ invalid_properties = super
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ return false if !super
121
+ export_type_validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
122
+ return false unless export_type_validator.valid?(@export_type)
123
+ flavor_validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
124
+ return false unless flavor_validator.valid?(@flavor)
125
+ new_line_type_validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
126
+ return false unless new_line_type_validator.valid?(@new_line_type)
127
+ true
128
+ end
129
+
130
+ # Custom attribute writer method checking allowed values (enum).
131
+ # @param [Object] export_type Object to be assigned
132
+ def export_type=(export_type)
133
+ validator = EnumAttributeValidator.new('String', ['Sequential', 'TextOnly', 'Visual'])
134
+ unless validator.valid?(export_type)
135
+ fail ArgumentError, 'invalid value for "export_type", must be one of #{validator.allowable_values}.'
136
+ end
137
+ @export_type = export_type
138
+ end
139
+
140
+ # Custom attribute writer method checking allowed values (enum).
141
+ # @param [Object] flavor Object to be assigned
142
+ def flavor=(flavor)
143
+ validator = EnumAttributeValidator.new('String', ['Github', 'Gruber', 'MultiMarkdown', 'CommonMark', 'MarkdownExtra', 'Pandoc', 'Kramdown', 'Markua', 'Maruku', 'Markdown2', 'Remarkable', 'Showdown', 'Ghost', 'GitLab', 'Haroopad', 'IaWriter', 'Redcarpet', 'ScholarlyMarkdown', 'Taiga', 'Trello', 'S9ETextFormatter', 'XWiki', 'StackOverflow', 'Default'])
144
+ unless validator.valid?(flavor)
145
+ fail ArgumentError, 'invalid value for "flavor", must be one of #{validator.allowable_values}.'
146
+ end
147
+ @flavor = flavor
148
+ end
149
+
150
+ # Custom attribute writer method checking allowed values (enum).
151
+ # @param [Object] new_line_type Object to be assigned
152
+ def new_line_type=(new_line_type)
153
+ validator = EnumAttributeValidator.new('String', ['Windows', 'Unix', 'Mac'])
154
+ unless validator.valid?(new_line_type)
155
+ fail ArgumentError, 'invalid value for "new_line_type", must be one of #{validator.allowable_values}.'
156
+ end
157
+ @new_line_type = new_line_type
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ default_regular_font == o.default_regular_font &&
166
+ font_fallback_rules == o.font_fallback_rules &&
167
+ font_subst_rules == o.font_subst_rules &&
168
+ format == o.format &&
169
+ export_type == o.export_type &&
170
+ flavor == o.flavor &&
171
+ new_line_type == o.new_line_type &&
172
+ images_save_folder_name == o.images_save_folder_name &&
173
+ show_slide_number == o.show_slide_number &&
174
+ show_comments == o.show_comments &&
175
+ show_hidden_slides == o.show_hidden_slides
176
+ end
177
+
178
+ # @see the `==` method
179
+ # @param [Object] Object to be compared
180
+ def eql?(o)
181
+ self == o
182
+ end
183
+
184
+ # Calculates hash code according to all attributes.
185
+ # @return [Fixnum] Hash code
186
+ def hash
187
+ [default_regular_font, font_fallback_rules, font_subst_rules, format, export_type, flavor, new_line_type, images_save_folder_name, show_slide_number, show_comments, show_hidden_slides].hash
188
+ end
189
+ end
190
+ end
@@ -0,0 +1,40 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ class MathFormat
27
+
28
+ MATH_ML = 'MathML'.freeze
29
+ LA_TE_X = 'LaTeX'.freeze
30
+
31
+ # Builds the enum from string
32
+ # @param [String] The enum value in the form of the string
33
+ # @return [String] The enum value
34
+ def build_from_hash(value)
35
+ constantValues = MathFormat.constants.select { |c| MathFormat::const_get(c) == value }
36
+ raise "Invalid ENUM value #{value} for class #MathFormat" if constantValues.empty?
37
+ value
38
+ end
39
+ end
40
+ end
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
103
103
  effect_format == o.effect_format &&
104
104
  three_d_format == o.three_d_format &&
105
105
  line_format == o.line_format &&
106
+ marker == o.marker &&
106
107
  type == o.type &&
107
108
  value == o.value &&
108
109
  value_formula == o.value_formula &&
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
119
120
  # Calculates hash code according to all attributes.
120
121
  # @return [Fixnum] Hash code
121
122
  def hash
122
- [fill_format, effect_format, three_d_format, line_format, type, value, value_formula, set_as_total, invert_if_negative].hash
123
+ [fill_format, effect_format, three_d_format, line_format, marker, type, value, value_formula, set_as_total, invert_if_negative].hash
123
124
  end
124
125
  end
125
126
  end
@@ -0,0 +1,96 @@
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # PDF import options.
27
+ class PdfImportOptions < BaseObject
28
+ # True to detect tables.
29
+ attr_accessor :detect_tables
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'detect_tables' => :'DetectTables',
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'detect_tables' => :'BOOLEAN',
42
+ }
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ return unless attributes.is_a?(Hash)
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+
53
+ if attributes.has_key?(:'DetectTables')
54
+ self.detect_tables = attributes[:'DetectTables']
55
+ end
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properties with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ if @detect_tables.nil?
63
+ invalid_properties.push('invalid value for "detect_tables", detect_tables cannot be nil.')
64
+ end
65
+
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ return false if @detect_tables.nil?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ detect_tables == o.detect_tables
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Fixnum] Hash code
92
+ def hash
93
+ [detect_tables].hash
94
+ end
95
+ end
96
+ end
@@ -103,6 +103,7 @@ module AsposeSlidesCloud
103
103
  effect_format == o.effect_format &&
104
104
  three_d_format == o.three_d_format &&
105
105
  line_format == o.line_format &&
106
+ marker == o.marker &&
106
107
  type == o.type &&
107
108
  x_value == o.x_value &&
108
109
  y_value == o.y_value &&
@@ -119,7 +120,7 @@ module AsposeSlidesCloud
119
120
  # Calculates hash code according to all attributes.
120
121
  # @return [Fixnum] Hash code
121
122
  def hash
122
- [fill_format, effect_format, three_d_format, line_format, type, x_value, y_value, x_value_formula, y_value_formula].hash
123
+ [fill_format, effect_format, three_d_format, line_format, marker, type, x_value, y_value, x_value_formula, y_value_formula].hash
123
124
  end
124
125
  end
125
126
  end
@@ -143,6 +143,7 @@ module AsposeSlidesCloud
143
143
  :'LineToPathSegment' => :'PathSegment',
144
144
  :'Literals' => :'DataSource',
145
145
  :'LuminanceEffect' => :'ImageTransformEffect',
146
+ :'MarkdownExportOptions' => :'ExportOptions',
146
147
  :'MasterSlide' => :'ResourceBase',
147
148
  :'MasterSlides' => :'ResourceBase',
148
149
  :'MatrixElement' => :'MathElement',
@@ -362,8 +363,10 @@ module AsposeSlidesCloud
362
363
  :'LineToPathSegment' => { :'Type' => 'LineTo', },
363
364
  :'Literals' => { :'Type' => 'Literals', },
364
365
  :'LuminanceEffect' => { :'Type' => 'Luminance', },
366
+ :'MarkdownExportOptions' => { :'Format' => 'md', },
365
367
  :'MasterSlide' => { },
366
368
  :'MasterSlides' => { },
369
+ :'MathFormat' => { },
367
370
  :'MathParagraph' => { },
368
371
  :'MatrixElement' => { :'Type' => 'Matrix', },
369
372
  :'Merge' => { :'Type' => 'Merge', },
@@ -392,6 +395,7 @@ module AsposeSlidesCloud
392
395
  :'PathOutputFile' => { :'Type' => 'Path', },
393
396
  :'PatternFill' => { :'Type' => 'Pattern', },
394
397
  :'PdfExportOptions' => { :'Format' => 'pdf', },
398
+ :'PdfImportOptions' => { },
395
399
  :'PictureFill' => { :'Type' => 'Picture', },
396
400
  :'PictureFrame' => { :'Type' => 'PictureFrame', },
397
401
  :'Pipeline' => { },
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '24.3.0'
24
+ VERSION = '24.5.0'
25
25
  end
@@ -158,8 +158,10 @@ require 'aspose_slides_cloud/models/line_format'
158
158
  require 'aspose_slides_cloud/models/line_to_path_segment'
159
159
  require 'aspose_slides_cloud/models/literals'
160
160
  require 'aspose_slides_cloud/models/luminance_effect'
161
+ require 'aspose_slides_cloud/models/markdown_export_options'
161
162
  require 'aspose_slides_cloud/models/master_slide'
162
163
  require 'aspose_slides_cloud/models/master_slides'
164
+ require 'aspose_slides_cloud/models/math_format'
163
165
  require 'aspose_slides_cloud/models/math_paragraph'
164
166
  require 'aspose_slides_cloud/models/matrix_element'
165
167
  require 'aspose_slides_cloud/models/merge'
@@ -188,6 +190,7 @@ require 'aspose_slides_cloud/models/path_input_file'
188
190
  require 'aspose_slides_cloud/models/path_output_file'
189
191
  require 'aspose_slides_cloud/models/pattern_fill'
190
192
  require 'aspose_slides_cloud/models/pdf_export_options'
193
+ require 'aspose_slides_cloud/models/pdf_import_options'
191
194
  require 'aspose_slides_cloud/models/picture_fill'
192
195
  require 'aspose_slides_cloud/models/picture_frame'
193
196
  require 'aspose_slides_cloud/models/pipeline'