BSE.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. namespace PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer;
  3. class BSE
  4. {
  5. const BLIPTYPE_ERROR = 0x00;
  6. const BLIPTYPE_UNKNOWN = 0x01;
  7. const BLIPTYPE_EMF = 0x02;
  8. const BLIPTYPE_WMF = 0x03;
  9. const BLIPTYPE_PICT = 0x04;
  10. const BLIPTYPE_JPEG = 0x05;
  11. const BLIPTYPE_PNG = 0x06;
  12. const BLIPTYPE_DIB = 0x07;
  13. const BLIPTYPE_TIFF = 0x11;
  14. const BLIPTYPE_CMYKJPEG = 0x12;
  15. /**
  16. * The parent BLIP Store Entry Container.
  17. *
  18. * @var \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer
  19. */
  20. private $parent;
  21. /**
  22. * The BLIP (Big Large Image or Picture).
  23. *
  24. * @var BSE\Blip
  25. */
  26. private $blip;
  27. /**
  28. * The BLIP type.
  29. *
  30. * @var int
  31. */
  32. private $blipType;
  33. /**
  34. * Set parent BLIP Store Entry Container.
  35. *
  36. * @param \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer $parent
  37. */
  38. public function setParent($parent)
  39. {
  40. $this->parent = $parent;
  41. }
  42. /**
  43. * Get the BLIP.
  44. *
  45. * @return BSE\Blip
  46. */
  47. public function getBlip()
  48. {
  49. return $this->blip;
  50. }
  51. /**
  52. * Set the BLIP.
  53. *
  54. * @param BSE\Blip $blip
  55. */
  56. public function setBlip($blip)
  57. {
  58. $this->blip = $blip;
  59. $blip->setParent($this);
  60. }
  61. /**
  62. * Get the BLIP type.
  63. *
  64. * @return int
  65. */
  66. public function getBlipType()
  67. {
  68. return $this->blipType;
  69. }
  70. /**
  71. * Set the BLIP type.
  72. *
  73. * @param int $blipType
  74. */
  75. public function setBlipType($blipType)
  76. {
  77. $this->blipType = $blipType;
  78. }
  79. }