public class PresentationStyleConverter extends FrameStyleConverter
bConvertHard, bConvertStyles, nType, styleMap, styleNames
Constructor and Description |
---|
PresentationStyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new
PresentationStyleConverter |
Modifier and Type | Method and Description |
---|---|
void |
applyOutlineStyle(int nLevel,
StyleInfo info) |
void |
enterOutline(java.lang.String sStyleName) |
void |
exitOutline() |
java.lang.String |
getClassNamePrefix()
Return a prefix to be used in generated css class names
|
java.lang.String |
getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object
|
java.lang.String |
getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
|
OfficeStyleFamily |
getStyles()
Get the family of presentation styles
|
applyProperties, borderScale, cssBackground, cssBackgroundCommon, cssBorder, cssBox, cssMargins, cssPadding
applyStyle
applyDirection, applyLang, colScale, scale
public PresentationStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
PresentationStyleConverter
ofr
- an OfficeReader
to read style information fromconfig
- the configuration to useconverter
- the main Converter
classnType
- the type of xhtml to usepublic java.lang.String getClassNamePrefix()
getClassNamePrefix
in class FrameStyleConverter
public OfficeStyleFamily getStyles()
getStyles
in class FrameStyleConverter
public java.lang.String getDefaultTagName(StyleWithProperties style)
getDefaultTagName
in class FrameStyleConverter
style
- to usepublic java.lang.String getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
getStyleDeclarations
in class FrameStyleConverter
sIndent
- a String of spaces to add before each linepublic void enterOutline(java.lang.String sStyleName)
public void exitOutline()
public void applyOutlineStyle(int nLevel, StyleInfo info)