public class TextStyleConverter extends StyleWithPropertiesConverterHelper
bConvertHard, bConvertStyles, nType, styleMap, styleNames
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, getClassNamePrefix
applyDirection, applyLang, colScale, scale
public TextStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
TextStyleConverter
ofr
- 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 StyleWithPropertiesConverterHelper
sIndent
- a String of spaces to add before each linepublic OfficeStyleFamily getStyles()
getStyles
in class StyleConverterHelper
public java.lang.String getDefaultTagName(StyleWithProperties style)
getDefaultTagName
in class StyleWithPropertiesConverterHelper
style
- to usepublic void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
applyProperties
in class StyleWithPropertiesConverterHelper
style
- 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)