RowDimension.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. class PHPExcel_Worksheet_RowDimension extends PHPExcel_Worksheet_Dimension
  8. {
  9. /**
  10. * Row index
  11. *
  12. * @var int
  13. */
  14. private $rowIndex;
  15. /**
  16. * Row height (in pt)
  17. *
  18. * When this is set to a negative value, the row height should be ignored by IWriter
  19. *
  20. * @var double
  21. */
  22. private $height = -1;
  23. /**
  24. * ZeroHeight for Row?
  25. *
  26. * @var bool
  27. */
  28. private $zeroHeight = false;
  29. /**
  30. * Create a new PHPExcel_Worksheet_RowDimension
  31. *
  32. * @param int $pIndex Numeric row index
  33. */
  34. public function __construct($pIndex = 0)
  35. {
  36. // Initialise values
  37. $this->rowIndex = $pIndex;
  38. // set dimension as unformatted by default
  39. parent::__construct(null);
  40. }
  41. /**
  42. * Get Row Index
  43. *
  44. * @return int
  45. */
  46. public function getRowIndex()
  47. {
  48. return $this->rowIndex;
  49. }
  50. /**
  51. * Set Row Index
  52. *
  53. * @param int $pValue
  54. * @return PHPExcel_Worksheet_RowDimension
  55. */
  56. public function setRowIndex($pValue)
  57. {
  58. $this->rowIndex = $pValue;
  59. return $this;
  60. }
  61. /**
  62. * Get Row Height
  63. *
  64. * @return double
  65. */
  66. public function getRowHeight()
  67. {
  68. return $this->height;
  69. }
  70. /**
  71. * Set Row Height
  72. *
  73. * @param double $pValue
  74. * @return PHPExcel_Worksheet_RowDimension
  75. */
  76. public function setRowHeight($pValue = -1)
  77. {
  78. $this->height = $pValue;
  79. return $this;
  80. }
  81. /**
  82. * Get ZeroHeight
  83. *
  84. * @return bool
  85. */
  86. public function getZeroHeight()
  87. {
  88. return $this->zeroHeight;
  89. }
  90. /**
  91. * Set ZeroHeight
  92. *
  93. * @param bool $pValue
  94. * @return PHPExcel_Worksheet_RowDimension
  95. */
  96. public function setZeroHeight($pValue = false)
  97. {
  98. $this->zeroHeight = $pValue;
  99. return $this;
  100. }
  101. }