writer2latex.office
public class OfficeStyleFamily extends Object
Constructor Summary | |
---|---|
OfficeStyleFamily(Class styleClass) Create a new OfficeStyleFamily based on a class |
Method Summary | |
---|---|
OfficeStyle | getDefaultStyle() Get the default style for this family |
String | getDisplayName(String sName) Get the display name for the style with the specified name.
|
OfficeStyle | getStyle(String sName) Get a style by name |
OfficeStyle | getStyleByDisplayName(String sDisplayName) Get a style by display name. |
Enumeration | getStylesEnumeration() Get all named styles in the family (ie. excluding the default style) |
void | loadStyleFromDOM(Node node, boolean bAutomatic) Load a style from a DOM representation |
void | setDefaultStyle(OfficeStyle style) Define the default style for this family, ie. an unnamed style providing
defaults for some style properties. |
Parameters: styleClass the subclass of OfficeStyle used to represent styles in this family
Returns: the default style, or null if none is defined
Parameters: sName the style name
Returns: the display name, or null if the style does not exist
Parameters: sName the name of the style
Returns: the style, or null if such a style does not exist
Parameters: sDisplayName the display name of the style
Returns: the style, or null if such a style does not exist
Returns: an enumeration of all styles represented by OfficeStyle objects
Parameters: node the style:... node representing the style bAutomatic if true, the style is an automatic style
Parameters: style the new default style