Package writer2latex.latex
Class ColorConverter
java.lang.Object
writer2latex.latex.ColorConverter
This class converts color
-
Constructor Summary
ConstructorsConstructorDescriptionColorConverter(OfficeReader ofr, LaTeXConfig config, ConverterPalette palette) Constructs a newCharStyleConverter. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidapplyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context) voidapplyBgColor(String sCommand, String sColor, BeforeAfter ba, Context context) voidapplyColor(String sColor, boolean bDecl, BeforeAfter ba, Context context) Apply a specific foreground color.voidapplyColor(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context) Apply foreground color.voidvoidsetNormalColor(String sColor, LaTeXDocumentPortion ldp)
-
Constructor Details
-
ColorConverter
Constructs a new
CharStyleConverter.
-
-
Method Details
-
appendDeclarations
-
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- theBeforeAfterto 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- theBeforeAfterto add LaTeX code to.
-
applyBgColor
-
applyAutomaticColor
-