writer2latex.xhtml
Class StyleWithPropertiesConverterHelper
public abstract class StyleWithPropertiesConverterHelper
This is an abstract class to convert an OpenDocument style family
represented by StyleWithProperties to CSS2 styles.
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc |
StyleWithPropertiesConverterHelper
public StyleWithPropertiesConverterHelper(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)Create a new StyleWithPropertiesConverterHelper
ofr - an OfficeReader to read style information fromconfig - the configuration to useconverter - the main Converter classnType - the type of xhtml to use
applyProperties
public abstract void applyProperties(StyleWithProperties style,
CSVList props,
boolean bInherit)Convert formatting properties for a specific style.
style - the style to convertprops - the CSVList object to add information tobInherit - true if properties should be inherited from parent style(s)
applyStyle
public void applyStyle(String sStyleName,
StyleInfo info)Apply a style, either by converting the style or by applying the
style map from the configuarion
sStyleName - name of the OpenDocument styleinfo - the StyleInfo object to add information to
getClassNamePrefix
public String getClassNamePrefix()
Return a prefix to be used in generated css class names
getDefaultTagName
public abstract String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a specific style, e.g.
span (text style) or ul (unordered list)
- the tag name. If the style is null, a default result should be
returned.
getStyleDeclarations
public String getStyleDeclarations(String sIndent)
Convert style information for used styles
- getStyleDeclarations in interface StyleConverterHelper
sIndent - a String of spaces to add before each line