PHP Class Box\Spout\Writer\ODS\Helper\StyleHelper

Inheritance: extends Box\Spout\Writer\Common\Helper\AbstractStyleHelper
Afficher le fichier Open project: box/spout Class Usage Examples

Protected Properties

Свойство Type Description
$usedFontsSet [FONT_NAME] => [] Map whose keys contain all the fonts used

Méthodes publiques

Méthode Description
getContentXmlAutomaticStylesSectionContent ( integer $numWorksheets ) : string Returns the contents of the "" section, inside "content.xml" file.
getContentXmlFontFaceSectionContent ( ) : string Returns the contents of the "" section, inside "content.xml" file.
getStylesXMLFileContent ( integer $numWorksheets ) : string Returns the content of the "styles.xml" file, given a list of styles.
registerStyle ( Style $style ) : Style Registers the given style as a used style.

Méthodes protégées

Méthode Description
getAutomaticStylesSectionContent ( integer $numWorksheets ) : string Returns the content of the "" section, inside "styles.xml" file.
getFontFaceSectionContent ( ) : string Returns the content of the "" section, inside "styles.xml" file.
getMasterStylesSectionContent ( integer $numWorksheets ) : string Returns the content of the "" section, inside "styles.xml" file.
getStyleSectionContent ( Style $style ) : string Returns the contents of the "" section, inside "" section
getStylesSectionContent ( ) : string Returns the content of the "" section, inside "styles.xml" file.
getUsedFonts ( ) : string[]

Private Methods

Méthode Description
getBackgroundColorXMLContent ( Style $style ) : string Returns the contents of the background color definition for the "" section
getBorderXMLContent ( Style $style ) : string Returns the contents of the borders definition for the "" section
getFontSectionContent ( Style $style ) : string Returns the contents of the "" section, inside "" section
getTableCellPropertiesSectionContent ( Style $style ) : string Returns the contents of the "" section, inside "" section
getTextPropertiesSectionContent ( Style $style ) : string Returns the contents of the "" section, inside "" section
getWrapTextXMLContent ( ) : string Returns the contents of the wrap text definition for the "" section

Method Details

getAutomaticStylesSectionContent() protected méthode

Returns the content of the "" section, inside "styles.xml" file.
protected getAutomaticStylesSectionContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Résultat string

getContentXmlAutomaticStylesSectionContent() public méthode

Returns the contents of the "" section, inside "content.xml" file.
public getContentXmlAutomaticStylesSectionContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Résultat string

getContentXmlFontFaceSectionContent() public méthode

Returns the contents of the "" section, inside "content.xml" file.

getFontFaceSectionContent() protected méthode

Returns the content of the "" section, inside "styles.xml" file.
protected getFontFaceSectionContent ( ) : string
Résultat string

getMasterStylesSectionContent() protected méthode

Returns the content of the "" section, inside "styles.xml" file.
protected getMasterStylesSectionContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Résultat string

getStyleSectionContent() protected méthode

Returns the contents of the "" section, inside "" section
protected getStyleSectionContent ( Style $style ) : string
$style Box\Spout\Writer\Style\Style
Résultat string

getStylesSectionContent() protected méthode

Returns the content of the "" section, inside "styles.xml" file.
protected getStylesSectionContent ( ) : string
Résultat string

getStylesXMLFileContent() public méthode

Returns the content of the "styles.xml" file, given a list of styles.
public getStylesXMLFileContent ( integer $numWorksheets ) : string
$numWorksheets integer Number of worksheets created
Résultat string

getUsedFonts() protected méthode

protected getUsedFonts ( ) : string[]
Résultat string[] List of used fonts name

registerStyle() public méthode

Duplicate styles won't be registered more than once.
public registerStyle ( Style $style ) : Style
$style Box\Spout\Writer\Style\Style The style to be registered
Résultat Box\Spout\Writer\Style\Style The registered style, updated with an internal ID.

Property Details

$usedFontsSet protected_oe property

[FONT_NAME] => [] Map whose keys contain all the fonts used
protected $usedFontsSet