Object/PortionFormat.pm untested

filter: Statementstmt 0.0% 0 / 76 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 / 97 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::PortionFormat;
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::EffectFormat;
41 use AsposeSlidesCloud::Object::FillFormat;
42 use AsposeSlidesCloud::Object::Hyperlink;
43 use AsposeSlidesCloud::Object::LineFormat;
44  
45 use base ("Class::Accessor", "Class::Data::Inheritable");
46  
47  
48 #
49 #Represents portion 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 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 => 'Represents portion format.',
92 class => 'PortionFormat',
93 required => [], # TODO
94 } );
95  
96 __PACKAGE__->method_documentation({
97 'font_bold' => {
98 datatype => 'string',
99 base_name => 'FontBold',
100 description => 'True for bold font.',
101 format => '',
102 read_only => '',
103 },
104 'font_italic' => {
105 datatype => 'string',
106 base_name => 'FontItalic',
107 description => 'True for italic font.',
108 format => '',
109 read_only => '',
110 },
111 'font_underline' => {
112 datatype => 'string',
113 base_name => 'FontUnderline',
114 description => 'Text underline type.',
115 format => '',
116 read_only => '',
117 },
118 'strikethrough_type' => {
119 datatype => 'string',
120 base_name => 'StrikethroughType',
121 description => 'Text strikethrough type.',
122 format => '',
123 read_only => '',
124 },
125 'text_cap_type' => {
126 datatype => 'string',
127 base_name => 'TextCapType',
128 description => 'Text capitalization type.',
129 format => '',
130 read_only => '',
131 },
132 'escapement' => {
133 datatype => 'double',
134 base_name => 'Escapement',
135 description => 'Superscript or subscript of the text.',
136 format => '',
137 read_only => '',
138 },
139 'spacing' => {
140 datatype => 'double',
141 base_name => 'Spacing',
142 description => 'Intercharacter spacing increment.',
143 format => '',
144 read_only => '',
145 },
146 'font_color' => {
147 datatype => 'string',
148 base_name => 'FontColor',
149 description => 'Font color.',
150 format => '',
151 read_only => '',
152 },
153 'highlight_color' => {
154 datatype => 'string',
155 base_name => 'HighlightColor',
156 description => 'Highlight color.',
157 format => '',
158 read_only => '',
159 },
160 'font_height' => {
161 datatype => 'double',
162 base_name => 'FontHeight',
163 description => 'Font height.',
164 format => '',
165 read_only => '',
166 },
167 'normalise_height' => {
168 datatype => 'string',
169 base_name => 'NormaliseHeight',
170 description => 'True to normalize the text.',
171 format => '',
172 read_only => '',
173 },
174 'proof_disabled' => {
175 datatype => 'string',
176 base_name => 'ProofDisabled',
177 description => 'True if the text proof should be disabled.',
178 format => '',
179 read_only => '',
180 },
181 'smart_tag_clean' => {
182 datatype => 'boolean',
183 base_name => 'SmartTagClean',
184 description => 'True if smart tag should be cleaned.',
185 format => '',
186 read_only => '',
187 },
188 'kerning_minimal_size' => {
189 datatype => 'double',
190 base_name => 'KerningMinimalSize',
191 description => 'Minimal font size for kerning.',
192 format => '',
193 read_only => '',
194 },
195 'kumimoji' => {
196 datatype => 'string',
197 base_name => 'Kumimoji',
198 description => 'True if numbers should ignore East-Asian specific vertical text layout.',
199 format => '',
200 read_only => '',
201 },
202 'language_id' => {
203 datatype => 'string',
204 base_name => 'LanguageId',
205 description => 'Proving language ID.',
206 format => '',
207 read_only => '',
208 },
209 'alternative_language_id' => {
210 datatype => 'string',
211 base_name => 'AlternativeLanguageId',
212 description => 'Alternative proving language ID.',
213 format => '',
214 read_only => '',
215 },
216 'is_hard_underline_fill' => {
217 datatype => 'string',
218 base_name => 'IsHardUnderlineFill',
219 description => 'True if underline style has own FillFormat properties.',
220 format => '',
221 read_only => '',
222 },
223 'is_hard_underline_line' => {
224 datatype => 'string',
225 base_name => 'IsHardUnderlineLine',
226 description => 'True if underline style has own LineFormat properties.',
227 format => '',
228 read_only => '',
229 },
230 'fill_format' => {
231 datatype => 'FillFormat',
232 base_name => 'FillFormat',
233 description => 'Fill format.',
234 format => '',
235 read_only => '',
236 },
237 'effect_format' => {
238 datatype => 'EffectFormat',
239 base_name => 'EffectFormat',
240 description => 'Effect format.',
241 format => '',
242 read_only => '',
243 },
244 'line_format' => {
245 datatype => 'LineFormat',
246 base_name => 'LineFormat',
247 description => 'Line format.',
248 format => '',
249 read_only => '',
250 },
251 'underline_fill_format' => {
252 datatype => 'FillFormat',
253 base_name => 'UnderlineFillFormat',
254 description => 'Underline fill format.',
255 format => '',
256 read_only => '',
257 },
258 'underline_line_format' => {
259 datatype => 'LineFormat',
260 base_name => 'UnderlineLineFormat',
261 description => 'Underline line format.',
262 format => '',
263 read_only => '',
264 },
265 'hyperlink_click' => {
266 datatype => 'Hyperlink',
267 base_name => 'HyperlinkClick',
268 description => 'Hyperlink defined for mouse click.',
269 format => '',
270 read_only => '',
271 },
272 'hyperlink_mouse_over' => {
273 datatype => 'Hyperlink',
274 base_name => 'HyperlinkMouseOver',
275 description => 'Hyperlink defined for mouse over.',
276 format => '',
277 read_only => '',
278 },
279 'latin_font' => {
280 datatype => 'string',
281 base_name => 'LatinFont',
282 description => 'Returns or sets the Latin font info.',
283 format => '',
284 read_only => '',
285 },
286 'east_asian_font' => {
287 datatype => 'string',
288 base_name => 'EastAsianFont',
289 description => 'Returns or sets the East Asian font info.',
290 format => '',
291 read_only => '',
292 },
293 'complex_script_font' => {
294 datatype => 'string',
295 base_name => 'ComplexScriptFont',
296 description => 'Returns or sets the complex script font info.',
297 format => '',
298 read_only => '',
299 },
300 'spell_check' => {
301 datatype => 'boolean',
302 base_name => 'SpellCheck',
303 description => 'true to enable spell checking for the portion.',
304 format => '',
305 read_only => '',
306 },
307 });
308  
309 __PACKAGE__->swagger_types( {
310 'font_bold' => 'string',
311 'font_italic' => 'string',
312 'font_underline' => 'string',
313 'strikethrough_type' => 'string',
314 'text_cap_type' => 'string',
315 'escapement' => 'double',
316 'spacing' => 'double',
317 'font_color' => 'string',
318 'highlight_color' => 'string',
319 'font_height' => 'double',
320 'normalise_height' => 'string',
321 'proof_disabled' => 'string',
322 'smart_tag_clean' => 'boolean',
323 'kerning_minimal_size' => 'double',
324 'kumimoji' => 'string',
325 'language_id' => 'string',
326 'alternative_language_id' => 'string',
327 'is_hard_underline_fill' => 'string',
328 'is_hard_underline_line' => 'string',
329 'fill_format' => 'FillFormat',
330 'effect_format' => 'EffectFormat',
331 'line_format' => 'LineFormat',
332 'underline_fill_format' => 'FillFormat',
333 'underline_line_format' => 'LineFormat',
334 'hyperlink_click' => 'Hyperlink',
335 'hyperlink_mouse_over' => 'Hyperlink',
336 'latin_font' => 'string',
337 'east_asian_font' => 'string',
338 'complex_script_font' => 'string',
339 'spell_check' => 'boolean'
340 } );
341  
342 __PACKAGE__->attribute_map( {
343 'font_bold' => 'FontBold',
344 'font_italic' => 'FontItalic',
345 'font_underline' => 'FontUnderline',
346 'strikethrough_type' => 'StrikethroughType',
347 'text_cap_type' => 'TextCapType',
348 'escapement' => 'Escapement',
349 'spacing' => 'Spacing',
350 'font_color' => 'FontColor',
351 'highlight_color' => 'HighlightColor',
352 'font_height' => 'FontHeight',
353 'normalise_height' => 'NormaliseHeight',
354 'proof_disabled' => 'ProofDisabled',
355 'smart_tag_clean' => 'SmartTagClean',
356 'kerning_minimal_size' => 'KerningMinimalSize',
357 'kumimoji' => 'Kumimoji',
358 'language_id' => 'LanguageId',
359 'alternative_language_id' => 'AlternativeLanguageId',
360 'is_hard_underline_fill' => 'IsHardUnderlineFill',
361 'is_hard_underline_line' => 'IsHardUnderlineLine',
362 'fill_format' => 'FillFormat',
363 'effect_format' => 'EffectFormat',
364 'line_format' => 'LineFormat',
365 'underline_fill_format' => 'UnderlineFillFormat',
366 'underline_line_format' => 'UnderlineLineFormat',
367 'hyperlink_click' => 'HyperlinkClick',
368 'hyperlink_mouse_over' => 'HyperlinkMouseOver',
369 'latin_font' => 'LatinFont',
370 'east_asian_font' => 'EastAsianFont',
371 'complex_script_font' => 'ComplexScriptFont',
372 'spell_check' => 'SpellCheck'
373 } );
374  
375 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
376  
377  
378 1;