public class RtfDestinationStylesheetTable extends RtfDestination
RtfDestinationStylesheetTable handles data destined for the
Stylesheet Table destinationlastCtrlWord, modified, rtfParser| Constructor and Description |
|---|
RtfDestinationStylesheetTable() |
RtfDestinationStylesheetTable(RtfParser parser,
String type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeDestination()
Clean up when destination is closed.
|
void |
createNewStyle() |
int |
getAdustRightIndent()
Get the right indent adjustment value
|
int |
getAlignment()
Get the alignment value.
|
int |
getAutoSpaceBetweenDBCEnglish()
Get the auto space between DBC and English indicator.
|
int |
getAutoSpaceBetweenDBCNumbers()
Get the auto space between DBC and Numbers indicator.
|
int |
getFirstLineIndent()
Get the first line indent value.
|
int |
getIndent()
Get the left indent value
|
int |
getJustificationPercentage()
Get the justification percentage.
|
int |
getLeftIndent()
Get the left indent value
|
int |
getMirrorIndent()
Get the value indicating if document has mirrored indents.
|
int |
getNoCharacterWrapping()
Get no character wrapping indicator.
|
int |
getNoOverflowPeriodComma()
Get the no overflow period comma indicator.
|
int |
getNoWordWrapping()
Get the no word wrapping indicator.
|
int |
getOverrideWidowControl()
Get the ovirride widow control value.
|
int |
getRightIndent()
Get the right indent value.
|
int |
getStyleNr()
Get this style number.
|
int |
getStyleType()
Get this style type.
|
boolean |
handleCloseGroup()
Clean up when group is closed.
|
boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination
|
boolean |
handleCharacter(int ch)
Handle text for this destination
|
boolean |
handleOpenGroup()
Setup when group is opened.
|
boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group
|
void |
setAdustRightIndent(int adustRightIndent)
Set the right indent adjustment value
|
int |
setAlignment(int alignment)
Set the alignment value from the parsed value.
|
void |
setAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish)
Set the auto space between DBC and English indicator.
|
void |
setAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers)
Set the auto space between DBC and Numbers indicator.
|
void |
setElementName(String value) |
void |
setFirstLineIndent(int firstLineIndent)
Set the first line indent value.
|
void |
setIndent(int indent)
Set the left indent value from the value parsed.
|
int |
setJustificationPercentage(int percent)
Set the justification percentage from parsed value.
|
void |
setLeftIndent(int leftIndent)
Set the left indent value
|
void |
setMirrorIndent(int mirrorIndent)
Set the mirrored indent value from the parsed value.
|
void |
setNoCharacterWrapping(int noCharacterWrapping)
Set the no character wrapping indicator from parsed value
|
void |
setNoOverflowPeriodComma(int noOverflowPeriodComma)
Set the no overflow period comma indicator from the parsed value.
|
void |
setNoWordWrapping(int noWordWrapping)
Set the no word wrapping indicator from the parsed value.
|
void |
setOverrideWidowControl(int overrideWidowControl)
Set the override widow control.
|
void |
setParser(RtfParser parser)
Set the parser to use with the RtfDestination object.
|
void |
setRightIndent(int rightIndent)
Set the right indent value.
|
void |
setStyleNr(int styleNr)
Set this style number from the parsed value.
|
void |
setStyleType(int styleType)
Set the style type.
|
void |
setToDefaults()
Method to set this object to the default values.
|
void |
setType(String value) |
addListener, afterCtrlWord, afterCharacter, beforeCtrlWord, beforeCharacter, getNewTokeniserState, isModified, onCloseGroup, onCtrlWord, onCharacter, onOpenGroup, removeListenerpublic void setParser(RtfParser parser)
RtfDestinationsetParser in class RtfDestinationparser - The RtfParser object.public void setType(String value)
public void setElementName(String value)
public boolean handleOpeningSubGroup()
RtfDestinationhandleOpeningSubGroup in class RtfDestinationpublic boolean closeDestination()
RtfDestinationcloseDestination in class RtfDestinationpublic boolean handleControlWord(RtfCtrlWordData ctrlWordData)
RtfDestinationhandleControlWord in class RtfDestinationctrlWordData - The control word and parameter information objectpublic boolean handleCloseGroup()
RtfDestinationhandleCloseGroup in class RtfDestinationpublic boolean handleOpenGroup()
RtfDestinationhandleOpenGroup in class RtfDestinationpublic boolean handleCharacter(int ch)
RtfDestinationhandleCharacter in class RtfDestinationpublic void createNewStyle()
public int setJustificationPercentage(int percent)
percent - The justification percentagepublic int getJustificationPercentage()
public int setAlignment(int alignment)
alignment - The alignment value.public int getAlignment()
public int getFirstLineIndent()
public void setFirstLineIndent(int firstLineIndent)
firstLineIndent - the firstLineIndent to setpublic int getIndent()
public void setIndent(int indent)
indent - the left indent value.public int getAdustRightIndent()
public void setAdustRightIndent(int adustRightIndent)
adustRightIndent - the adustRightIndent to setpublic int getLeftIndent()
public void setLeftIndent(int leftIndent)
leftIndent - the leftIndent to setpublic int getMirrorIndent()
public void setMirrorIndent(int mirrorIndent)
mirrorIndent - the mirrorIndent to setpublic int getRightIndent()
public void setRightIndent(int rightIndent)
rightIndent - the rightIndent to setpublic int getOverrideWidowControl()
public void setOverrideWidowControl(int overrideWidowControl)
overrideWidowControl - the overrideWidowControl to setpublic int getAutoSpaceBetweenDBCEnglish()
public void setAutoSpaceBetweenDBCEnglish(int autoSpaceBetweenDBCEnglish)
autoSpaceBetweenDBCEnglish - the autoSpaceBetweenDBCEnglish to setpublic int getAutoSpaceBetweenDBCNumbers()
public void setAutoSpaceBetweenDBCNumbers(int autoSpaceBetweenDBCNumbers)
autoSpaceBetweenDBCNumbers - the autoSpaceBetweenDBCNumbers to setpublic int getNoCharacterWrapping()
public void setNoCharacterWrapping(int noCharacterWrapping)
noCharacterWrapping - the noCharacterWrapping to setpublic int getNoOverflowPeriodComma()
public void setNoOverflowPeriodComma(int noOverflowPeriodComma)
noOverflowPeriodComma - the noOverflowPeriodComma to setpublic int getNoWordWrapping()
public void setNoWordWrapping(int noWordWrapping)
noWordWrapping - the noWordWrapping to setpublic int getStyleNr()
public void setStyleNr(int styleNr)
styleNr - the styleNr to setpublic int getStyleType()
public void setStyleType(int styleType)
styleType - the styleType to setpublic void setToDefaults()
RtfDestinationsetToDefaults in class RtfDestinationCopyright © 2015. All rights reserved.