| 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::Html5ExportOptions; | ||
| 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 | use AsposeSlidesCloud::Object::SlidesLayoutOptions; | ||
| 44 | |||
| 45 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 46 | |||
| 47 | |||
| 48 | # | ||
| 49 | #Provides options that control how a presentation is saved in Html5 format. | ||
| 50 | # | ||
| 51 | # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. | ||
| 52 | # REF: https://github.com/swagger-api/swagger-codegen | ||
| 53 | # | ||
| 54 | |||
| 55 | # | ||
| 56 | # NOTE: This class is auto generated by the swagger code generator program. | ||
| 57 | # Do not edit the class manually. | ||
| 58 | # Ref: https://github.com/swagger-api/swagger-codegen | ||
| 59 | # | ||
| 60 | __PACKAGE__->mk_classdata('attribute_map' => {}); | ||
| 61 | __PACKAGE__->mk_classdata('swagger_types' => {}); | ||
| 62 | __PACKAGE__->mk_classdata('method_documentation' => {}); | ||
| 63 | __PACKAGE__->mk_classdata('class_documentation' => {}); | ||
| 64 | |||
| 65 | # new object | ||
| 66 | sub new { | ||
| 67 | my ($class, %args) = @_; | ||
| 68 | |||
| 69 | my $self = bless {}, $class; | ||
| 70 | |||
| 71 | foreach my $attribute (keys %{$class->attribute_map}) { | ||
| 72 | my $args_key = $class->attribute_map->{$attribute}; | ||
| 73 | $self->$attribute( $args{ $args_key } ); | ||
| 74 | } | ||
| 75 | $self->{ format } = 'html5'; | ||
| 76 | return $self; | ||
| 77 | } | ||
| 78 | |||
| 79 | # used by JSON for serialization | ||
| 80 | sub TO_JSON { | ||
| 81 | my $self = shift; | ||
| 82 | my $_data = {}; | ||
| 83 | foreach my $_key (keys %{$self->attribute_map}) { | ||
| 84 | if (defined $self->{$_key}) { | ||
| 85 | $_data->{$self->attribute_map->{$_key}} = $self->{$_key}; | ||
| 86 | } | ||
| 87 | } | ||
| 88 | return $_data; | ||
| 89 | } | ||
| 90 | |||
| 91 | |||
| 92 | __PACKAGE__->class_documentation({description => 'Provides options that control how a presentation is saved in Html5 format.', | ||
| 93 | class => 'Html5ExportOptions', | ||
| 94 | required => [], # TODO | ||
| 95 | } ); | ||
| 96 | |||
| 97 | __PACKAGE__->method_documentation({ | ||
| 98 | 'default_regular_font' => { | ||
| 99 | datatype => 'string', | ||
| 100 | base_name => 'DefaultRegularFont', | ||
| 101 | description => 'Default regular font for rendering the presentation. ', | ||
| 102 | format => '', | ||
| 103 | read_only => '', | ||
| 104 | }, | ||
| 105 | 'delete_embedded_binary_objects' => { | ||
| 106 | datatype => 'boolean', | ||
| 107 | base_name => 'DeleteEmbeddedBinaryObjects', | ||
| 108 | description => 'True to delete delete all embedded binary objects.', | ||
| 109 | format => '', | ||
| 110 | read_only => '', | ||
| 111 | }, | ||
| 112 | 'gradient_style' => { | ||
| 113 | datatype => 'string', | ||
| 114 | base_name => 'GradientStyle', | ||
| 115 | description => 'Default regular font for rendering the presentation. ', | ||
| 116 | format => '', | ||
| 117 | read_only => '', | ||
| 118 | }, | ||
| 119 | 'font_fallback_rules' => { | ||
| 120 | datatype => 'ARRAY[FontFallbackRule]', | ||
| 121 | base_name => 'FontFallbackRules', | ||
| 122 | description => 'Gets of sets list of font fallback rules.', | ||
| 123 | format => '', | ||
| 124 | read_only => '', | ||
| 125 | }, | ||
| 126 | 'font_subst_rules' => { | ||
| 127 | datatype => 'ARRAY[FontSubstRule]', | ||
| 128 | base_name => 'FontSubstRules', | ||
| 129 | description => 'Gets of sets list of font substitution rules.', | ||
| 130 | format => '', | ||
| 131 | read_only => '', | ||
| 132 | }, | ||
| 133 | 'skip_java_script_links' => { | ||
| 134 | datatype => 'boolean', | ||
| 135 | base_name => 'SkipJavaScriptLinks', | ||
| 136 | description => 'True to skip hyperlinks with javascript calls when saving the presentation.', | ||
| 137 | format => '', | ||
| 138 | read_only => '', | ||
| 139 | }, | ||
| 140 | 'format' => { | ||
| 141 | datatype => 'string', | ||
| 142 | base_name => 'Format', | ||
| 143 | description => 'Export format.', | ||
| 144 | format => '', | ||
| 145 | read_only => '', | ||
| 146 | }, | ||
| 147 | 'animate_transitions' => { | ||
| 148 | datatype => 'boolean', | ||
| 149 | base_name => 'AnimateTransitions', | ||
| 150 | description => 'Gets or sets transitions animation option.', | ||
| 151 | format => '', | ||
| 152 | read_only => '', | ||
| 153 | }, | ||
| 154 | 'animate_shapes' => { | ||
| 155 | datatype => 'boolean', | ||
| 156 | base_name => 'AnimateShapes', | ||
| 157 | description => 'Gets or sets shapes animation option.', | ||
| 158 | format => '', | ||
| 159 | read_only => '', | ||
| 160 | }, | ||
| 161 | 'embed_images' => { | ||
| 162 | datatype => 'boolean', | ||
| 163 | base_name => 'EmbedImages', | ||
| 164 | description => 'Gets or sets embed images option.', | ||
| 165 | format => '', | ||
| 166 | read_only => '', | ||
| 167 | }, | ||
| 168 | 'slides_layout_options' => { | ||
| 169 | datatype => 'SlidesLayoutOptions', | ||
| 170 | base_name => 'SlidesLayoutOptions', | ||
| 171 | description => 'Slides layouting options', | ||
| 172 | format => '', | ||
| 173 | read_only => '', | ||
| 174 | }, | ||
| 175 | 'templates_path' => { | ||
| 176 | datatype => 'string', | ||
| 177 | base_name => 'TemplatesPath', | ||
| 178 | description => 'Path to custom templates', | ||
| 179 | format => '', | ||
| 180 | read_only => '', | ||
| 181 | }, | ||
| 182 | 'disable_font_ligatures' => { | ||
| 183 | datatype => 'boolean', | ||
| 184 | base_name => 'DisableFontLigatures', | ||
| 185 | description => 'true to disable ligatures in the rendered output.', | ||
| 186 | format => '', | ||
| 187 | read_only => '', | ||
| 188 | }, | ||
| 189 | 'pictures_compression' => { | ||
| 190 | datatype => 'string', | ||
| 191 | base_name => 'PicturesCompression', | ||
| 192 | description => 'Represents the pictures compression level. Pictures are not compressed (DocumentResolution) by default. Not applied when TemplatesPath is set.', | ||
| 193 | format => '', | ||
| 194 | read_only => '', | ||
| 195 | }, | ||
| 196 | }); | ||
| 197 | |||
| 198 | __PACKAGE__->swagger_types( { | ||
| 199 | 'default_regular_font' => 'string', | ||
| 200 | 'delete_embedded_binary_objects' => 'boolean', | ||
| 201 | 'gradient_style' => 'string', | ||
| 202 | 'font_fallback_rules' => 'ARRAY[FontFallbackRule]', | ||
| 203 | 'font_subst_rules' => 'ARRAY[FontSubstRule]', | ||
| 204 | 'skip_java_script_links' => 'boolean', | ||
| 205 | 'format' => 'string', | ||
| 206 | 'animate_transitions' => 'boolean', | ||
| 207 | 'animate_shapes' => 'boolean', | ||
| 208 | 'embed_images' => 'boolean', | ||
| 209 | 'slides_layout_options' => 'SlidesLayoutOptions', | ||
| 210 | 'templates_path' => 'string', | ||
| 211 | 'disable_font_ligatures' => 'boolean', | ||
| 212 | 'pictures_compression' => 'string' | ||
| 213 | } ); | ||
| 214 | |||
| 215 | __PACKAGE__->attribute_map( { | ||
| 216 | 'default_regular_font' => 'DefaultRegularFont', | ||
| 217 | 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects', | ||
| 218 | 'gradient_style' => 'GradientStyle', | ||
| 219 | 'font_fallback_rules' => 'FontFallbackRules', | ||
| 220 | 'font_subst_rules' => 'FontSubstRules', | ||
| 221 | 'skip_java_script_links' => 'SkipJavaScriptLinks', | ||
| 222 | 'format' => 'Format', | ||
| 223 | 'animate_transitions' => 'AnimateTransitions', | ||
| 224 | 'animate_shapes' => 'AnimateShapes', | ||
| 225 | 'embed_images' => 'EmbedImages', | ||
| 226 | 'slides_layout_options' => 'SlidesLayoutOptions', | ||
| 227 | 'templates_path' => 'TemplatesPath', | ||
| 228 | 'disable_font_ligatures' => 'DisableFontLigatures', | ||
| 229 | 'pictures_compression' => 'PicturesCompression' | ||
| 230 | } ); | ||
| 231 | |||
| 232 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 233 | |||
| 234 | |||
| 235 | 1; |