writer2latex.xhtml
Class XhtmlConfig

java.lang.Object
  extended by writer2latex.base.ConfigBase
      extended by writer2latex.xhtml.XhtmlConfig
All Implemented Interfaces:
Config

public class XhtmlConfig
extends ConfigBase


Field Summary
private static int ADD_BOM
           
private static int APPLY_PRINT_RANGES
           
private static int CALC_SPLIT
           
private static int COLUMN_SCALING
           
static int CONVERT_ALL
           
private static int CONVERT_TO_PX
           
private static int CUSTOM_STYLESHEET
           
private static int DIRECTORY_ICON
           
private static int DISPLAY_FILTERED_ROWS_COLS
           
private static int DISPLAY_HIDDEN_ROWS_COLS
           
private static int DISPLAY_HIDDEN_SHEETS
           
private static int DOCUMENT_ICON
           
private static int ENCODING
           
private static int FLOAT_OBJECTS
           
private static int FORMATTING
           
private static int FRAME_FORMATTING
           
static int IGNORE_ALL
           
private static int IGNORE_DOUBLE_SPACES
           
private static int IGNORE_EMPTY_PARAGRAPHS
           
static int IGNORE_HARD
           
private static int IGNORE_HARD_LINE_BREAKS
           
static int IGNORE_STYLES
           
private static int IGNORE_TABLE_DIMENSIONS
           
private static int NO_DOCTYPE
           
private static int NOTES
           
private static int ORIGINAL_IMAGE_SIZE
           
private static int REPEAT_LEVELS
           
private static int SAVE_IMAGES_IN_SUBDIR
           
private static int SCALING
           
private static int SECTION_FORMATTING
           
private static int SPLIT_LEVEL
           
private static int TABLE_FORMATTING
           
private static int TABSTOP_STYLE
           
private static int UPLINK
           
private static int USE_DUBLIN_CORE
           
private static int USE_LIST_HACK
           
private static int USE_NAMED_ENTITIES
           
private static int USE_SHEET_NAMES_AS_HEADINGS
           
private static int USE_TITLE_AS_HEADING
           
protected  XhtmlStyleMap xattr
           
protected  XhtmlStyleMap xframe
           
protected  XhtmlStyleMap xlist
           
protected  XhtmlStyleMap xpar
           
private static int XSLT_PATH
           
protected  XhtmlStyleMap xtext
           
 
Fields inherited from class writer2latex.base.ConfigBase
options
 
Constructor Summary
XhtmlConfig()
           
 
Method Summary
 boolean applyPrintRanges()
           
 boolean displayFilteredRowsCols()
           
 boolean displayHiddenRowsCols()
           
protected  java.lang.String getDefaultConfigPath()
           
protected  int getOptionCount()
           
 XhtmlStyleMap getXAttrStyleMap()
           
 XhtmlStyleMap getXFrameStyleMap()
           
 java.lang.String getXhtmlColumnScaling()
           
 java.lang.String getXhtmlDirectoryIcon()
           
 java.lang.String getXhtmlDocumentIcon()
           
 int getXhtmlRepeatLevels()
           
 java.lang.String getXhtmlScaling()
           
 int getXhtmlSplitLevel()
           
 java.lang.String getXhtmlTabstopStyle()
           
 java.lang.String getXhtmlUplink()
           
 XhtmlStyleMap getXListStyleMap()
           
 XhtmlStyleMap getXParStyleMap()
           
 java.lang.String getXsltPath()
           
 XhtmlStyleMap getXTextStyleMap()
           
 boolean ignoreDoubleSpaces()
           
 boolean ignoreEmptyParagraphs()
           
 boolean ignoreHardLineBreaks()
           
 boolean originalImageSize()
           
protected  void readInner(org.w3c.dom.Element elm)
          Read configuration information from an xml element.
 boolean saveImagesInSubdir()
           
 void setOption(java.lang.String sName, java.lang.String sValue)
          Set a name/value option.
 boolean useNamedEntities()
           
protected  void writeInner(org.w3c.dom.Document dom)
          Write configuration information to an xml document.
private  void writeXStyleMap(org.w3c.dom.Document dom, XhtmlStyleMap sm, java.lang.String sFamily)
           
 boolean xhtmlAddBOM()
           
 boolean xhtmlCalcSplit()
           
 boolean xhtmlConvertToPx()
           
 java.lang.String xhtmlCustomStylesheet()
           
 boolean xhtmlDisplayHiddenSheets()
           
 java.lang.String xhtmlEncoding()
           
 boolean xhtmlFloatObjects()
           
 int xhtmlFormatting()
           
 int xhtmlFrameFormatting()
           
 boolean xhtmlIgnoreTableDimensions()
           
 boolean xhtmlNoDoctype()
           
 boolean xhtmlNotes()
           
 int xhtmlSectionFormatting()
           
 int xhtmlTableFormatting()
           
 boolean xhtmlUseDublinCore()
           
 boolean xhtmlUseListHack()
           
 boolean xhtmlUseSheetNamesAsHeadings()
           
 boolean xhtmlUseTitleAsHeading()
           
 
