Package com.adobe.xfa.text.markup
Class MarkupXHTMLIn
java.lang.Object
com.adobe.xfa.text.markup.MarkupIn
com.adobe.xfa.text.markup.MarkupEngineIn
com.adobe.xfa.text.markup.MarkupXHTMLIn
This class is the XHTML input markup engine. To use it, one creates
an instance, passing the string to be translated in a constructor
parameter. Then the engine is passed to a Markup() method on either
a text stream or range.
For more information, please see the extenral documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionMarkupXHTMLIn(String oMarkupSource, MarkupAttr pMarkupAttr, TextAttr poAmbientAttr, TextResolver poResolver) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAttr(Attributes attrlist, int eTag) getAttr(Attributes attrlist, String sName) booleanskipThisCommand(int eTag) static voidtabDefault(String sAttrValue, TextAttr oAttr, MarkupAttr pMarkupAttr) Set the default tab increment.static voidtabSet(String sAttrValue, TextAttr oAttr, MarkupAttr pMarkupAttr) Set the tab stops.voidvoidTranslate the XHTML markup.Methods inherited from class com.adobe.xfa.text.markup.MarkupEngineIn
setSourceText
-
Constructor Details
-
MarkupXHTMLIn
public MarkupXHTMLIn(String oMarkupSource, MarkupAttr pMarkupAttr, TextAttr poAmbientAttr, TextResolver poResolver) Constructor.- Parameters:
oMarkupSource- - XHTML markup to be processed.pMarkupAttr- - (optional) Markup attribute table to use for the translation. It is strongly recommended that you pass a NULL pointer (default).poAmbientAttr- - (optional) Overall text attribute settings, for those not specified in the markup. NULL (default) establishes no overall attributes.poResolver- - Callback interface for embedded field references.
-
-
Method Details
-
translate
public void translate()Translate the XHTML markup.This is not normally called by the creator of the XHTML markup engine. Instead, the engine is passed to a text stream or range in a Markup() method that makes the call.
- Overrides:
translatein classMarkupEngineIn
-
tabDefault
Set the default tab increment.NOTE: As a static method, there may be multithreading issues.
- Parameters:
sAttrValue- - a unit span value for a left tab.oAttr- - the text attribute to be modifiedpMarkupAttr- - the table of markup strings to be used for unit conversion.
-
tabSet
Set the tab stops.NOTE: As a static method, there may be multithreading issues. Tab types can be decimal, left, right and center.
Example:
"decimal 2cm left 5cm" specifies two tabs.- Parameters:
sAttrValue- - a collection of tab types and unitspans.oAttr- - the text attribute to be modifiedpMarkupAttr- - the table of markup strings to be used for unit conversion and looking up tab types.
-
defaultTypeface
-
skipThisCommand
public boolean skipThisCommand(int eTag) -
getAttr
-
getAttr
-
text
-