Package writer2latex.xhtml
Class PageStyleConverter
java.lang.Object
writer2latex.xhtml.ConverterHelper
writer2latex.xhtml.StyleConverterHelper
writer2latex.xhtml.PageStyleConverter
This class converts OpenDocument page styles to CSS2 styles.
A page style in a presentation is represented through the master page,
which links to a page layout defining the geometry and optionally a drawing
page defining the drawing background.
In a presentation document we export the full page style, in a text
document we only export the background.
-
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
ConstructorsConstructorDescriptionPageStyleConverter
(OfficeReader ofr, XhtmlConfig config, Converter converter, int nType) Create a newPageStyleConverter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyStyle
(String sStyleName, StyleInfo info) getStyleDeclarations
(String sIndent) Convert style information for used stylesGet the family of page styles (master pages)Methods inherited from class writer2latex.xhtml.StyleConverterHelper
applyDirection, applyLang, colScale, scale
Methods inherited from class writer2latex.xhtml.ConverterHelper
applyStyle, getCellSc, getDrawCv, getFrameSc, getListSc, getMathCv, getPageSc, getParSc, getPresentationSc, getRowSc, getSectionSc, getStyleCv, getTableCv, getTableSc, getTextCv, getTextSc
-
Constructor Details
-
PageStyleConverter
Create a newPageStyleConverter
- Parameters:
ofr
- anOfficeReader
to read style information fromconfig
- the configuration to useconverter
- the mainConverter
classnType
- the type of xhtml to use
-
-
Method Details
-
applyStyle
-
getStyleDeclarations
Convert style information for used styles- Specified by:
getStyleDeclarations
in classStyleConverterHelper
- Parameters:
sIndent
- a String of spaces to add before each line
-
getStyles
Get the family of page styles (master pages)- Specified by:
getStyles
in classStyleConverterHelper
- Returns:
- the style family
-