Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
writer2latex.xhtml.ConverterHelper
writer2latex.xhtml.StyleConverterHelper
writer2latex.xhtml.StyleWithPropertiesConverterHelper
writer2latex.xhtml.TextStyleConverter
public class TextStyleConverter
Field Summary |
Fields inherited from class writer2latex.xhtml.StyleConverterHelper | |
bConvertHard , bConvertStyles , nType , styleMap , styleNames |
Fields inherited from class writer2latex.xhtml.ConverterHelper | |
config , converter , ofr |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
String |
|
String |
|
OfficeStyleFamily |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
Methods inherited from class writer2latex.xhtml.StyleWithPropertiesConverterHelper | |
applyProperties , applyStyle , getClassNamePrefix , getDefaultTagName , getStyleDeclarations |
Methods inherited from class writer2latex.xhtml.StyleConverterHelper | |
applyDirection , applyLang , colScale , getStyleDeclarations , getStyles , scale |
Methods inherited from class writer2latex.xhtml.ConverterHelper | |
applyStyle , getCellSc , getDrawCv , getFrameSc , getListSc , getMathCv , getPageSc , getParSc , getPresentationSc , getRowSc , getSectionSc , getStyleCv , getTableCv , getTableSc , getTextCv , getTextSc |
public TextStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
Create a newTextStyleConverter
- Parameters:
ofr
- anOfficeReader
to read style information fromconfig
- the configuration to useconverter
- the mainConverter
classnType
- the type of xhtml to use
public void applyAnchorStyle(String sStyleName, String sVisitedStyleName, StyleInfo info)
Apply a link style, using a combination of two text styles
- Parameters:
sStyleName
- name of the OpenDocument stylesVisitedStyleName
- name of the OpenDocument style for visited linksinfo
- theStyleInfo
object to add information to
public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
Convert formatting properties for a specific text style.
- Overrides:
- applyProperties in interface StyleWithPropertiesConverterHelper
- Parameters:
style
- the style to convertprops
- theCSVList
object to add information tobInherit
- true if properties should be inherited from parent style(s)
public void cssTextBackground(StyleWithProperties style, CSVList props, boolean bInherit)
public String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a text
- Overrides:
- getDefaultTagName in interface StyleWithPropertiesConverterHelper
- Parameters:
style
- to use
- Returns:
- the tag name.
public String getStyleDeclarations(String sIndent)
Convert style information for used styles
- Overrides:
- getStyleDeclarations in interface StyleWithPropertiesConverterHelper
- Parameters:
sIndent
- a String of spaces to add before each line
public OfficeStyleFamily getStyles()
Get the family of text (character) styles
- Overrides:
- getStyles in interface StyleConverterHelper
- Returns:
- the style family