1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Copyright (c) 2006 - 2016 PhpSpreadsheet |
7
|
|
|
* |
8
|
|
|
* This library is free software; you can redistribute it and/or |
9
|
|
|
* modify it under the terms of the GNU Lesser General Public |
10
|
|
|
* License as published by the Free Software Foundation; either |
11
|
|
|
* version 2.1 of the License, or (at your option) any later version. |
12
|
|
|
* |
13
|
|
|
* This library is distributed in the hope that it will be useful, |
14
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16
|
|
|
* Lesser General Public License for more details. |
17
|
|
|
* |
18
|
|
|
* You should have received a copy of the GNU Lesser General Public |
19
|
|
|
* License along with this library; if not, write to the Free Software |
20
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
21
|
|
|
* |
22
|
|
|
* @category PhpSpreadsheet |
23
|
|
|
* @copyright Copyright (c) 2006 - 2016 PhpSpreadsheet (https://github.com/PHPOffice/PhpSpreadsheet) |
24
|
|
|
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL |
25
|
|
|
* @version ##VERSION##, ##DATE## |
26
|
|
|
*/ |
27
|
|
|
class BSE |
28
|
|
|
{ |
29
|
|
|
const BLIPTYPE_ERROR = 0x00; |
30
|
|
|
const BLIPTYPE_UNKNOWN = 0x01; |
31
|
|
|
const BLIPTYPE_EMF = 0x02; |
32
|
|
|
const BLIPTYPE_WMF = 0x03; |
33
|
|
|
const BLIPTYPE_PICT = 0x04; |
34
|
|
|
const BLIPTYPE_JPEG = 0x05; |
35
|
|
|
const BLIPTYPE_PNG = 0x06; |
36
|
|
|
const BLIPTYPE_DIB = 0x07; |
37
|
|
|
const BLIPTYPE_TIFF = 0x11; |
38
|
|
|
const BLIPTYPE_CMYKJPEG = 0x12; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* The parent BLIP Store Entry Container |
42
|
|
|
* |
43
|
|
|
* @var \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer |
44
|
|
|
*/ |
45
|
|
|
private $parent; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* The BLIP (Big Large Image or Picture) |
49
|
|
|
* |
50
|
|
|
* @var BSE\Blip |
51
|
|
|
*/ |
52
|
|
|
private $blip; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* The BLIP type |
56
|
|
|
* |
57
|
|
|
* @var int |
58
|
|
|
*/ |
59
|
|
|
private $blipType; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* Set parent BLIP Store Entry Container |
63
|
|
|
* |
64
|
|
|
* @param \PhpOffice\PhpSpreadsheet\Shared\Escher\DggContainer\BstoreContainer $parent |
65
|
|
|
*/ |
66
|
7 |
|
public function setParent($parent) |
67
|
|
|
{ |
68
|
7 |
|
$this->parent = $parent; |
69
|
7 |
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Get the BLIP |
73
|
|
|
* |
74
|
|
|
* @return BSE\Blip |
75
|
|
|
*/ |
76
|
2 |
|
public function getBlip() |
77
|
|
|
{ |
78
|
2 |
|
return $this->blip; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Set the BLIP |
83
|
|
|
* |
84
|
|
|
* @param BSE\Blip $blip |
85
|
|
|
*/ |
86
|
7 |
|
public function setBlip($blip) |
87
|
|
|
{ |
88
|
7 |
|
$this->blip = $blip; |
89
|
7 |
|
$blip->setParent($this); |
90
|
7 |
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* Get the BLIP type |
94
|
|
|
* |
95
|
|
|
* @return int |
96
|
|
|
*/ |
97
|
2 |
|
public function getBlipType() |
98
|
|
|
{ |
99
|
2 |
|
return $this->blipType; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* Set the BLIP type |
104
|
|
|
* |
105
|
|
|
* @param int |
106
|
|
|
*/ |
107
|
7 |
|
public function setBlipType($blipType) |
108
|
|
|
{ |
109
|
7 |
|
$this->blipType = $blipType; |
110
|
7 |
|
} |
111
|
|
|
} |
112
|
|
|
|