Package writer2latex.xhtml
Class StyleConverterHelper
java.lang.Object
writer2latex.xhtml.ConverterHelper
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 boolean
protected boolean
protected int
protected XhtmlStyleMap
protected ExportNameCollection
Fields inherited from class writer2latex.xhtml.ConverterHelper
config, converter, ofr
-
Constructor Summary
ConstructorsConstructorDescriptionStyleConverterHelper
(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a newStyleConverterHelper
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
applyDirection
(StyleWithProperties style, StyleInfo info) Apply the writing direction (ltr or rtl) attribute from a styleprotected static void
applyLang
(StyleWithProperties style, StyleInfo info) Apply language+country from a styleprotected String
abstract String
getStyleDeclarations
(String sIndent) Convert style information for used stylesabstract OfficeStyleFamily
Get the OpenDocument style family associated with this StyleConverterHelperprotected String
Methods inherited from class writer2latex.xhtml.ConverterHelper
applyStyle, getCellSc, getDrawCv, getFrameSc, getHeadingSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc
-
Field Details
-
styleNames
-
styleMap
-
bConvertStyles
protected boolean bConvertStyles -
bConvertHard
protected boolean bConvertHard -
nType
protected int nType
-
-
Constructor Details
-
StyleConverterHelper
Create a newStyleConverterHelper
- Parameters:
ofr
- anOfficeReader
to read style information fromconfig
- the configuration to useconverter
- the mainConverter
classnType
- 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
- theStyleInfo
object to add information to
-
applyLang
Apply language+country from a style- Parameters:
style
- the OpenDocument style to useinfo
- theStyleInfo
object 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
-