writer2latex.latex

Class ColorConverter

public class ColorConverter extends ConverterHelper

This class converts color
Constructor Summary
ColorConverter(OfficeReader ofr, Config config, ConverterPalette palette)

Constructs a new CharStyleConverter.

Method Summary
voidappendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
voidapplyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context)
voidapplyBgColor(String sCommand, String sColor, BeforeAfter ba, Context context)
voidapplyColor(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context)

Apply foreground color.

voidapplyColor(String sColor, boolean bDecl, BeforeAfter ba, Context context)

Apply a specific foreground color.

voidapplyNormalColor(BeforeAfter ba)
voidsetNormalColor(String sColor, LaTeXDocumentPortion ldp)

Constructor Detail

ColorConverter

public ColorConverter(OfficeReader ofr, Config config, ConverterPalette palette)

Constructs a new CharStyleConverter.

Method Detail

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)

applyAutomaticColor

public void applyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context)

applyBgColor

public void applyBgColor(String sCommand, String sColor, BeforeAfter ba, Context context)

applyColor

public void applyColor(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context)

Apply foreground color.

Parameters: style the OOo style to read attributesfrom bDecl true if declaration form is required bInherit true if inherited properties should be used ba the BeforeAfter to add LaTeX code to. context the current context

applyColor

public void applyColor(String sColor, boolean bDecl, BeforeAfter ba, Context context)

Apply a specific foreground color.

Parameters: sColor the rgb color to use bDecl true if declaration form is required ba the BeforeAfter to add LaTeX code to.

applyNormalColor

public void applyNormalColor(BeforeAfter ba)

setNormalColor

public void setNormalColor(String sColor, LaTeXDocumentPortion ldp)