No Description

DggContainer.php 4.0KB

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