writer2latex.xhtml
public class TextStyleConverter extends StyleWithPropertiesConverterHelper
Constructor Summary | |
---|---|
TextStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a new TextStyleConverter |
Method Summary | |
---|---|
void | applyAnchorStyle(String sStyleName, String sVisitedStyleName, StyleInfo info) Apply a link style, using a combination of two text styles |
void | applyProperties(StyleWithProperties style, CSVList props, boolean bInherit) Convert formatting properties for a specific text style. |
void | cssText(StyleWithProperties style, CSVList props, boolean bInherit) |
void | cssTextBackground(StyleWithProperties style, CSVList props, boolean bInherit) |
void | cssTextCommon(StyleWithProperties style, CSVList props, boolean bInherit) |
String | getDefaultTagName(StyleWithProperties style) Create default tag name to represent a text |
String | getStyleDeclarations(String sIndent) Convert style information for used styles |
OfficeStyleFamily | getStyles() Get the family of text (character) styles |
boolean | isBold(StyleWithProperties style) |
boolean | isFixed(StyleWithProperties style) |
boolean | isItalics(StyleWithProperties style) |
boolean | isSubscript(StyleWithProperties style) |
boolean | isSuperscript(StyleWithProperties style) |
TextStyleConverter
Parameters: ofr an OfficeReader
to read style information from config the configuration to use converter the main Converter
class nType the type of xhtml to use
Parameters: sStyleName name of the OpenDocument style sVisitedStyleName name of the OpenDocument style for visited links info the StyleInfo
object to add information to
Parameters: style the style to convert props the CSVList
object to add information to bInherit true if properties should be inherited from parent style(s)
Parameters: style to use
Returns: the tag name.
Convert style information for used styles
Parameters: sIndent a String of spaces to add before each line
Returns: the style family