1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PhpOffice\PhpSpreadsheet\Shared\Escher; |
4
|
|
|
|
5
|
|
|
class DggContainer |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* Maximum shape index of all shapes in all drawings increased by one. |
9
|
|
|
*/ |
10
|
|
|
private int $spIdMax; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Total number of drawings saved. |
14
|
|
|
*/ |
15
|
|
|
private int $cDgSaved; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* Total number of shapes saved (including group shapes). |
19
|
|
|
*/ |
20
|
|
|
private int $cSpSaved; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* BLIP Store Container. |
24
|
|
|
* |
25
|
|
|
* @var ?DggContainer\BstoreContainer |
26
|
|
|
*/ |
27
|
|
|
private ?DggContainer\BstoreContainer $bstoreContainer = null; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* Array of options for the drawing group. |
31
|
|
|
*/ |
32
|
|
|
private array $OPT = []; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Array of identifier clusters containg information about the maximum shape identifiers. |
36
|
|
|
*/ |
37
|
|
|
private array $IDCLs = []; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Get maximum shape index of all shapes in all drawings (plus one). |
41
|
|
|
*/ |
42
|
14 |
|
public function getSpIdMax(): int |
43
|
|
|
{ |
44
|
14 |
|
return $this->spIdMax; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* Set maximum shape index of all shapes in all drawings (plus one). |
49
|
|
|
*/ |
50
|
14 |
|
public function setSpIdMax(int $value): void |
51
|
|
|
{ |
52
|
14 |
|
$this->spIdMax = $value; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* Get total number of drawings saved. |
57
|
|
|
*/ |
58
|
14 |
|
public function getCDgSaved(): int |
59
|
|
|
{ |
60
|
14 |
|
return $this->cDgSaved; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* Set total number of drawings saved. |
65
|
|
|
*/ |
66
|
14 |
|
public function setCDgSaved(int $value): void |
67
|
|
|
{ |
68
|
14 |
|
$this->cDgSaved = $value; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* Get total number of shapes saved (including group shapes). |
73
|
|
|
*/ |
74
|
14 |
|
public function getCSpSaved(): int |
75
|
|
|
{ |
76
|
14 |
|
return $this->cSpSaved; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Set total number of shapes saved (including group shapes). |
81
|
|
|
*/ |
82
|
14 |
|
public function setCSpSaved(int $value): void |
83
|
|
|
{ |
84
|
14 |
|
$this->cSpSaved = $value; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Get BLIP Store Container. |
89
|
|
|
*/ |
90
|
20 |
|
public function getBstoreContainer(): ?DggContainer\BstoreContainer |
91
|
|
|
{ |
92
|
20 |
|
return $this->bstoreContainer; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Set BLIP Store Container. |
97
|
|
|
*/ |
98
|
20 |
|
public function setBstoreContainer(DggContainer\BstoreContainer $bstoreContainer): void |
99
|
|
|
{ |
100
|
20 |
|
$this->bstoreContainer = $bstoreContainer; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* Set an option for the drawing group. |
105
|
|
|
* |
106
|
|
|
* @param int $property The number specifies the option |
107
|
|
|
*/ |
108
|
14 |
|
public function setOPT(int $property, mixed $value): void |
109
|
|
|
{ |
110
|
14 |
|
$this->OPT[$property] = $value; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* Get an option for the drawing group. |
115
|
|
|
* |
116
|
|
|
* @param int $property The number specifies the option |
117
|
|
|
*/ |
118
|
|
|
public function getOPT(int $property): mixed |
119
|
|
|
{ |
120
|
|
|
return $this->OPT[$property] ?? null; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* Get identifier clusters. |
125
|
|
|
*/ |
126
|
14 |
|
public function getIDCLs(): array |
127
|
|
|
{ |
128
|
14 |
|
return $this->IDCLs; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* Set identifier clusters. [<drawingId> => <max shape id>, ...]. |
133
|
|
|
*/ |
134
|
14 |
|
public function setIDCLs(array $IDCLs): void |
135
|
|
|
{ |
136
|
14 |
|
$this->IDCLs = $IDCLs; |
137
|
|
|
} |
138
|
|
|
} |
139
|
|
|
|