killmenow
This commit is contained in:
parent
e31558771c
commit
bca69a7fcd
@ -12,13 +12,10 @@ class StyleRegistry
|
|||||||
{
|
{
|
||||||
/** @var array [SERIALIZED_STYLE] => [STYLE_ID] mapping table, keeping track of the registered styles */
|
/** @var array [SERIALIZED_STYLE] => [STYLE_ID] mapping table, keeping track of the registered styles */
|
||||||
protected $serializedStyleToStyleIdMappingTable = [];
|
protected $serializedStyleToStyleIdMappingTable = [];
|
||||||
protected $serializedNumberFormatToFormatIdMappingTable = [];
|
|
||||||
|
|
||||||
/** @var array [STYLE_ID] => [STYLE] mapping table, keeping track of the registered styles */
|
/** @var array [STYLE_ID] => [STYLE] mapping table, keeping track of the registered styles */
|
||||||
protected $styleIdToStyleMappingTable = [];
|
protected $styleIdToStyleMappingTable = [];
|
||||||
|
|
||||||
protected $numberFormats = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Style $defaultStyle
|
* @param Style $defaultStyle
|
||||||
*/
|
*/
|
||||||
|
@ -72,8 +72,9 @@ EOD;
|
|||||||
|
|
||||||
$content = '<numFmts count="'.count($registeredFormats).'">';
|
$content = '<numFmts count="'.count($registeredFormats).'">';
|
||||||
/** @var NumberFormat $format */
|
/** @var NumberFormat $format */
|
||||||
foreach ($registeredFormats as $format) {
|
foreach ($registeredFormats as $styleId) {
|
||||||
|
$style = $this->styleRegistry->getStyleFromStyleId($styleId);
|
||||||
|
$format = $style->getNumberFormat();
|
||||||
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
|
$content .= '<numFmt numFmtId="'.$format->getId().'" formatCode="'.$format->getFormatCode().'"/>';
|
||||||
}
|
}
|
||||||
$content .= '</numFmts>';
|
$content .= '</numFmts>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user