Package writer2latex.xhtml
Class StyleConverterHelper
java.lang.Object
writer2latex.xhtml.StyleConverterHelper
- Direct Known Subclasses:
HeadingStyleConverter,ListStyleConverter,PageStyleConverter,StyleWithPropertiesConverterHelper
This is an abstract base class to convert an OpenDocument style family to CSS2 styles.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected intprotected XhtmlStyleMapprotected ExportNameCollection -
Constructor Summary
ConstructorsConstructorDescriptionStyleConverterHelper(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a newStyleConverterHelper -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidapplyDirection(StyleWithProperties style, StyleInfo info) Apply the writing direction (ltr or rtl) attribute from a styleprotected static voidapplyLang(StyleWithProperties style, StyleInfo info) Apply language+country from a styleprotected Stringabstract StringgetStyleDeclarations(String sIndent) Convert style information for used stylesabstract OfficeStyleFamilyGet the OpenDocument style family associated with this StyleConverterHelperprotected String
-
Field Details
-
styleNames
-
styleMap
-
bConvertStyles
protected boolean bConvertStyles -
bConvertHard
protected boolean bConvertHard -
nType
protected int nType
-
-
Constructor Details
-
StyleConverterHelper
Create a newStyleConverterHelper- Parameters:
ofr- anOfficeReaderto read style information fromconfig- the configuration to useconverter- the mainConverterclassnType- the type of xhtml to use
-
-
Method Details
-
scale
-
colScale
-
applyDirection
Apply the writing direction (ltr or rtl) attribute from a style- Parameters:
style- the OpenDocument style to useinfo- theStyleInfoobject to add information to
-
applyLang
Apply language+country from a style- Parameters:
style- the OpenDocument style to useinfo- theStyleInfoobject to add information to
-
getStyles
Get the OpenDocument style family associated with this StyleConverterHelper- Returns:
- the style family
-
getStyleDeclarations
Convert style information for used styles
- Parameters:
sIndent- a String of spaces to add before each line
-