PHP 클래스 Box\Spout\Writer\ODS\Helper\StyleHelper

상속: extends Box\Spout\Writer\Common\Helper\AbstractStyleHelper
파일 보기 프로젝트 열기: box/spout 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$usedFontsSet [FONT_NAME] => [] Map whose keys contain all the fonts used

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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[]

비공개 메소드들

메소드 설명
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

메소드 상세

getAutomaticStylesSectionContent() 보호된 메소드

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

getContentXmlAutomaticStylesSectionContent() 공개 메소드

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

getContentXmlFontFaceSectionContent() 공개 메소드

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

getFontFaceSectionContent() 보호된 메소드

Returns the content of the "" section, inside "styles.xml" file.
protected getFontFaceSectionContent ( ) : string
리턴 string

getMasterStylesSectionContent() 보호된 메소드

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

getStyleSectionContent() 보호된 메소드

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

getStylesSectionContent() 보호된 메소드

Returns the content of the "" section, inside "styles.xml" file.
protected getStylesSectionContent ( ) : string
리턴 string

getStylesXMLFileContent() 공개 메소드

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

getUsedFonts() 보호된 메소드

protected getUsedFonts ( ) : string[]
리턴 string[] List of used fonts name

registerStyle() 공개 메소드

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
리턴 Box\Spout\Writer\Style\Style The registered style, updated with an internal ID.

프로퍼티 상세

$usedFontsSet 보호되어 있는 프로퍼티

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