public class ColorConverter extends ConverterHelper
config, ofr, palette
Constructor and Description |
---|
ColorConverter(OfficeReader ofr,
LaTeXConfig config,
ConverterPalette palette)
Constructs a new
CharStyleConverter . |
Modifier and Type | Method and 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) |
public ColorConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette)
Constructs a new CharStyleConverter
.
public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
appendDeclarations
in class ConverterHelper
public void setNormalColor(java.lang.String sColor, LaTeXDocumentPortion ldp)
public void applyNormalColor(BeforeAfter ba)
public void applyColor(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context)
Apply foreground color.
style
- the OOo style to read attributesfrombDecl
- true if declaration form is requiredbInherit
- true if inherited properties should be usedba
- the BeforeAfter
to add LaTeX code to.context
- the current contextpublic void applyColor(java.lang.String sColor, boolean bDecl, BeforeAfter ba, Context context)
Apply a specific foreground color.
sColor
- the rgb color to usebDecl
- true if declaration form is requiredba
- the BeforeAfter
to add LaTeX code to.public void applyBgColor(java.lang.String sCommand, java.lang.String sColor, BeforeAfter ba, Context context)
public void applyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context)