public class ImportFormatOptions
extends java.lang.Object
To learn more, visit the Specify Load Options documentation article.
| Modifier and Type | Method and Description |
|---|---|
boolean |
getForceCopyStyles()
Gets a boolean value indicating either to copy conflicting styles in
ImportFormatMode.KEEP_SOURCE_FORMATTING mode. |
boolean |
getIgnoreHeaderFooter()
Gets a boolean value that specifies that source formatting of headers/footers content ignored if
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. |
boolean |
getIgnoreTextBoxes()
Gets a boolean value that specifies that source formatting of textboxes content ignored if
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. |
boolean |
getKeepSourceNumbering()
Gets a boolean value that specifies how the numbering will be imported when it clashes in source and destination documents.
|
boolean |
getMergePastedLists()
Gets a boolean value that specifies whether pasted lists will be merged with surrounding lists.
|
boolean |
getSmartStyleBehavior()
Gets a boolean value that specifies how styles will be imported when they have equal names in source and destination documents.
|
void |
setForceCopyStyles(boolean value)
Sets a boolean value indicating either to copy conflicting styles in
ImportFormatMode.KEEP_SOURCE_FORMATTING mode. |
void |
setIgnoreHeaderFooter(boolean value)
Sets a boolean value that specifies that source formatting of headers/footers content ignored if
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. |
void |
setIgnoreTextBoxes(boolean value)
Sets a boolean value that specifies that source formatting of textboxes content ignored if
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. |
void |
setKeepSourceNumbering(boolean value)
Sets a boolean value that specifies how the numbering will be imported when it clashes in source and destination documents.
|
void |
setMergePastedLists(boolean value)
Sets a boolean value that specifies whether pasted lists will be merged with surrounding lists.
|
void |
setSmartStyleBehavior(boolean value)
Sets a boolean value that specifies how styles will be imported when they have equal names in source and destination documents.
|
public boolean getSmartStyleBehavior()
false.
When this option is enabled, the source style will be expanded into a direct attributes inside a destination document, if ImportFormatMode.KEEP_SOURCE_FORMATTING importing mode is used.
When this option is disabled, the source style will be expanded only if it is numbered. Existing destination attributes will not be overridden, including lists.
public void setSmartStyleBehavior(boolean value)
false.
When this option is enabled, the source style will be expanded into a direct attributes inside a destination document, if ImportFormatMode.KEEP_SOURCE_FORMATTING importing mode is used.
When this option is disabled, the source style will be expanded only if it is numbered. Existing destination attributes will not be overridden, including lists.
value - A boolean value that specifies how styles will be imported when they have equal names in source and destination documents.public boolean getKeepSourceNumbering()
false.public void setKeepSourceNumbering(boolean value)
false.value - A boolean value that specifies how the numbering will be imported when it clashes in source and destination documents.public boolean getIgnoreTextBoxes()
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. The default value is true.ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used.public void setIgnoreTextBoxes(boolean value)
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. The default value is true.value - A boolean value that specifies that source formatting of textboxes content ignored if ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used.public boolean getIgnoreHeaderFooter()
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. The default value is true.ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used.public void setIgnoreHeaderFooter(boolean value)
ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used. The default value is true.value - A boolean value that specifies that source formatting of headers/footers content ignored if ImportFormatMode.KEEP_SOURCE_FORMATTING mode is used.public boolean getMergePastedLists()
false.public void setMergePastedLists(boolean value)
false.value - A boolean value that specifies whether pasted lists will be merged with surrounding lists.public boolean getForceCopyStyles()
ImportFormatMode.KEEP_SOURCE_FORMATTING mode. The default value is false.
By default, if a matching style already exists in a destination document, the source style formatting is expanded into direct node attributes and the style of this node is reset to a default.
When this option is set to true, the source style will be forcibly copied into destination document with unique name and applied to the imported node.
Note, in this case it is not guaranteed that formatting of the imported node in destination document will be preserved.
ImportFormatMode.KEEP_SOURCE_FORMATTING mode.public void setForceCopyStyles(boolean value)
ImportFormatMode.KEEP_SOURCE_FORMATTING mode. The default value is false.
By default, if a matching style already exists in a destination document, the source style formatting is expanded into direct node attributes and the style of this node is reset to a default.
When this option is set to true, the source style will be forcibly copied into destination document with unique name and applied to the imported node.
Note, in this case it is not guaranteed that formatting of the imported node in destination document will be preserved.
value - A boolean value indicating either to copy conflicting styles in ImportFormatMode.KEEP_SOURCE_FORMATTING mode.