|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwriter2latex.xhtml.ConverterHelper
writer2latex.xhtml.StyleConverterHelper
writer2latex.xhtml.StyleWithPropertiesConverterHelper
writer2latex.xhtml.TextStyleConverter
public class TextStyleConverter
This class converts OpenDocument text styles to CSS2 styles. This includes conversion of text properties in other styles (paragraph, cell, graphic and presentation styles).
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 | |
---|---|
TextStyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new TextStyleConverter |
Method Summary | |
---|---|
void |
applyAnchorStyle(java.lang.String sStyleName,
java.lang.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)
|
java.lang.String |
getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a text |
java.lang.String |
getStyleDeclarations(java.lang.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)
|
Methods inherited from class writer2latex.xhtml.StyleWithPropertiesConverterHelper |
---|
applyStyle, getClassNamePrefix |
Methods inherited from class writer2latex.xhtml.StyleConverterHelper |
---|
applyDirection, applyLang, colScale, scale |
Methods inherited from class writer2latex.xhtml.ConverterHelper |
---|
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
TextStyleConverter
ofr
- an OfficeReader
to read style information fromconfig
- the configuration to useconverter
- the main Converter
classnType
- the type of xhtml to useMethod Detail |
---|
public void applyAnchorStyle(java.lang.String sStyleName, java.lang.String sVisitedStyleName, StyleInfo info)
sStyleName
- name of the OpenDocument stylesVisitedStyleName
- name of the OpenDocument style for visited linksinfo
- the StyleInfo
object to add information topublic java.lang.String getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
getStyleDeclarations
in class StyleWithPropertiesConverterHelper
sIndent
- a String of spaces to add before each linepublic OfficeStyleFamily getStyles()
getStyles
in class StyleConverterHelper
public java.lang.String getDefaultTagName(StyleWithProperties style)
getDefaultTagName
in class StyleWithPropertiesConverterHelper
style
- to use
public void applyProperties(StyleWithProperties style, CSVList props, boolean bInherit)
applyProperties
in class StyleWithPropertiesConverterHelper
style
- the style to convertprops
- the CSVList
object to add information tobInherit
- true if properties should be inherited from parent style(s)public boolean isBold(StyleWithProperties style)
public boolean isItalics(StyleWithProperties style)
public boolean isFixed(StyleWithProperties style)
public boolean isSuperscript(StyleWithProperties style)
public boolean isSubscript(StyleWithProperties style)
public void cssText(StyleWithProperties style, CSVList props, boolean bInherit)
public void cssTextCommon(StyleWithProperties style, CSVList props, boolean bInherit)
public void cssTextBackground(StyleWithProperties style, CSVList props, boolean bInherit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |