| 1 | =begin comment | ||
| 2 | |||
| 3 | Copyright (c) 2019 Aspose Pty Ltd | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| 6 | of this software and associated documentation files (the "Software"), to deal | ||
| 7 | in the Software without restriction, including without limitation the rights | ||
| 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 9 | copies of the Software, and to permit persons to whom the Software is | ||
| 10 | furnished to do so, subject to the following conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be included in all | ||
| 13 | copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| 21 | SOFTWARE. | ||
| 22 | |||
| 23 | =end comment | ||
| 24 | |||
| 25 | =cut | ||
| 26 | |||
| 27 | package AsposeSlidesCloud::Object::MarkdownExportOptions; | ||
| 28 | |||
| 29 | require 5.6.0; | ||
| 30 | use strict; | ||
| 31 | use warnings; | ||
| 32 | use utf8; | ||
| 33 | use JSON qw(decode_json); | ||
| 34 | use Data::Dumper; | ||
| 35 | use Module::Runtime qw(use_module); | ||
| 36 | use Log::Any qw($log); | ||
| 37 | use Date::Parse; | ||
| 38 | use DateTime; | ||
| 39 | |||
| 40 | use AsposeSlidesCloud::Object::ExportOptions; | ||
| 41 | use AsposeSlidesCloud::Object::FontFallbackRule; | ||
| 42 | use AsposeSlidesCloud::Object::FontSubstRule; | ||
| 43 | |||
| 44 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 45 | |||
| 46 | |||
| 47 | # | ||
| 48 | #Provides options that control how a presentation is saved in Html5 format. | ||
| 49 | # | ||
| 50 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 51 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 52 | # | ||
| 53 | |||
| 54 | # | ||
| 55 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 56 | # Do not edit the class manually. | ||
| 57 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 58 | # | ||
| 59 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 60 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 61 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 62 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 63 | |||
| 64 | # new object | ||
| 65 | sub new { | ||
| 66 | my ($class, %args) = @_; | ||
| 67 | |||
| 68 | my $self = bless {}, $class; | ||
| 69 | |||
| 70 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 71 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 72 | $self->$attribute( $args{ $args_key } ); | ||
| 73 | } | ||
| 74 | $self->{ format } = 'md'; | ||
| 75 | return $self; | ||
| 76 | } | ||
| 77 | |||
| 78 | # used by JSON for serialization | ||
| 79 | sub TO_JSON { | ||
| 80 | my $self = shift; | ||
| 81 | my $_data = {}; | ||
| 82 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 83 | if (defined $self->{$_key}) { | ||
| 84 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 85 | } | ||
| 86 | } | ||
| 87 | return $_data; | ||
| 88 | } | ||
| 89 | |||
| 90 | |||
| 91 | __PACKAGE__->class_documentation({description => 'Provides options that control how a presentation is saved in Html5 format.', | ||
| 92 | class => 'MarkdownExportOptions', | ||
| 93 | required => [], # TODO | ||
| 94 | } ); | ||
| 95 | |||
| 96 | __PACKAGE__->method_documentation({ | ||
| 97 | 'default_regular_font' => { | ||
| 98 | datatype => 'string', | ||
| 99 | base_name => 'DefaultRegularFont', | ||
| 100 | description => 'Default regular font for rendering the presentation. ', | ||
| 101 | format => '', | ||
| 102 | read_only => '', | ||
| 103 | }, | ||
| 104 | 'delete_embedded_binary_objects' => { | ||
| 105 | datatype => 'boolean', | ||
| 106 | base_name => 'DeleteEmbeddedBinaryObjects', | ||
| 107 | description => 'True to delete delete all embedded binary objects.', | ||
| 108 | format => '', | ||
| 109 | read_only => '', | ||
| 110 | }, | ||
| 111 | 'gradient_style' => { | ||
| 112 | datatype => 'string', | ||
| 113 | base_name => 'GradientStyle', | ||
| 114 | description => 'Default regular font for rendering the presentation. ', | ||
| 115 | format => '', | ||
| 116 | read_only => '', | ||
| 117 | }, | ||
| 118 | 'font_fallback_rules' => { | ||
| 119 | datatype => 'ARRAY[FontFallbackRule]', | ||
| 120 | base_name => 'FontFallbackRules', | ||
| 121 | description => 'Gets of sets list of font fallback rules.', | ||
| 122 | format => '', | ||
| 123 | read_only => '', | ||
| 124 | }, | ||
| 125 | 'font_subst_rules' => { | ||
| 126 | datatype => 'ARRAY[FontSubstRule]', | ||
| 127 | base_name => 'FontSubstRules', | ||
| 128 | description => 'Gets of sets list of font substitution rules.', | ||
| 129 | format => '', | ||
| 130 | read_only => '', | ||
| 131 | }, | ||
| 132 | 'skip_java_script_links' => { | ||
| 133 | datatype => 'boolean', | ||
| 134 | base_name => 'SkipJavaScriptLinks', | ||
| 135 | description => 'True to skip hyperlinks with javascript calls when saving the presentation.', | ||
| 136 | format => '', | ||
| 137 | read_only => '', | ||
| 138 | }, | ||
| 139 | 'format' => { | ||
| 140 | datatype => 'string', | ||
| 141 | base_name => 'Format', | ||
| 142 | description => 'Export format.', | ||
| 143 | format => '', | ||
| 144 | read_only => '', | ||
| 145 | }, | ||
| 146 | 'export_type' => { | ||
| 147 | datatype => 'string', | ||
| 148 | base_name => 'ExportType', | ||
| 149 | description => 'Specifies markdown specification to convert presentation. Default is TextOnly.', | ||
| 150 | format => '', | ||
| 151 | read_only => '', | ||
| 152 | }, | ||
| 153 | 'flavor' => { | ||
| 154 | datatype => 'string', | ||
| 155 | base_name => 'Flavor', | ||
| 156 | description => 'Specifies markdown specification to convert presentation. Default is MultiMarkdown.', | ||
| 157 | format => '', | ||
| 158 | read_only => '', | ||
| 159 | }, | ||
| 160 | 'new_line_type' => { | ||
| 161 | datatype => 'string', | ||
| 162 | base_name => 'NewLineType', | ||
| 163 | description => 'Specifies whether the generated document should have new lines of \\\\r(Macintosh), \\\\n(Unix) or \\\\r\\\\n(Windows). Default is Unix.', | ||
| 164 | format => '', | ||
| 165 | read_only => '', | ||
| 166 | }, | ||
| 167 | 'images_save_folder_name' => { | ||
| 168 | datatype => 'string', | ||
| 169 | base_name => 'ImagesSaveFolderName', | ||
| 170 | description => 'Specifies folder name to save images. Default is Images. ', | ||
| 171 | format => '', | ||
| 172 | read_only => '', | ||
| 173 | }, | ||
| 174 | 'show_slide_number' => { | ||
| 175 | datatype => 'boolean', | ||
| 176 | base_name => 'ShowSlideNumber', | ||
| 177 | description => 'Specifies whether the generated document should include slide number. Default is false. ', | ||
| 178 | format => '', | ||
| 179 | read_only => '', | ||
| 180 | }, | ||
| 181 | 'show_comments' => { | ||
| 182 | datatype => 'boolean', | ||
| 183 | base_name => 'ShowComments', | ||
| 184 | description => 'Specifies whether the generated document should include comments. Default is false. ', | ||
| 185 | format => '', | ||
| 186 | read_only => '', | ||
| 187 | }, | ||
| 188 | 'show_hidden_slides' => { | ||
| 189 | datatype => 'boolean', | ||
| 190 | base_name => 'ShowHiddenSlides', | ||
| 191 | description => 'Specifies whether the generated document should include hidden slides. Default is false. ', | ||
| 192 | format => '', | ||
| 193 | read_only => '', | ||
| 194 | }, | ||
| 195 | 'remove_empty_lines' => { | ||
| 196 | datatype => 'boolean', | ||
| 197 | base_name => 'RemoveEmptyLines', | ||
| 198 | description => 'true to remove empty or whitespace-only lines from the final Markdown output. Default is false. ', | ||
| 199 | format => '', | ||
| 200 | read_only => '', | ||
| 201 | }, | ||
| 202 | 'handle_repeated_spaces' => { | ||
| 203 | datatype => 'string', | ||
| 204 | base_name => 'HandleRepeatedSpaces', | ||
| 205 | description => 'Specifies how repeated space characters are preserved to maintain visual alignment. ', | ||
| 206 | format => '', | ||
| 207 | read_only => '', | ||
| 208 | }, | ||
| 209 | 'slide_number_format' => { | ||
| 210 | datatype => 'string', | ||
| 211 | base_name => 'SlideNumberFormat', | ||
| 212 | description => 'The format of slide number headers. ', | ||
| 213 | format => '', | ||
| 214 | read_only => '', | ||
| 215 | }, | ||
| 216 | }); | ||
| 217 | |||
| 218 | __PACKAGE__->swagger_types( { | ||
| 219 | 'default_regular_font' => 'string', | ||
| 220 | 'delete_embedded_binary_objects' => 'boolean', | ||
| 221 | 'gradient_style' => 'string', | ||
| 222 | 'font_fallback_rules' => 'ARRAY[FontFallbackRule]', | ||
| 223 | 'font_subst_rules' => 'ARRAY[FontSubstRule]', | ||
| 224 | 'skip_java_script_links' => 'boolean', | ||
| 225 | 'format' => 'string', | ||
| 226 | 'export_type' => 'string', | ||
| 227 | 'flavor' => 'string', | ||
| 228 | 'new_line_type' => 'string', | ||
| 229 | 'images_save_folder_name' => 'string', | ||
| 230 | 'show_slide_number' => 'boolean', | ||
| 231 | 'show_comments' => 'boolean', | ||
| 232 | 'show_hidden_slides' => 'boolean', | ||
| 233 | 'remove_empty_lines' => 'boolean', | ||
| 234 | 'handle_repeated_spaces' => 'string', | ||
| 235 | 'slide_number_format' => 'string' | ||
| 236 | } ); | ||
| 237 | |||
| 238 | __PACKAGE__->attribute_map( { | ||
| 239 | 'default_regular_font' => 'DefaultRegularFont', | ||
| 240 | 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects', | ||
| 241 | 'gradient_style' => 'GradientStyle', | ||
| 242 | 'font_fallback_rules' => 'FontFallbackRules', | ||
| 243 | 'font_subst_rules' => 'FontSubstRules', | ||
| 244 | 'skip_java_script_links' => 'SkipJavaScriptLinks', | ||
| 245 | 'format' => 'Format', | ||
| 246 | 'export_type' => 'ExportType', | ||
| 247 | 'flavor' => 'Flavor', | ||
| 248 | 'new_line_type' => 'NewLineType', | ||
| 249 | 'images_save_folder_name' => 'ImagesSaveFolderName', | ||
| 250 | 'show_slide_number' => 'ShowSlideNumber', | ||
| 251 | 'show_comments' => 'ShowComments', | ||
| 252 | 'show_hidden_slides' => 'ShowHiddenSlides', | ||
| 253 | 'remove_empty_lines' => 'RemoveEmptyLines', | ||
| 254 | 'handle_repeated_spaces' => 'HandleRepeatedSpaces', | ||
| 255 | 'slide_number_format' => 'SlideNumberFormat' | ||
| 256 | } ); | ||
| 257 | |||
| 258 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 259 | |||
| 260 | |||
| 261 | 1; |