5
* Copyright (c) 2006 - 2009 PHPExcel
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
* @package PHPExcel_Worksheet
23
* @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
24
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25
* @version 1.7.0, 2009-08-10
30
* PHPExcel_Worksheet_RowDimension
33
* @package PHPExcel_Worksheet
34
* @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
36
class PHPExcel_Worksheet_RowDimension
48
* When this is set to a negative value, the row height should be ignored by IWriter
66
private $_outlineLevel = 0;
76
* Create a new PHPExcel_Worksheet_RowDimension
78
* @param int $pIndex Numeric row index
80
public function __construct($pIndex = 0)
83
$this->_rowIndex = $pIndex;
84
$this->_rowHeight = -1;
85
$this->_visible = true;
86
$this->_outlineLevel = 0;
87
$this->_collapsed = false;
95
public function getRowIndex() {
96
return $this->_rowIndex;
103
* @return PHPExcel_Worksheet_RowDimension
105
public function setRowIndex($pValue) {
106
$this->_rowIndex = $pValue;
115
public function getRowHeight() {
116
return $this->_rowHeight;
122
* @param double $pValue
123
* @return PHPExcel_Worksheet_RowDimension
125
public function setRowHeight($pValue = -1) {
126
$this->_rowHeight = $pValue;
135
public function getVisible() {
136
return $this->_visible;
142
* @param bool $pValue
143
* @return PHPExcel_Worksheet_RowDimension
145
public function setVisible($pValue = true) {
146
$this->_visible = $pValue;
155
public function getOutlineLevel() {
156
return $this->_outlineLevel;
162
* Value must be between 0 and 7
166
* @return PHPExcel_Worksheet_RowDimension
168
public function setOutlineLevel($pValue) {
169
if ($pValue < 0 || $pValue > 7) {
170
throw new Exception("Outline level must range between 0 and 7.");
173
$this->_outlineLevel = $pValue;
182
public function getCollapsed() {
183
return $this->_collapsed;
189
* @param bool $pValue
190
* @return PHPExcel_Worksheet_RowDimension
192
public function setCollapsed($pValue = true) {
193
$this->_collapsed = $pValue;
198
* Implement PHP __clone to create a deep clone, not just a shallow copy.
200
public function __clone() {
201
$vars = get_object_vars($this);
202
foreach ($vars as $key => $value) {
203
if (is_object($value)) {
204
$this->$key = clone $value;
206
$this->$key = $value;