public class ParStyleConverter extends StyleWithPropertiesConverterHelper
bConvertHard, bConvertStyles, nType, styleMap, styleNames
Constructor and Description |
---|
ParStyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new
ParStyleConverter |
Modifier and Type | Method and Description |
---|---|
void |
applyProperties(StyleWithProperties style,
CSVList props,
boolean bInherit)
Convert formatting properties for a specific Par style.
|
void |
cssPageBreak(StyleWithProperties style,
CSVList props,
boolean bInherit) |
void |
cssPar(StyleWithProperties style,
CSVList props,
boolean bInherit) |
java.lang.String |
getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a paragraph
|
java.lang.String |
getRealParStyleName(java.lang.String sStyleName) |
OfficeStyleFamily |
getStyles()
Get the family of paragraph styles
|
java.lang.String |
getTextBackground(java.lang.String sStyleName) |
applyStyle, getClassNamePrefix, getStyleDeclarations
applyDirection, applyLang, colScale, scale
public ParStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
ParStyleConverter
ofr
- an OfficeReader
to read style information fromconfig
- the configuration to useconverter
- the main Converter
classnType
- the type of XHTML to usepublic 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 java.lang.String getTextBackground(java.lang.String sStyleName)
public java.lang.String getRealParStyleName(java.lang.String sStyleName)
public void cssPageBreak(StyleWithProperties style, CSVList props, boolean bInherit)
public void cssPar(StyleWithProperties style, CSVList props, boolean bInherit)