CellStyleConverter, FrameStyleConverter, ParStyleConverter, RowStyleConverter, SectionStyleConverter, TableStyleConverter, TextStyleConverterpublic abstract class StyleWithPropertiesConverterHelper extends StyleConverterHelper
This is an abstract class to convert an OpenDocument style family
represented by StyleWithProperties to CSS2 styles.
config, converter, ofrbConvertHard, bConvertStyles, nType, styleMap, styleNames| Constructor | Description |
|---|---|
StyleWithPropertiesConverterHelper(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType) |
Create a new
StyleWithPropertiesConverterHelper |
| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
applyProperties(StyleWithProperties style,
CSVList props,
boolean bInherit) |
Convert formatting properties for a specific style.
|
void |
applyStyle(java.lang.String sStyleName,
StyleInfo info) |
Apply a style, either by converting the style or by applying the
style map from the configuarion
|
java.lang.String |
getClassNamePrefix() |
Return a prefix to be used in generated css class names
|
abstract java.lang.String |
getDefaultTagName(StyleWithProperties style) |
Create default tag name to represent a specific style, e.g.
|
java.lang.String |
getStyleDeclarations(java.lang.String sIndent) |
Convert style information for used styles
|
applyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextScclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyDirection, applyLang, colScale, getStyles, scalepublic StyleWithPropertiesConverterHelper(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
StyleWithPropertiesConverterHelperofr - an OfficeReader to read style information fromconfig - the configuration to useconverter - the main Converter classnType - the type of xhtml to usepublic void applyStyle(java.lang.String sStyleName,
StyleInfo info)
sStyleName - name of the OpenDocument styleinfo - the StyleInfo object to add information topublic java.lang.String getStyleDeclarations(java.lang.String sIndent)
getStyleDeclarations in class StyleConverterHelpersIndent - a String of spaces to add before each linepublic java.lang.String getClassNamePrefix()
public abstract java.lang.String getDefaultTagName(StyleWithProperties style)
span (text style) or ul (unordered list)style - to usepublic abstract void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
style - the style to convertprops - the CSVList object to add information tobInherit - true if properties should be inherited from parent style(s)