| 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::ParagraphFormat; | ||
| 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::FillFormat; | ||
| 41 | use AsposeSlidesCloud::Object::PortionFormat; | ||
| 42 | |||
| 43 | use base ("Class::Accessor", "Class::Data::Inheritable"); | ||
| 44 | |||
| 45 | |||
| 46 | # | ||
| 47 | #Paragraph 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 => 'Paragraph formatting properties.', | ||
| 90 | class => 'ParagraphFormat', | ||
| 91 | required => [], # TODO | ||
| 92 | } ); | ||
| 93 | |||
| 94 | __PACKAGE__->method_documentation({ | ||
| 95 | 'depth' => { | ||
| 96 | datatype => 'int', | ||
| 97 | base_name => 'Depth', | ||
| 98 | description => 'Depth.', | ||
| 99 | format => '', | ||
| 100 | read_only => '', | ||
| 101 | }, | ||
| 102 | 'alignment' => { | ||
| 103 | datatype => 'string', | ||
| 104 | base_name => 'Alignment', | ||
| 105 | description => 'Text alignment.', | ||
| 106 | format => '', | ||
| 107 | read_only => '', | ||
| 108 | }, | ||
| 109 | 'margin_left' => { | ||
| 110 | datatype => 'double', | ||
| 111 | base_name => 'MarginLeft', | ||
| 112 | description => '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 | 'space_before' => { | ||
| 124 | datatype => 'double', | ||
| 125 | base_name => 'SpaceBefore', | ||
| 126 | description => 'Left spacing.', | ||
| 127 | format => '', | ||
| 128 | read_only => '', | ||
| 129 | }, | ||
| 130 | 'space_after' => { | ||
| 131 | datatype => 'double', | ||
| 132 | base_name => 'SpaceAfter', | ||
| 133 | description => 'Right spacing.', | ||
| 134 | format => '', | ||
| 135 | read_only => '', | ||
| 136 | }, | ||
| 137 | 'space_within' => { | ||
| 138 | datatype => 'double', | ||
| 139 | base_name => 'SpaceWithin', | ||
| 140 | description => 'Spacing between lines.', | ||
| 141 | format => '', | ||
| 142 | read_only => '', | ||
| 143 | }, | ||
| 144 | 'font_alignment' => { | ||
| 145 | datatype => 'string', | ||
| 146 | base_name => 'FontAlignment', | ||
| 147 | description => 'Font alignment.', | ||
| 148 | format => '', | ||
| 149 | read_only => '', | ||
| 150 | }, | ||
| 151 | 'indent' => { | ||
| 152 | datatype => 'double', | ||
| 153 | base_name => 'Indent', | ||
| 154 | description => 'First line indent.', | ||
| 155 | format => '', | ||
| 156 | read_only => '', | ||
| 157 | }, | ||
| 158 | 'right_to_left' => { | ||
| 159 | datatype => 'string', | ||
| 160 | base_name => 'RightToLeft', | ||
| 161 | description => 'Determines whether the Right to Left writing is used in a paragraph. No inheritance applied.', | ||
| 162 | format => '', | ||
| 163 | read_only => '', | ||
| 164 | }, | ||
| 165 | 'east_asian_line_break' => { | ||
| 166 | datatype => 'string', | ||
| 167 | base_name => 'EastAsianLineBreak', | ||
| 168 | description => 'Determines whether the East Asian line break is used in a paragraph. No inheritance applied.', | ||
| 169 | format => '', | ||
| 170 | read_only => '', | ||
| 171 | }, | ||
| 172 | 'latin_line_break' => { | ||
| 173 | datatype => 'string', | ||
| 174 | base_name => 'LatinLineBreak', | ||
| 175 | description => 'Determines whether the Latin line break is used in a paragraph. No inheritance applied.', | ||
| 176 | format => '', | ||
| 177 | read_only => '', | ||
| 178 | }, | ||
| 179 | 'hanging_punctuation' => { | ||
| 180 | datatype => 'string', | ||
| 181 | base_name => 'HangingPunctuation', | ||
| 182 | description => 'Determines whether the hanging punctuation is used in a paragraph. No inheritance applied.', | ||
| 183 | format => '', | ||
| 184 | read_only => '', | ||
| 185 | }, | ||
| 186 | 'default_tab_size' => { | ||
| 187 | datatype => 'double', | ||
| 188 | base_name => 'DefaultTabSize', | ||
| 189 | description => 'Returns or sets default tabulation size with no inheritance.', | ||
| 190 | format => '', | ||
| 191 | read_only => '', | ||
| 192 | }, | ||
| 193 | 'default_portion_format' => { | ||
| 194 | datatype => 'PortionFormat', | ||
| 195 | base_name => 'DefaultPortionFormat', | ||
| 196 | description => 'Default portion format.', | ||
| 197 | format => '', | ||
| 198 | read_only => '', | ||
| 199 | }, | ||
| 200 | 'bullet_char' => { | ||
| 201 | datatype => 'string', | ||
| 202 | base_name => 'BulletChar', | ||
| 203 | description => 'Bullet char.', | ||
| 204 | format => '', | ||
| 205 | read_only => '', | ||
| 206 | }, | ||
| 207 | 'bullet_height' => { | ||
| 208 | datatype => 'double', | ||
| 209 | base_name => 'BulletHeight', | ||
| 210 | description => 'Bullet height.', | ||
| 211 | format => '', | ||
| 212 | read_only => '', | ||
| 213 | }, | ||
| 214 | 'bullet_type' => { | ||
| 215 | datatype => 'string', | ||
| 216 | base_name => 'BulletType', | ||
| 217 | description => 'Bullet type.', | ||
| 218 | format => '', | ||
| 219 | read_only => '', | ||
| 220 | }, | ||
| 221 | 'numbered_bullet_start_with' => { | ||
| 222 | datatype => 'int', | ||
| 223 | base_name => 'NumberedBulletStartWith', | ||
| 224 | description => 'Starting number for a numbered bullet.', | ||
| 225 | format => '', | ||
| 226 | read_only => '', | ||
| 227 | }, | ||
| 228 | 'numbered_bullet_style' => { | ||
| 229 | datatype => 'string', | ||
| 230 | base_name => 'NumberedBulletStyle', | ||
| 231 | description => 'Numbered bullet style.', | ||
| 232 | format => '', | ||
| 233 | read_only => '', | ||
| 234 | }, | ||
| 235 | 'bullet_fill_format' => { | ||
| 236 | datatype => 'FillFormat', | ||
| 237 | base_name => 'BulletFillFormat', | ||
| 238 | description => 'Bullet fill format.', | ||
| 239 | format => '', | ||
| 240 | read_only => '', | ||
| 241 | }, | ||
| 242 | }); | ||
| 243 | |||
| 244 | __PACKAGE__->swagger_types( { | ||
| 245 | 'depth' => 'int', | ||
| 246 | 'alignment' => 'string', | ||
| 247 | 'margin_left' => 'double', | ||
| 248 | 'margin_right' => 'double', | ||
| 249 | 'space_before' => 'double', | ||
| 250 | 'space_after' => 'double', | ||
| 251 | 'space_within' => 'double', | ||
| 252 | 'font_alignment' => 'string', | ||
| 253 | 'indent' => 'double', | ||
| 254 | 'right_to_left' => 'string', | ||
| 255 | 'east_asian_line_break' => 'string', | ||
| 256 | 'latin_line_break' => 'string', | ||
| 257 | 'hanging_punctuation' => 'string', | ||
| 258 | 'default_tab_size' => 'double', | ||
| 259 | 'default_portion_format' => 'PortionFormat', | ||
| 260 | 'bullet_char' => 'string', | ||
| 261 | 'bullet_height' => 'double', | ||
| 262 | 'bullet_type' => 'string', | ||
| 263 | 'numbered_bullet_start_with' => 'int', | ||
| 264 | 'numbered_bullet_style' => 'string', | ||
| 265 | 'bullet_fill_format' => 'FillFormat' | ||
| 266 | } ); | ||
| 267 | |||
| 268 | __PACKAGE__->attribute_map( { | ||
| 269 | 'depth' => 'Depth', | ||
| 270 | 'alignment' => 'Alignment', | ||
| 271 | 'margin_left' => 'MarginLeft', | ||
| 272 | 'margin_right' => 'MarginRight', | ||
| 273 | 'space_before' => 'SpaceBefore', | ||
| 274 | 'space_after' => 'SpaceAfter', | ||
| 275 | 'space_within' => 'SpaceWithin', | ||
| 276 | 'font_alignment' => 'FontAlignment', | ||
| 277 | 'indent' => 'Indent', | ||
| 278 | 'right_to_left' => 'RightToLeft', | ||
| 279 | 'east_asian_line_break' => 'EastAsianLineBreak', | ||
| 280 | 'latin_line_break' => 'LatinLineBreak', | ||
| 281 | 'hanging_punctuation' => 'HangingPunctuation', | ||
| 282 | 'default_tab_size' => 'DefaultTabSize', | ||
| 283 | 'default_portion_format' => 'DefaultPortionFormat', | ||
| 284 | 'bullet_char' => 'BulletChar', | ||
| 285 | 'bullet_height' => 'BulletHeight', | ||
| 286 | 'bullet_type' => 'BulletType', | ||
| 287 | 'numbered_bullet_start_with' => 'NumberedBulletStartWith', | ||
| 288 | 'numbered_bullet_style' => 'NumberedBulletStyle', | ||
| 289 | 'bullet_fill_format' => 'BulletFillFormat' | ||
| 290 | } ); | ||
| 291 | |||
| 292 | __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); | ||
| 293 | |||
| 294 | |||
| 295 | 1; |