public class MarkupXHTMLIn extends MarkupEngineIn
For more information, please see the extenral documentation.
| Constructor and Description |
|---|
MarkupXHTMLIn(String oMarkupSource,
MarkupAttr pMarkupAttr,
TextAttr poAmbientAttr,
TextResolver poResolver)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
defaultTypeface() |
String |
getAttr(Attributes attrlist,
int eTag) |
String |
getAttr(Attributes attrlist,
String sName) |
boolean |
skipThisCommand(int eTag) |
static void |
tabDefault(String sAttrValue,
TextAttr oAttr,
MarkupAttr pMarkupAttr)
Set the default tab increment.
|
static void |
tabSet(String sAttrValue,
TextAttr oAttr,
MarkupAttr pMarkupAttr)
Set the tab stops.
|
void |
text(String sText)
Process raw text.
|
void |
translate()
Translate the XHTML markup.
|
setSourceTextpublic MarkupXHTMLIn(String oMarkupSource, MarkupAttr pMarkupAttr, TextAttr poAmbientAttr, TextResolver poResolver)
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.public void translate()
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.
translate in class MarkupEngineInpublic static void tabDefault(String sAttrValue, TextAttr oAttr, MarkupAttr pMarkupAttr)
NOTE: As a static method, there may be multithreading issues.
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.public static void tabSet(String sAttrValue, TextAttr oAttr, MarkupAttr pMarkupAttr)
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.
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.public String defaultTypeface()
public boolean skipThisCommand(int eTag)
public String getAttr(Attributes attrlist, int eTag)
public String getAttr(Attributes attrlist, String sName)
Copyright © 2010 - 2020 Adobe. All Rights Reserved