writer2latex.util

Class Config


public class Config
extends java.lang.Object

Config.java This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1, as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Copyright: 2002-2007 by Henrik Just All Rights Reserved. Version 0.5 (2007-07-24)

Field Summary

static int
ACCEPT
static int
COMMENT
static int
CONVERT_ALL
static int
CONVERT_BASIC
static int
CONVERT_HEADER_FOOTER
static int
CONVERT_MOST
static int
CUSTOM
static int
DVIPS
static int
ERROR
static int
GENERIC
static int
IGNORE
static int
IGNORE_ALL
static int
IGNORE_HARD
static int
IGNORE_MOST
static int
IGNORE_STYLES
static int
MARGINPAR
static int
PDFANNOTATION
static int
PDFTEX
static int
UNSPECIFIED
static int
WARNING
protected boolean
bDebug
protected LinkedList
customPreamble
protected HeadingMap
headingMap
protected StyleMap
list
protected StyleMap
listItem
protected Hashtable
mathSymbols
protected StyleMap
par
protected StyleMap
parBlock
protected ReplacementTrie
stringReplace
protected StyleMap
text
protected XhtmlStyleMap
xattr
protected XhtmlStyleMap
xframe
protected XhtmlStyleMap
xlist
protected XhtmlStyleMap
xpar
protected XhtmlStyleMap
xtext

Constructor Summary

Config()

Method Summary

boolean
alignFrames()
String
bibtexStyle()
boolean
debug()
boolean
floatFigures()
boolean
floatTables()
int
formatting()
int
getBackend()
LinkedList
getCustomPreamble()
String
getDocumentclass()
String
getFigureSequenceName()
String
getFloatOptions()
String
getGlobalOptions()
HeadingMap
getHeadingMap()
String
getImageOptions()
int
getInputencoding()
StyleMap
getListItemStyleMap()
StyleMap
getListStyleMap()
Hashtable
getMathSymbols()
String
getNotesCommand()
StyleMap
getParBlockStyleMap()
StyleMap
getParStyleMap()
int
getSimpleTableLimit()
ReplacementTrie
getStringReplace()
String
getTableSequenceName()
String
getTabstop()
StyleMap
getTextStyleMap()
int
getWrapLinesAfter()
XhtmlStyleMap
getXAttrStyleMap()
XhtmlStyleMap
getXFrameStyleMap()
XhtmlStyleMap
getXListStyleMap()
XhtmlStyleMap
getXParStyleMap()
XhtmlStyleMap
getXTextStyleMap()
String
getXhtmlColumnScaling()
String
getXhtmlDirectoryIcon()
String
getXhtmlDocumentIcon()
String
getXhtmlScaling()
int
getXhtmlSplitLevel()
String
getXhtmlTabstopStyle()
String
getXhtmlUplink()
boolean
greekMath()
boolean
ignoreDoubleSpaces()
boolean
ignoreEmptyParagraphs()
boolean
ignoreHardLineBreaks()
boolean
ignoreHardPageBreaks()
int
imageContent()
boolean
keepImageSize()
boolean
multilingual()
boolean
noIndex()
boolean
noPreamble()
int
notes()
int
otherStyles()
int
pageFormatting()
void
read(InputStream is)
Read configuration from a specified input stream
void
readHeadingMap(Node node)
boolean
removeGraphicsExtension()
void
setOption(String sName, String sValue)
boolean
splitLinkedSections()
boolean
splitToplevelSections()
int
tableContent()
boolean
useBbding()
boolean
useBibtex()
boolean
useCaption()
boolean
useColor()
boolean
useColortbl()
boolean
useEndnotes()
boolean
useEurosym()
boolean
useFancyhdr()
boolean
useGeometry()
boolean
useHyperref()
boolean
useIfsym()
boolean
useLastpage()
boolean
useLongtable()
boolean
useOoomath()
boolean
useOooref()
boolean
usePifont()
boolean
useSupertabular()
boolean
useTabulary()
boolean
useTipa()
boolean
useTitleref()
boolean
useUlem()
boolean
useWasysym()
void
write(OutputStream os)
boolean
xhtmlCalcSplit()
boolean
xhtmlConvertToPx()
String
xhtmlCustomStylesheet()
String
xhtmlEncoding()
boolean
xhtmlFloatObjects()
int
xhtmlFormatting()
int
xhtmlFrameFormatting()
boolean
xhtmlIgnoreTableDimensions()
boolean
xhtmlNoDoctype()
int
xhtmlSectionFormatting()
int
xhtmlTableFormatting()
boolean
xhtmlUseDublinCore()
boolean
xhtmlUseListHack()

