writer2latex.xhtml

Class FrameStyleConverter

public class FrameStyleConverter extends StyleWithPropertiesConverterHelper

This class converts OpenDocument graphic (frame) styles to CSS2 styles. This includes conversion of frame properties in other styles (paragraph, cell, section, page and presentation styles).
Constructor Summary
FrameStyleConverter(OfficeReader ofr, Config config, Converter converter, int nType)
Create a new FrameStyleConverter
Method Summary
voidapplyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
Convert formatting properties for a specific frame style.
StringborderScale(String sBorder)
voidcssBackground(StyleWithProperties style, CSVList props, boolean bInherit)
voidcssBackgroundCommon(StyleWithProperties style, CSVList props, boolean bInherit)
voidcssBorder(StyleWithProperties style, CSVList props, boolean bInherit)
voidcssBox(StyleWithProperties style, CSVList props, boolean bInherit)
voidcssMargins(StyleWithProperties style, CSVList props, boolean bInherit)
voidcssPadding(StyleWithProperties style, CSVList props, boolean bInherit)
StringgetClassNamePrefix()
Return a prefix to be used in generated css class names
StringgetDefaultTagName(StyleWithProperties style)
Create default tag name to represent a frame
StringgetStyleDeclarations(String sIndent)
Convert style information for used styles
OfficeStyleFamilygetStyles()
Get the family of frame styles

Constructor Detail

FrameStyleConverter

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

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

applyProperties

public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
Convert formatting properties for a specific frame style.

Parameters: style the style to convert props the CSVList object to add information to bInherit true if properties should be inherited from parent style(s)

borderScale

public String borderScale(String sBorder)

cssBackground

public void cssBackground(StyleWithProperties style, CSVList props, boolean bInherit)

cssBackgroundCommon

public void cssBackgroundCommon(StyleWithProperties style, CSVList props, boolean bInherit)

cssBorder

public void cssBorder(StyleWithProperties style, CSVList props, boolean bInherit)

cssBox

public void cssBox(StyleWithProperties style, CSVList props, boolean bInherit)

cssMargins

public void cssMargins(StyleWithProperties style, CSVList props, boolean bInherit)

cssPadding

public void cssPadding(StyleWithProperties style, CSVList props, boolean bInherit)

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 frame

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 frame styles

Returns: the style family