Package com.adobe.xfa.text.markup
Class MarkupRtfOut
- 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.MarkupRtfOut
-
public class MarkupRtfOut extends MarkupEngineOut
This class is the RTF output 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. Finally, one calls the Translation() method on this class to obtain the resulting markup.For more information, please see the extenral documentation.
-
-
Constructor Summary
Constructors Constructor Description MarkupRtfOut()
MarkupRtfOut(MarkupAttr pMarkupAttr)
MarkupRtfOut(MarkupAttr pMarkupAttr, java.util.List<GFXColour> pColorTable)
MarkupRtfOut(MarkupAttr pMarkupAttr, java.util.List<GFXColour> pColorTable, java.util.List<java.lang.String> pFontTable)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
translation()
Obtain the resulting markup.-
Methods inherited from class com.adobe.xfa.text.markup.MarkupEngineOut
attr, closeScopedBlock, openScopedBlock, para, reset, text
-
Methods inherited from class com.adobe.xfa.text.markup.MarkupOut
embed, field, suppressAttributes
-
Methods inherited from class com.adobe.xfa.text.TextMarkupBase
attributePtr, issueFirstPara, legacyPositioning, marker, markerEnd, markerStart
-
-
-
-
Constructor Detail
-
MarkupRtfOut
public MarkupRtfOut(MarkupAttr pMarkupAttr, java.util.List<GFXColour> pColorTable, java.util.List<java.lang.String> pFontTable)
Constructor.- Parameters:
pMarkupAttr
- - (optional) Markup attribute table to use instead of the defalt. It is strongly recommended that you pass NULL (default).pColorTable
- - (optional) Colour table.pFontTable
- - (optional) Font table.
-
MarkupRtfOut
public MarkupRtfOut(MarkupAttr pMarkupAttr, java.util.List<GFXColour> pColorTable)
-
MarkupRtfOut
public MarkupRtfOut(MarkupAttr pMarkupAttr)
-
MarkupRtfOut
public MarkupRtfOut()
-
-
Method Detail
-
translation
public java.lang.String translation()
Obtain the resulting markup.- Overrides:
translation
in classMarkupEngineOut
- Returns:
- Generated markup, as a string.
-
-