Class RtfDestinationStylesheetTable
java.lang.Object
com.lowagie.text.rtf.parser.destinations.RtfDestination
com.lowagie.text.rtf.parser.destinations.RtfDestinationStylesheetTable
RtfDestinationStylesheetTable handles data destined for the
Stylesheet Table destination- Since:
- 2.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intAutomatically adjust right indentation when docunent grid is definedprivate intAlignment - page 85 \qc, \qj, \ql, \qr, \qd, \qkN, \qtprivate intauto spacing betwee DBC and Englishprivate intauto spacing betwee DBC and numbersprivate Stringprivate intFirst line indentation.private RtfImportMgrThe RtfImportHeader to add color mappings to.private intPercentage of line occupied by Kashida justification (0 � low, 10 � medium, 20 � high).private intLeft indentationprivate intMirror indents?private intNo Character wrappingprivate intNo overflow period and commaprivate intNo Word wrappingprivate intOverride orphan/widow control.private intRight indentationprivate RtfParagraphStyleRtfParagraphStyleobject for setting styleshee values as they are parsed from the input.private Stringprivate intRTF Style number from stylesheet table.private intWhat kind of style is this, Paragraph or Character or Tableprivate StringFields inherited from class RtfDestination
lastCtrlWord, modified, rtfParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClean up when destination is closed.voidintGet the right indent adjustment valueintGet the alignment value.intGet the auto space between DBC and English indicator.intGet the auto space between DBC and Numbers indicator.intGet the first line indent value.intGet the left indent valueintGet the justification percentage.intGet the left indent valueintGet the value indicating if document has mirrored indents.intGet no character wrapping indicator.intGet the no overflow period comma indicator.intGet the no word wrapping indicator.intGet the ovirride widow control value.intGet the right indent value.intGet this style number.intGet this style type.booleanhandleCharacter(int ch) Handle text for this destinationbooleanClean up when group is closed.booleanhandleControlWord(RtfCtrlWordData ctrlWordData) Handle control word for this destinationbooleanSetup when group is opened.booleanHandle a new subgroup contained within this groupvoidsetAdustRightIndent(int adustRightIndent) Set the right indent adjustment valueintsetAlignment(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 valuevoidsetMirrorIndent(int mirrorIndent) Set the mirrored indent value from the parsed value.voidsetNoCharacterWrapping(int noCharacterWrapping) Set the no character wrapping indicator from parsed valuevoidsetNoOverflowPeriodComma(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.voidSet the parser to use with the RtfDestination object.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.voidMethod to set this object to the default values.voidMethods inherited from class RtfDestination
addListener, afterCharacter, afterCtrlWord, beforeCharacter, beforeCtrlWord, getNewTokeniserState, isModified, onCharacter, onCloseGroup, onCtrlWord, onOpenGroup, removeListener
-
Field Details
-
styleName
-
rtfParagraphStyle
RtfParagraphStyleobject for setting styleshee values as they are parsed from the input. -
elementName
-
styleNr
private int styleNrRTF Style number from stylesheet table. -
styleType
private int styleTypeWhat kind of style is this, Paragraph or Character or Table -
alignment
private int alignmentAlignment - page 85 \qc, \qj, \ql, \qr, \qd, \qkN, \qt -
justificationPercentage
private int justificationPercentagePercentage of line occupied by Kashida justification (0 � low, 10 � medium, 20 � high). \qkN -
firstLineIndent
private int firstLineIndentFirst line indentation. -
leftIndent
private int leftIndentLeft indentation -
rightIndent
private int rightIndentRight indentation -
adustRightIndent
private int adustRightIndentAutomatically adjust right indentation when docunent grid is defined -
mirrorIndent
private int mirrorIndentMirror indents? -
overrideWidowControl
private int overrideWidowControlOverride orphan/widow control. -
AutoSpaceBetweenDBCEnglish
private int AutoSpaceBetweenDBCEnglishauto spacing betwee DBC and English -
AutoSpaceBetweenDBCNumbers
private int AutoSpaceBetweenDBCNumbersauto spacing betwee DBC and numbers -
noCharacterWrapping
private int noCharacterWrappingNo Character wrapping -
noWordWrapping
private int noWordWrappingNo Word wrapping -
noOverflowPeriodComma
private int noOverflowPeriodCommaNo overflow period and comma -
importHeader
The RtfImportHeader to add color mappings to. -
type
-
-
Constructor Details
-
RtfDestinationStylesheetTable
public RtfDestinationStylesheetTable() -
RtfDestinationStylesheetTable
-
-
Method Details
-
setParser
Description copied from class:RtfDestinationSet the parser to use with the RtfDestination object.- Overrides:
setParserin classRtfDestination- Parameters:
parser- The RtfParser object.
-
setType
-
setElementName
-
handleOpeningSubGroup
public boolean handleOpeningSubGroup()Description copied from class:RtfDestinationHandle a new subgroup contained within this group- Specified by:
handleOpeningSubGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
closeDestination
public boolean closeDestination()Description copied from class:RtfDestinationClean up when destination is closed.- Specified by:
closeDestinationin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleControlWord
Description copied from class:RtfDestinationHandle control word for this destination- Specified by:
handleControlWordin classRtfDestination- Parameters:
ctrlWordData- The control word and parameter information object- Returns:
- true if handled, false if not handled
-
handleCloseGroup
public boolean handleCloseGroup()Description copied from class:RtfDestinationClean up when group is closed.- Specified by:
handleCloseGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleOpenGroup
public boolean handleOpenGroup()Description copied from class:RtfDestinationSetup when group is opened.- Specified by:
handleOpenGroupin classRtfDestination- Returns:
- true if handled, false if not handled
-
handleCharacter
public boolean handleCharacter(int ch) Description copied from class:RtfDestinationHandle text for this destination- Specified by:
handleCharacterin classRtfDestination- Returns:
- true if handled, false if not handled
-
createNewStyle
public void createNewStyle() -
setJustificationPercentage
public int setJustificationPercentage(int percent) Set the justification percentage from parsed value.- Parameters:
percent- The justification percentage- Returns:
- The justification percentage
-
getJustificationPercentage
public int getJustificationPercentage()Get the justification percentage.- Returns:
- The justification percentage value.
-
setAlignment
public int setAlignment(int alignment) Set the alignment value from the parsed value.- Parameters:
alignment- The alignment value.- Returns:
- The alignment value.
-
getAlignment
public int getAlignment()Get the alignment value.- Returns:
- The alignment value.
-
getFirstLineIndent
public int getFirstLineIndent()Get the first line indent value.- Returns:
- the firstLineIndent
-
setFirstLineIndent
public void setFirstLineIndent(int firstLineIndent) Set the first line indent value.- Parameters:
firstLineIndent- the firstLineIndent to set
-
getIndent
public int getIndent()Get the left indent value- Returns:
- the left indent
-
setIndent
public void setIndent(int indent) Set the left indent value from the value parsed.- Parameters:
indent- the left indent value.
-
getAdustRightIndent
public int getAdustRightIndent()Get the right indent adjustment value- Returns:
- the adustRightIndent value
-
setAdustRightIndent
public void setAdustRightIndent(int adustRightIndent) Set the right indent adjustment value- Parameters:
adustRightIndent- the adustRightIndent to set
-
getLeftIndent
public int getLeftIndent()Get the left indent value- Returns:
- the leftIndent
-
setLeftIndent
public void setLeftIndent(int leftIndent) Set the left indent value- Parameters:
leftIndent- the leftIndent to set
-
getMirrorIndent
public int getMirrorIndent()Get the value indicating if document has mirrored indents.- Returns:
- the mirrorIndent
-
setMirrorIndent
public void setMirrorIndent(int mirrorIndent) Set the mirrored indent value from the parsed value.- Parameters:
mirrorIndent- the mirrorIndent to set
-
getRightIndent
public int getRightIndent()Get the right indent value.- Returns:
- the rightIndent
-
setRightIndent
public void setRightIndent(int rightIndent) Set the right indent value.- Parameters:
rightIndent- the rightIndent to set
-
getOverrideWidowControl
public int getOverrideWidowControl()Get the ovirride widow control value.- Returns:
- the overrideWidowControl
-
setOverrideWidowControl
public void setOverrideWidowControl(int overrideWidowControl) Set the override widow control.- Parameters:
overrideWidowControl- the overrideWidowControl to set
-
getAutoSpaceBetweenDBCEnglish
public int getAutoSpaceBetweenDBCEnglish()Get the auto space between DBC and English indicator.- Returns:
- the autoSpaceBetweenDBCEnglish
-
setAutoSpaceBetweenDBCEnglish
public void setAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish) Set the auto space between DBC and English indicator.- Parameters:
autoSpaceBetweenDBCEnglish- the autoSpaceBetweenDBCEnglish to set
-
getAutoSpaceBetweenDBCNumbers
public int getAutoSpaceBetweenDBCNumbers()Get the auto space between DBC and Numbers indicator.- Returns:
- the autoSpaceBetweenDBCNumbers
-
setAutoSpaceBetweenDBCNumbers
public void setAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers) Set the auto space between DBC and Numbers indicator.- Parameters:
autoSpaceBetweenDBCNumbers- the autoSpaceBetweenDBCNumbers to set
-
getNoCharacterWrapping
public int getNoCharacterWrapping()Get no character wrapping indicator.- Returns:
- the noCharacterWrapping
-
setNoCharacterWrapping
public void setNoCharacterWrapping(int noCharacterWrapping) Set the no character wrapping indicator from parsed value- Parameters:
noCharacterWrapping- the noCharacterWrapping to set
-
getNoOverflowPeriodComma
public int getNoOverflowPeriodComma()Get the no overflow period comma indicator.- Returns:
- the noOverflowPeriodComma
-
setNoOverflowPeriodComma
public void setNoOverflowPeriodComma(int noOverflowPeriodComma) Set the no overflow period comma indicator from the parsed value.- Parameters:
noOverflowPeriodComma- the noOverflowPeriodComma to set
-
getNoWordWrapping
public int getNoWordWrapping()Get the no word wrapping indicator.- Returns:
- the noWordWrapping
-
setNoWordWrapping
public void setNoWordWrapping(int noWordWrapping) Set the no word wrapping indicator from the parsed value.- Parameters:
noWordWrapping- the noWordWrapping to set
-
getStyleNr
public int getStyleNr()Get this style number.- Returns:
- the styleNr
-
setStyleNr
public void setStyleNr(int styleNr) Set this style number from the parsed value.- Parameters:
styleNr- the styleNr to set
-
getStyleType
public int getStyleType()Get this style type. For example Style, Character Style, etc.- Returns:
- the styleType
-
setStyleType
public void setStyleType(int styleType) Set the style type.- Parameters:
styleType- the styleType to set
-
setToDefaults
public void setToDefaults()Description copied from class:RtfDestinationMethod to set this object to the default values. Must be implemented in child class.- Specified by:
setToDefaultsin classRtfDestination
-