| 1 | <?php |
||
| 13 | class StyleRegistry extends \Box\Spout\Writer\Common\Manager\Style\StyleRegistry |
||
| 14 | { |
||
| 15 | /** @var array [FONT_NAME] => [] Map whose keys contain all the fonts used */ |
||
| 16 | protected $usedFontsSet = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Registers the given style as a used style. |
||
| 20 | * Duplicate styles won't be registered more than once. |
||
| 21 | * |
||
| 22 | * @param Style $style The style to be registered |
||
| 23 | * @return Style The registered style, updated with an internal ID. |
||
| 24 | */ |
||
| 25 | 44 | public function registerStyle(Style $style) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return string[] List of used fonts name |
||
| 35 | */ |
||
| 36 | 35 | public function getUsedFonts() |
|
| 40 | } |
||
| 41 |