[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\Docs;
|
---|
| 19 |
|
---|
| 20 | class 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 | /**
|
---|
| 72 | * @var bool
|
---|
| 73 | */
|
---|
| 74 | public $pageBreakBefore;
|
---|
| 75 | protected $shadingType = Shading::class;
|
---|
| 76 | protected $shadingDataType = '';
|
---|
| 77 | protected $spaceAboveType = Dimension::class;
|
---|
| 78 | protected $spaceAboveDataType = '';
|
---|
| 79 | protected $spaceBelowType = Dimension::class;
|
---|
| 80 | protected $spaceBelowDataType = '';
|
---|
| 81 | /**
|
---|
| 82 | * @var string
|
---|
| 83 | */
|
---|
| 84 | public $spacingMode;
|
---|
| 85 | protected $tabStopsType = TabStop::class;
|
---|
| 86 | protected $tabStopsDataType = 'array';
|
---|
| 87 |
|
---|
| 88 | /**
|
---|
| 89 | * @param string
|
---|
| 90 | */
|
---|
| 91 | public function setAlignment($alignment)
|
---|
| 92 | {
|
---|
| 93 | $this->alignment = $alignment;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @return string
|
---|
| 97 | */
|
---|
| 98 | public function getAlignment()
|
---|
| 99 | {
|
---|
| 100 | return $this->alignment;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @param bool
|
---|
| 104 | */
|
---|
| 105 | public function setAvoidWidowAndOrphan($avoidWidowAndOrphan)
|
---|
| 106 | {
|
---|
| 107 | $this->avoidWidowAndOrphan = $avoidWidowAndOrphan;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return bool
|
---|
| 111 | */
|
---|
| 112 | public function getAvoidWidowAndOrphan()
|
---|
| 113 | {
|
---|
| 114 | return $this->avoidWidowAndOrphan;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param ParagraphBorder
|
---|
| 118 | */
|
---|
| 119 | public function setBorderBetween(ParagraphBorder $borderBetween)
|
---|
| 120 | {
|
---|
| 121 | $this->borderBetween = $borderBetween;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return ParagraphBorder
|
---|
| 125 | */
|
---|
| 126 | public function getBorderBetween()
|
---|
| 127 | {
|
---|
| 128 | return $this->borderBetween;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param ParagraphBorder
|
---|
| 132 | */
|
---|
| 133 | public function setBorderBottom(ParagraphBorder $borderBottom)
|
---|
| 134 | {
|
---|
| 135 | $this->borderBottom = $borderBottom;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return ParagraphBorder
|
---|
| 139 | */
|
---|
| 140 | public function getBorderBottom()
|
---|
| 141 | {
|
---|
| 142 | return $this->borderBottom;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param ParagraphBorder
|
---|
| 146 | */
|
---|
| 147 | public function setBorderLeft(ParagraphBorder $borderLeft)
|
---|
| 148 | {
|
---|
| 149 | $this->borderLeft = $borderLeft;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return ParagraphBorder
|
---|
| 153 | */
|
---|
| 154 | public function getBorderLeft()
|
---|
| 155 | {
|
---|
| 156 | return $this->borderLeft;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param ParagraphBorder
|
---|
| 160 | */
|
---|
| 161 | public function setBorderRight(ParagraphBorder $borderRight)
|
---|
| 162 | {
|
---|
| 163 | $this->borderRight = $borderRight;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return ParagraphBorder
|
---|
| 167 | */
|
---|
| 168 | public function getBorderRight()
|
---|
| 169 | {
|
---|
| 170 | return $this->borderRight;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param ParagraphBorder
|
---|
| 174 | */
|
---|
| 175 | public function setBorderTop(ParagraphBorder $borderTop)
|
---|
| 176 | {
|
---|
| 177 | $this->borderTop = $borderTop;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return ParagraphBorder
|
---|
| 181 | */
|
---|
| 182 | public function getBorderTop()
|
---|
| 183 | {
|
---|
| 184 | return $this->borderTop;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param string
|
---|
| 188 | */
|
---|
| 189 | public function setDirection($direction)
|
---|
| 190 | {
|
---|
| 191 | $this->direction = $direction;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return string
|
---|
| 195 | */
|
---|
| 196 | public function getDirection()
|
---|
| 197 | {
|
---|
| 198 | return $this->direction;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param string
|
---|
| 202 | */
|
---|
| 203 | public function setHeadingId($headingId)
|
---|
| 204 | {
|
---|
| 205 | $this->headingId = $headingId;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return string
|
---|
| 209 | */
|
---|
| 210 | public function getHeadingId()
|
---|
| 211 | {
|
---|
| 212 | return $this->headingId;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param Dimension
|
---|
| 216 | */
|
---|
| 217 | public function setIndentEnd(Dimension $indentEnd)
|
---|
| 218 | {
|
---|
| 219 | $this->indentEnd = $indentEnd;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return Dimension
|
---|
| 223 | */
|
---|
| 224 | public function getIndentEnd()
|
---|
| 225 | {
|
---|
| 226 | return $this->indentEnd;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param Dimension
|
---|
| 230 | */
|
---|
| 231 | public function setIndentFirstLine(Dimension $indentFirstLine)
|
---|
| 232 | {
|
---|
| 233 | $this->indentFirstLine = $indentFirstLine;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return Dimension
|
---|
| 237 | */
|
---|
| 238 | public function getIndentFirstLine()
|
---|
| 239 | {
|
---|
| 240 | return $this->indentFirstLine;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param Dimension
|
---|
| 244 | */
|
---|
| 245 | public function setIndentStart(Dimension $indentStart)
|
---|
| 246 | {
|
---|
| 247 | $this->indentStart = $indentStart;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return Dimension
|
---|
| 251 | */
|
---|
| 252 | public function getIndentStart()
|
---|
| 253 | {
|
---|
| 254 | return $this->indentStart;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param bool
|
---|
| 258 | */
|
---|
| 259 | public function setKeepLinesTogether($keepLinesTogether)
|
---|
| 260 | {
|
---|
| 261 | $this->keepLinesTogether = $keepLinesTogether;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return bool
|
---|
| 265 | */
|
---|
| 266 | public function getKeepLinesTogether()
|
---|
| 267 | {
|
---|
| 268 | return $this->keepLinesTogether;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param bool
|
---|
| 272 | */
|
---|
| 273 | public function setKeepWithNext($keepWithNext)
|
---|
| 274 | {
|
---|
| 275 | $this->keepWithNext = $keepWithNext;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return bool
|
---|
| 279 | */
|
---|
| 280 | public function getKeepWithNext()
|
---|
| 281 | {
|
---|
| 282 | return $this->keepWithNext;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param float
|
---|
| 286 | */
|
---|
| 287 | public function setLineSpacing($lineSpacing)
|
---|
| 288 | {
|
---|
| 289 | $this->lineSpacing = $lineSpacing;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return float
|
---|
| 293 | */
|
---|
| 294 | public function getLineSpacing()
|
---|
| 295 | {
|
---|
| 296 | return $this->lineSpacing;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param string
|
---|
| 300 | */
|
---|
| 301 | public function setNamedStyleType($namedStyleType)
|
---|
| 302 | {
|
---|
| 303 | $this->namedStyleType = $namedStyleType;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return string
|
---|
| 307 | */
|
---|
| 308 | public function getNamedStyleType()
|
---|
| 309 | {
|
---|
| 310 | return $this->namedStyleType;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param bool
|
---|
| 314 | */
|
---|
| 315 | public function setPageBreakBefore($pageBreakBefore)
|
---|
| 316 | {
|
---|
| 317 | $this->pageBreakBefore = $pageBreakBefore;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return bool
|
---|
| 321 | */
|
---|
| 322 | public function getPageBreakBefore()
|
---|
| 323 | {
|
---|
| 324 | return $this->pageBreakBefore;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param Shading
|
---|
| 328 | */
|
---|
| 329 | public function setShading(Shading $shading)
|
---|
| 330 | {
|
---|
| 331 | $this->shading = $shading;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return Shading
|
---|
| 335 | */
|
---|
| 336 | public function getShading()
|
---|
| 337 | {
|
---|
| 338 | return $this->shading;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param Dimension
|
---|
| 342 | */
|
---|
| 343 | public function setSpaceAbove(Dimension $spaceAbove)
|
---|
| 344 | {
|
---|
| 345 | $this->spaceAbove = $spaceAbove;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return Dimension
|
---|
| 349 | */
|
---|
| 350 | public function getSpaceAbove()
|
---|
| 351 | {
|
---|
| 352 | return $this->spaceAbove;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param Dimension
|
---|
| 356 | */
|
---|
| 357 | public function setSpaceBelow(Dimension $spaceBelow)
|
---|
| 358 | {
|
---|
| 359 | $this->spaceBelow = $spaceBelow;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return Dimension
|
---|
| 363 | */
|
---|
| 364 | public function getSpaceBelow()
|
---|
| 365 | {
|
---|
| 366 | return $this->spaceBelow;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param string
|
---|
| 370 | */
|
---|
| 371 | public function setSpacingMode($spacingMode)
|
---|
| 372 | {
|
---|
| 373 | $this->spacingMode = $spacingMode;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return string
|
---|
| 377 | */
|
---|
| 378 | public function getSpacingMode()
|
---|
| 379 | {
|
---|
| 380 | return $this->spacingMode;
|
---|
| 381 | }
|
---|
| 382 | /**
|
---|
| 383 | * @param TabStop[]
|
---|
| 384 | */
|
---|
| 385 | public function setTabStops($tabStops)
|
---|
| 386 | {
|
---|
| 387 | $this->tabStops = $tabStops;
|
---|
| 388 | }
|
---|
| 389 | /**
|
---|
| 390 | * @return TabStop[]
|
---|
| 391 | */
|
---|
| 392 | public function getTabStops()
|
---|
| 393 | {
|
---|
| 394 | return $this->tabStops;
|
---|
| 395 | }
|
---|
| 396 | }
|
---|
| 397 |
|
---|
| 398 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 399 | class_alias(ParagraphStyle::class, 'Google_Service_Docs_ParagraphStyle');
|
---|