DggContainer.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. class PHPExcel_Shared_Escher_DggContainer
  8. {
  9. /**
  10. * Maximum shape index of all shapes in all drawings increased by one
  11. *
  12. * @var int
  13. */
  14. private $spIdMax;
  15. /**
  16. * Total number of drawings saved
  17. *
  18. * @var int
  19. */
  20. private $cDgSaved;
  21. /**
  22. * Total number of shapes saved (including group shapes)
  23. *
  24. * @var int
  25. */
  26. private $cSpSaved;
  27. /**
  28. * BLIP Store Container
  29. *
  30. * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  31. */
  32. private $bstoreContainer;
  33. /**
  34. * Array of options for the drawing group
  35. *
  36. * @var array
  37. */
  38. private $OPT = array();
  39. /**
  40. * Array of identifier clusters containg information about the maximum shape identifiers
  41. *
  42. * @var array
  43. */
  44. private $IDCLs = array();
  45. /**
  46. * Get maximum shape index of all shapes in all drawings (plus one)
  47. *
  48. * @return int
  49. */
  50. public function getSpIdMax()
  51. {
  52. return $this->spIdMax;
  53. }
  54. /**
  55. * Set maximum shape index of all shapes in all drawings (plus one)
  56. *
  57. * @param int
  58. */
  59. public function setSpIdMax($value)
  60. {
  61. $this->spIdMax = $value;
  62. }
  63. /**
  64. * Get total number of drawings saved
  65. *
  66. * @return int
  67. */
  68. public function getCDgSaved()
  69. {
  70. return $this->cDgSaved;
  71. }
  72. /**
  73. * Set total number of drawings saved
  74. *
  75. * @param int
  76. */
  77. public function setCDgSaved($value)
  78. {
  79. $this->cDgSaved = $value;
  80. }
  81. /**
  82. * Get total number of shapes saved (including group shapes)
  83. *
  84. * @return int
  85. */
  86. public function getCSpSaved()
  87. {
  88. return $this->cSpSaved;
  89. }
  90. /**
  91. * Set total number of shapes saved (including group shapes)
  92. *
  93. * @param int
  94. */
  95. public function setCSpSaved($value)
  96. {
  97. $this->cSpSaved = $value;
  98. }
  99. /**
  100. * Get BLIP Store Container
  101. *
  102. * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  103. */
  104. public function getBstoreContainer()
  105. {
  106. return $this->bstoreContainer;
  107. }
  108. /**
  109. * Set BLIP Store Container
  110. *
  111. * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $bstoreContainer
  112. */
  113. public function setBstoreContainer($bstoreContainer)
  114. {
  115. $this->bstoreContainer = $bstoreContainer;
  116. }
  117. /**
  118. * Set an option for the drawing group
  119. *
  120. * @param int $property The number specifies the option
  121. * @param mixed $value
  122. */
  123. public function setOPT($property, $value)
  124. {
  125. $this->OPT[$property] = $value;
  126. }
  127. /**
  128. * Get an option for the drawing group
  129. *
  130. * @param int $property The number specifies the option
  131. * @return mixed
  132. */
  133. public function getOPT($property)
  134. {
  135. if (isset($this->OPT[$property])) {
  136. return $this->OPT[$property];
  137. }
  138. return null;
  139. }
  140. /**
  141. * Get identifier clusters
  142. *
  143. * @return array
  144. */
  145. public function getIDCLs()
  146. {
  147. return $this->IDCLs;
  148. }
  149. /**
  150. * Set identifier clusters. array(<drawingId> => <max shape id>, ...)
  151. *
  152. * @param array $pValue
  153. */
  154. public function setIDCLs($pValue)
  155. {
  156. $this->IDCLs = $pValue;
  157. }
  158. }