Package com.adobe.xfa.text.markup
Class MarkupXHTMLOut
- java.lang.Object
-
- com.adobe.xfa.text.TextMarkupBase
-
- com.adobe.xfa.text.markup.MarkupOut
-
- com.adobe.xfa.text.markup.MarkupEngineOut
-
- com.adobe.xfa.text.markup.MarkupXHTMLOut
-
public class MarkupXHTMLOut extends MarkupEngineOut
-
-
Constructor Summary
Constructors Constructor Description MarkupXHTMLOut()
MarkupXHTMLOut(MarkupAttr pMarkupAttr)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput, boolean bExpandEmbed)
MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput, boolean bExpandEmbed, boolean bRoundTextSize)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attr(TextAttr oAttr)
Overridden: Output an attribute change.void
expandEmbed(boolean bExpand)
void
field(TextField poField)
Add a field to the rich text representation.boolean
issueFirstPara()
void
para()
Overridden: Output a paragraph mark.void
reset()
Reset the (derived) markup engine to its initial state.void
text(java.lang.String oStrText)
Overridden: Output raw text content.java.lang.String
translation()
Obtain the resulting markup.-
Methods inherited from class com.adobe.xfa.text.markup.MarkupEngineOut
closeScopedBlock, openScopedBlock
-
Methods inherited from class com.adobe.xfa.text.markup.MarkupOut
embed, suppressAttributes
-
Methods inherited from class com.adobe.xfa.text.TextMarkupBase
attributePtr, legacyPositioning, marker, markerEnd, markerStart
-
-
-
-
Constructor Detail
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput, boolean bExpandEmbed, boolean bRoundTextSize)
Constructor.- Parameters:
pMarkupAttr
- - (optional) Markup attribute table to use instead of the defalt. It is strongly recommended that you pass NULL (default). eDefaultUnits - (optional) Default units. All non-text unit values are converted to this unit before writing. Default is inches.poAmbientAttrs
- - (optional) Ambient attributes that can be inherited from the environment and therefore don't need to be written out. Default is NULL, no ambient attributes.bIncludeAmbientAttrs
- - TRUE if ambient attributes are to be used to make up for attributes missing in the source text; FALSE (dafault) if ambient attributes can be suppressed altogether. bBreakOutput - TRUE (default) to put in the occasional new-line when allowed in order to prevent one very long line. FALSE to place all the output on a single line.bExpandEmbed
- - TRUE (default) if embedded field content is to be expanded in-line; FALSE to generate field references.bRoundTextSize
- - TRUE (default) if the text sizes are to be rounded to the nearest 0.05pt.
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput, boolean bExpandEmbed)
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs, boolean bBreakupOutput)
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs, boolean bIncludeAmbientAttrs)
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits, TextAttr poAmbientAttrs)
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr, int eDefaultUnits)
-
MarkupXHTMLOut
public MarkupXHTMLOut(MarkupAttr pMarkupAttr)
-
MarkupXHTMLOut
public MarkupXHTMLOut()
-
-
Method Detail
-
reset
public void reset()
Description copied from class:MarkupEngineOut
Reset the (derived) markup engine to its initial state.- Overrides:
reset
in classMarkupEngineOut
-
translation
public java.lang.String translation()
Obtain the resulting markup.- Overrides:
translation
in classMarkupEngineOut
- Returns:
- Generated markup, as a string.
-
text
public void text(java.lang.String oStrText)
Description copied from class:MarkupEngineOut
Overridden: Output raw text content.- Overrides:
text
in classMarkupEngineOut
- Parameters:
oStrText
- - Text content to add to the markup output.
-
attr
public void attr(TextAttr oAttr)
Description copied from class:MarkupEngineOut
Overridden: Output an attribute change.- Overrides:
attr
in classMarkupEngineOut
- Parameters:
oAttr
- - Attribute change to add to the markup output.
-
para
public void para()
Description copied from class:MarkupEngineOut
Overridden: Output a paragraph mark.- Overrides:
para
in classMarkupEngineOut
-
field
public void field(TextField poField)
Description copied from class:TextMarkupBase
Add a field to the rich text representation.
-
issueFirstPara
public boolean issueFirstPara()
- Overrides:
issueFirstPara
in classTextMarkupBase
-
expandEmbed
public void expandEmbed(boolean bExpand)
-
-