writer2latex.xhtml
Class StyleConverter
java.lang.Object
writer2latex.xhtml.ConverterHelper
writer2latex.xhtml.StyleConverter
class StyleConverter
- extends ConverterHelper
This class converts OpenDocument styles to CSS2 styles.
Note that some elements in OpenDocument has attributes that also maps
to CSS2 properties. Example: the width of a text box.
Also note, that some OpenDocument style properties cannot be mapped to
CSS2 without creating an additional inline element.
The class uses one helper class per OpenDocument style family
(paragraph, frame etc.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
textSc
private TextStyleConverter textSc
parSc
private ParStyleConverter parSc
listSc
private ListStyleConverter listSc
sectionSc
private SectionStyleConverter sectionSc
tableSc
private TableStyleConverter tableSc
rowSc
private RowStyleConverter rowSc
cellSc
private CellStyleConverter cellSc
frameSc
private FrameStyleConverter frameSc
presentationSc
private PresentationStyleConverter presentationSc
pageSc
private PageStyleConverter pageSc
StyleConverter
public StyleConverter(OfficeReader ofr,
XhtmlConfig config,
Converter converter,
int nType)
Create a new StyleConverter
getTextSc
protected TextStyleConverter getTextSc()
- Overrides:
getTextSc
in class ConverterHelper
getParSc
protected ParStyleConverter getParSc()
- Overrides:
getParSc
in class ConverterHelper
getListSc
protected ListStyleConverter getListSc()
- Overrides:
getListSc
in class ConverterHelper
getSectionSc
protected SectionStyleConverter getSectionSc()
- Overrides:
getSectionSc
in class ConverterHelper
getTableSc
protected TableStyleConverter getTableSc()
- Overrides:
getTableSc
in class ConverterHelper
getRowSc
protected RowStyleConverter getRowSc()
- Overrides:
getRowSc
in class ConverterHelper
getCellSc
protected CellStyleConverter getCellSc()
- Overrides:
getCellSc
in class ConverterHelper
getFrameSc
protected FrameStyleConverter getFrameSc()
- Overrides:
getFrameSc
in class ConverterHelper
getPresentationSc
protected PresentationStyleConverter getPresentationSc()
- Overrides:
getPresentationSc
in class ConverterHelper
getPageSc
protected PageStyleConverter getPageSc()
- Overrides:
getPageSc
in class ConverterHelper
getDefaultStyle
private StyleWithProperties getDefaultStyle()
applyDefaultLanguage
public void applyDefaultLanguage(org.w3c.dom.Element node)
exportStyles
public org.w3c.dom.Node exportStyles(org.w3c.dom.Document htmlDOM)