Class ColorConverter

java.lang.Object
writer2latex.latex.ConverterHelper
writer2latex.latex.ColorConverter

public class ColorConverter extends ConverterHelper
This class converts color
  • Constructor Details

  • Method Details

    • appendDeclarations

      public void appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl)
      Overrides:
      appendDeclarations in class ConverterHelper
    • setNormalColor

      public void setNormalColor(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 attributesfrom
      bDecl - true if declaration form is required
      bInherit - true if inherited properties should be used
      ba - the BeforeAfter to add LaTeX code to.
      context - the current context
    • applyColor

      public void applyColor(String sColor, boolean bDecl, BeforeAfter ba, Context context)

      Apply a specific foreground color.

      Parameters:
      sColor - the rgb color to use
      bDecl - true if declaration form is required
      ba - the BeforeAfter to add LaTeX code to.
    • applyBgColor

      public void applyBgColor(String sCommand, String sColor, BeforeAfter ba, Context context)
    • applyAutomaticColor

      public void applyAutomaticColor(BeforeAfter ba, boolean bDecl, Context context)