writer2latex.xhtml
public abstract class StyleWithPropertiesConverterHelper extends StyleConverterHelper
This is an abstract class to convert an OpenDocument style family
represented by StyleWithProperties to CSS2 styles.
| Constructor Summary | |
|---|---|
| StyleWithPropertiesConverterHelper(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a new StyleWithPropertiesConverterHelper | |
| Method Summary | |
|---|---|
| abstract void | applyProperties(StyleWithProperties style, CSVList props, boolean bInherit) Convert formatting properties for a specific style. |
| void | applyStyle(String sStyleName, StyleInfo info) Apply a style, either by converting the style or by applying the
style map from the configuarion |
| String | getClassNamePrefix() Return a prefix to be used in generated css class names |
| abstract String | getDefaultTagName(StyleWithProperties style) Create default tag name to represent a specific style, e.g.
|
| String | getStyleDeclarations(String sIndent) Convert style information for used styles |
StyleWithPropertiesConverterHelperParameters: ofr an OfficeReader to read style information from config the configuration to use converter the main Converter class nType the type of xhtml to use
Parameters: style the style to convert props the CSVList object to add information to bInherit true if properties should be inherited from parent style(s)
Parameters: sStyleName name of the OpenDocument style info the StyleInfo object to add information to
Returns: the prefix
span (text style) or ul (unordered list)Parameters: style to use
Returns: the tag name. If the style is null, a default result should be returned.
Parameters: sIndent a String of spaces to add before each line