PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/common/libraries/plugin/phpexcel/PHPExcel/Shared/Escher/DggContainer.php

https://bitbucket.org/ywarnier/chamilo-dev
PHP | 204 lines | 62 code | 18 blank | 124 comment | 1 complexity | c42e55045fed883adf320e8dda8e0465 MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0, GPL-3.0, MIT
  1. <?php
  2. /**
  3. * PHPExcel
  4. *
  5. * Copyright (c) 2006 - 2011 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 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
  24. * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
  25. * @version 1.7.6, 2011-02-27
  26. */
  27. /**
  28. * PHPExcel_Shared_Escher_DggContainer
  29. *
  30. * @category PHPExcel
  31. * @package PHPExcel_Shared_Escher
  32. * @copyright Copyright (c) 2006 - 2011 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. {
  164. return $this->_OPT[$property];
  165. }
  166. return null;
  167. }
  168. /**
  169. * Get identifier clusters
  170. *
  171. * @return array
  172. */
  173. public function getIDCLs()
  174. {
  175. return $this->_IDCLs;
  176. }
  177. /**
  178. * Set identifier clusters. array(<drawingId> => <max shape id>, ...)
  179. *
  180. * @param array $pValue
  181. */
  182. public function setIDCLs($pValue)
  183. {
  184. $this->_IDCLs = $pValue;
  185. }
  186. }