Package writer2latex.latex
Class ColorConverter
- java.lang.Object
-
- writer2latex.latex.ConverterHelper
-
- 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
Constructors Constructor Description ColorConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Constructs a newCharStyleConverter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 classConverterHelper
-
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 attributesfrombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- theBeforeAfter
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 usebDecl
- true if declaration form is requiredba
- theBeforeAfter
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)
-
-