public class PageStyleConverter extends StyleConverterHelper
bConvertHard, bConvertStyles, nType, styleMap, styleNames
Constructor and Description |
---|
PageStyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new
PageStyleConverter |
Modifier and Type | Method and Description |
---|---|
void |
applyDefaultWritingDirection(StyleInfo info)
Apply default writing direction (based on first master page)
|
void |
applyFootnoteRuleStyle(StyleInfo info)
Apply footnote rule formatting (based on first master page)
|
void |
applyStyle(java.lang.String sStyleName,
StyleInfo info)
Apply a master page style - currently only for presentations
|
java.lang.String |
getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
|
OfficeStyleFamily |
getStyles()
Get the family of page styles (master pages)
|
java.lang.String |
getTextWidth()
Get the text width of the first master page (page width minus left and right margin)
|
applyDirection, applyLang, colScale, scale
public PageStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
PageStyleConverter
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 getTextWidth()
public void applyFootnoteRuleStyle(StyleInfo info)
info
- then StyleInfo to which style information should be attachedpublic void applyDefaultWritingDirection(StyleInfo info)
info
- then StyleInfo to which style information should be attachedpublic void applyStyle(java.lang.String sStyleName, StyleInfo info)
sStyleName
- The name of the master pageinfo
- the StyleInfo to which style information should be attachedpublic java.lang.String getStyleDeclarations(java.lang.String sIndent)
getStyleDeclarations
in class StyleConverterHelper
sIndent
- a String of spaces to add before each linepublic OfficeStyleFamily getStyles()
getStyles
in class StyleConverterHelper