1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\Docs; 19 20class ParagraphStyle extends \Google\Collection 21{ 22 protected $collection_key = 'tabStops'; 23 /** 24 * @var string 25 */ 26 public $alignment; 27 /** 28 * @var bool 29 */ 30 public $avoidWidowAndOrphan; 31 protected $borderBetweenType = ParagraphBorder::class; 32 protected $borderBetweenDataType = ''; 33 protected $borderBottomType = ParagraphBorder::class; 34 protected $borderBottomDataType = ''; 35 protected $borderLeftType = ParagraphBorder::class; 36 protected $borderLeftDataType = ''; 37 protected $borderRightType = ParagraphBorder::class; 38 protected $borderRightDataType = ''; 39 protected $borderTopType = ParagraphBorder::class; 40 protected $borderTopDataType = ''; 41 /** 42 * @var string 43 */ 44 public $direction; 45 /** 46 * @var string 47 */ 48 public $headingId; 49 protected $indentEndType = Dimension::class; 50 protected $indentEndDataType = ''; 51 protected $indentFirstLineType = Dimension::class; 52 protected $indentFirstLineDataType = ''; 53 protected $indentStartType = Dimension::class; 54 protected $indentStartDataType = ''; 55 /** 56 * @var bool 57 */ 58 public $keepLinesTogether; 59 /** 60 * @var bool 61 */ 62 public $keepWithNext; 63 /** 64 * @var float 65 */ 66 public $lineSpacing; 67 /** 68 * @var string 69 */ 70 public $namedStyleType; 71 protected $shadingType = Shading::class; 72 protected $shadingDataType = ''; 73 protected $spaceAboveType = Dimension::class; 74 protected $spaceAboveDataType = ''; 75 protected $spaceBelowType = Dimension::class; 76 protected $spaceBelowDataType = ''; 77 /** 78 * @var string 79 */ 80 public $spacingMode; 81 protected $tabStopsType = TabStop::class; 82 protected $tabStopsDataType = 'array'; 83 84 /** 85 * @param string 86 */ 87 public function setAlignment($alignment) 88 { 89 $this->alignment = $alignment; 90 } 91 /** 92 * @return string 93 */ 94 public function getAlignment() 95 { 96 return $this->alignment; 97 } 98 /** 99 * @param bool 100 */ 101 public function setAvoidWidowAndOrphan($avoidWidowAndOrphan) 102 { 103 $this->avoidWidowAndOrphan = $avoidWidowAndOrphan; 104 } 105 /** 106 * @return bool 107 */ 108 public function getAvoidWidowAndOrphan() 109 { 110 return $this->avoidWidowAndOrphan; 111 } 112 /** 113 * @param ParagraphBorder 114 */ 115 public function setBorderBetween(ParagraphBorder $borderBetween) 116 { 117 $this->borderBetween = $borderBetween; 118 } 119 /** 120 * @return ParagraphBorder 121 */ 122 public function getBorderBetween() 123 { 124 return $this->borderBetween; 125 } 126 /** 127 * @param ParagraphBorder 128 */ 129 public function setBorderBottom(ParagraphBorder $borderBottom) 130 { 131 $this->borderBottom = $borderBottom; 132 } 133 /** 134 * @return ParagraphBorder 135 */ 136 public function getBorderBottom() 137 { 138 return $this->borderBottom; 139 } 140 /** 141 * @param ParagraphBorder 142 */ 143 public function setBorderLeft(ParagraphBorder $borderLeft) 144 { 145 $this->borderLeft = $borderLeft; 146 } 147 /** 148 * @return ParagraphBorder 149 */ 150 public function getBorderLeft() 151 { 152 return $this->borderLeft; 153 } 154 /** 155 * @param ParagraphBorder 156 */ 157 public function setBorderRight(ParagraphBorder $borderRight) 158 { 159 $this->borderRight = $borderRight; 160 } 161 /** 162 * @return ParagraphBorder 163 */ 164 public function getBorderRight() 165 { 166 return $this->borderRight; 167 } 168 /** 169 * @param ParagraphBorder 170 */ 171 public function setBorderTop(ParagraphBorder $borderTop) 172 { 173 $this->borderTop = $borderTop; 174 } 175 /** 176 * @return ParagraphBorder 177 */ 178 public function getBorderTop() 179 { 180 return $this->borderTop; 181 } 182 /** 183 * @param string 184 */ 185 public function setDirection($direction) 186 { 187 $this->direction = $direction; 188 } 189 /** 190 * @return string 191 */ 192 public function getDirection() 193 { 194 return $this->direction; 195 } 196 /** 197 * @param string 198 */ 199 public function setHeadingId($headingId) 200 { 201 $this->headingId = $headingId; 202 } 203 /** 204 * @return string 205 */ 206 public function getHeadingId() 207 { 208 return $this->headingId; 209 } 210 /** 211 * @param Dimension 212 */ 213 public function setIndentEnd(Dimension $indentEnd) 214 { 215 $this->indentEnd = $indentEnd; 216 } 217 /** 218 * @return Dimension 219 */ 220 public function getIndentEnd() 221 { 222 return $this->indentEnd; 223 } 224 /** 225 * @param Dimension 226 */ 227 public function setIndentFirstLine(Dimension $indentFirstLine) 228 { 229 $this->indentFirstLine = $indentFirstLine; 230 } 231 /** 232 * @return Dimension 233 */ 234 public function getIndentFirstLine() 235 { 236 return $this->indentFirstLine; 237 } 238 /** 239 * @param Dimension 240 */ 241 public function setIndentStart(Dimension $indentStart) 242 { 243 $this->indentStart = $indentStart; 244 } 245 /** 246 * @return Dimension 247 */ 248 public function getIndentStart() 249 { 250 return $this->indentStart; 251 } 252 /** 253 * @param bool 254 */ 255 public function setKeepLinesTogether($keepLinesTogether) 256 { 257 $this->keepLinesTogether = $keepLinesTogether; 258 } 259 /** 260 * @return bool 261 */ 262 public function getKeepLinesTogether() 263 { 264 return $this->keepLinesTogether; 265 } 266 /** 267 * @param bool 268 */ 269 public function setKeepWithNext($keepWithNext) 270 { 271 $this->keepWithNext = $keepWithNext; 272 } 273 /** 274 * @return bool 275 */ 276 public function getKeepWithNext() 277 { 278 return $this->keepWithNext; 279 } 280 /** 281 * @param float 282 */ 283 public function setLineSpacing($lineSpacing) 284 { 285 $this->lineSpacing = $lineSpacing; 286 } 287 /** 288 * @return float 289 */ 290 public function getLineSpacing() 291 { 292 return $this->lineSpacing; 293 } 294 /** 295 * @param string 296 */ 297 public function setNamedStyleType($namedStyleType) 298 { 299 $this->namedStyleType = $namedStyleType; 300 } 301 /** 302 * @return string 303 */ 304 public function getNamedStyleType() 305 { 306 return $this->namedStyleType; 307 } 308 /** 309 * @param Shading 310 */ 311 public function setShading(Shading $shading) 312 { 313 $this->shading = $shading; 314 } 315 /** 316 * @return Shading 317 */ 318 public function getShading() 319 { 320 return $this->shading; 321 } 322 /** 323 * @param Dimension 324 */ 325 public function setSpaceAbove(Dimension $spaceAbove) 326 { 327 $this->spaceAbove = $spaceAbove; 328 } 329 /** 330 * @return Dimension 331 */ 332 public function getSpaceAbove() 333 { 334 return $this->spaceAbove; 335 } 336 /** 337 * @param Dimension 338 */ 339 public function setSpaceBelow(Dimension $spaceBelow) 340 { 341 $this->spaceBelow = $spaceBelow; 342 } 343 /** 344 * @return Dimension 345 */ 346 public function getSpaceBelow() 347 { 348 return $this->spaceBelow; 349 } 350 /** 351 * @param string 352 */ 353 public function setSpacingMode($spacingMode) 354 { 355 $this->spacingMode = $spacingMode; 356 } 357 /** 358 * @return string 359 */ 360 public function getSpacingMode() 361 { 362 return $this->spacingMode; 363 } 364 /** 365 * @param TabStop[] 366 */ 367 public function setTabStops($tabStops) 368 { 369 $this->tabStops = $tabStops; 370 } 371 /** 372 * @return TabStop[] 373 */ 374 public function getTabStops() 375 { 376 return $this->tabStops; 377 } 378} 379 380// Adding a class alias for backwards compatibility with the previous class name. 381class_alias(ParagraphStyle::class, 'Google_Service_Docs_ParagraphStyle'); 382