| 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::PptxExportOptions; | ||
| 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 PPTX 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 } = 'pptx'; | ||
| 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 PPTX format.', | ||
| 92 | class => 'PptxExportOptions', | ||
| 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 | 'conformance' => { | ||
| 147 | datatype => 'string', | ||
| 148 | base_name => 'Conformance', | ||
| 149 | description => 'The conformance class to which the PresentationML document conforms.', | ||
| 150 | format => '', | ||
| 151 | read_only => '', | ||
| 152 | }, | ||
| 153 | 'zip64_mode' => { | ||
| 154 | datatype => 'string', | ||
| 155 | base_name => 'Zip64Mode', | ||
| 156 | description => 'Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.', | ||
| 157 | format => '', | ||
| 158 | read_only => '', | ||
| 159 | }, | ||
| 160 | 'compression_level' => { | ||
| 161 | datatype => 'string', | ||
| 162 | base_name => 'CompressionLevel', | ||
| 163 | description => 'The compression level used when saving the presentation document. Higher compression levels produce smaller files but require more processing time. The actual compression ratio depends on the content of the presentation. The default value is CompressionLevel.Level6.', | ||
| 164 | format => '', | ||
| 165 | read_only => '', | ||
| 166 | }, | ||
| 167 | 'refresh_thumbnail' => { | ||
| 168 | datatype => 'boolean', | ||
| 169 | base_name => 'RefreshThumbnail', | ||
| 170 | description => 'True to refresh the presentation thumbnail on save', | ||
| 171 | format => '', | ||
| 172 | read_only => '', | ||
| 173 | }, | ||
| 174 | }); | ||
| 175 | |||
| 176 | __PACKAGE__->swagger_types( { | ||
| 177 | 'default_regular_font' => 'string', | ||
| 178 | 'delete_embedded_binary_objects' => 'boolean', | ||
| 179 | 'gradient_style' => 'string', | ||
| 180 | 'font_fallback_rules' => 'ARRAY[FontFallbackRule]', | ||
| 181 | 'font_subst_rules' => 'ARRAY[FontSubstRule]', | ||
| 182 | 'skip_java_script_links' => 'boolean', | ||
| 183 | 'format' => 'string', | ||
| 184 | 'conformance' => 'string', | ||
| 185 | 'zip64_mode' => 'string', | ||
| 186 | 'compression_level' => 'string', | ||
| 187 | 'refresh_thumbnail' => 'boolean' | ||
| 188 | } ); | ||
| 189 | |||
| 190 | __PACKAGE__->attribute_map( { | ||
| 191 | 'default_regular_font' => 'DefaultRegularFont', | ||
| 192 | 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects', | ||
| 193 | 'gradient_style' => 'GradientStyle', | ||
| 194 | 'font_fallback_rules' => 'FontFallbackRules', | ||
| 195 | 'font_subst_rules' => 'FontSubstRules', | ||
| 196 | 'skip_java_script_links' => 'SkipJavaScriptLinks', | ||
| 197 | 'format' => 'Format', | ||
| 198 | 'conformance' => 'Conformance', | ||
| 199 | 'zip64_mode' => 'Zip64Mode', | ||
| 200 | 'compression_level' => 'CompressionLevel', | ||
| 201 | 'refresh_thumbnail' => 'RefreshThumbnail' | ||
| 202 | } ); | ||
| 203 | |||
| 204 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 205 | |||
| 206 | |||
| 207 | 1; |