com.lowagie.text.rtf.parser.destinations

Class RtfDestinationStylesheetTable

public class RtfDestinationStylesheetTable extends RtfDestination

RtfDestinationStylesheetTable handles data destined for the Stylesheet Table destination

Since: 2.1.0

Author: Howard Shank (hgshank@yahoo.com)

Field Summary
intAutoSpaceBetweenDBCEnglish
auto spacing betwee DBC and English
intAutoSpaceBetweenDBCNumbers
auto spacing betwee DBC and numbers
intadustRightIndent
Automatically adjust right indentation when docunent grid is defined
intalignment
Alignment - page 85 \qc, \qj, \ql, \qr, \qd, \qkN, \qt
StringelementName
intfirstLineIndent
First line indentation.
RtfImportMgrimportHeader
The RtfImportHeader to add color mappings to.
intjustificationPercentage
Percentage of line occupied by Kashida justification (0 o?
intleftIndent
Left indentation
intmirrorIndent
Mirror indents?
intnoCharacterWrapping
No Character wrapping
intnoOverflowPeriodComma
No overflow period and comma
intnoWordWrapping
No Word wrapping
intoverrideWidowControl
Override orphan/widow control.
intrightIndent
Right indentation
RtfParagraphStylertfParagraphStyle
RtfParagraphStyle object for setting styleshee values as they are parsed from the input.
StringstyleName
intstyleNr
RTF Style number from stylesheet table.
intstyleType
What kind of style is this, Paragraph or Character or Table
Stringtype
Constructor Summary
RtfDestinationStylesheetTable()
RtfDestinationStylesheetTable(RtfParser parser, String type)
Method Summary
booleancloseDestination()
voidcreateNewStyle()
intgetAdustRightIndent()
Get the right indent adjustment value
intgetAlignment()
Get the alignment value.
intgetAutoSpaceBetweenDBCEnglish()
Get the auto space between DBC and English indicator.
intgetAutoSpaceBetweenDBCNumbers()
Get the auto space between DBC and Numbers indicator.
intgetFirstLineIndent()
Get the first line indent value.
intgetIndent()
Get the left indent value
intgetJustificationPercentage()
Get the justification percentage.
intgetLeftIndent()
Get the left indent value
intgetMirrorIndent()
Get the value indicating if document has mirrored indents.
intgetNoCharacterWrapping()
Get no character wrapping indicator.
intgetNoOverflowPeriodComma()
Get the no overflow period comma indicator.
intgetNoWordWrapping()
Get the no word wrapping indicator.
intgetOverrideWidowControl()
Get the ovirride widow control value.
intgetRightIndent()
Get the right indent value.
intgetStyleNr()
Get this style number.
intgetStyleType()
Get this style type.
booleanhandleCharacter(int ch)
booleanhandleCloseGroup()
booleanhandleControlWord(RtfCtrlWordData ctrlWordData)
booleanhandleOpenGroup()
booleanhandleOpeningSubGroup()
voidsetAdustRightIndent(int adustRightIndent)
Set the right indent adjustment value
intsetAlignment(int alignment)
Set the alignment value from the parsed value.
voidsetAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish)
Set the auto space between DBC and English indicator.
voidsetAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers)
Set the auto space between DBC and Numbers indicator.
voidsetElementName(String value)
voidsetFirstLineIndent(int firstLineIndent)
Set the first line indent value.
voidsetIndent(int indent)
Set the left indent value from the value parsed.
intsetJustificationPercentage(int percent)
Set the justification percentage from parsed value.
voidsetLeftIndent(int leftIndent)
Set the left indent value
voidsetMirrorIndent(int mirrorIndent)
Set the mirrored indent value from the parsed value.
voidsetNoCharacterWrapping(int noCharacterWrapping)
Set the no character wrapping indicator from parsed value
voidsetNoOverflowPeriodComma(int noOverflowPeriodComma)
Set the no overflow period comma indicator from the parsed value.
voidsetNoWordWrapping(int noWordWrapping)
Set the no word wrapping indicator from the parsed value.
voidsetOverrideWidowControl(int overrideWidowControl)
Set the override widow control.
voidsetParser(RtfParser parser)
voidsetRightIndent(int rightIndent)
Set the right indent value.
voidsetStyleNr(int styleNr)
Set this style number from the parsed value.
voidsetStyleType(int styleType)
Set the style type.
voidsetToDefaults()
voidsetType(String value)

