| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectwriter2latex.xhtml.ConverterHelperwriter2latex.xhtml.StyleConverterHelperwriter2latex.xhtml.StyleWithPropertiesConverterHelperwriter2latex.xhtml.ParStyleConverterpublic class ParStyleConverterField Summary |
Fields inherited from class writer2latex.xhtml.StyleConverterHelper | |
bConvertHard, bConvertStyles, nType, styleMap, styleNames | |
Fields inherited from class writer2latex.xhtml.ConverterHelper | |
config, converter, ofr | |
Constructor Summary | |
| |
Method Summary | |
void |
|
void |
|
String |
|
String |
|
String |
|
OfficeStyleFamily |
|
String |
|
void |
|
Methods inherited from class writer2latex.xhtml.StyleWithPropertiesConverterHelper | |
applyProperties, applyStyle, getClassNamePrefix, getDefaultTagName, getStyleDeclarations | |
Methods inherited from class writer2latex.xhtml.StyleConverterHelper | |
applyDirection, applyLang, colScale, getStyleDeclarations, getStyles, scale | |
Methods inherited from class writer2latex.xhtml.ConverterHelper | |
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc | |
public ParStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
Create a newParStyleConverter
- Parameters:
ofr- anOfficeReaderto read style information fromconfig- the configuration to useconverter- the mainConverterclassnType- the type of xhtml to use
public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
Convert formatting properties for a specific Par style.
- Overrides:
- applyProperties in interface StyleWithPropertiesConverterHelper
- Parameters:
style- the style to convertprops- theCSVListobject to add information tobInherit- true if properties should be inherited from parent style(s)
public String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a paragraph
- Overrides:
- getDefaultTagName in interface StyleWithPropertiesConverterHelper
- Parameters:
style- to use
- Returns:
- the tag name.
public String getRealParStyleName(String sStyleName)
public String getStyleDeclarations(String sIndent)
Convert style information for used styles
- Overrides:
- getStyleDeclarations in interface StyleWithPropertiesConverterHelper
- Parameters:
sIndent- a String of spaces to add before each line
public OfficeStyleFamily getStyles()
Get the family of paragraph styles
- Overrides:
- getStyles in interface StyleConverterHelper
- Returns:
- the style family
public String getTextBackground(String sStyleName)
public void setHeadingStyle(int nLevel,
String sStyleName)