|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwriter2latex.latex.ConverterHelper
writer2latex.latex.ColorConverter
public class ColorConverter
This class converts color
Field Summary | |
---|---|
private static int |
BLUE
|
private boolean |
bUseColor
|
private static int |
GREEN
|
private static int |
RED
|
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(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)
|
private static java.lang.String |
automaticcolor(java.lang.String sBgColor)
|
private static java.lang.String |
color(java.lang.String sColor)
|
private static java.lang.String |
fullcolor(java.lang.String sColor)
|
private static float[] |
getRgb(java.lang.String sColor)
|
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 |
Field Detail |
---|
private static final int RED
private static final int GREEN
private static final int BLUE
private boolean bUseColor
Constructor Detail |
---|
public ColorConverter(OfficeReader ofr, Config config, ConverterPalette palette)
Constructs a new CharStyleConverter
.
Method Detail |
---|
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)
private static final java.lang.String automaticcolor(java.lang.String sBgColor)
private static final java.lang.String color(java.lang.String sColor)
private static final java.lang.String fullcolor(java.lang.String sColor)
private static final float[] getRgb(java.lang.String sColor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |