writer2latex.latex

Class ColorConverter


public class ColorConverter
extends ConverterHelper

This class converts color

Field Summary

Fields inherited from class writer2latex.latex.ConverterHelper

config, ofr, palette

Constructor Summary

ColorConverter(OfficeReader ofr, Config config, ConverterPalette palette)
Constructs a new CharStyleConverter.

Method Summary

void
appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
void
applyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context)
void
applyBgColor(String sCommand, String sColor, BeforeAfter ba, Context context)
void
applyColor(String sColor, boolean bDecl, BeforeAfter ba, Context context)
Apply a specific foreground color.
void
applyColor(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context)
Apply foreground color.
void
applyNormalColor(BeforeAfter ba)
void
setNormalColor(String sColor, LaTeXDocumentPortion ldp)

Methods inherited from class writer2latex.latex.ConverterHelper

appendDeclarations

Constructor Details

ColorConverter

public ColorConverter(OfficeReader ofr,
                      Config config,
                      ConverterPalette palette)
Constructs a new CharStyleConverter.

Method Details

appendDeclarations

public void appendDeclarations(LaTeXDocumentPortion pack,
                               LaTeXDocumentPortion decl)
Overrides:
appendDeclarations in interface ConverterHelper

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(String sColor,
                       boolean bDecl,
                       BeforeAfter ba,
                       Context context)
Apply a specific foreground color.
Parameters:

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

applyNormalColor

public void applyNormalColor(BeforeAfter ba)

setNormalColor

public void setNormalColor(String sColor,
                           LaTeXDocumentPortion ldp)