Package writer2latex.xhtml
Class PresentationStyleConverter
java.lang.Object
writer2latex.xhtml.StyleConverterHelper
writer2latex.xhtml.StyleWithPropertiesConverterHelper
writer2latex.xhtml.FrameStyleConverter
writer2latex.xhtml.PresentationStyleConverter
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 -
Constructor Summary
ConstructorsConstructorDescriptionPresentationStyleConverter(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a newPresentationStyleConverter -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyOutlineStyle(int nLevel, StyleInfo info) voidenterOutline(String sStyleName) voidReturn a prefix to be used in generated css class namesCreate default tag name to represent a presentation objectgetStyleDeclarations(String sIndent) Convert style information for used stylesGet the family of presentation stylesMethods inherited from class writer2latex.xhtml.FrameStyleConverter
applyProperties, borderScale, cssBackground, cssBackgroundCommon, cssBorder, cssBox, cssMargins, cssPaddingMethods inherited from class writer2latex.xhtml.StyleWithPropertiesConverterHelper
applyStyleMethods inherited from class writer2latex.xhtml.StyleConverterHelper
applyDirection, applyLang, colScale, scale
-
Constructor Details
-
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 Details
-
getClassNamePrefix
Return a prefix to be used in generated css class names- Overrides:
getClassNamePrefixin classFrameStyleConverter- Returns:
- the prefix
-
getStyles
Get the family of presentation styles- Overrides:
getStylesin classFrameStyleConverter- Returns:
- the style family
-
getDefaultTagName
Create default tag name to represent a presentation object- Overrides:
getDefaultTagNamein classFrameStyleConverter- Parameters:
style- to use- Returns:
- the tag name.
-
getStyleDeclarations
Convert style information for used styles
- Overrides:
getStyleDeclarationsin classFrameStyleConverter- Parameters:
sIndent- a String of spaces to add before each line
-
enterOutline
-
exitOutline
public void exitOutline() -
applyOutlineStyle
-