Package com.scroogexhtml.converter
Class ScroogeXHTMLBase
- java.lang.Object
-
- com.scroogexhtml.converter.ScroogeXHTMLBase
-
- All Implemented Interfaces:
ConversionConfiguration
,Serializable
- Direct Known Subclasses:
ScroogeXHTMLMain
public abstract class ScroogeXHTMLBase extends Object implements Serializable, ConversionConfiguration
ScroogeXHTMLBase defines the converter properties.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Character
NON_BREAKING_SPACE
NON_BREAKING_SPACE - non-breaking space.static String
NON_BREAKING_SPACES
-
Constructor Summary
Constructors Constructor Description ScroogeXHTMLBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addPostProcessListener(PostProcessListener listener)
Adds a post process listener.CharPropConfiguration
getCharPropConvConfig()
String
getDefaultFontColor()
This property contains the default font color.String
getDefaultFontName()
This property contains the default font name.int
getDefaultFontSize()
This property contains the default font size.String
getDefaultLanguage()
This property contains the default language.String
getDocumentTitle()
Deprecated.usegetHtmlHeadConfig()
.getDocumentTitle() instead.DocumentType
getDocumentType()
This property contains the output document type.FontReplacing
getFontReplacing()
FontSizeUnit
getFontSizeUnit()
This property contains the font size unit.FontStatisticsCollecting
getFontStatistics()
HtmlHeadConfiguration
getHtmlHeadConfig()
int
getIndentAmount()
This property contains the number of blanks in the output indentation.String
getMetaAuthor()
Deprecated.usegetHtmlHeadConfig()
.getMetaAuthor() instead.String
getMetaDescription()
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription() instead.String
getMetaGenerator()
Deprecated.usegetHtmlHeadConfig()
.getMetaGenerator() instead.String
getMetaKeywords()
Deprecated.usegetHtmlHeadConfig()
.getMetaKeywords() instead.String
getMetaViewport()
Deprecated.usegetHtmlHeadConfig()
.getMetaViewport() instead.Properties
getOutputProperties()
Get a copy of the output properties for the transformation.String
getOutputProperty(String key)
This method returns a specific output control property value.ParaPropConfiguration
getParaPropConvConfig()
PictureAdapter
getPictureAdapter()
List<PostProcessListener>
getPostProcessListeners()
This property contains the list of post process listeners.Map<String,String>
getReplaceFonts()
String
getStyleSheetInclude()
Deprecated.usegetHtmlHeadConfig()
.getStyleSheetInclude() instead.List<String>
getStyleSheetLinks()
Deprecated.usegetHtmlHeadConfig()
.getStyleSheetLinks() instead.String
getTabString()
This property contains the tab string.String
getVersion()
boolean
isAddOuterHTML()
boolean
isConvertAlignment()
Deprecated.usegetParaPropConvConfig()
.isConvertAlignment() instead.boolean
isConvertBookmarks()
This property controls the conversion of bookmarks.boolean
isConvertEmptyParagraphs()
This property controls the conversion of empty paragraphs to linebreaks.boolean
isConvertFields()
This property controls the conversion of fields.boolean
isConvertFontBGColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontBGColor() instead.boolean
isConvertFontColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontColor() instead.boolean
isConvertFontHLColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontHLColor() instead.boolean
isConvertFontName()
Deprecated.usegetCharPropConvConfig()
.isConvertFontName() instead.boolean
isConvertFontSize()
Deprecated.usegetCharPropConvConfig()
.isConvertFontSize() instead.boolean
isConvertFontStyle()
Deprecated.usegetCharPropConvConfig()
.isConvertFontStyle() instead.boolean
isConvertFootnotes()
This property controls the conversion of footnotes.boolean
isConvertHyperlinks()
This property controls the conversion of hyperlinks.boolean
isConvertIndent()
Deprecated.usegetParaPropConvConfig()
.isConvertIndent() instead.boolean
isConvertLanguage()
Deprecated.usegetCharPropConvConfig()
.isConvertLanguage() instead.boolean
isConvertParagraphMargins()
Deprecated.usegetParaPropConvConfig()
.isConvertParagraphMargins() instead.boolean
isConvertPictures()
This property controls the conversion of pictures.boolean
isConvertTables()
This property controls the conversion of tables.boolean
isIncludeDefaultFontStyle()
If this property is set to true, the HTML head section will include a CSS definition for the default font style.static String
nameAndVersion()
Name and version of ScroogeXHTML.void
removePostProcessListener(PostProcessListener listener)
Removes a post process listener.void
setAddOuterHTML(boolean newValue)
Set this property to true to include the HTML header section, and place the generated HTML between the <body> and </body> tags.void
setConvertAlignment(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertAlignment(boolean) instead.void
setConvertBookmarks(boolean newValue)
Set this property to true to activate bookmark conversion.void
setConvertEmptyParagraphs(boolean newValue)
Enable conversion of empty paragraphs to line break tags (<br />).void
setConvertFields(boolean newValue)
Set this property to true to enable processing of RTF field expressions.void
setConvertFontBGColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontBGColor(boolean) instead.void
setConvertFontColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontColor(boolean) instead.void
setConvertFontHLColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontHLColor(boolean) instead.void
setConvertFontName(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontName(boolean) instead.void
setConvertFontSize(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontSize(boolean) instead.void
setConvertFontStyle(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontStyle(boolean) instead.void
setConvertFootnotes(boolean newValue)
Set this property to true to enable conversion of footnotes.void
setConvertHyperlinks(boolean newValue)
Set this property to true to enable conversion of hyperlinks.void
setConvertIndent(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertIndent(boolean) instead.void
setConvertLanguage(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontLanguage(boolean) instead.void
setConvertParagraphMargins(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertPargraphMargins(boolean) instead.void
setConvertPictures(boolean newValue)
Set this property to true to processing of picture data.void
setConvertTables(boolean newValue)
Set this property to true to enable table conversion.void
setDefaultFontColor(String newValue)
Use this property to optimize the HTML code generation.void
setDefaultFontName(String newValue)
Use this property to optimize the HTML code generation.void
setDefaultFontSize(int newValue)
Use this property to optimize the HTML code generation.void
setDefaultLanguage(String newValue)
Set the default language code.void
setDocumentTitle(String newValue)
Sets the document title.void
setDocumentType(DocumentType newValue)
Sets the documentType property.void
setFontReplacing(FontReplacing fontReplacing)
Sets the FontReplacing object.void
setFontSizeUnit(FontSizeUnit newValue)
Set the fontSizeUnit property.void
setFontStatistics(FontStatisticsCollecting fontStatistics)
Set the FontStatistics property.void
setIncludeDefaultFontStyle(boolean newValue)
Deprecated.usegetHtmlHeadConfig()
.setIncludeDefaultFontStyle(boolean) instead.void
setIndentAmount(int newValue)
This property specifies the indentation level.void
setMetaAuthor(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaAuthor(String) instead.void
setMetaDescription(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription(String) instead.void
setMetaGenerator(String newValue)
Deprecated.usegetHtmlHeadConfig()
.setMetaGenerator(String) instead.void
setMetaKeywords(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaKeywords(String) instead.void
setMetaViewport(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription(String) instead.void
setOutputProperty(String name, String value)
Set an output property that will be in effect for the conversion.void
setPictureAdapter(PictureAdapter newValue)
Set the picture adapter.void
setStyleSheetInclude(String newValue)
Deprecated.usegetHtmlHeadConfig()
.setStyleSheetInclude(String) instead.void
setStyleSheetLink(String href)
Deprecated.usegetHtmlHeadConfig()
.setStyleSheetLink(String) instead.void
setTabString(String newValue)
Sets the string which will be used to replace a \\tab token in the RTF document.
-
-
-
Field Detail
-
NON_BREAKING_SPACE
public static final Character NON_BREAKING_SPACE
NON_BREAKING_SPACE - non-breaking space.
-
NON_BREAKING_SPACES
public static final String NON_BREAKING_SPACES
- See Also:
- Constant Field Values
-
-
Method Detail
-
nameAndVersion
public static String nameAndVersion()
Name and version of ScroogeXHTML.- Returns:
- Name and version.
-
addPostProcessListener
public void addPostProcessListener(PostProcessListener listener)
Adds a post process listener. The converter executes post process listeners in the order they have been added. The converter creates and adds no post process handlers by default (on creation).- Parameters:
listener
- the post process listener- Note:
- Post-processing may cause a significant increase of the conversion time.
-
removePostProcessListener
public void removePostProcessListener(PostProcessListener listener)
Removes a post process listener.- Parameters:
listener
- the post process listener
-
setAddOuterHTML
public void setAddOuterHTML(boolean newValue)
Set this property to true to include the HTML header section, and place the generated HTML between the <body> and </body> tags. This allows to create 'stand-alone' HTML output documents.- Parameters:
newValue
- The new addOuterHTML value- See Also:
isAddOuterHTML()
- Default value:
- false
-
setConvertAlignment
@Deprecated public void setConvertAlignment(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertAlignment(boolean) instead.Set this property to false to disable paragraph alignment conversion.- Parameters:
newValue
- the new convertAlignment value- Default value:
- true
-
setConvertBookmarks
public void setConvertBookmarks(boolean newValue)
Set this property to true to activate bookmark conversion.- Parameters:
newValue
- the new convertBookmarks value- See Also:
isConvertBookmarks()
- Default value:
- false
-
setConvertEmptyParagraphs
public void setConvertEmptyParagraphs(boolean newValue)
Enable conversion of empty paragraphs to line break tags (<br />).- Parameters:
newValue
- The new convertEmptyParagraphs value- See Also:
isConvertEmptyParagraphs()
- Default value:
- false
- Note:
- 'Strict' document types do not allow the element "br"
-
setConvertFields
public void setConvertFields(boolean newValue)
Set this property to true to enable processing of RTF field expressions.- Parameters:
newValue
- the new convertFields value- See Also:
isConvertFields()
- Default value:
- false
-
setConvertFontBGColor
@Deprecated public void setConvertFontBGColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontBGColor(boolean) instead.Set ConvertFontBGColor to true to enable conversion of text background colors. Code Example:
// switch off background color conversion scrooge.setConvertBGColor(false); // switch off higlight color conversion scrooge.setConvertHLColor(false);
- Parameters:
newValue
- The new convertFontBGColor value- Default value:
- true
- Note:
- in RTF documents, background colors may also be defined as 'highlight colors'. If
the background colors do not appear in the output document, try setting the
ConvertFontHLColor
property.
-
setConvertFontColor
@Deprecated public void setConvertFontColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontColor(boolean) instead.Set this property to true to enable conversion of font colors.- Parameters:
newValue
- The new convertFontColor value- Default value:
- true
-
setConvertFontHLColor
@Deprecated public void setConvertFontHLColor(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontHLColor(boolean) instead.Set ConvertFontHLColor to true to enable conversion of text highlight colors. Code Example:
// switch off background color conversion scrooge.setConvertBGColor(false); // switch off highlight color conversion scrooge.setConvertHLColor(false);
- Parameters:
newValue
- The new convertFontHLColor value- Default value:
- true
- Note:
- in RTF documents, highlight colors may also be defined as 'background colors'. If
the highlight colors do not appear in the output document, try setting the
ConvertFontBGColor
property.
-
setConvertFontName
@Deprecated public void setConvertFontName(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontName(boolean) instead.Set this property to true to enable conversion of font names.- Parameters:
newValue
- The new convertFontName value- Default value:
- true
-
setConvertFontSize
@Deprecated public void setConvertFontSize(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontSize(boolean) instead.Set this property to true to enable conversion of font sizes.- Parameters:
newValue
- The new convertFontSize value- Default value:
- true
-
setConvertFontStyle
@Deprecated public void setConvertFontStyle(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontStyle(boolean) instead.Set this property to true to enable conversion of font styles (bold, italic, strike, underline, subscript, superscript).- Parameters:
newValue
- The new convertFontStyle value- Default value:
- true
-
setConvertFootnotes
public void setConvertFootnotes(boolean newValue)
Set this property to true to enable conversion of footnotes.- Parameters:
newValue
- The new convertFootnotes value- See Also:
isConvertFootnotes()
- Default value:
- false
-
setConvertHyperlinks
public void setConvertHyperlinks(boolean newValue)
Set this property to true to enable conversion of hyperlinks.- Parameters:
newValue
- The new convertHyperlinks value- See Also:
isConvertHyperlinks()
- Default value:
- false
- Note:
- To enable hyperlink conversion, ConvertFields must also be set to true (as RTF uses fields to represent hyperlinks).
-
setConvertIndent
@Deprecated public void setConvertIndent(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertIndent(boolean) instead.Set this property to true to enable conversion of indents.- Parameters:
newValue
- The new convertIndent value- Default value:
- false
- Note:
- The right indent in the output document is relative to the browser window, if you change the browser window size, the text area will adjust its size.
-
setConvertLanguage
@Deprecated public void setConvertLanguage(boolean newValue)
Deprecated.usegetCharPropConvConfig()
.setConvertFontLanguage(boolean) instead.Set this property to true to enable generation of lang attributes.- Parameters:
newValue
- The new convertLanguage value- Default value:
- false
-
setConvertParagraphMargins
@Deprecated public void setConvertParagraphMargins(boolean newValue)
Deprecated.usegetParaPropConvConfig()
.setConvertPargraphMargins(boolean) instead.Set this property to true to enable conversion of paragraph margins.- Parameters:
newValue
- The new convertParagraphMargins value- Default value:
- true
-
setConvertPictures
public void setConvertPictures(boolean newValue)
Set this property to true to processing of picture data.- Parameters:
newValue
- The new convertPictures value- See Also:
isConvertPictures()
- Default value:
- false
-
setConvertTables
public void setConvertTables(boolean newValue)
Set this property to true to enable table conversion.- Parameters:
newValue
- The new convertTables value- See Also:
isConvertTables()
- Default value:
- false
-
setDefaultFontColor
public void setDefaultFontColor(String newValue)
Use this property to optimize the HTML code generation. For example, if most of the document uses black text, define black (#000000) as the default font color in the component and in the style sheet. The converter will now only create a font color attribute if the text color is not black.- Parameters:
newValue
- The new defaultFontColor value- See Also:
getDefaultFontColor()
- Default value:
DEFAULT_FONT_COLOR
- Note:
- this property is only effective if the property
IncludeDefaultFontStyle
is set to true.
-
setDefaultFontName
public void setDefaultFontName(String newValue)
Use this property to optimize the HTML code generation. For example, if most of the document uses the font 'Times', just define it as the default font name in the component and in the style sheet. The converter will now only create a font name attribute if it is not 'Times'.- Parameters:
newValue
- The new defaultFontName value- See Also:
getDefaultFontName()
- Default value:
DEFAULT_FONT_NAME
- Note:
- this property is only effective if the property
IncludeDefaultFontStyle
is set to true.
-
setDefaultFontSize
public void setDefaultFontSize(int newValue)
Use this property to optimize the HTML code generation. For example, if most of the document uses a 10 point font, just define 10 as the default font size in the component and in the style sheet. The converter will now only create a font size attribute if it is not 10 pt.- Parameters:
newValue
- The new defaultFontSize value- See Also:
getDefaultFontSize()
- Default value:
DEFAULT_FONT_SIZE
- Note:
- this property is only effective if the property
IncludeDefaultFontStyle
is set to true.
-
setDefaultLanguage
public void setDefaultLanguage(String newValue)
Set the default language code.- Parameters:
newValue
- the new defaultLanguage value.- See Also:
getDefaultLanguage()
- Default value:
- empty
-
setDocumentTitle
public void setDocumentTitle(String newValue)
Sets the document title.- Parameters:
newValue
- The new documentTitle value- See Also:
getDocumentTitle()
- Default value:
- "Untitled document"
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setDocumentType
public void setDocumentType(DocumentType newValue)
Sets the documentType property.- Parameters:
newValue
- the new documentType value- See Also:
getDocumentType()
-
setFontReplacing
public void setFontReplacing(FontReplacing fontReplacing)
Sets the FontReplacing object.- Parameters:
fontReplacing
- the new FontReplacing value.
-
setFontSizeUnit
public void setFontSizeUnit(FontSizeUnit newValue)
Set the fontSizeUnit property.- Parameters:
newValue
- the new FontSizeUnit value- See Also:
getFontSizeUnit()
-
setFontStatistics
public void setFontStatistics(FontStatisticsCollecting fontStatistics)
Set the FontStatistics property.- Parameters:
fontStatistics
- the new FontStatistics value
-
setIncludeDefaultFontStyle
@Deprecated public void setIncludeDefaultFontStyle(boolean newValue)
Deprecated.usegetHtmlHeadConfig()
.setIncludeDefaultFontStyle(boolean) instead.If this property is set to true, the HTML head section will include a CSS definition for the default font style.- Parameters:
newValue
- The new includeDefaultFontStyle value- Default value:
- false
-
setIndentAmount
public void setIndentAmount(int newValue)
This property specifies the indentation level.- Parameters:
newValue
- the new indentAmount value- See Also:
getIndentAmount()
- Default value:
- 2
-
setMetaAuthor
@Deprecated public void setMetaAuthor(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaAuthor(String) instead.This property may be used to specify a META tag which contains the document author.- Parameters:
newValue
- The new metaAuthor value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setMetaDescription
@Deprecated public void setMetaDescription(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription(String) instead.This property may be used to specify a document description.- Parameters:
newValue
- The new metaDescription value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setMetaGenerator
@Deprecated public void setMetaGenerator(String newValue)
Deprecated.usegetHtmlHeadConfig()
.setMetaGenerator(String) instead.This property may be used to specify the content of the generator meta element.- Parameters:
newValue
- The new metaGenerator value- Default value:
- name and version of the converter
-
setMetaKeywords
@Deprecated public void setMetaKeywords(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaKeywords(String) instead.This property may be used to specify keywords for the document.- Parameters:
newValue
- The new metaKeywords value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setMetaViewport
@Deprecated public void setMetaViewport(String newValue)
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription(String) instead.Use this property to define the meta viewport tag manually.- Parameters:
newValue
- The new viewport value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setOutputProperty
public final void setOutputProperty(String name, String value)
Set an output property that will be in effect for the conversion.- Parameters:
name
- A non-null String that specifies an output property namevalue
- The non-null string value of the output property.- Throws:
IllegalArgumentException
- If the property is not supported.- See Also:
getOutputProperty(java.lang.String)
-
setPictureAdapter
public void setPictureAdapter(PictureAdapter newValue)
Set the picture adapter.- Parameters:
newValue
- the new pictureAdapter value- See Also:
getPictureAdapter()
-
setStyleSheetInclude
@Deprecated public void setStyleSheetInclude(String newValue)
Deprecated.usegetHtmlHeadConfig()
.setStyleSheetInclude(String) instead.Additional style sheet definitions which are stored in the HTML document.- Parameters:
newValue
- The new styleSheetInclude value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setStyleSheetLink
@Deprecated public void setStyleSheetLink(String href)
Deprecated.usegetHtmlHeadConfig()
.setStyleSheetLink(String) instead.URL of a file which contains external CSS style sheet definitions for the HTML document.- Parameters:
href
- The new styleSheetLink value- Default value:
- empty
- Note:
- This property is only effective if the property
AddOuterHTML
is set to true.
-
setTabString
public void setTabString(String newValue)
Sets the string which will be used to replace a \\tab token in the RTF document.- Parameters:
newValue
- The new tabString- See Also:
getTabString()
- Default value:
- A sequence of eight non-breaking space characters (nbsp)
-
isAddOuterHTML
public boolean isAddOuterHTML()
- Specified by:
isAddOuterHTML
in interfaceConversionConfiguration
-
isConvertAlignment
@Deprecated public boolean isConvertAlignment()
Deprecated.usegetParaPropConvConfig()
.isConvertAlignment() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of paragraph alignment.- Specified by:
isConvertAlignment
in interfaceConversionConfiguration
- Returns:
- true if the conversion of paragraph alignment is enabled.
-
isConvertBookmarks
public boolean isConvertBookmarks()
Description copied from interface:ConversionConfiguration
This property controls the conversion of bookmarks.- Specified by:
isConvertBookmarks
in interfaceConversionConfiguration
- Returns:
- true if the conversion of bookmarks is enabled.
-
isConvertEmptyParagraphs
public boolean isConvertEmptyParagraphs()
Description copied from interface:ConversionConfiguration
This property controls the conversion of empty paragraphs to linebreaks. If enabled, the result markup will contain <br> or <br /> instead of empty <p> elements.- Specified by:
isConvertEmptyParagraphs
in interfaceConversionConfiguration
- Returns:
- true if the conversion of bookmarks to linebreaks is enabled.
-
isConvertFields
public boolean isConvertFields()
Description copied from interface:ConversionConfiguration
This property controls the conversion of fields.- Specified by:
isConvertFields
in interfaceConversionConfiguration
- Returns:
- true if the conversion of fields is enabled.
-
isConvertFontBGColor
@Deprecated public boolean isConvertFontBGColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontBGColor() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of background colors.- Specified by:
isConvertFontBGColor
in interfaceConversionConfiguration
- Returns:
- true if the conversion of background colors is enabled.
-
isConvertFontColor
@Deprecated public boolean isConvertFontColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontColor() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of font colors.- Specified by:
isConvertFontColor
in interfaceConversionConfiguration
- Returns:
- true if the conversion of font colors is enabled.
-
isConvertFontHLColor
@Deprecated public boolean isConvertFontHLColor()
Deprecated.usegetCharPropConvConfig()
.isConvertFontHLColor() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of highlight colors.- Specified by:
isConvertFontHLColor
in interfaceConversionConfiguration
- Returns:
- true if the conversion of highlight is enabled.
-
isConvertFontName
@Deprecated public boolean isConvertFontName()
Deprecated.usegetCharPropConvConfig()
.isConvertFontName() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of font names.- Specified by:
isConvertFontName
in interfaceConversionConfiguration
- Returns:
- true if the conversion of font names is enabled.
-
isConvertFontSize
@Deprecated public boolean isConvertFontSize()
Deprecated.usegetCharPropConvConfig()
.isConvertFontSize() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of font sizes.- Specified by:
isConvertFontSize
in interfaceConversionConfiguration
- Returns:
- true if the conversion of font sizes is enabled.
-
isConvertFontStyle
@Deprecated public boolean isConvertFontStyle()
Deprecated.usegetCharPropConvConfig()
.isConvertFontStyle() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of font styles.- Specified by:
isConvertFontStyle
in interfaceConversionConfiguration
- Returns:
- true if the conversion of font styles is enabled.
-
isConvertFootnotes
public boolean isConvertFootnotes()
Description copied from interface:ConversionConfiguration
This property controls the conversion of footnotes.- Specified by:
isConvertFootnotes
in interfaceConversionConfiguration
- Returns:
- true if the conversion of footnotes is enabled.
-
isConvertHyperlinks
public boolean isConvertHyperlinks()
Description copied from interface:ConversionConfiguration
This property controls the conversion of hyperlinks.- Specified by:
isConvertHyperlinks
in interfaceConversionConfiguration
- Returns:
- true if the conversion of hyperlinks is enabled.
-
isConvertIndent
@Deprecated public boolean isConvertIndent()
Deprecated.usegetParaPropConvConfig()
.isConvertIndent() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of paragraph indents.- Specified by:
isConvertIndent
in interfaceConversionConfiguration
- Returns:
- true if the conversion of pragraph indents is enabled.
-
isConvertLanguage
@Deprecated public boolean isConvertLanguage()
Deprecated.usegetCharPropConvConfig()
.isConvertLanguage() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of language attributes.- Specified by:
isConvertLanguage
in interfaceConversionConfiguration
- Returns:
- true if the conversion of language attributes is enabled.
-
isConvertParagraphMargins
@Deprecated public boolean isConvertParagraphMargins()
Deprecated.usegetParaPropConvConfig()
.isConvertParagraphMargins() instead.Description copied from interface:ConversionConfiguration
This property controls the conversion of paragraph margins.- Specified by:
isConvertParagraphMargins
in interfaceConversionConfiguration
- Returns:
- true if the conversion of margins is enabled.
-
isConvertPictures
public boolean isConvertPictures()
Description copied from interface:ConversionConfiguration
This property controls the conversion of pictures.- Specified by:
isConvertPictures
in interfaceConversionConfiguration
- Returns:
- true if the conversion of pictures is enabled.
-
isConvertTables
public boolean isConvertTables()
Description copied from interface:ConversionConfiguration
This property controls the conversion of tables.- Specified by:
isConvertTables
in interfaceConversionConfiguration
- Returns:
- true if the conversion of tables is enabled.
-
getDefaultFontColor
public String getDefaultFontColor()
Description copied from interface:ConversionConfiguration
This property contains the default font color.- Specified by:
getDefaultFontColor
in interfaceConversionConfiguration
- Returns:
- the default font color.
-
getDefaultFontName
public String getDefaultFontName()
Description copied from interface:ConversionConfiguration
This property contains the default font name.- Specified by:
getDefaultFontName
in interfaceConversionConfiguration
- Returns:
- the default font name.
-
getDefaultFontSize
public int getDefaultFontSize()
Description copied from interface:ConversionConfiguration
This property contains the default font size.- Specified by:
getDefaultFontSize
in interfaceConversionConfiguration
- Returns:
- the default font size.
-
getDefaultLanguage
public String getDefaultLanguage()
Description copied from interface:ConversionConfiguration
This property contains the default language.- Specified by:
getDefaultLanguage
in interfaceConversionConfiguration
- Returns:
- the default language.
-
getDocumentTitle
@Deprecated public String getDocumentTitle()
Deprecated.usegetHtmlHeadConfig()
.getDocumentTitle() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "title" tag.- Specified by:
getDocumentTitle
in interfaceConversionConfiguration
- Returns:
- the value of the "title" tag.
-
getDocumentType
public DocumentType getDocumentType()
Description copied from interface:ConversionConfiguration
This property contains the output document type.- Specified by:
getDocumentType
in interfaceConversionConfiguration
- Returns:
- the output document type.
-
getFontReplacing
public FontReplacing getFontReplacing()
-
getFontSizeUnit
public FontSizeUnit getFontSizeUnit()
Description copied from interface:ConversionConfiguration
This property contains the font size unit.- Specified by:
getFontSizeUnit
in interfaceConversionConfiguration
- Returns:
- the font size unit.
-
getFontStatistics
public FontStatisticsCollecting getFontStatistics()
- Specified by:
getFontStatistics
in interfaceConversionConfiguration
-
isIncludeDefaultFontStyle
public boolean isIncludeDefaultFontStyle()
Description copied from interface:ConversionConfiguration
If this property is set to true, the HTML head section will include a CSS definition for the default font style.- Specified by:
isIncludeDefaultFontStyle
in interfaceConversionConfiguration
- Returns:
- true if the CSS definition for the default font style will be included.
-
getIndentAmount
public int getIndentAmount()
Description copied from interface:ConversionConfiguration
This property contains the number of blanks in the output indentation.- Specified by:
getIndentAmount
in interfaceConversionConfiguration
- Returns:
- the number of blanks in the output indentation.
-
getMetaAuthor
@Deprecated public String getMetaAuthor()
Deprecated.usegetHtmlHeadConfig()
.getMetaAuthor() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "author" meta tag.- Specified by:
getMetaAuthor
in interfaceConversionConfiguration
- Returns:
- the value of the "author" meta tag.
-
getMetaDescription
@Deprecated public String getMetaDescription()
Deprecated.usegetHtmlHeadConfig()
.getMetaDescription() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "description" meta tag.- Specified by:
getMetaDescription
in interfaceConversionConfiguration
- Returns:
- the value of the "description" meta tag.
-
getMetaGenerator
@Deprecated public String getMetaGenerator()
Deprecated.usegetHtmlHeadConfig()
.getMetaGenerator() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "generator" meta tag.- Specified by:
getMetaGenerator
in interfaceConversionConfiguration
- Returns:
- the value of the "generator" meta tag.
-
getMetaKeywords
@Deprecated public String getMetaKeywords()
Deprecated.usegetHtmlHeadConfig()
.getMetaKeywords() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "keywords" meta tag.- Specified by:
getMetaKeywords
in interfaceConversionConfiguration
- Returns:
- the value of the "keywords" meta tag.
-
getMetaViewport
@Deprecated public String getMetaViewport()
Deprecated.usegetHtmlHeadConfig()
.getMetaViewport() instead.Description copied from interface:ConversionConfiguration
This property contains the value of the "viewport" meta tag.- Specified by:
getMetaViewport
in interfaceConversionConfiguration
- Returns:
- the value of the viewport meta tag.
-
getOutputProperty
public String getOutputProperty(String key)
Description copied from interface:ConversionConfiguration
This method returns a specific output control property value.- Specified by:
getOutputProperty
in interfaceConversionConfiguration
- Parameters:
key
- the property name- Returns:
- the output control property value.
-
getOutputProperties
public Properties getOutputProperties()
Get a copy of the output properties for the transformation.- Specified by:
getOutputProperties
in interfaceConversionConfiguration
- Returns:
- A copy of the set of output properties.
-
getPictureAdapter
public PictureAdapter getPictureAdapter()
-
getPostProcessListeners
public List<PostProcessListener> getPostProcessListeners()
Description copied from interface:ConversionConfiguration
This property contains the list of post process listeners. The returned list is unmodifiable.- Specified by:
getPostProcessListeners
in interfaceConversionConfiguration
- Returns:
- the list of post process listeners.
-
getStyleSheetInclude
@Deprecated public String getStyleSheetInclude()
Deprecated.usegetHtmlHeadConfig()
.getStyleSheetInclude() instead.Description copied from interface:ConversionConfiguration
This property contains the style sheet definition to be included in the head element.- Specified by:
getStyleSheetInclude
in interfaceConversionConfiguration
- Returns:
- the style sheet definition to be included in the head element.
-
getStyleSheetLinks
@Deprecated public List<String> getStyleSheetLinks()
Deprecated.usegetHtmlHeadConfig()
.getStyleSheetLinks() instead.Description copied from interface:ConversionConfiguration
This property contains the list of links to external style sheets.- Specified by:
getStyleSheetLinks
in interfaceConversionConfiguration
- Returns:
- the list of links to external style sheets.
-
getTabString
public String getTabString()
Description copied from interface:ConversionConfiguration
This property contains the tab string.- Specified by:
getTabString
in interfaceConversionConfiguration
- Returns:
- the tab string.
-
getVersion
public String getVersion()
-
getCharPropConvConfig
public CharPropConfiguration getCharPropConvConfig()
- Returns:
- the configuration bean for character conversion options.
-
getParaPropConvConfig
public ParaPropConfiguration getParaPropConvConfig()
- Returns:
- the configuration bean for paragraph conversion options.
-
getHtmlHeadConfig
public HtmlHeadConfiguration getHtmlHeadConfig()
- Returns:
- the configuration bean for HTML head section options.
-
-