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
-
Constructor Summary
ConstructorsConstructorDescriptionMarkupXHTMLOut(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
Modifier and TypeMethodDescriptionvoidOverridden: Output an attribute change.voidexpandEmbed(boolean bExpand) voidAdd a field to the rich text representation.booleanvoidpara()Overridden: Output a paragraph mark.voidreset()Reset the (derived) markup engine to its initial state.voidOverridden: Output raw text content.Obtain the resulting markup.Methods inherited from class com.adobe.xfa.text.markup.MarkupEngineOut
closeScopedBlock, openScopedBlockMethods inherited from class com.adobe.xfa.text.markup.MarkupOut
embed, suppressAttributesMethods inherited from class com.adobe.xfa.text.TextMarkupBase
attributePtr, legacyPositioning, marker, markerEnd, markerStart
-
Constructor Details
-
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
-
MarkupXHTMLOut
-
MarkupXHTMLOut
-
MarkupXHTMLOut
public MarkupXHTMLOut()
-
-
Method Details
-
reset
public void reset()Description copied from class:MarkupEngineOutReset the (derived) markup engine to its initial state.- Overrides:
resetin classMarkupEngineOut
-
translation
Obtain the resulting markup.- Overrides:
translationin classMarkupEngineOut- Returns:
- Generated markup, as a string.
-
text
Description copied from class:MarkupEngineOutOverridden: Output raw text content.- Overrides:
textin classMarkupEngineOut- Parameters:
oStrText- - Text content to add to the markup output.
-
attr
Description copied from class:MarkupEngineOutOverridden: Output an attribute change.- Overrides:
attrin classMarkupEngineOut- Parameters:
oAttr- - Attribute change to add to the markup output.
-
para
public void para()Description copied from class:MarkupEngineOutOverridden: Output a paragraph mark.- Overrides:
parain classMarkupEngineOut
-
field
Description copied from class:TextMarkupBaseAdd a field to the rich text representation. -
issueFirstPara
public boolean issueFirstPara()- Overrides:
issueFirstParain classTextMarkupBase
-
expandEmbed
public void expandEmbed(boolean bExpand)
-