[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * PHPExcel_Worksheet_RowDimension 5 * 6 * Copyright (c) 2006 - 2015 PHPExcel 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Lesser General Public 10 * License as published by the Free Software Foundation; either 11 * version 2.1 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Lesser General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with this library; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 * 22 * @category PHPExcel 23 * @package PHPExcel_Worksheet 24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel) 25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 26 * @version ##VERSION##, ##DATE## 27 */ 28 class PHPExcel_Worksheet_RowDimension extends PHPExcel_Worksheet_Dimension 29 { 30 /** 31 * Row index 32 * 33 * @var int 34 */ 35 private $rowIndex; 36 37 /** 38 * Row height (in pt) 39 * 40 * When this is set to a negative value, the row height should be ignored by IWriter 41 * 42 * @var double 43 */ 44 private $height = -1; 45 46 /** 47 * ZeroHeight for Row? 48 * 49 * @var bool 50 */ 51 private $zeroHeight = false; 52 53 /** 54 * Create a new PHPExcel_Worksheet_RowDimension 55 * 56 * @param int $pIndex Numeric row index 57 */ 58 public function __construct($pIndex = 0) 59 { 60 // Initialise values 61 $this->rowIndex = $pIndex; 62 63 // set dimension as unformatted by default 64 parent::__construct(null); 65 } 66 67 /** 68 * Get Row Index 69 * 70 * @return int 71 */ 72 public function getRowIndex() 73 { 74 return $this->rowIndex; 75 } 76 77 /** 78 * Set Row Index 79 * 80 * @param int $pValue 81 * @return PHPExcel_Worksheet_RowDimension 82 */ 83 public function setRowIndex($pValue) 84 { 85 $this->rowIndex = $pValue; 86 return $this; 87 } 88 89 /** 90 * Get Row Height 91 * 92 * @return double 93 */ 94 public function getRowHeight() 95 { 96 return $this->height; 97 } 98 99 /** 100 * Set Row Height 101 * 102 * @param double $pValue 103 * @return PHPExcel_Worksheet_RowDimension 104 */ 105 public function setRowHeight($pValue = -1) 106 { 107 $this->height = $pValue; 108 return $this; 109 } 110 111 /** 112 * Get ZeroHeight 113 * 114 * @return bool 115 */ 116 public function getZeroHeight() 117 { 118 return $this->zeroHeight; 119 } 120 121 /** 122 * Set ZeroHeight 123 * 124 * @param bool $pValue 125 * @return PHPExcel_Worksheet_RowDimension 126 */ 127 public function setZeroHeight($pValue = false) 128 { 129 $this->zeroHeight = $pValue; 130 return $this; 131 } 132 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |