writer2latex.latex
public class CharStyleConverter extends StyleConverter
writer2latex.latex.ColorConverter
and
writer2latex.latex.style.I18n
Constructor Summary | |
---|---|
CharStyleConverter(OfficeReader ofr, Config config, ConverterPalette palette) Constructs a new |
Method Summary | |
---|---|
void | appendDeclarations(LaTeXDocumentPortion pack, LaTeXDocumentPortion decl) |
void | applyDefaultFont(StyleWithProperties style, LaTeXDocumentPortion ldp) Apply default font attributes (family, series, shape, size and color). |
void | applyFont(StyleWithProperties style, boolean bDecl, boolean bInherit, BeforeAfter ba, Context context) Apply all font attributes (family, series, shape, size and color). |
void | applyFontEffects(StyleWithProperties style, boolean bInherit, BeforeAfter ba) Apply font effects (position, underline, crossout, change case. |
void | applyHardCharFormatting(StyleWithProperties style, BeforeAfter ba) Apply hard character formatting (no inheritance). This is used in sections and {foot|end}notes |
void | applyNormalFont(BeforeAfter ba) Reset to normal font, size and color. |
void | applyTextStyle(String sName, BeforeAfter ba, Context context) Use a text style in LaTeX. |
String | getFontName(StyleWithProperties style) |
String | getFontName(String sStyleName) |
Constructs a new CharStyleConverter
.
Apply default font attributes (family, series, shape, size and color).
Parameters: style
the OOo style to read attributesfrom ldp
the LaTeXDocumentPortion
to add LaTeX code to.
Apply all font attributes (family, series, shape, size and 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.
Apply font effects (position, underline, crossout, change case.
Parameters: style
the OOo style to read attributesfrom bInherit
true if inherited properties should be used ba
the BeforeAfter
to add LaTeX code to.
Apply hard character formatting (no inheritance).
This is used in sections and {foot|end}notes
Parameters: style
the style to use ba
the BeforeAfter
to add LaTeX code to
Reset to normal font, size and color.
Parameters: ba
the BeforeAfter
to add LaTeX code to.
Use a text style in LaTeX.
Parameters: sName
the name of the text style ba
a BeforeAfter
to put code into