writer2latex.xhtml

Class PresentationStyleConverter


public class PresentationStyleConverter
extends FrameStyleConverter

This class converts OpenDocument presentation styles to CSS2 styles. Presentation styles are special frame styles, used to style the standard elements in a presentation (title, subtitle and textbox)

Field 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

PresentationStyleConverter(OfficeReader ofr, Config config, Converter converter, int nType)
Create a new PresentationStyleConverter

Method Summary

void
applyOutlineStyle(int nLevel, StyleInfo info)
void
enterOutline(String sStyleName)
void
exitOutline()
String
getClassNamePrefix()
Return a prefix to be used in generated css class names
String
getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object
String
getStyleDeclarations(String sIndent)
Convert style information for used styles
OfficeStyleFamily
getStyles()
Get the family of presentation styles

Methods inherited from class writer2latex.xhtml.FrameStyleConverter

applyProperties, borderScale, cssBackground, cssBackgroundCommon, cssBorder, cssBox, cssMargins, cssPadding, getClassNamePrefix, getDefaultTagName, getStyleDeclarations, getStyles

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

Constructor Details

PresentationStyleConverter

public PresentationStyleConverter(OfficeReader ofr,
                                  Config config,
                                  Converter converter,
                                  int nType)
Create a new PresentationStyleConverter
Parameters:
ofr - an OfficeReader to read style information from
config - the configuration to use
converter - the main Converter class
nType - the type of xhtml to use

Method Details

applyOutlineStyle

public void applyOutlineStyle(int nLevel,
                              StyleInfo info)

enterOutline

public void enterOutline(String sStyleName)

exitOutline

public void exitOutline()

getClassNamePrefix

public String getClassNamePrefix()
Return a prefix to be used in generated css class names
Overrides:
getClassNamePrefix in interface FrameStyleConverter
Returns:
the prefix

getDefaultTagName

public String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object
Overrides:
getDefaultTagName in interface FrameStyleConverter
Parameters:
style - to use
Returns:
the tag name.

getStyleDeclarations

public String getStyleDeclarations(String sIndent)
Convert style information for used styles
Overrides:
getStyleDeclarations in interface FrameStyleConverter
Parameters:
sIndent - a String of spaces to add before each line

getStyles

public OfficeStyleFamily getStyles()
Get the family of presentation styles
Overrides:
getStyles in interface FrameStyleConverter
Returns:
the style family