Class CommonStyles
java.lang.Object
com.independentsoft.office.odf.styles.CommonStyles
Represents common styles used in a document. A common style is a style chosen by a user for a document or some portion thereof.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the CommonStyles class.CommonStyles(byte[] buffer, Document mainDocument)Instantiates a new common styles. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the automatic style.Specifies how bibliography entries are displayed in-line, and how they are displayed in a bibliography index.Gets the default styles of the cell.Gets the default styles of the char.Gets the default styles of the column.Gets the default styles of the drawing page.Gets the default styles of the graphic.Gets the default styles of the paragraph.Gets the default styles of the row.Gets the default styles of the ruby.Gets the default styles of the selection.Gets the default styles of the table.Gets the default styles of the text.Contains a collection of FillImage objects.getFonts()Contains all the font face declarations for a document.Contains a collection of Gradient objects.Contains a collection of Hatch objects.Contains a collection of LinearGradient objects.Gets the line numbering.Contains a collection of Marker objects.Gets the master style.Contains a collection of NotesConfiguration objects.Contains a collection of OpacityGradient objects.Contains a collection of OutlineLevelStyle objects.Contains a collection of RadialGradient objects.Contains a collection of StrokeDash objects.Contains a collection of Style objects.voidrenameStyle(Style style, String newName)Rename style.voidsetAutomaticStyles(AutomaticStyles automaticStyles)Sets the automatic style.voidsetBibliographyConfiguration(BibliographyConfiguration bibliographyConfiguration)Specifies how bibliography entries are displayed in-line, and how they are displayed in a bibliography index.voidsetDefaultCellStyle(DefaultCellStyle defaultCellStyle)Sets the default styles of the cell.voidsetDefaultChartStyle(DefaultChartStyle defaultChartStyle)Sets the default styles of the char.voidsetDefaultColumnStyle(DefaultColumnStyle defaultColumnStyle)Sets the default styles of the column.voidsetDefaultDrawingPageStyle(DefaultDrawingPageStyle defaultDrawingPageStyle)Sets the default styles of the drawing page.voidsetDefaultGraphicStyle(DefaultGraphicStyle defaultGraphicStyle)Sets the default styles of the graphic.voidsetDefaultParagraphStyle(DefaultParagraphStyle defaultParagraphStyle)Sets the default styles of the paragraph.voidsetDefaultRowStyle(DefaultRowStyle defaultRowStyle)Sets the default styles of the row.voidsetDefaultRubyStyle(DefaultRubyStyle defaultRubyStyle)Sets the default styles of the ruby.voidsetDefaultSectionStyle(DefaultSectionStyle defaultSectionStyle)Sets the default styles of the selection.voidsetDefaultTableStyle(DefaultTableStyle defaultTableStyle)Sets the default styles of the table.voidsetDefaultTextStyle(DefaultTextStyle defaultTextStyle)Sets the default styles of the text.voidsetLineNumberingConfiguration(LineNumberingConfiguration lineNumberingConfiguration)Sets the line numbering.voidsetMasterStyles(MasterStyles masterStyles)Sets the master style.toString()Converts the value of the current CommonStyles object to its equivalent string representation.
-
Constructor Details
-
CommonStyles
public CommonStyles()Initializes a new instance of the CommonStyles class. -
CommonStyles
Instantiates a new common styles.- Parameters:
buffer- the buffermainDocument- the main document- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
renameStyle
Rename style.- Parameters:
style- the stylenewName- the new name
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current CommonStyles object to its equivalent string representation. -
getFonts
Contains all the font face declarations for a document.- Returns:
- the fonts
-
getStyles
Contains a collection of Style objects.- Returns:
- the styles
-
getOutlineLevelStyles
Contains a collection of OutlineLevelStyle objects.- Returns:
- the outline level styles
-
getAutomaticStyles
Gets the automatic style.- Returns:
- the automatic styles
-
setAutomaticStyles
Sets the automatic style.- Parameters:
automaticStyles- the new automatic styles
-
getMasterStyles
Gets the master style.- Returns:
- the master styles
-
setMasterStyles
Sets the master style.- Parameters:
masterStyles- the new master styles
-
getFillImages
Contains a collection of FillImage objects.- Returns:
- the fill images
-
getHatchs
Contains a collection of Hatch objects.- Returns:
- the hatchs
-
getMarkers
Contains a collection of Marker objects.- Returns:
- the markers
-
getStrokeDashs
Contains a collection of StrokeDash objects.- Returns:
- the stroke dashs
-
getGradients
Contains a collection of Gradient objects.- Returns:
- the gradients
-
getOpacityGradients
Contains a collection of OpacityGradient objects.- Returns:
- the opacity gradients
-
getLinearGradients
Contains a collection of LinearGradient objects.- Returns:
- the linear gradients
-
getRadialGradients
Contains a collection of RadialGradient objects.- Returns:
- the radial gradients
-
getNotesConfigurations
Contains a collection of NotesConfiguration objects.- Returns:
- the notes configurations
-
getLineNumberingConfiguration
Gets the line numbering.- Returns:
- the line numbering configuration
-
setLineNumberingConfiguration
Sets the line numbering.- Parameters:
lineNumberingConfiguration- the new line numbering configuration
-
getBibliographyConfiguration
Specifies how bibliography entries are displayed in-line, and how they are displayed in a bibliography index.- Returns:
- the bibliography configuration
-
setBibliographyConfiguration
Specifies how bibliography entries are displayed in-line, and how they are displayed in a bibliography index.- Parameters:
bibliographyConfiguration- the new bibliography configuration
-
getDefaultCellStyle
Gets the default styles of the cell.- Returns:
- the default cell style
-
setDefaultCellStyle
Sets the default styles of the cell.- Parameters:
defaultCellStyle- the new default cell style
-
getDefaultChartStyle
Gets the default styles of the char.- Returns:
- the default chart style
-
setDefaultChartStyle
Sets the default styles of the char.- Parameters:
defaultChartStyle- the new default chart style
-
getDefaultColumnStyle
Gets the default styles of the column.- Returns:
- the default column style
-
setDefaultColumnStyle
Sets the default styles of the column.- Parameters:
defaultColumnStyle- the new default column style
-
getDefaultDrawingPageStyle
Gets the default styles of the drawing page.- Returns:
- the default drawing page style
-
setDefaultDrawingPageStyle
Sets the default styles of the drawing page.- Parameters:
defaultDrawingPageStyle- the new default drawing page style
-
getDefaultGraphicStyle
Gets the default styles of the graphic.- Returns:
- the default graphic style
-
setDefaultGraphicStyle
Sets the default styles of the graphic.- Parameters:
defaultGraphicStyle- the new default graphic style
-
getDefaultParagraphStyle
Gets the default styles of the paragraph.- Returns:
- the default paragraph style
-
setDefaultParagraphStyle
Sets the default styles of the paragraph.- Parameters:
defaultParagraphStyle- the new default paragraph style
-
getDefaultRowStyle
Gets the default styles of the row.- Returns:
- the default row style
-
setDefaultRowStyle
Sets the default styles of the row.- Parameters:
defaultRowStyle- the new default row style
-
getDefaultRubyStyle
Gets the default styles of the ruby.- Returns:
- the default ruby style
-
setDefaultRubyStyle
Sets the default styles of the ruby.- Parameters:
defaultRubyStyle- the new default ruby style
-
getDefaultSectionStyle
Gets the default styles of the selection.- Returns:
- the default section style
-
setDefaultSectionStyle
Sets the default styles of the selection.- Parameters:
defaultSectionStyle- the new default section style
-
getDefaultTableStyle
Gets the default styles of the table.- Returns:
- the default table style
-
setDefaultTableStyle
Sets the default styles of the table.- Parameters:
defaultTableStyle- the new default table style
-
getDefaultTextStyle
Gets the default styles of the text.- Returns:
- the default text style
-
setDefaultTextStyle
Sets the default styles of the text.- Parameters:
defaultTextStyle- the new default text style
-