public class TextStyleConverter extends StyleWithPropertiesConverterHelper
bConvertHard, bConvertStyles, nType, styleMap, styleNamesconfig, converter, ofr| Constructor and Description |
|---|
TextStyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new
TextStyleConverter |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAnchorStyle(java.lang.String sStyleName,
java.lang.String sVisitedStyleName,
StyleInfo info)
Apply a link style, using a combination of two text styles
|
void |
applyProperties(StyleWithProperties style,
CSVList props,
boolean bInherit)
Convert formatting properties for a specific text style.
|
void |
cssText(StyleWithProperties style,
CSVList props,
boolean bInherit) |
void |
cssTextBackground(StyleWithProperties style,
CSVList props,
boolean bInherit) |
void |
cssTextCommon(StyleWithProperties style,
CSVList props,
boolean bInherit) |
java.lang.String |
getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a text
|
java.lang.String |
getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
|
OfficeStyleFamily |
getStyles()
Get the family of text (character) styles
|
applyStyle, getClassNamePrefixapplyDirection, applyLang, colScale, scaleapplyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextScpublic TextStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
TextStyleConverterofr - an OfficeReader to read style information fromconfig - the configuration to useconverter - the main Converter classnType - the type of XHTML to usepublic void applyAnchorStyle(java.lang.String sStyleName,
java.lang.String sVisitedStyleName,
StyleInfo info)
sStyleName - name of the OpenDocument stylesVisitedStyleName - name of the OpenDocument style for visited linksinfo - the StyleInfo object to add information topublic java.lang.String getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
getStyleDeclarations in class StyleWithPropertiesConverterHelpersIndent - a String of spaces to add before each linepublic OfficeStyleFamily getStyles()
getStyles in class StyleConverterHelperpublic java.lang.String getDefaultTagName(StyleWithProperties style)
getDefaultTagName in class StyleWithPropertiesConverterHelperstyle - to usepublic void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
applyProperties in class StyleWithPropertiesConverterHelperstyle - the style to convertprops - the CSVList object to add information tobInherit - true if properties should be inherited from parent style(s)public void cssText(StyleWithProperties style, CSVList props, boolean bInherit)
public void cssTextCommon(StyleWithProperties style, CSVList props, boolean bInherit)
public void cssTextBackground(StyleWithProperties style, CSVList props, boolean bInherit)