Methods inherited from class writer2latex.base.ConfigBase
getOption, read, read, readDefaultConfig, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE_ALL

public static final int IGNORE_ALL
See Also:
Constant Field Values

IGNORE_STYLES

public static final int IGNORE_STYLES
See Also:
Constant Field Values

IGNORE_HARD

public static final int IGNORE_HARD
See Also:
Constant Field Values

CONVERT_ALL

public static final int CONVERT_ALL
See Also:
Constant Field Values

IGNORE_HARD_LINE_BREAKS

private static final int IGNORE_HARD_LINE_BREAKS
See Also:
Constant Field Values

IGNORE_EMPTY_PARAGRAPHS

private static final int IGNORE_EMPTY_PARAGRAPHS
See Also:
Constant Field Values

IGNORE_DOUBLE_SPACES

private static final int IGNORE_DOUBLE_SPACES
See Also:
Constant Field Values

ORIGINAL_IMAGE_SIZE

private static final int ORIGINAL_IMAGE_SIZE
See Also:
Constant Field Values

NO_DOCTYPE

private static final int NO_DOCTYPE
See Also:
Constant Field Values

ADD_BOM

private static final int ADD_BOM
See Also:
Constant Field Values

ENCODING

private static final int ENCODING
See Also:
Constant Field Values

USE_NAMED_ENTITIES

private static final int USE_NAMED_ENTITIES
See Also:
Constant Field Values

CUSTOM_STYLESHEET

private static final int CUSTOM_STYLESHEET
See Also:
Constant Field Values

FORMATTING

private static final int FORMATTING
See Also:
Constant Field Values

FRAME_FORMATTING

private static final int FRAME_FORMATTING
See Also:
Constant Field Values

SECTION_FORMATTING

private static final int SECTION_FORMATTING
See Also:
Constant Field Values

TABLE_FORMATTING

private static final int TABLE_FORMATTING
See Also:
Constant Field Values

IGNORE_TABLE_DIMENSIONS

private static final int IGNORE_TABLE_DIMENSIONS
See Also:
Constant Field Values

USE_DUBLIN_CORE

private static final int USE_DUBLIN_CORE
See Also:
Constant Field Values

NOTES

private static final int NOTES
See Also:
Constant Field Values

CONVERT_TO_PX

private static final int CONVERT_TO_PX
See Also:
Constant Field Values

SCALING

private static final int SCALING
See Also:
Constant Field Values

COLUMN_SCALING

private static final int COLUMN_SCALING
See Also:
Constant Field Values

FLOAT_OBJECTS

private static final int FLOAT_OBJECTS
See Also:
Constant Field Values

TABSTOP_STYLE

private static final int TABSTOP_STYLE
See Also:
Constant Field Values

USE_LIST_HACK

private static final int USE_LIST_HACK
See Also:
Constant Field Values

SPLIT_LEVEL

private static final int SPLIT_LEVEL
See Also:
Constant Field Values

REPEAT_LEVELS

private static final int REPEAT_LEVELS
See Also:
Constant Field Values

CALC_SPLIT

private static final int CALC_SPLIT
See Also:
Constant Field Values

DISPLAY_HIDDEN_SHEETS

private static final int DISPLAY_HIDDEN_SHEETS
See Also:
Constant Field Values

DISPLAY_HIDDEN_ROWS_COLS

private static final int DISPLAY_HIDDEN_ROWS_COLS
See Also:
Constant Field Values

DISPLAY_FILTERED_ROWS_COLS

private static final int DISPLAY_FILTERED_ROWS_COLS
See Also:
Constant Field Values

APPLY_PRINT_RANGES

private static final int APPLY_PRINT_RANGES
See Also:
Constant Field Values

USE_TITLE_AS_HEADING

private static final int USE_TITLE_AS_HEADING
See Also:
Constant Field Values

USE_SHEET_NAMES_AS_HEADINGS

private static final int USE_SHEET_NAMES_AS_HEADINGS
See Also:
Constant Field Values

XSLT_PATH

private static final int XSLT_PATH
See Also:
Constant Field Values

SAVE_IMAGES_IN_SUBDIR

private static final int SAVE_IMAGES_IN_SUBDIR
See Also:
Constant Field Values

UPLINK

private static final int UPLINK
See Also:
Constant Field Values

DIRECTORY_ICON

private static final int DIRECTORY_ICON
See Also:
Constant Field Values

