Package writer2latex.xhtml
Class PresentationStyleConverter
- java.lang.Object
-
- writer2latex.xhtml.ConverterHelper
-
- writer2latex.xhtml.StyleConverterHelper
-
- writer2latex.xhtml.StyleWithPropertiesConverterHelper
-
- writer2latex.xhtml.FrameStyleConverter
-
- writer2latex.xhtml.PresentationStyleConverter
-
public class PresentationStyleConverter extends FrameStyleConverter
This class converts OpenDocument presentation styles to CSS2 styles. Presentation styles are special frame styles, used to style the standard elements in a presentation (title, subtitle and textbox)
-
-
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
Constructors Constructor Description PresentationStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)Create a newPresentationStyleConverter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyOutlineStyle(int nLevel, StyleInfo info)voidenterOutline(java.lang.String sStyleName)voidexitOutline()java.lang.StringgetClassNamePrefix()Return a prefix to be used in generated css class namesjava.lang.StringgetDefaultTagName(StyleWithProperties style)Create default tag name to represent a presentation objectjava.lang.StringgetStyleDeclarations(java.lang.String sIndent)Convert style information for used stylesOfficeStyleFamilygetStyles()Get the family of presentation styles-
Methods inherited from class writer2latex.xhtml.FrameStyleConverter
applyProperties, borderScale, cssBackground, cssBackgroundCommon, cssBorder, cssBox, cssMargins, cssPadding
-
Methods inherited from class writer2latex.xhtml.StyleWithPropertiesConverterHelper
applyStyle
-
Methods inherited from class writer2latex.xhtml.StyleConverterHelper
applyDirection, applyLang, colScale, scale
-
Methods inherited from class writer2latex.xhtml.ConverterHelper
applyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc
-
-
-
-
Constructor Detail
-
PresentationStyleConverter
public PresentationStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType)
Create a newPresentationStyleConverter- Parameters:
ofr- anOfficeReaderto read style information fromconfig- the configuration to useconverter- the mainConverterclassnType- the type of xhtml to use
-
-
Method Detail
-
getClassNamePrefix
public java.lang.String getClassNamePrefix()
Return a prefix to be used in generated css class names- Overrides:
getClassNamePrefixin classFrameStyleConverter- Returns:
- the prefix
-
getStyles
public OfficeStyleFamily getStyles()
Get the family of presentation styles- Overrides:
getStylesin classFrameStyleConverter- Returns:
- the style family
-
getDefaultTagName
public java.lang.String getDefaultTagName(StyleWithProperties style)
Create default tag name to represent a presentation object- Overrides:
getDefaultTagNamein classFrameStyleConverter- Parameters:
style- to use- Returns:
- the tag name.
-
getStyleDeclarations
public java.lang.String getStyleDeclarations(java.lang.String sIndent)
Convert style information for used styles
- Overrides:
getStyleDeclarationsin classFrameStyleConverter- Parameters:
sIndent- a String of spaces to add before each line
-
enterOutline
public void enterOutline(java.lang.String sStyleName)
-
exitOutline
public void exitOutline()
-
applyOutlineStyle
public void applyOutlineStyle(int nLevel, StyleInfo info)
-
-