Field Detail

AutoSpaceBetweenDBCEnglish

private int AutoSpaceBetweenDBCEnglish
auto spacing betwee DBC and English

AutoSpaceBetweenDBCNumbers

private int AutoSpaceBetweenDBCNumbers
auto spacing betwee DBC and numbers

adustRightIndent

private int adustRightIndent
Automatically adjust right indentation when docunent grid is defined

alignment

private int alignment
Alignment - page 85 \qc, \qj, \ql, \qr, \qd, \qkN, \qt

elementName

private String elementName

firstLineIndent

private int firstLineIndent
First line indentation.

importHeader

private RtfImportMgr importHeader
The RtfImportHeader to add color mappings to.

justificationPercentage

private int justificationPercentage
Percentage of line occupied by Kashida justification (0 o?= low, 10 o?= medium, 20 o?= high). \qkN

leftIndent

private int leftIndent
Left indentation

mirrorIndent

private int mirrorIndent
Mirror indents?

noCharacterWrapping

private int noCharacterWrapping
No Character wrapping

noOverflowPeriodComma

private int noOverflowPeriodComma
No overflow period and comma

noWordWrapping

private int noWordWrapping
No Word wrapping

overrideWidowControl

private int overrideWidowControl
Override orphan/widow control.

rightIndent

private int rightIndent
Right indentation

rtfParagraphStyle

private RtfParagraphStyle rtfParagraphStyle
RtfParagraphStyle object for setting styleshee values as they are parsed from the input.

styleName

private String styleName

styleNr

private int styleNr
RTF Style number from stylesheet table.

styleType

private int styleType
What kind of style is this, Paragraph or Character or Table

type

private String type

Constructor Detail

RtfDestinationStylesheetTable

public RtfDestinationStylesheetTable()

RtfDestinationStylesheetTable

public RtfDestinationStylesheetTable(RtfParser parser, String type)

Method Detail

closeDestination

public boolean closeDestination()

createNewStyle

public void createNewStyle()

getAdustRightIndent

public int getAdustRightIndent()
Get the right indent adjustment value

Returns: the adustRightIndent value

getAlignment

public int getAlignment()
Get the alignment value.

Returns: The alignment value.

getAutoSpaceBetweenDBCEnglish

public int getAutoSpaceBetweenDBCEnglish()
Get the auto space between DBC and English indicator.

Returns: the autoSpaceBetweenDBCEnglish

getAutoSpaceBetweenDBCNumbers

public int getAutoSpaceBetweenDBCNumbers()
Get the auto space between DBC and Numbers indicator.

Returns: the autoSpaceBetweenDBCNumbers

getFirstLineIndent

public int getFirstLineIndent()
Get the first line indent value.

Returns: the firstLineIndent

getIndent

public int getIndent()
Get the left indent value

Returns: the left indent

getJustificationPercentage

public int getJustificationPercentage()
Get the justification percentage.

Returns: The justification percentage value.

getLeftIndent

public int getLeftIndent()
Get the left indent value

Returns: the leftIndent

getMirrorIndent

public int getMirrorIndent()
Get the value indicating if document has mirrored indents.

Returns: the mirrorIndent

getNoCharacterWrapping

public int getNoCharacterWrapping()
Get no character wrapping indicator.

Returns: the noCharacterWrapping

getNoOverflowPeriodComma

