public class StylesContainerImpl extends Object implements StylesContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
StylesContainerImpl.Dest
A destination.
|
| Modifier and Type | Method and Description |
|---|---|
TableCellStyle |
addChildCellStyle(TableCellStyle style,
DataStyle dataStyle)
Add a child style that mixes the cell style with a data style to the container
|
boolean |
addContentFontFaceContainerStyle(FontFaceContainerStyle ffcStyle)
Add a cell style to the content container and register the font face
|
boolean |
addContentStyle(ObjectStyle objectStyle)
Add an object style (style:style) to content.xml/automatic-styles
|
boolean |
addDataStyle(DataStyle dataStyle)
Create a new data style into styles container.
|
boolean |
addMasterPageStyle(MasterPageStyle masterPageStyle)
Create a new master page style into styles container.
|
boolean |
addNewDataStyleFromCellStyle(TableCellStyle style)
Add the data style taken from a cell style
|
boolean |
addPageLayoutStyle(PageLayoutStyle pageLayoutStyle)
Add a page layout style
|
boolean |
addPageStyle(PageStyle ps)
Add a page style
|
boolean |
addStylesFontFaceContainerStyle(FontFaceContainerStyle ffcStyle)
Add a cell style to the content container and register the font face
|
boolean |
addStylesStyle(ObjectStyle objectStyle)
Add an object style to styles.xml/automatic-styles
|
void |
debug()
Enable debug mode
|
void |
freeze()
Freeze the container: no more add is allowed
|
com.github.jferard.fastods.odselement.HasFooterHeader |
hasFooterHeader() |
void |
setDataStylesMode(Container.Mode mode)
Set the new mode to use for data styles
|
void |
setMasterPageStyleMode(Container.Mode mode)
Set the new mode to use for master page style
|
void |
setObjectStyleMode(Container.Mode mode)
Set the new mode to use for styles in content.xml/automatic-styles, styles.xml/styles and
styles.xml/automatic-styles
|
void |
setPageLayoutStyleMode(Container.Mode mode)
Set the new mode to use for page layout style
|
void |
setPageStyleMode(Container.Mode mode)
Set the new mode to use for page style
|
void |
writeContentAutomaticStyles(XMLUtil util,
Appendable appendable)
Write the various styles in the automatic styles.
|
void |
writeFontFaceDecls(XMLUtil util,
Appendable appendable) |
void |
writeHiddenDataStyles(XMLUtil util,
Appendable appendable)
Write the data styles in the automatic-styles.
|
void |
writeMasterPageStyles(XMLUtil util,
Appendable appendable)
Write master page styles.
|
void |
writePageLayoutStyles(XMLUtil util,
Appendable appendable)
Write the page layout styles.
|
void |
writeStylesAutomaticStyles(XMLUtil util,
Appendable appendable)
Write styles to styles.xml/automatic-styles
|
void |
writeStylesCommonStyles(XMLUtil util,
Appendable appendable)
Write styles to styles.xml/common-styles
|
void |
writeVisibleDataStyles(XMLUtil util,
Appendable appendable)
Write data styles to styles.xml/common-styles
|
public TableCellStyle addChildCellStyle(TableCellStyle style, DataStyle dataStyle)
StylesContaineraddChildCellStyle in interface StylesContainerstyle - the cell styledataStyle - the data stylepublic boolean addContentFontFaceContainerStyle(FontFaceContainerStyle ffcStyle)
StylesContaineraddContentFontFaceContainerStyle in interface StylesContainerffcStyle - the cell style or the text stylepublic boolean addStylesFontFaceContainerStyle(FontFaceContainerStyle ffcStyle)
StylesContaineraddStylesFontFaceContainerStyle in interface StylesContainerffcStyle - the cell style or the text stylepublic boolean addDataStyle(DataStyle dataStyle)
StylesContaineraddDataStyle in interface StylesContainerdataStyle - the data style to addpublic void setDataStylesMode(Container.Mode mode)
StylesModeSettersetDataStylesMode in interface StylesModeSettermode - the mode (CREATE, UPDATE, CREATE_OR_UPDATE)public boolean addMasterPageStyle(MasterPageStyle masterPageStyle)
StylesContaineraddMasterPageStyle in interface StylesContainermasterPageStyle - the data style to addpublic void setMasterPageStyleMode(Container.Mode mode)
StylesModeSettersetMasterPageStyleMode in interface StylesModeSettermode - the mode (CREATE, UPDATE, CREATE_OR_UPDATE)public boolean addNewDataStyleFromCellStyle(TableCellStyle style)
StylesContaineraddNewDataStyleFromCellStyle in interface StylesContainerstyle - the cell stylepublic void setPageLayoutStyleMode(Container.Mode mode)
StylesModeSettersetPageLayoutStyleMode in interface StylesModeSettermode - the mode (CREATE, UPDATE, CREATE_OR_UPDATE)public boolean addPageLayoutStyle(PageLayoutStyle pageLayoutStyle)
StylesContaineraddPageLayoutStyle in interface StylesContainerpageLayoutStyle - the stylepublic void setPageStyleMode(Container.Mode mode)
StylesModeSettersetPageStyleMode in interface StylesModeSettermode - the mode (CREATE, UPDATE, CREATE_OR_UPDATE)public boolean addPageStyle(PageStyle ps)
StylesContaineraddPageStyle in interface StylesContainerps - the stylepublic void setObjectStyleMode(Container.Mode mode)
StylesModeSettersetObjectStyleMode in interface StylesModeSettermode - the mode (CREATE, UPDATE, CREATE_OR_UPDATE)public boolean addContentStyle(ObjectStyle objectStyle)
StylesContaineraddContentStyle in interface StylesContainerobjectStyle - the stylepublic boolean addStylesStyle(ObjectStyle objectStyle)
StylesContaineraddStylesStyle in interface StylesContainerobjectStyle - the stylepublic void debug()
public void freeze()
public com.github.jferard.fastods.odselement.HasFooterHeader hasFooterHeader()
public void writeContentAutomaticStyles(XMLUtil util, Appendable appendable) throws IOException
util - an XML utilappendable - the destinationIOException - if the styles can't be writtenpublic void writeHiddenDataStyles(XMLUtil util, Appendable appendable) throws IOException
util - an XML utilappendable - the destinationIOException - if the styles can't be writtenpublic void writePageLayoutStyles(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic void writeMasterPageStyles(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic void writeStylesAutomaticStyles(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic void writeStylesCommonStyles(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic void writeVisibleDataStyles(XMLUtil util, Appendable appendable) throws IOException
util - an utilappendable - the destinationIOException - if an I/O error occurspublic void writeFontFaceDecls(XMLUtil util, Appendable appendable) throws IOException
util - the util to write XMLappendable - where to writeIOException - if the font face declarations were not writtenCopyright © 2016–2021. All rights reserved.