writer2latex.xhtml

Class ListStyleConverter


public class ListStyleConverter
extends StyleConverterHelper

This class converts OpenDocument list styles to CSS2 styles (currently, actually CSS1).

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

ListStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
Create a new ListStyleConverter

Method Summary

void
applyStyle(int nLevel, String sStyleName, StyleInfo info)
String
getStyleDeclarations(String sIndent)
Convert style information for used styles
OfficeStyleFamily
getStyles()
Get the family of list styles

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

ListStyleConverter

public ListStyleConverter(OfficeReader ofr,
                          XhtmlConfig config,
                          Converter converter,
                          int nType)
Create a new ListStyleConverter
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

applyStyle

public void applyStyle(int nLevel,
                       String sStyleName,
                       StyleInfo info)

getStyleDeclarations

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

getStyles

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