public int getNoOverflowPeriodComma()
Get the no overflow period comma indicator.

Returns: the noOverflowPeriodComma

getNoWordWrapping

public int getNoWordWrapping()
Get the no word wrapping indicator.

Returns: the noWordWrapping

getOverrideWidowControl

public int getOverrideWidowControl()
Get the ovirride widow control value.

Returns: the overrideWidowControl

getRightIndent

public int getRightIndent()
Get the right indent value.

Returns: the rightIndent

getStyleNr

public int getStyleNr()
Get this style number.

Returns: the styleNr

getStyleType

public int getStyleType()
Get this style type. For example Style, Character Style, etc.

Returns: the styleType

handleCharacter

public boolean handleCharacter(int ch)

handleCloseGroup

public boolean handleCloseGroup()

handleControlWord

public boolean handleControlWord(RtfCtrlWordData ctrlWordData)

handleOpenGroup

public boolean handleOpenGroup()

handleOpeningSubGroup

public boolean handleOpeningSubGroup()

setAdustRightIndent

public void setAdustRightIndent(int adustRightIndent)
Set the right indent adjustment value

Parameters: adustRightIndent the adustRightIndent to set

setAlignment

public int setAlignment(int alignment)
Set the alignment value from the parsed value.

Parameters: alignment The alignment value.

Returns: The alignment value.

setAutoSpaceBetweenDBCEnglish

public void setAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish)
Set the auto space between DBC and English indicator.

Parameters: autoSpaceBetweenDBCEnglish the autoSpaceBetweenDBCEnglish to set

setAutoSpaceBetweenDBCNumbers

public void setAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers)
Set the auto space between DBC and Numbers indicator.

Parameters: autoSpaceBetweenDBCNumbers the autoSpaceBetweenDBCNumbers to set

setElementName

public void setElementName(String value)

setFirstLineIndent

public void setFirstLineIndent(int firstLineIndent)
Set the first line indent value.

Parameters: firstLineIndent the firstLineIndent to set

setIndent

public void setIndent(int indent)
Set the left indent value from the value parsed.

Parameters: indent the left indent value.

setJustificationPercentage

public int setJustificationPercentage(int percent)
Set the justification percentage from parsed value.

Parameters: percent The justification percentage

Returns: The justification percentage

setLeftIndent

public void setLeftIndent(int leftIndent)
Set the left indent value

Parameters: leftIndent the leftIndent to set

setMirrorIndent

public void setMirrorIndent(int mirrorIndent)
Set the mirrored indent value from the parsed value.

Parameters: mirrorIndent the mirrorIndent to set

setNoCharacterWrapping

public void setNoCharacterWrapping(int noCharacterWrapping)
Set the no character wrapping indicator from parsed value

Parameters: noCharacterWrapping the noCharacterWrapping to set

setNoOverflowPeriodComma

public void setNoOverflowPeriodComma(int noOverflowPeriodComma)
Set the no overflow period comma indicator from the parsed value.

Parameters: noOverflowPeriodComma the noOverflowPeriodComma to set

setNoWordWrapping

public void setNoWordWrapping(int noWordWrapping)
Set the no word wrapping indicator from the parsed value.

Parameters: noWordWrapping the noWordWrapping to set

setOverrideWidowControl

public void setOverrideWidowControl(int overrideWidowControl)
Set the override widow control.

Parameters: overrideWidowControl the overrideWidowControl to set

setParser

public void setParser(RtfParser parser)

setRightIndent

public void setRightIndent(int rightIndent)
Set the right indent value.

Parameters: rightIndent the rightIndent to set

setStyleNr

public void setStyleNr(int styleNr)
Set this style number from the parsed value.

Parameters: styleNr the styleNr to set

setStyleType

public void setStyleType(int styleType)
Set the style type.

Parameters: styleType the styleType to set

setToDefaults

public void setToDefaults()

setType

public void setType(String value)