Object/TextFrameFormat.pm untested

filter: Statementstmt 0.0% 0 / 70 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 89 CC 2 SCAR 9.2
CC
2
Cov
0%
TO_JSON
6.0
new
2.0
BEGIN
2.0
CRAP 2.5
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::TextFrameFormat;
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::ParagraphFormat;
41 use AsposeSlidesCloud::Object::ThreeDFormat;
42  
43 use base ("Class::Accessor", "Class::Data::Inheritable");
44  
45  
46 #
47 #Contains the TextFrame's formatting properties.
48 #
49 # NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
50 # REF: https://github.com/swagger-api/swagger-codegen
51 #
52  
53 #
54 # NOTE: This class is auto generated by the swagger code generator program.
55 # Do not edit the class manually.
56 # Ref: https://github.com/swagger-api/swagger-codegen
57 #
58 __PACKAGE__->mk_classdata('attribute_map' => {});
59 __PACKAGE__->mk_classdata('swagger_types' => {});
60 __PACKAGE__->mk_classdata('method_documentation' => {});
61 __PACKAGE__->mk_classdata('class_documentation' => {});
62  
63 # new object
64 sub new {
65 my ($class, %args) = @_;
66  
67 my $self = bless {}, $class;
68
69 foreach my $attribute (keys %{$class->attribute_map}) {
70 my $args_key = $class->attribute_map->{$attribute};
71 $self->$attribute( $args{ $args_key } );
72 }
73 return $self;
74 }
75  
76 # used by JSON for serialization
77 sub TO_JSON {
78 my $self = shift;
79 my $_data = {};
80 foreach my $_key (keys %{$self->attribute_map}) {
81 if (defined $self->{$_key}) {
82 $_data->{$self->attribute_map->{$_key}} = $self->{$_key};
83 }
84 }
85 return $_data;
86 }
87  
88  
89 __PACKAGE__->class_documentation({description => 'Contains the TextFrame's formatting properties.',
90 class => 'TextFrameFormat',
91 required => [], # TODO
92 } );
93  
94 __PACKAGE__->method_documentation({
95 'three_d_format' => {
96 datatype => 'ThreeDFormat',
97 base_name => 'ThreeDFormat',
98 description => 'Represents 3d effect properties for a text.',
99 format => '',
100 read_only => '',
101 },
102 'transform' => {
103 datatype => 'string',
104 base_name => 'Transform',
105 description => 'Gets or sets text wrapping shape.',
106 format => '',
107 read_only => '',
108 },
109 'margin_left' => {
110 datatype => 'double',
111 base_name => 'MarginLeft',
112 description => 'Left margin. Left margin.',
113 format => '',
114 read_only => '',
115 },
116 'margin_right' => {
117 datatype => 'double',
118 base_name => 'MarginRight',
119 description => 'Right margin.',
120 format => '',
121 read_only => '',
122 },
123 'margin_top' => {
124 datatype => 'double',
125 base_name => 'MarginTop',
126 description => 'Top margin.',
127 format => '',
128 read_only => '',
129 },
130 'margin_bottom' => {
131 datatype => 'double',
132 base_name => 'MarginBottom',
133 description => 'Bottom margin.',
134 format => '',
135 read_only => '',
136 },
137 'wrap_text' => {
138 datatype => 'string',
139 base_name => 'WrapText',
140 description => 'True if text is wrapped at TextFrame's margins.',
141 format => '',
142 read_only => '',
143 },
144 'anchoring_type' => {
145 datatype => 'string',
146 base_name => 'AnchoringType',
147 description => 'Returns or sets vertical anchor text in a TextFrame.',
148 format => '',
149 read_only => '',
150 },
151 'center_text' => {
152 datatype => 'string',
153 base_name => 'CenterText',
154 description => 'If True then text should be centered in box horizontally.',
155 format => '',
156 read_only => '',
157 },
158 'text_vertical_type' => {
159 datatype => 'string',
160 base_name => 'TextVerticalType',
161 description => 'Determines text orientation. The resulted value of visual text rotation summarized from this property and custom angle in property RotationAngle.',
162 format => '',
163 read_only => '',
164 },
165 'autofit_type' => {
166 datatype => 'string',
167 base_name => 'AutofitType',
168 description => 'Returns or sets text's auto-fit mode.',
169 format => '',
170 read_only => '',
171 },
172 'column_count' => {
173 datatype => 'int',
174 base_name => 'ColumnCount',
175 description => 'Returns or sets number of columns in the text area. This value must be a positive number. Otherwise, the value will be set to zero. Value 0 means undefined value.',
176 format => '',
177 read_only => '',
178 },
179 'column_spacing' => {
180 datatype => 'double',
181 base_name => 'ColumnSpacing',
182 description => 'Returns or sets the space between text columns in the text area (in points). This should only apply when there is more than 1 column present. This value must be a positive number. Otherwise, the value will be set to zero. ',
183 format => '',
184 read_only => '',
185 },
186 'keep_text_flat' => {
187 datatype => 'boolean',
188 base_name => 'KeepTextFlat',
189 description => 'Returns or set keeping text out of 3D scene entirely.',
190 format => '',
191 read_only => '',
192 },
193 'rotation_angle' => {
194 datatype => 'double',
195 base_name => 'RotationAngle',
196 description => 'Specifies the custom rotation that is being applied to the text within the bounding box.',
197 format => '',
198 read_only => '',
199 },
200 'default_paragraph_format' => {
201 datatype => 'ParagraphFormat',
202 base_name => 'DefaultParagraphFormat',
203 description => 'Default portion format.',
204 format => '',
205 read_only => '',
206 },
207 });
208  
209 __PACKAGE__->swagger_types( {
210 'three_d_format' => 'ThreeDFormat',
211 'transform' => 'string',
212 'margin_left' => 'double',
213 'margin_right' => 'double',
214 'margin_top' => 'double',
215 'margin_bottom' => 'double',
216 'wrap_text' => 'string',
217 'anchoring_type' => 'string',
218 'center_text' => 'string',
219 'text_vertical_type' => 'string',
220 'autofit_type' => 'string',
221 'column_count' => 'int',
222 'column_spacing' => 'double',
223 'keep_text_flat' => 'boolean',
224 'rotation_angle' => 'double',
225 'default_paragraph_format' => 'ParagraphFormat'
226 } );
227  
228 __PACKAGE__->attribute_map( {
229 'three_d_format' => 'ThreeDFormat',
230 'transform' => 'Transform',
231 'margin_left' => 'MarginLeft',
232 'margin_right' => 'MarginRight',
233 'margin_top' => 'MarginTop',
234 'margin_bottom' => 'MarginBottom',
235 'wrap_text' => 'WrapText',
236 'anchoring_type' => 'AnchoringType',
237 'center_text' => 'CenterText',
238 'text_vertical_type' => 'TextVerticalType',
239 'autofit_type' => 'AutofitType',
240 'column_count' => 'ColumnCount',
241 'column_spacing' => 'ColumnSpacing',
242 'keep_text_flat' => 'KeepTextFlat',
243 'rotation_angle' => 'RotationAngle',
244 'default_paragraph_format' => 'DefaultParagraphFormat'
245 } );
246  
247 __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});
248  
249  
250 1;