Class AutomaticStyles
java.lang.Object
com.independentsoft.office.odf.styles.AutomaticStyles
Represents automatic styles used in a document.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the AutomaticStyles class.AutomaticStyles(InternalXMLStreamReader reader)Instantiates a new automatic styles. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains collection of PageLayout objects.Contains collection of Style objects.voidrenameStyle(Style style, String newName)Rename style.toString()Converts the value of the current AutomaticStyles object to its equivalent string representation.
-
Constructor Details
-
AutomaticStyles
public AutomaticStyles()Initializes a new instance of the AutomaticStyles class. -
AutomaticStyles
Instantiates a new automatic styles.- Parameters:
reader- the reader- 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 AutomaticStyles object to its equivalent string representation. -
getStyles
Contains collection of Style objects.- Returns:
- the styles
-
getPageLayouts
Contains collection of PageLayout objects.- Returns:
- the page layouts
-