| 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::ImageExportOptions; | ||
| 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::FontFallbackRule; | ||
| 41 | use AsposeSlidesCloud::Object::FontSubstRule; | ||
| 42 | use AsposeSlidesCloud::Object::ImageExportOptionsBase; | ||
| 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 an image 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 } = 'image'; | ||
| 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 an image format.', | ||
| 93 | class => 'ImageExportOptions', | ||
| 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 | 'height' => { | ||
| 148 | datatype => 'int', | ||
| 149 | base_name => 'Height', | ||
| 150 | description => 'Gets or sets the height of slides in the output image format.', | ||
| 151 | format => '', | ||
| 152 | read_only => '', | ||
| 153 | }, | ||
| 154 | 'width' => { | ||
| 155 | datatype => 'int', | ||
| 156 | base_name => 'Width', | ||
| 157 | description => 'Gets or sets the height of slides in the output the output image format.', | ||
| 158 | format => '', | ||
| 159 | read_only => '', | ||
| 160 | }, | ||
| 161 | 'show_hidden_slides' => { | ||
| 162 | datatype => 'boolean', | ||
| 163 | base_name => 'ShowHiddenSlides', | ||
| 164 | description => 'Show hidden slides. If true, hidden are exported.', | ||
| 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 | }); | ||
| 176 | |||
| 177 | __PACKAGE__->swagger_types( { | ||
| 178 | 'default_regular_font' => 'string', | ||
| 179 | 'delete_embedded_binary_objects' => 'boolean', | ||
| 180 | 'gradient_style' => 'string', | ||
| 181 | 'font_fallback_rules' => 'ARRAY[FontFallbackRule]', | ||
| 182 | 'font_subst_rules' => 'ARRAY[FontSubstRule]', | ||
| 183 | 'skip_java_script_links' => 'boolean', | ||
| 184 | 'format' => 'string', | ||
| 185 | 'height' => 'int', | ||
| 186 | 'width' => 'int', | ||
| 187 | 'show_hidden_slides' => 'boolean', | ||
| 188 | 'slides_layout_options' => 'SlidesLayoutOptions' | ||
| 189 | } ); | ||
| 190 | |||
| 191 | __PACKAGE__->attribute_map( { | ||
| 192 | 'default_regular_font' => 'DefaultRegularFont', | ||
| 193 | 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects', | ||
| 194 | 'gradient_style' => 'GradientStyle', | ||
| 195 | 'font_fallback_rules' => 'FontFallbackRules', | ||
| 196 | 'font_subst_rules' => 'FontSubstRules', | ||
| 197 | 'skip_java_script_links' => 'SkipJavaScriptLinks', | ||
| 198 | 'format' => 'Format', | ||
| 199 | 'height' => 'Height', | ||
| 200 | 'width' => 'Width', | ||
| 201 | 'show_hidden_slides' => 'ShowHiddenSlides', | ||
| 202 | 'slides_layout_options' => 'SlidesLayoutOptions' | ||
| 203 | } ); | ||
| 204 | |||
| 205 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 206 | |||
| 207 | |||
| 208 | 1; |