ca8906e9306d5c5d26efffc9f6ab89210ec49b8d.svn-base 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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_BstoreContainer_BSE
  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_BstoreContainer_BSE
  35. {
  36. const BLIPTYPE_ERROR = 0x00;
  37. const BLIPTYPE_UNKNOWN = 0x01;
  38. const BLIPTYPE_EMF = 0x02;
  39. const BLIPTYPE_WMF = 0x03;
  40. const BLIPTYPE_PICT = 0x04;
  41. const BLIPTYPE_JPEG = 0x05;
  42. const BLIPTYPE_PNG = 0x06;
  43. const BLIPTYPE_DIB = 0x07;
  44. const BLIPTYPE_TIFF = 0x11;
  45. const BLIPTYPE_CMYKJPEG = 0x12;
  46. /**
  47. * The parent BLIP Store Entry Container
  48. *
  49. * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  50. */
  51. private $_parent;
  52. /**
  53. * The BLIP (Big Large Image or Picture)
  54. *
  55. * @var PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip
  56. */
  57. private $_blip;
  58. /**
  59. * The BLIP type
  60. *
  61. * @var int
  62. */
  63. private $_blipType;
  64. /**
  65. * Set parent BLIP Store Entry Container
  66. *
  67. * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer $parent
  68. */
  69. public function setParent($parent)
  70. {
  71. $this->_parent = $parent;
  72. }
  73. /**
  74. * Get the BLIP
  75. *
  76. * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip
  77. */
  78. public function getBlip()
  79. {
  80. return $this->_blip;
  81. }
  82. /**
  83. * Set the BLIP
  84. *
  85. * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip $blip
  86. */
  87. public function setBlip($blip)
  88. {
  89. $this->_blip = $blip;
  90. $blip->setParent($this);
  91. }
  92. /**
  93. * Get the BLIP type
  94. *
  95. * @return int
  96. */
  97. public function getBlipType()
  98. {
  99. return $this->_blipType;
  100. }
  101. /**
  102. * Set the BLIP type
  103. *
  104. * @param int
  105. */
  106. public function setBlipType($blipType)
  107. {
  108. $this->_blipType = $blipType;
  109. }
  110. }