Field Details

ACCEPT

public static final int ACCEPT
Field Value:
1

COMMENT

public static final int COMMENT
Field Value:
1

CONVERT_ALL

public static final int CONVERT_ALL
Field Value:
4

CONVERT_BASIC

public static final int CONVERT_BASIC
Field Value:
2

CONVERT_HEADER_FOOTER

public static final int CONVERT_HEADER_FOOTER
Field Value:
5

CONVERT_MOST

public static final int CONVERT_MOST
Field Value:
3

CUSTOM

public static final int CUSTOM
Field Value:
4

DVIPS

public static final int DVIPS
Field Value:
1

ERROR

public static final int ERROR
Field Value:
3

GENERIC

public static final int GENERIC
Field Value:
0

IGNORE

public static final int IGNORE
Field Value:
0

IGNORE_ALL

public static final int IGNORE_ALL
Field Value:
0

IGNORE_HARD

public static final int IGNORE_HARD
Field Value:
7

IGNORE_MOST

public static final int IGNORE_MOST
Field Value:
1

IGNORE_STYLES

public static final int IGNORE_STYLES
Field Value:
6

MARGINPAR

public static final int MARGINPAR
Field Value:
3

PDFANNOTATION

public static final int PDFANNOTATION
Field Value:
2

PDFTEX

public static final int PDFTEX
Field Value:
2

UNSPECIFIED

public static final int UNSPECIFIED
Field Value:
3

WARNING

public static final int WARNING
Field Value:
2

bDebug

protected boolean bDebug

customPreamble

protected LinkedList customPreamble

headingMap

protected HeadingMap headingMap

list

protected StyleMap list

listItem

protected StyleMap listItem

mathSymbols

protected Hashtable mathSymbols

par

protected StyleMap par

parBlock

protected StyleMap parBlock

stringReplace

protected ReplacementTrie stringReplace

text

protected StyleMap text

xattr

protected XhtmlStyleMap xattr

xframe

protected XhtmlStyleMap xframe

xlist

protected XhtmlStyleMap xlist

xpar

protected XhtmlStyleMap xpar

xtext

protected XhtmlStyleMap xtext

Constructor Details

Config

public Config()

Method Details

alignFrames

public boolean alignFrames()

bibtexStyle

public String bibtexStyle()

debug

public boolean debug()

floatFigures

public boolean floatFigures()

floatTables

public boolean floatTables()

formatting

public int formatting()

getBackend

public int getBackend()

getCustomPreamble

public LinkedList getCustomPreamble()

getDocumentclass

public String getDocumentclass()

getFigureSequenceName

public String getFigureSequenceName()

getFloatOptions

public String getFloatOptions()

getGlobalOptions

public String getGlobalOptions()

getHeadingMap

public HeadingMap getHeadingMap()

getImageOptions

public String getImageOptions()

getInputencoding

public int getInputencoding()

getListItemStyleMap

public StyleMap getListItemStyleMap()

getListStyleMap

public StyleMap getListStyleMap()

getMathSymbols

public Hashtable getMathSymbols()

getNotesCommand

public String getNotesCommand()

getParBlockStyleMap

public StyleMap getParBlockStyleMap()

getParStyleMap

public StyleMap getParStyleMap()

getSimpleTableLimit

public int getSimpleTableLimit()

getStringReplace

public ReplacementTrie getStringReplace()

getTableSequenceName

public String getTableSequenceName()

getTabstop

public String getTabstop()

