|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.pdf.commands.PdfHardCR
public class PdfHardCR
Force a hard CR/LF (note: this command does *not* force an end of paragraph) Note that the main token processor in Pdf.Start() will check the token after []. If it's a [cr], that [cr] is ignored (so that the next line does not begin with a blank).
Field Summary | |
---|---|
private java.lang.String |
root
|
Constructor Summary | |
---|---|
PdfHardCR()
|
Method Summary | |
---|---|
java.lang.String |
getRoot()
get the root of the command. |
(package private) boolean |
isAfterCodeListing(IOutputContext context,
int tokNum)
Were the previous two tokens [-code][cr]? If so, return true. |
private boolean |
isFirstTokenInLine(IOutputContext context,
Token tok,
int tokNum)
Determines whether the current [] is the first token in the line (which means either the absolute first token, or the first token other than a command). |
int |
process(IOutputContext context,
Token tok,
int tokNum)
method for processing this command in the output plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String root
Constructor Detail |
---|
public PdfHardCR()
Method Detail |
---|
public int process(IOutputContext context, Token tok, int tokNum)
IOutputCommand
process
in interface IOutputCommand
context
- the context/state of the output documenttok
- the command token as found in the token streamtokNum
- the number of the token in the token listboolean isAfterCodeListing(IOutputContext context, int tokNum)
context
- context for this token (needed to get the TokenList )tokNum
-
private boolean isFirstTokenInLine(IOutputContext context, Token tok, int tokNum)
context
- PdfData containing the Source fields for this tokentok
- present tokentokNum
- present token number
public java.lang.String getRoot()
IOutputCommand
getRoot
in interface IOutputCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |