Class ScroogeXHTMLBase
- All Implemented Interfaces:
ConversionConfiguration,Serializable
- Direct Known Subclasses:
ScroogeXHTMLMain
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostProcessListener(PostProcessListener listener) Adds a post-process listener.This property contains the default font color.This property contains the default font name.intThis property contains the default font size.This property contains the default language.This property contains the output document type.This property contains the font size unit.intThis property contains the number of blanks in the output indentation.Retrieves the invalid RTF header action.static StringgetName()Returns the name of the software.This property contains the list of post-process listeners.This property contains the tab string.static StringRetrieves the version of the software.booleanReturns true if the conversion will enclose the generated markup.booleanbooleanThis property controls the conversion of bookmarks.booleanThis property controls the conversion of empty paragraphs to linebreaks.booleanbooleanbooleanbooleanbooleanbooleanbooleanThis property controls the conversion of footnotes.booleanThis property controls the conversion of hyperlinks.booleanbooleanbooleanbooleanThis property controls the conversion of pictures.booleanThis property controls the conversion of tables.booleanIf this property is set to true, the HTML head section will include a CSS definition for the default font style.voidremovePostProcessListener(PostProcessListener listener) Removes a post-process listener.voidsetAddOuterHTML(boolean newValue) Enables embedding the generated markup in a stand-alone document.voidsetConvertBookmarks(boolean newValue) Set this property to true to activate bookmark conversion.voidsetConvertEmptyParagraphs(boolean newValue) Enable conversion of empty paragraphs to line break tags(<br />).voidsetConvertFootnotes(boolean newValue) Set this property to true to enable conversion of footnotes.voidsetConvertHyperlinks(boolean newValue) Enable conversion of hyperlinks.voidsetConvertPictures(boolean newValue) Set this property to true to processing of picture data.voidsetConvertTables(boolean newValue) Set this property to true to enable table conversion.voidsetDefaultFontColor(String newValue) Use this property to optimize the HTML code generation.voidsetDefaultFontName(String newValue) Use this property to optimize the HTML code generation.voidsetDefaultFontSize(int newValue) Use this property to optimize the HTML code generation.voidsetDefaultLanguage(String newValue) Set the default language code.voidsetDocumentType(DocumentType newValue) Sets the documentType property.voidsetFontReplacing(FontReplacing fontReplacing) Sets the FontReplacing object.voidsetIndentAmount(int newValue) This property specifies the indentation level.voidSets the action to be taken when an invalid RTF header is encountered.voidsetPictureAdapter(PictureAdapter newValue) Set the picture adapter.voidsetTabString(String newValue) String which will be used to replace a \\tab token.
-
Field Details
-
NBSP
NON_BREAKING_SPACE - non-breaking space. -
NBSPS
String constant for non-breaking spaces.This constant represents two non-breaking spaces (" "). Non-breaking spaces are used to insert whitespace that will not be collapsed or trimmed by the browser when rendering HTML content.
- See Also:
-
-
Constructor Details
-
ScroogeXHTMLBase
public ScroogeXHTMLBase()
-
-
Method Details
-
getName
Returns the name of the software.- Returns:
- the name of the software.
-
addPostProcessListener
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). Note: post-processing may lead to a significant increase of conversion time.
- Parameters:
listener- the post-process listener
-
removePostProcessListener
Removes a post-process listener.- Parameters:
listener- the post-process listener
-
setAddOuterHTML
public void setAddOuterHTML(boolean newValue) Enables embedding the generated markup in a stand-alone document.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:
- Default value:
- false
-
setConvertBookmarks
public void setConvertBookmarks(boolean newValue) Set this property to true to activate bookmark conversion.- Parameters:
newValue- the new convertBookmarks value- See Also:
- 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:
- Default value:
- false
-
setConvertFootnotes
public void setConvertFootnotes(boolean newValue) Set this property to true to enable conversion of footnotes.- Parameters:
newValue- The new convertFootnotes value- See Also:
- Default value:
- false
-
setConvertHyperlinks
public void setConvertHyperlinks(boolean newValue) Enable conversion of hyperlinks.- Parameters:
newValue- The new convertHyperlinks value- See Also:
- Default value:
- false
-
setConvertPictures
public void setConvertPictures(boolean newValue) Set this property to true to processing of picture data.- Parameters:
newValue- The new convertPictures value- See Also:
- 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:
- Default value:
- false
-
setDefaultFontColor
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. Note: only effective if
IncludeDefaultFontStyleis set to true.- Parameters:
newValue- The new defaultFontColor value- See Also:
- Default value:
DEF_FONT_COLOR
-
setDefaultFontName
Use this property to optimize the HTML code generation.For example, if most of the document uses the font 'Times', 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'. Note: only effective if
IncludeDefaultFontStyleis set to true.- Parameters:
newValue- The new defaultFontName value- See Also:
- Default value:
DEF_FONT_NAME
-
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, 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. Note: only effective if
IncludeDefaultFontStyleis set to true.- Parameters:
newValue- The new defaultFontSize value- See Also:
- Default value:
DEF_FONT_SIZE
-
setDefaultLanguage
Set the default language code.- Parameters:
newValue- the new defaultLanguage value.- See Also:
- Default value:
- empty
-
setDocumentType
Sets the documentType property.- Parameters:
newValue- the new documentType value- See Also:
-
setFontReplacing
Sets the FontReplacing object.- Parameters:
fontReplacing- the new FontReplacing value.
-
setIndentAmount
public void setIndentAmount(int newValue) This property specifies the indentation level.- Parameters:
newValue- the new indentAmount value- See Also:
- Default value:
- 2
-
setInvalidRtfHeaderAction
Sets the action to be taken when an invalid RTF header is encountered.- Parameters:
newValue- the action to be taken
-
setPictureAdapter
Set the picture adapter.- Parameters:
newValue- the new pictureAdapter value- See Also:
-
setTabString
String which will be used to replace a \\tab token.- Parameters:
newValue- The new tabString- See Also:
- Default value:
- A sequence of eight non-breaking space characters (nbsp)
-
isAddOuterHTML
public boolean isAddOuterHTML()Description copied from interface:ConversionConfigurationReturns true if the conversion will enclose the generated markup.- Specified by:
isAddOuterHTMLin interfaceConversionConfiguration- Returns:
- true if the conversion will enclose the generated markup.
-
isConvertBookmarks
public boolean isConvertBookmarks()Description copied from interface:ConversionConfigurationThis property controls the conversion of bookmarks.- Specified by:
isConvertBookmarksin interfaceConversionConfiguration- Returns:
- true if the conversion of bookmarks is enabled.
-
isConvertEmptyParagraphs
public boolean isConvertEmptyParagraphs()Description copied from interface:ConversionConfigurationThis 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:
isConvertEmptyParagraphsin interfaceConversionConfiguration- Returns:
- true if the conversion of bookmarks to linebreaks is enabled.
-
isConvertFootnotes
public boolean isConvertFootnotes()Description copied from interface:ConversionConfigurationThis property controls the conversion of footnotes.- Specified by:
isConvertFootnotesin interfaceConversionConfiguration- Returns:
- true if the conversion of footnotes is enabled.
-
isConvertHyperlinks
public boolean isConvertHyperlinks()Description copied from interface:ConversionConfigurationThis property controls the conversion of hyperlinks.- Specified by:
isConvertHyperlinksin interfaceConversionConfiguration- Returns:
- true if the conversion of hyperlinks is enabled.
-
isConvertPictures
public boolean isConvertPictures()Description copied from interface:ConversionConfigurationThis property controls the conversion of pictures.- Specified by:
isConvertPicturesin interfaceConversionConfiguration- Returns:
- true if the conversion of pictures is enabled.
-
isConvertTables
public boolean isConvertTables()Description copied from interface:ConversionConfigurationThis property controls the conversion of tables.- Specified by:
isConvertTablesin interfaceConversionConfiguration- Returns:
- true if the conversion of tables is enabled.
-
getDefaultFontColor
Description copied from interface:ConversionConfigurationThis property contains the default font color.- Specified by:
getDefaultFontColorin interfaceConversionConfiguration- Returns:
- the default font color.
-
getDefaultFontName
Description copied from interface:ConversionConfigurationThis property contains the default font name.- Specified by:
getDefaultFontNamein interfaceConversionConfiguration- Returns:
- the default font name.
-
getDefaultFontSize
public int getDefaultFontSize()Description copied from interface:ConversionConfigurationThis property contains the default font size.- Specified by:
getDefaultFontSizein interfaceConversionConfiguration- Returns:
- the default font size.
-
getDefaultLanguage
Description copied from interface:ConversionConfigurationThis property contains the default language.- Specified by:
getDefaultLanguagein interfaceConversionConfiguration- Returns:
- the default language.
-
getDocumentType
Description copied from interface:ConversionConfigurationThis property contains the output document type.- Specified by:
getDocumentTypein interfaceConversionConfiguration- Returns:
- the output document type.
-
getFontReplacing
-
getFontSizeUnit
Description copied from interface:ConversionConfigurationThis property contains the font size unit.- Specified by:
getFontSizeUnitin interfaceConversionConfiguration- Returns:
- the font size unit.
-
isIncludeDefaultFontStyle
public boolean isIncludeDefaultFontStyle()Description copied from interface:ConversionConfigurationIf this property is set to true, the HTML head section will include a CSS definition for the default font style.- Specified by:
isIncludeDefaultFontStylein interfaceConversionConfiguration- Returns:
- true if the CSS definition for the default font style will be included.
-
getIndentAmount
public int getIndentAmount()Description copied from interface:ConversionConfigurationThis property contains the number of blanks in the output indentation.- Specified by:
getIndentAmountin interfaceConversionConfiguration- Returns:
- the number of blanks in the output indentation.
-
getInvalidRtfHeaderAction
Retrieves the invalid RTF header action.- Returns:
- The invalid RTF header action.
-
getPictureAdapter
-
getPostProcessListeners
Description copied from interface:ConversionConfigurationThis property contains the list of post-process listeners. The returned list is unmodifiable.- Specified by:
getPostProcessListenersin interfaceConversionConfiguration- Returns:
- the list of post-process listeners.
-
getTabString
Description copied from interface:ConversionConfigurationThis property contains the tab string.- Specified by:
getTabStringin interfaceConversionConfiguration- Returns:
- the tab string.
-
getVersion
Retrieves the version of the software.- Returns:
- the version of the application as a String.
-
getCharPropConvConfig
- Returns:
- the configuration bean for character conversion options.
-
getParaPropConvConfig
- Returns:
- the configuration bean for paragraph conversion options.
-
getTablePropConvConfig
- Returns:
- the configuration bean for table property conversion options.
-
getHtmlHeadConfig
- Returns:
- the configuration bean for HTML head section options.
-
getListConversionConfig
- Returns:
- the configuration bean for list section processing.
-
isConvertFontBGColor
public boolean isConvertFontBGColor()- Specified by:
isConvertFontBGColorin interfaceConversionConfiguration
-
isConvertFontColor
public boolean isConvertFontColor()- Specified by:
isConvertFontColorin interfaceConversionConfiguration
-
isConvertFontHLColor
public boolean isConvertFontHLColor()- Specified by:
isConvertFontHLColorin interfaceConversionConfiguration
-
isConvertFontName
public boolean isConvertFontName()- Specified by:
isConvertFontNamein interfaceConversionConfiguration
-
isConvertFontSize
public boolean isConvertFontSize()- Specified by:
isConvertFontSizein interfaceConversionConfiguration
-
isConvertFontStyle
public boolean isConvertFontStyle()- Specified by:
isConvertFontStylein interfaceConversionConfiguration
-
isConvertLanguage
public boolean isConvertLanguage()- Specified by:
isConvertLanguagein interfaceConversionConfiguration
-
isConvertAlignment
public boolean isConvertAlignment()- Specified by:
isConvertAlignmentin interfaceConversionConfiguration
-
isConvertIndent
public boolean isConvertIndent()- Specified by:
isConvertIndentin interfaceConversionConfiguration
-
isConvertParagraphMargins
public boolean isConvertParagraphMargins()- Specified by:
isConvertParagraphMarginsin interfaceConversionConfiguration
-