127 lines
2.3 KiB
PHP
Raw Normal View History

<?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code. For the full list of
* contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
*
* @see https://github.com/PHPOffice/PHPWord
2022-09-16 11:45:45 +02:00
*
2014-05-04 21:03:28 +04:00
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
*/
namespace PhpOffice\PhpWord\Style;
/**
2022-09-16 11:45:45 +02:00
* Table row style.
*
* @since 0.8.0
*/
class Row extends AbstractStyle
{
/**
2022-09-16 11:45:45 +02:00
* Repeat table row on every new page.
*
* @var bool
*/
private $tblHeader = false;
/**
2022-09-16 11:45:45 +02:00
* Table row cannot break across pages.
*
* @var bool
*/
private $cantSplit = false;
/**
2022-09-16 11:45:45 +02:00
* Table row exact height.
*
* @var bool
*/
private $exactHeight = false;
/**
2022-09-16 11:45:45 +02:00
* Create a new row style.
*/
public function __construct()
{
}
2014-03-17 07:26:25 +07:00
/**
2022-09-16 11:45:45 +02:00
* Is tblHeader.
2014-03-17 07:26:25 +07:00
*
2014-05-04 15:13:31 +07:00
* @return bool
*/
public function isTblHeader()
{
return $this->tblHeader;
}
/**
2022-09-16 11:45:45 +02:00
* Is tblHeader.
2014-05-04 15:13:31 +07:00
*
* @param bool $value
2022-09-16 11:45:45 +02:00
*
* @return self
2014-03-17 07:26:25 +07:00
*/
public function setTblHeader($value = true)
{
$this->tblHeader = $this->setBoolVal($value, $this->tblHeader);
2014-05-08 19:25:29 +07:00
return $this;
}
2014-03-17 07:26:25 +07:00
/**
2022-09-16 11:45:45 +02:00
* Is cantSplit.
2014-03-17 07:26:25 +07:00
*
2014-05-04 15:13:31 +07:00
* @return bool
2014-03-17 07:26:25 +07:00
*/
2014-05-04 15:13:31 +07:00
public function isCantSplit()
{
2014-05-04 15:13:31 +07:00
return $this->cantSplit;
}
2014-03-17 07:26:25 +07:00
/**
2022-09-16 11:45:45 +02:00
* Is cantSplit.
2014-03-17 07:26:25 +07:00
*
2014-05-04 15:13:31 +07:00
* @param bool $value
2022-09-16 11:45:45 +02:00
*
* @return self
2014-03-17 07:26:25 +07:00
*/
public function setCantSplit($value = true)
{
$this->cantSplit = $this->setBoolVal($value, $this->cantSplit);
2014-05-08 19:25:29 +07:00
return $this;
}
2014-03-17 07:26:25 +07:00
/**
2022-09-16 11:45:45 +02:00
* Is exactHeight.
2014-03-17 07:26:25 +07:00
*
2014-05-04 15:13:31 +07:00
* @return bool
2014-03-17 07:26:25 +07:00
*/
2014-05-04 15:13:31 +07:00
public function isExactHeight()
{
2014-05-04 15:13:31 +07:00
return $this->exactHeight;
}
/**
2022-09-16 11:45:45 +02:00
* Set exactHeight.
*
* @param bool $value
2022-09-16 11:45:45 +02:00
*
* @return self
*/
public function setExactHeight($value = true)
{
$this->exactHeight = $this->setBoolVal($value, $this->exactHeight);
2014-05-08 19:25:29 +07:00
return $this;
}
}