DggContainer.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. /**
  3. * PHPExcel_Shared_Escher_DggContainer
  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_Shared_Escher
  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_Shared_Escher_DggContainer
  28. {
  29. /**
  30. * Maximum shape index of all shapes in all drawings increased by one
  31. *
  32. * @var int
  33. */
  34. private $spIdMax;
  35. /**
  36. * Total number of drawings saved
  37. *
  38. * @var int
  39. */
  40. private $cDgSaved;
  41. /**
  42. * Total number of shapes saved (including group shapes)
  43. *
  44. * @var int
  45. */
  46. private $cSpSaved;
  47. /**
  48. * BLIP Store Container
  49. *
  50. * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  51. */
  52. private $bstoreContainer;
  53. /**
  54. * Array of options for the drawing group
  55. *
  56. * @var array
  57. */
  58. private $OPT = array();
  59. /**
  60. * Array of identifier clusters containg information about the maximum shape identifiers
  61. *
  62. * @var array
  63. */
  64. private $IDCLs = array();
  65. /**
  66. * Get maximum shape index of all shapes in all drawings (plus one)
  67. *
  68. * @return int
  69. */
  70. public function getSpIdMax()
  71. {
  72. return $this->spIdMax;
  73. }
  74. /**
  75. * Set maximum shape index of all shapes in all drawings (plus one)
  76. *
  77. * @param int
  78. */
  79. public function setSpIdMax($value)
  80. {
  81. $this->spIdMax = $value;
  82. }
  83. /**
  84. * Get total number of drawings saved
  85. *
  86. * @return int
  87. */
  88. public function getCDgSaved()
  89. {
  90. return $this->cDgSaved;
  91. }
  92. /**
  93. * Set total number of drawings saved
  94. *
  95. * @param int
  96. */
  97. public function setCDgSaved($value)
  98. {
  99. $this->cDgSaved = $value;
  100. }
  101. /**
  102. * Get total number of shapes saved (including group shapes)
  103. *
  104. * @return int
  105. */
  106. public function getCSpSaved()
  107. {
  108. return $this->cSpSaved;
  109. }
  110. /**
  111. * Set total number of shapes saved (including group shapes)
  112. *
  113. * @param int
  114. */
  115. public function setCSpSaved($value)
  116. {
  117. $this->cSpSaved = $value;
  118. }
  119. /**
  120. * Get BLIP Store Container
  121. *
  122. * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  123. */
  124. public function getBstoreContainer()
  125. {
  126. return $this->bstoreContainer;
  127. }
  128. /**
  129. * Set BLIP Store Container
  130. *
  131. * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $bstoreContainer
  132. */
  133. public function setBstoreContainer($bstoreContainer)
  134. {
  135. $this->bstoreContainer = $bstoreContainer;
  136. }
  137. /**
  138. * Set an option for the drawing group
  139. *
  140. * @param int $property The number specifies the option
  141. * @param mixed $value
  142. */
  143. public function setOPT($property, $value)
  144. {
  145. $this->OPT[$property] = $value;
  146. }
  147. /**
  148. * Get an option for the drawing group
  149. *
  150. * @param int $property The number specifies the option
  151. * @return mixed
  152. */
  153. public function getOPT($property)
  154. {
  155. if (isset($this->OPT[$property])) {
  156. return $this->OPT[$property];
  157. }
  158. return null;
  159. }
  160. /**
  161. * Get identifier clusters
  162. *
  163. * @return array
  164. */
  165. public function getIDCLs()
  166. {
  167. return $this->IDCLs;
  168. }
  169. /**
  170. * Set identifier clusters. array(<drawingId> => <max shape id>, ...)
  171. *
  172. * @param array $pValue
  173. */
  174. public function setIDCLs($pValue)
  175. {
  176. $this->IDCLs = $pValue;
  177. }
  178. }