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)
Constructor Summary
PresentationStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
Create a new PresentationStyleConverter
Method Summary
voidapplyOutlineStyle(int nLevel, StyleInfo info)
voidenterOutline(String sStyleName)
voidexitOutline()
StringgetClassNamePrefix()
Return a prefix to be used in generated css class names
StringgetDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object
StringgetStyleDeclarations(String sIndent)

Convert style information for used styles

OfficeStyleFamilygetStyles()
Get the family of presentation styles

Constructor Detail

PresentationStyleConverter

public PresentationStyleConverter(OfficeReader ofr, XhtmlConfig 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 Detail

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

Returns: the prefix

getDefaultTagName

public String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object

Parameters: style to use

Returns: the tag name.

getStyleDeclarations

public String getStyleDeclarations(String sIndent)

Convert style information for used styles

Parameters: sIndent a String of spaces to add before each line

getStyles

public OfficeStyleFamily getStyles()
Get the family of presentation styles

Returns: the style family