writer2latex.latex
Class ColorConverter

java.lang.Object
  extended by writer2latex.latex.ConverterHelper
      extended by writer2latex.latex.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, LaTeXConfig 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(java.lang.String sCommand, java.lang.String sColor, BeforeAfter ba, Context context)
           
 void applyColor(java.lang.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(java.lang.String sColor, LaTeXDocumentPortion ldp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorConverter

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

Constructs a new CharStyleConverter.

Method Detail

appendDeclarations

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

setNormalColor

public void setNormalColor(java.lang.String sColor,
                           LaTeXDocumentPortion ldp)

applyNormalColor

public void applyNormalColor(BeforeAfter ba)

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(java.lang.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.

applyBgColor

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

applyAutomaticColor

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