94 $this->formatCode = null;
107 return $this->
parent->getSharedComponent()->getNumberFormat();
119 return [
'numberFormat' => $array];
139 if ($this->isSupervisor) {
142 if (isset($pStyles[
'formatCode'])) {
157 if ($this->isSupervisor) {
177 $pValue = self::FORMAT_GENERAL;
179 if ($this->isSupervisor) {
180 $styleArray = $this->
getStyleArray([
'formatCode' => $pValue]);
183 $this->formatCode = $pValue;
197 if ($this->isSupervisor) {
213 if ($this->isSupervisor) {
214 $styleArray = $this->
getStyleArray([
'formatCode' => self::builtInFormatCode($pValue)]);
218 $this->formatCode = self::builtInFormatCode($pValue);
252 if (self::$builtInFormats === null) {
253 self::$builtInFormats = [];
256 self::$builtInFormats[0] = self::FORMAT_GENERAL;
257 self::$builtInFormats[1] =
'0';
258 self::$builtInFormats[2] =
'0.00';
259 self::$builtInFormats[3] =
'#,##0';
260 self::$builtInFormats[4] =
'#,##0.00';
262 self::$builtInFormats[9] =
'0%';
263 self::$builtInFormats[10] =
'0.00%';
264 self::$builtInFormats[11] =
'0.00E+00';
265 self::$builtInFormats[12] =
'# ?/?';
266 self::$builtInFormats[13] =
'# ??/??';
267 self::$builtInFormats[14] =
'm/d/yyyy';
268 self::$builtInFormats[15] =
'd-mmm-yy';
269 self::$builtInFormats[16] =
'd-mmm';
270 self::$builtInFormats[17] =
'mmm-yy';
271 self::$builtInFormats[18] =
'h:mm AM/PM';
272 self::$builtInFormats[19] =
'h:mm:ss AM/PM';
273 self::$builtInFormats[20] =
'h:mm';
274 self::$builtInFormats[21] =
'h:mm:ss';
275 self::$builtInFormats[22] =
'm/d/yyyy h:mm';
277 self::$builtInFormats[37] =
'#,##0_);(#,##0)';
278 self::$builtInFormats[38] =
'#,##0_);[Red](#,##0)';
279 self::$builtInFormats[39] =
'#,##0.00_);(#,##0.00)';
280 self::$builtInFormats[40] =
'#,##0.00_);[Red](#,##0.00)';
282 self::$builtInFormats[44] =
'_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)';
283 self::$builtInFormats[45] =
'mm:ss';
284 self::$builtInFormats[46] =
'[h]:mm:ss';
285 self::$builtInFormats[47] =
'mm:ss.0';
286 self::$builtInFormats[48] =
'##0.0E+0';
287 self::$builtInFormats[49] =
'@';
290 self::$builtInFormats[27] =
'[$-404]e/m/d';
291 self::$builtInFormats[30] =
'm/d/yy';
292 self::$builtInFormats[36] =
'[$-404]e/m/d';
293 self::$builtInFormats[50] =
'[$-404]e/m/d';
294 self::$builtInFormats[57] =
'[$-404]e/m/d';
297 self::$builtInFormats[59] =
't0';
298 self::$builtInFormats[60] =
't0.00';
299 self::$builtInFormats[61] =
't#,##0';
300 self::$builtInFormats[62] =
't#,##0.00';
301 self::$builtInFormats[67] =
't0%';
302 self::$builtInFormats[68] =
't0.00%';
303 self::$builtInFormats[69] =
't# ?/?';
304 self::$builtInFormats[70] =
't# ??/??';
307 self::$builtInFormats[28] =
'[$-411]ggge"年"m"月"d"日"';
308 self::$builtInFormats[29] =
'[$-411]ggge"年"m"月"d"日"';
309 self::$builtInFormats[31] =
'yyyy"年"m"月"d"日"';
310 self::$builtInFormats[32] =
'h"時"mm"分"';
311 self::$builtInFormats[33] =
'h"時"mm"分"ss"秒"';
312 self::$builtInFormats[34] =
'yyyy"年"m"月"';
313 self::$builtInFormats[35] =
'm"月"d"日"';
314 self::$builtInFormats[51] =
'[$-411]ggge"年"m"月"d"日"';
315 self::$builtInFormats[52] =
'yyyy"年"m"月"';
316 self::$builtInFormats[53] =
'm"月"d"日"';
317 self::$builtInFormats[54] =
'[$-411]ggge"年"m"月"d"日"';
318 self::$builtInFormats[55] =
'yyyy"年"m"月"';
319 self::$builtInFormats[56] =
'm"月"d"日"';
320 self::$builtInFormats[58] =
'[$-411]ggge"年"m"月"d"日"';
323 self::$flippedBuiltInFormats = array_flip(self::$builtInFormats);
337 $pIndex = (int) $pIndex;
340 self::fillBuiltInFormatCodes();
343 if (isset(self::$builtInFormats[$pIndex])) {
344 return self::$builtInFormats[$pIndex];
360 self::fillBuiltInFormatCodes();
363 if (array_key_exists(
$formatCode, self::$flippedBuiltInFormats)) {
377 if ($this->isSupervisor) {
407 return $exportedArray;
getSelectedCells()
Get the currently active cell coordinate in currently active sheet.
getActiveSheet()
Get the currently active sheet.
exportArray2(array &$exportedArray, string $index, $objOrValue)
Populate array from exportArray1.