writer2latex.xhtml
public abstract class StyleConverterHelper extends ConverterHelper
This is an abstract base class to convert an OpenDocument style family to CSS2 styles.
Field Summary | |
---|---|
protected boolean | bConvertHard |
protected boolean | bConvertStyles |
protected int | nType |
protected XhtmlStyleMap | styleMap |
protected ExportNameCollection | styleNames |
Constructor Summary | |
---|---|
StyleConverterHelper(OfficeReader ofr, Config config, Converter converter, int nType) Create a new StyleConverterHelper |
Method Summary | |
---|---|
protected static void | applyDirection(StyleWithProperties style, StyleInfo info) Apply the writing direction (ltr or rtl) attribute from a style |
protected static void | applyLang(StyleWithProperties style, StyleInfo info) Apply language+country from a style |
protected String | colScale(String s) |
abstract String | getStyleDeclarations(String sIndent) Convert style information for used styles |
abstract OfficeStyleFamily | getStyles() Get the OpenDocument style family associated with this
StyleConverterHelper |
protected String | scale(String s) |
StyleConverterHelper
Parameters: 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 OpenDocument style to use info the StyleInfo
object to add information to
Parameters: style the OpenDocument style to use info the StyleInfo
object to add information to
Convert style information for used styles
Parameters: sIndent a String of spaces to add before each line
Returns: the style family