[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/spout/src/Spout/Writer/ODS/Helper/ -> StyleHelper.php (summary)

(no description)

File Size: 264 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StyleHelper:: (10 methods):
  registerStyle()
  getUsedFonts()
  getStylesXMLFileContent()
  getFontFaceSectionContent()
  getStylesSectionContent()
  getAutomaticStylesSectionContent()
  getMasterStylesSectionContent()
  getContentXmlFontFaceSectionContent()
  getContentXmlAutomaticStylesSectionContent()
  getStyleSectionContent()


Class: StyleHelper  - X-Ref

Class StyleHelper
This class provides helper functions to manage styles

registerStyle($style)   X-Ref
Registers the given style as a used style.
Duplicate styles won't be registered more than once.

param: \Box\Spout\Writer\Style\Style $style The style to be registered
return: \Box\Spout\Writer\Style\Style The registered style, updated with an internal ID.

getUsedFonts()   X-Ref

return: string[] List of used fonts name

getStylesXMLFileContent($numWorksheets)   X-Ref
Returns the content of the "styles.xml" file, given a list of styles.

param: int $numWorksheets Number of worksheets created
return: string

getFontFaceSectionContent()   X-Ref
Returns the content of the "<office:font-face-decls>" section, inside "styles.xml" file.

return: string

getStylesSectionContent()   X-Ref
Returns the content of the "<office:styles>" section, inside "styles.xml" file.

return: string

getAutomaticStylesSectionContent($numWorksheets)   X-Ref
Returns the content of the "<office:automatic-styles>" section, inside "styles.xml" file.

param: int $numWorksheets Number of worksheets created
return: string

getMasterStylesSectionContent($numWorksheets)   X-Ref
Returns the content of the "<office:master-styles>" section, inside "styles.xml" file.

param: int $numWorksheets Number of worksheets created
return: string

getContentXmlFontFaceSectionContent()   X-Ref
Returns the contents of the "<office:font-face-decls>" section, inside "content.xml" file.

return: string

getContentXmlAutomaticStylesSectionContent($numWorksheets)   X-Ref
Returns the contents of the "<office:automatic-styles>" section, inside "content.xml" file.

param: int $numWorksheets Number of worksheets created
return: string

getStyleSectionContent($style)   X-Ref
Returns the contents of the "<style:style>" section, inside "<office:automatic-styles>" section

param: \Box\Spout\Writer\Style\Style $style
return: string



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1