PageMargins.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. /**
  8. * PHPExcel_Worksheet_PageMargins
  9. *
  10. * @category PHPExcel
  11. * @package PHPExcel_Worksheet
  12. * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
  13. */
  14. class PHPExcel_Worksheet_PageMargins
  15. {
  16. /**
  17. * Left
  18. *
  19. * @var double
  20. */
  21. private $left = 0.7;
  22. /**
  23. * Right
  24. *
  25. * @var double
  26. */
  27. private $right = 0.7;
  28. /**
  29. * Top
  30. *
  31. * @var double
  32. */
  33. private $top = 0.75;
  34. /**
  35. * Bottom
  36. *
  37. * @var double
  38. */
  39. private $bottom = 0.75;
  40. /**
  41. * Header
  42. *
  43. * @var double
  44. */
  45. private $header = 0.3;
  46. /**
  47. * Footer
  48. *
  49. * @var double
  50. */
  51. private $footer = 0.3;
  52. /**
  53. * Create a new PHPExcel_Worksheet_PageMargins
  54. */
  55. public function __construct()
  56. {
  57. }
  58. /**
  59. * Get Left
  60. *
  61. * @return double
  62. */
  63. public function getLeft()
  64. {
  65. return $this->left;
  66. }
  67. /**
  68. * Set Left
  69. *
  70. * @param double $pValue
  71. * @return PHPExcel_Worksheet_PageMargins
  72. */
  73. public function setLeft($pValue)
  74. {
  75. $this->left = $pValue;
  76. return $this;
  77. }
  78. /**
  79. * Get Right
  80. *
  81. * @return double
  82. */
  83. public function getRight()
  84. {
  85. return $this->right;
  86. }
  87. /**
  88. * Set Right
  89. *
  90. * @param double $pValue
  91. * @return PHPExcel_Worksheet_PageMargins
  92. */
  93. public function setRight($pValue)
  94. {
  95. $this->right = $pValue;
  96. return $this;
  97. }
  98. /**
  99. * Get Top
  100. *
  101. * @return double
  102. */
  103. public function getTop()
  104. {
  105. return $this->top;
  106. }
  107. /**
  108. * Set Top
  109. *
  110. * @param double $pValue
  111. * @return PHPExcel_Worksheet_PageMargins
  112. */
  113. public function setTop($pValue)
  114. {
  115. $this->top = $pValue;
  116. return $this;
  117. }
  118. /**
  119. * Get Bottom
  120. *
  121. * @return double
  122. */
  123. public function getBottom()
  124. {
  125. return $this->bottom;
  126. }
  127. /**
  128. * Set Bottom
  129. *
  130. * @param double $pValue
  131. * @return PHPExcel_Worksheet_PageMargins
  132. */
  133. public function setBottom($pValue)
  134. {
  135. $this->bottom = $pValue;
  136. return $this;
  137. }
  138. /**
  139. * Get Header
  140. *
  141. * @return double
  142. */
  143. public function getHeader()
  144. {
  145. return $this->header;
  146. }
  147. /**
  148. * Set Header
  149. *
  150. * @param double $pValue
  151. * @return PHPExcel_Worksheet_PageMargins
  152. */
  153. public function setHeader($pValue)
  154. {
  155. $this->header = $pValue;
  156. return $this;
  157. }
  158. /**
  159. * Get Footer
  160. *
  161. * @return double
  162. */
  163. public function getFooter()
  164. {
  165. return $this->footer;
  166. }
  167. /**
  168. * Set Footer
  169. *
  170. * @param double $pValue
  171. * @return PHPExcel_Worksheet_PageMargins
  172. */
  173. public function setFooter($pValue)
  174. {
  175. $this->footer = $pValue;
  176. return $this;
  177. }
  178. /**
  179. * Implement PHP __clone to create a deep clone, not just a shallow copy.
  180. */
  181. public function __clone()
  182. {
  183. $vars = get_object_vars($this);
  184. foreach ($vars as $key => $value) {
  185. if (is_object($value)) {
  186. $this->$key = clone $value;
  187. } else {
  188. $this->$key = $value;
  189. }
  190. }
  191. }
  192. }