writer2latex.xhtml

Class PageStyleConverter

public class PageStyleConverter extends StyleConverterHelper

This class converts OpenDocument page styles to CSS2 styles. A page style in a presentation is represented through the master page, which links to a page layout defining the geometry and optionally a drawing page defining the drawing background. In a presentation document we export the full page style, in a text document we only export the background.
Constructor Summary
PageStyleConverter(OfficeReader ofr, Config config, Converter converter, int nType)
Create a new PageStyleConverter
Method Summary
voidapplyStyle(String sStyleName, StyleInfo info)
StringgetStyleDeclarations(String sIndent)
Convert style information for used styles
OfficeStyleFamilygetStyles()
Get the family of page styles (master pages)

Constructor Detail

PageStyleConverter

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

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

applyStyle

public void applyStyle(String sStyleName, StyleInfo info)

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 page styles (master pages)

Returns: the style family