2010-08-26 19:14:53 +00:00
|
|
|
<?php
|
2015-05-07 00:14:36 +00:00
|
|
|
|
2010-08-26 19:14:53 +00:00
|
|
|
/**
|
2015-05-07 00:14:36 +00:00
|
|
|
* PHPExcel_Worksheet_RowDimension
|
2010-08-26 19:14:53 +00:00
|
|
|
*
|
2015-05-02 22:50:37 +00:00
|
|
|
* Copyright (c) 2006 - 2015 PHPExcel
|
2010-08-26 19:14:53 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2010-12-09 12:07:50 +00:00
|
|
|
*
|
2010-08-26 19:14:53 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2010-12-09 12:07:50 +00:00
|
|
|
*
|
2010-08-26 19:14:53 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
* @category PHPExcel
|
|
|
|
* @package PHPExcel_Worksheet
|
2015-05-02 22:50:37 +00:00
|
|
|
* @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
|
2015-05-07 00:14:36 +00:00
|
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
2010-08-26 19:14:53 +00:00
|
|
|
* @version ##VERSION##, ##DATE##
|
|
|
|
*/
|
2015-05-17 09:22:51 +00:00
|
|
|
class PHPExcel_Worksheet_RowDimension extends PHPExcel_Worksheet_Dimension
|
2010-12-09 12:07:50 +00:00
|
|
|
{
|
2015-05-07 00:14:36 +00:00
|
|
|
/**
|
|
|
|
* Row index
|
|
|
|
*
|
|
|
|
* @var int
|
|
|
|
*/
|
2015-05-17 09:22:51 +00:00
|
|
|
private $rowIndex;
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2015-05-07 00:14:36 +00:00
|
|
|
/**
|
|
|
|
* Row height (in pt)
|
|
|
|
*
|
|
|
|
* When this is set to a negative value, the row height should be ignored by IWriter
|
|
|
|
*
|
|
|
|
* @var double
|
|
|
|
*/
|
2015-05-17 09:22:51 +00:00
|
|
|
private $height = -1;
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2015-05-07 00:14:36 +00:00
|
|
|
/**
|
|
|
|
* ZeroHeight for Row?
|
|
|
|
*
|
|
|
|
* @var bool
|
|
|
|
*/
|
2015-05-17 09:22:51 +00:00
|
|
|
private $zeroHeight = false;
|
2010-08-26 19:14:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new PHPExcel_Worksheet_RowDimension
|
|
|
|
*
|
|
|
|
* @param int $pIndex Numeric row index
|
|
|
|
*/
|
|
|
|
public function __construct($pIndex = 0)
|
|
|
|
{
|
2015-05-07 00:14:36 +00:00
|
|
|
// Initialise values
|
2015-05-17 09:22:51 +00:00
|
|
|
$this->rowIndex = $pIndex;
|
2010-08-26 19:14:53 +00:00
|
|
|
|
2015-05-17 09:22:51 +00:00
|
|
|
// set dimension as unformatted by default
|
|
|
|
parent::__construct(null);
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2010-08-26 19:14:53 +00:00
|
|
|
/**
|
|
|
|
* Get Row Index
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
2015-05-07 00:14:36 +00:00
|
|
|
public function getRowIndex()
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
return $this->rowIndex;
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2010-08-26 19:14:53 +00:00
|
|
|
/**
|
|
|
|
* Set Row Index
|
|
|
|
*
|
|
|
|
* @param int $pValue
|
|
|
|
* @return PHPExcel_Worksheet_RowDimension
|
|
|
|
*/
|
2015-05-07 00:14:36 +00:00
|
|
|
public function setRowIndex($pValue)
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
$this->rowIndex = $pValue;
|
2015-05-07 00:14:36 +00:00
|
|
|
return $this;
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2010-08-26 19:14:53 +00:00
|
|
|
/**
|
|
|
|
* Get Row Height
|
|
|
|
*
|
|
|
|
* @return double
|
|
|
|
*/
|
2015-05-07 00:14:36 +00:00
|
|
|
public function getRowHeight()
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
return $this->height;
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2010-08-26 19:14:53 +00:00
|
|
|
/**
|
|
|
|
* Set Row Height
|
|
|
|
*
|
|
|
|
* @param double $pValue
|
|
|
|
* @return PHPExcel_Worksheet_RowDimension
|
|
|
|
*/
|
2015-05-07 00:14:36 +00:00
|
|
|
public function setRowHeight($pValue = -1)
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
$this->height = $pValue;
|
2015-05-07 00:14:36 +00:00
|
|
|
return $this;
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
2010-12-09 12:07:50 +00:00
|
|
|
|
2015-05-07 00:14:36 +00:00
|
|
|
/**
|
|
|
|
* Get ZeroHeight
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getZeroHeight()
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
return $this->zeroHeight;
|
2015-05-07 00:14:36 +00:00
|
|
|
}
|
2012-09-09 10:38:32 +00:00
|
|
|
|
2015-05-07 00:14:36 +00:00
|
|
|
/**
|
|
|
|
* Set ZeroHeight
|
|
|
|
*
|
|
|
|
* @param bool $pValue
|
|
|
|
* @return PHPExcel_Worksheet_RowDimension
|
|
|
|
*/
|
|
|
|
public function setZeroHeight($pValue = false)
|
|
|
|
{
|
2015-05-17 09:22:51 +00:00
|
|
|
$this->zeroHeight = $pValue;
|
2015-05-07 00:14:36 +00:00
|
|
|
return $this;
|
2010-08-26 19:14:53 +00:00
|
|
|
}
|
|
|
|
}
|