getTextStyleMap

public StyleMap getTextStyleMap()

getWrapLinesAfter

public int getWrapLinesAfter()

getXAttrStyleMap

public XhtmlStyleMap getXAttrStyleMap()

getXFrameStyleMap

public XhtmlStyleMap getXFrameStyleMap()

getXListStyleMap

public XhtmlStyleMap getXListStyleMap()

getXParStyleMap

public XhtmlStyleMap getXParStyleMap()

getXTextStyleMap

public XhtmlStyleMap getXTextStyleMap()

getXhtmlColumnScaling

public String getXhtmlColumnScaling()

getXhtmlDirectoryIcon

public String getXhtmlDirectoryIcon()

getXhtmlDocumentIcon

public String getXhtmlDocumentIcon()

getXhtmlScaling

public String getXhtmlScaling()

getXhtmlSplitLevel

public int getXhtmlSplitLevel()

getXhtmlTabstopStyle

public String getXhtmlTabstopStyle()

getXhtmlUplink

public String getXhtmlUplink()

greekMath

public boolean greekMath()

ignoreDoubleSpaces

public boolean ignoreDoubleSpaces()

ignoreEmptyParagraphs

public boolean ignoreEmptyParagraphs()

ignoreHardLineBreaks

public boolean ignoreHardLineBreaks()

ignoreHardPageBreaks

public boolean ignoreHardPageBreaks()

imageContent

public int imageContent()

keepImageSize

public boolean keepImageSize()

multilingual

public boolean multilingual()

noIndex

public boolean noIndex()

noPreamble

public boolean noPreamble()

notes

public int notes()

otherStyles

public int otherStyles()

pageFormatting

public int pageFormatting()

read

public void read(InputStream is)
Read configuration from a specified input stream
Parameters:
is - the input stream to read the configuration from

readHeadingMap

public void readHeadingMap(Node node)

removeGraphicsExtension

public boolean removeGraphicsExtension()

setOption

public void setOption(String sName,
                      String sValue)

splitLinkedSections

public boolean splitLinkedSections()

splitToplevelSections

public boolean splitToplevelSections()

tableContent

public int tableContent()

useBbding

public boolean useBbding()

useBibtex

public boolean useBibtex()

useCaption

public boolean useCaption()

useColor

public boolean useColor()

useColortbl

public boolean useColortbl()

useEndnotes

public boolean useEndnotes()

useEurosym

public boolean useEurosym()

useFancyhdr

public boolean useFancyhdr()

useGeometry

public boolean useGeometry()

useHyperref

public boolean useHyperref()

useIfsym

public boolean useIfsym()

useLastpage

public boolean useLastpage()

useLongtable

public boolean useLongtable()

useOoomath

public boolean useOoomath()

useOooref

public boolean useOooref()

usePifont

public boolean usePifont()

useSupertabular

public boolean useSupertabular()

useTabulary

public boolean useTabulary()

useTipa

public boolean useTipa()

useTitleref

public boolean useTitleref()

useUlem

public boolean useUlem()

useWasysym

public boolean useWasysym()

write

public void write(OutputStream os)

xhtmlCalcSplit

public boolean xhtmlCalcSplit()

xhtmlConvertToPx

public boolean xhtmlConvertToPx()

xhtmlCustomStylesheet

public String xhtmlCustomStylesheet()

xhtmlEncoding

public String xhtmlEncoding()

xhtmlFloatObjects

public boolean xhtmlFloatObjects()

xhtmlFormatting

public int xhtmlFormatting()

xhtmlFrameFormatting

public int xhtmlFrameFormatting()

xhtmlIgnoreTableDimensions

public boolean xhtmlIgnoreTableDimensions()

xhtmlNoDoctype

public boolean xhtmlNoDoctype()

xhtmlSectionFormatting

public int xhtmlSectionFormatting()

xhtmlTableFormatting

public int xhtmlTableFormatting()

xhtmlUseDublinCore

public boolean xhtmlUseDublinCore()

xhtmlUseListHack

public boolean xhtmlUseListHack()