Object/SwfExportOptions.pm untested

filter: Statementstmt 0.0% 0 / 77 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 17 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 98 CC 2 SCAR 8.9
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.4
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::SwfExportOptions;
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 SWF 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 } = 'swf';
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 SWF format.',
93 class => 'SwfExportOptions',
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 'show_hidden_slides' => {
148 datatype => 'boolean',
149 base_name => 'ShowHiddenSlides',
150 description => 'Specifies whether the generated document should include hidden slides or not. Default is false. ',
151 format => '',
152 read_only => '',
153 },
154 'compressed' => {
155 datatype => 'boolean',
156 base_name => 'Compressed',
157 description => 'Specifies whether the generated SWF document should be compressed or not. Default is true. ',
158 format => '',
159 read_only => '',
160 },
161 'viewer_included' => {
162 datatype => 'boolean',
163 base_name => 'ViewerIncluded',
164 description => 'Specifies whether the generated SWF document should include the integrated document viewer or not. Default is true. ',
165 format => '',
166 read_only => '',
167 },
168 'show_page_border' => {
169 datatype => 'boolean',
170 base_name => 'ShowPageBorder',
171 description => 'Specifies whether border around pages should be shown. Default is true. ',
172 format => '',
173 read_only => '',
174 },
175 'show_full_screen' => {
176 datatype => 'boolean',
177 base_name => 'ShowFullScreen',
178 description => 'Show/hide fullscreen button. Can be overridden in flashvars. Default is true. ',
179 format => '',
180 read_only => '',
181 },
182 'show_page_stepper' => {
183 datatype => 'boolean',
184 base_name => 'ShowPageStepper',
185 description => 'Show/hide page stepper. Can be overridden in flashvars. Default is true. ',
186 format => '',
187 read_only => '',
188 },
189 'show_search' => {
190 datatype => 'boolean',
191 base_name => 'ShowSearch',
192 description => 'Show/hide search section. Can be overridden in flashvars. Default is true. ',
193 format => '',
194 read_only => '',
195 },
196 'show_top_pane' => {
197 datatype => 'boolean',
198 base_name => 'ShowTopPane',
199 description => 'Show/hide whole top pane. Can be overridden in flashvars. Default is true. ',
200 format => '',
201 read_only => '',
202 },
203 'show_bottom_pane' => {
204 datatype => 'boolean',
205 base_name => 'ShowBottomPane',
206 description => 'Show/hide bottom pane. Can be overridden in flashvars. Default is true. ',
207 format => '',
208 read_only => '',
209 },
210 'show_left_pane' => {
211 datatype => 'boolean',
212 base_name => 'ShowLeftPane',
213 description => 'Show/hide left pane. Can be overridden in flashvars. Default is true. ',
214 format => '',
215 read_only => '',
216 },
217 'start_open_left_pane' => {
218 datatype => 'boolean',
219 base_name => 'StartOpenLeftPane',
220 description => 'Start with opened left pane. Can be overridden in flashvars. Default is false. ',
221 format => '',
222 read_only => '',
223 },
224 'enable_context_menu' => {
225 datatype => 'boolean',
226 base_name => 'EnableContextMenu',
227 description => 'Enable/disable context menu. Default is true. ',
228 format => '',
229 read_only => '',
230 },
231 'logo_image' => {
232 datatype => 'string',
233 base_name => 'LogoImage',
234 description => 'Image that will be displayed as logo in the top right corner of the viewer. The image data is a base 64 string. Image should be 32x64 pixels PNG image, otherwise logo can be displayed improperly. ',
235 format => '',
236 read_only => '',
237 },
238 'logo_link' => {
239 datatype => 'string',
240 base_name => 'LogoLink',
241 description => 'Gets or sets the full hyperlink address for a logo. Has an effect only if a LogoImage is specified. ',
242 format => '',
243 read_only => '',
244 },
245 'jpeg_quality' => {
246 datatype => 'int',
247 base_name => 'JpegQuality',
248 description => 'Specifies the quality of JPEG images. Default is 95.',
249 format => '',
250 read_only => '',
251 },
252 'slides_layout_options' => {
253 datatype => 'SlidesLayoutOptions',
254 base_name => 'SlidesLayoutOptions',
255 description => 'Slides layouting options',
256 format => '',
257 read_only => '',
258 },
259 });
260  
261 __PACKAGE__->swagger_types( {
262 'default_regular_font' => 'string',
263 'delete_embedded_binary_objects' => 'boolean',
264 'gradient_style' => 'string',
265 'font_fallback_rules' => 'ARRAY[FontFallbackRule]',
266 'font_subst_rules' => 'ARRAY[FontSubstRule]',
267 'skip_java_script_links' => 'boolean',
268 'format' => 'string',
269 'show_hidden_slides' => 'boolean',
270 'compressed' => 'boolean',
271 'viewer_included' => 'boolean',
272 'show_page_border' => 'boolean',
273 'show_full_screen' => 'boolean',
274 'show_page_stepper' => 'boolean',
275 'show_search' => 'boolean',
276 'show_top_pane' => 'boolean',
277 'show_bottom_pane' => 'boolean',
278 'show_left_pane' => 'boolean',
279 'start_open_left_pane' => 'boolean',
280 'enable_context_menu' => 'boolean',
281 'logo_image' => 'string',
282 'logo_link' => 'string',
283 'jpeg_quality' => 'int',
284 'slides_layout_options' => 'SlidesLayoutOptions'
285 } );
286  
287 __PACKAGE__->attribute_map( {
288 'default_regular_font' => 'DefaultRegularFont',
289 'delete_embedded_binary_objects' => 'DeleteEmbeddedBinaryObjects',
290 'gradient_style' => 'GradientStyle',
291 'font_fallback_rules' => 'FontFallbackRules',
292 'font_subst_rules' => 'FontSubstRules',
293 'skip_java_script_links' => 'SkipJavaScriptLinks',
294 'format' => 'Format',
295 'show_hidden_slides' => 'ShowHiddenSlides',
296 'compressed' => 'Compressed',
297 'viewer_included' => 'ViewerIncluded',
298 'show_page_border' => 'ShowPageBorder',
299 'show_full_screen' => 'ShowFullScreen',
300 'show_page_stepper' => 'ShowPageStepper',
301 'show_search' => 'ShowSearch',
302 'show_top_pane' => 'ShowTopPane',
303 'show_bottom_pane' => 'ShowBottomPane',
304 'show_left_pane' => 'ShowLeftPane',
305 'start_open_left_pane' => 'StartOpenLeftPane',
306 'enable_context_menu' => 'EnableContextMenu',
307 'logo_image' => 'LogoImage',
308 'logo_link' => 'LogoLink',
309 'jpeg_quality' => 'JpegQuality',
310 'slides_layout_options' => 'SlidesLayoutOptions'
311 } );
312  
313 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
314  
315  
316 1;