writer2latex.xhtml
Class StyleConverterHelper
public abstract class StyleConverterHelper
This is an abstract base class to convert an OpenDocument style family to
CSS2 styles.
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc |
bConvertHard
protected boolean bConvertHard
bConvertStyles
protected boolean bConvertStyles
StyleConverterHelper
public StyleConverterHelper(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)Create a new StyleConverterHelper
ofr - an OfficeReader to read style information fromconfig - the configuration to useconverter - the main Converter classnType - the type of xhtml to use
applyDirection
protected static void applyDirection(StyleWithProperties style,
StyleInfo info)Apply the writing direction (ltr or rtl) attribute from a style
style - the OpenDocument style to useinfo - the StyleInfo object to add information to
applyLang
protected static void applyLang(StyleWithProperties style,
StyleInfo info)Apply language+country from a style
style - the OpenDocument style to useinfo - the StyleInfo object to add information to
colScale
protected String colScale(String s)
getStyleDeclarations
public abstract String getStyleDeclarations(String sIndent)
Convert style information for used styles
sIndent - a String of spaces to add before each line
getStyles
public abstract OfficeStyleFamily getStyles()
Get the OpenDocument style family associated with this
StyleConverterHelper
scale
protected String scale(String s)