Package writer2latex.latex
Class ColorConverter
java.lang.Object
writer2latex.latex.ConverterHelper
writer2latex.latex.ColorConverter
This class converts color
-
Field Summary
Fields inherited from class writer2latex.latex.ConverterHelper
config, ofr, palette
-
Constructor Summary
ConstructorsConstructorDescriptionColorConverter
(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) Constructs a newCharStyleConverter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
setNormalColor
(String sColor, LaTeXDocumentPortion ldp)
-
Constructor Details
-
ColorConverter
Constructs a new
CharStyleConverter
.
-
-
Method Details
-
appendDeclarations
- Overrides:
appendDeclarations
in classConverterHelper
-
setNormalColor
-
applyNormalColor
-
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
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
-
applyAutomaticColor
-