DOCUMENT_ICON

private static final int DOCUMENT_ICON
See Also:
Constant Field Values

xpar

protected XhtmlStyleMap xpar

xtext

protected XhtmlStyleMap xtext

xframe

protected XhtmlStyleMap xframe

xlist

protected XhtmlStyleMap xlist

xattr

protected XhtmlStyleMap xattr
Constructor Detail

XhtmlConfig

public XhtmlConfig()
Method Detail

getOptionCount

protected int getOptionCount()
Specified by:
getOptionCount in class ConfigBase

getDefaultConfigPath

protected java.lang.String getDefaultConfigPath()
Specified by:
getDefaultConfigPath in class ConfigBase

setOption

public void setOption(java.lang.String sName,
                      java.lang.String sValue)
Description copied from interface: Config
Set a name/value option. Options that are not defined by the Converter implementation as well as null values are silently ignored

Specified by:
setOption in interface Config
Overrides:
setOption in class ConfigBase
Parameters:
sName - the name of the option
sValue - the value of the option

readInner

protected void readInner(org.w3c.dom.Element elm)
Description copied from class: ConfigBase
Read configuration information from an xml element. The subclass must define this to read richer configuration data

Specified by:
readInner in class ConfigBase

writeInner

protected void writeInner(org.w3c.dom.Document dom)
Description copied from class: ConfigBase
Write configuration information to an xml document. The subclass must define this to write richer configuration data

Specified by:
writeInner in class ConfigBase

writeXStyleMap

private void writeXStyleMap(org.w3c.dom.Document dom,
                            XhtmlStyleMap sm,
                            java.lang.String sFamily)

ignoreHardLineBreaks

public boolean ignoreHardLineBreaks()

ignoreEmptyParagraphs

public boolean ignoreEmptyParagraphs()

ignoreDoubleSpaces

public boolean ignoreDoubleSpaces()

originalImageSize

public boolean originalImageSize()

xhtmlNoDoctype

public boolean xhtmlNoDoctype()

xhtmlAddBOM

public boolean xhtmlAddBOM()

xhtmlEncoding

public java.lang.String xhtmlEncoding()

useNamedEntities

public boolean useNamedEntities()

xhtmlCustomStylesheet

public java.lang.String xhtmlCustomStylesheet()

xhtmlFormatting

public int xhtmlFormatting()

xhtmlFrameFormatting

public int xhtmlFrameFormatting()

xhtmlSectionFormatting

public int xhtmlSectionFormatting()

xhtmlTableFormatting

public int xhtmlTableFormatting()

xhtmlIgnoreTableDimensions

public boolean xhtmlIgnoreTableDimensions()

xhtmlUseDublinCore

public boolean xhtmlUseDublinCore()

xhtmlNotes

public boolean xhtmlNotes()

xhtmlConvertToPx

public boolean xhtmlConvertToPx()

getXhtmlScaling

public java.lang.String getXhtmlScaling()

getXhtmlColumnScaling

public java.lang.String getXhtmlColumnScaling()

xhtmlFloatObjects

public boolean xhtmlFloatObjects()

getXhtmlTabstopStyle

public java.lang.String getXhtmlTabstopStyle()

xhtmlUseListHack

public boolean xhtmlUseListHack()

getXhtmlSplitLevel

public int getXhtmlSplitLevel()

getXhtmlRepeatLevels

public int getXhtmlRepeatLevels()

xhtmlCalcSplit

public boolean xhtmlCalcSplit()

xhtmlDisplayHiddenSheets

public boolean xhtmlDisplayHiddenSheets()

displayHiddenRowsCols

public boolean displayHiddenRowsCols()

displayFilteredRowsCols

public boolean displayFilteredRowsCols()

applyPrintRanges

public boolean applyPrintRanges()

xhtmlUseTitleAsHeading

public boolean xhtmlUseTitleAsHeading()

xhtmlUseSheetNamesAsHeadings

public boolean xhtmlUseSheetNamesAsHeadings()

getXsltPath

public java.lang.String getXsltPath()

saveImagesInSubdir

public boolean saveImagesInSubdir()

getXhtmlUplink

public java.lang.String getXhtmlUplink()

getXhtmlDirectoryIcon

public java.lang.String getXhtmlDirectoryIcon()

getXhtmlDocumentIcon

public java.lang.String getXhtmlDocumentIcon()

getXParStyleMap

public XhtmlStyleMap getXParStyleMap()

getXTextStyleMap

public XhtmlStyleMap getXTextStyleMap()

getXFrameStyleMap

public XhtmlStyleMap getXFrameStyleMap()

getXListStyleMap

public XhtmlStyleMap getXListStyleMap()

getXAttrStyleMap

public XhtmlStyleMap getXAttrStyleMap()