For God so loved the world, that He gave His only begotten Son, that all who believe in Him should not perish but have everlasting life
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
2.9 KiB

  1. <?php
  2. /**
  3. * PHPExcel_Worksheet_RowDimension
  4. *
  5. * Copyright (c) 2006 - 2015 PHPExcel
  6. *
  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.
  11. *
  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.
  16. *
  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
  20. *
  21. * @category PHPExcel
  22. * @package PHPExcel_Worksheet
  23. * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
  24. * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
  25. * @version ##VERSION##, ##DATE##
  26. */
  27. class PHPExcel_Worksheet_RowDimension extends PHPExcel_Worksheet_Dimension
  28. {
  29. /**
  30. * Row index
  31. *
  32. * @var int
  33. */
  34. private $rowIndex;
  35. /**
  36. * Row height (in pt)
  37. *
  38. * When this is set to a negative value, the row height should be ignored by IWriter
  39. *
  40. * @var double
  41. */
  42. private $height = -1;
  43. /**
  44. * ZeroHeight for Row?
  45. *
  46. * @var bool
  47. */
  48. private $zeroHeight = false;
  49. /**
  50. * Create a new PHPExcel_Worksheet_RowDimension
  51. *
  52. * @param int $pIndex Numeric row index
  53. */
  54. public function __construct($pIndex = 0)
  55. {
  56. // Initialise values
  57. $this->rowIndex = $pIndex;
  58. // set dimension as unformatted by default
  59. parent::__construct(null);
  60. }
  61. /**
  62. * Get Row Index
  63. *
  64. * @return int
  65. */
  66. public function getRowIndex()
  67. {
  68. return $this->rowIndex;
  69. }
  70. /**
  71. * Set Row Index
  72. *
  73. * @param int $pValue
  74. * @return PHPExcel_Worksheet_RowDimension
  75. */
  76. public function setRowIndex($pValue)
  77. {
  78. $this->rowIndex = $pValue;
  79. return $this;
  80. }
  81. /**
  82. * Get Row Height
  83. *
  84. * @return double
  85. */
  86. public function getRowHeight()
  87. {
  88. return $this->height;
  89. }
  90. /**
  91. * Set Row Height
  92. *
  93. * @param double $pValue
  94. * @return PHPExcel_Worksheet_RowDimension
  95. */
  96. public function setRowHeight($pValue = -1)
  97. {
  98. $this->height = $pValue;
  99. return $this;
  100. }
  101. /**
  102. * Get ZeroHeight
  103. *
  104. * @return bool
  105. */
  106. public function getZeroHeight()
  107. {
  108. return $this->zeroHeight;
  109. }
  110. /**
  111. * Set ZeroHeight
  112. *
  113. * @param bool $pValue
  114. * @return PHPExcel_Worksheet_RowDimension
  115. */
  116. public function setZeroHeight($pValue = false)
  117. {
  118. $this->zeroHeight = $pValue;
  119. return $this;
  120. }
  121. }