public abstract class StyleConverterHelper extends ConverterHelper
This is an abstract base class to convert an OpenDocument style family to CSS2 styles.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bConvertHard |
protected boolean |
bConvertStyles |
protected int |
nType |
protected XhtmlStyleMap |
styleMap |
protected ExportNameCollection |
styleNames |
config, converter, ofr| Constructor and Description |
|---|
StyleConverterHelper(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new
StyleConverterHelper |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
colScale(java.lang.String s) |
abstract java.lang.String |
getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
|
abstract OfficeStyleFamily |
getStyles()
Get the OpenDocument style family associated with this
StyleConverterHelper
|
protected java.lang.String |
scale(java.lang.String s) |
applyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextScprotected ExportNameCollection styleNames
protected XhtmlStyleMap styleMap
protected boolean bConvertStyles
protected boolean bConvertHard
protected int nType
public StyleConverterHelper(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
StyleConverterHelperofr - an OfficeReader to read style information fromconfig - the configuration to useconverter - the main Converter classnType - the type of xhtml to useprotected java.lang.String scale(java.lang.String s)
protected java.lang.String colScale(java.lang.String s)
protected static void applyDirection(StyleWithProperties style, StyleInfo info)
style - the OpenDocument style to useinfo - the StyleInfo object to add information toprotected static void applyLang(StyleWithProperties style, StyleInfo info)
style - the OpenDocument style to useinfo - the StyleInfo object to add information topublic abstract OfficeStyleFamily getStyles()
public abstract java.lang.String getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
sIndent - a String of spaces to add before each line