Allows to specify various import options to format output.
Shows how to resolve duplicate styles while inserting documents.
#include <Aspose.Words.Cpp/ImportFormatOptions.h>
Public Member Functions | |
ImportFormatOptions () | |
bool | get_ForceCopyStyles () const |
Gets or sets a boolean value indicating either to copy conflicting styles in KeepSourceFormatting mode. The default value is false . More... | |
bool | get_IgnoreHeaderFooter () const |
Gets or sets a boolean value that specifies that source formatting of headers/footers content ignored if KeepSourceFormatting mode is used. The default value is true . More... | |
bool | get_IgnoreTextBoxes () const |
Gets or sets a boolean value that specifies that source formatting of textboxes content ignored if KeepSourceFormatting mode is used. The default value is true . More... | |
bool | get_KeepSourceNumbering () const |
Gets or sets a boolean value that specifies how the numbering will be imported when it clashes in source and destination documents. The default value is false . More... | |
bool | get_MergePastedLists () const |
Gets or sets a boolean value that specifies whether pasted lists will be merged with surrounding lists. The default value is false . More... | |
bool | get_SmartStyleBehavior () const |
Gets or sets a boolean value that specifies how styles will be imported when they have equal names in source and destination documents. The default value is false . More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_ForceCopyStyles (bool value) |
Setter for get_ForceCopyStyles. More... | |
void | set_IgnoreHeaderFooter (bool value) |
Setter for get_IgnoreHeaderFooter. More... | |
void | set_IgnoreTextBoxes (bool value) |
Setter for get_IgnoreTextBoxes. More... | |
void | set_KeepSourceNumbering (bool value) |
Setter for get_KeepSourceNumbering. More... | |
void | set_MergePastedLists (bool value) |
Setter for get_MergePastedLists. More... | |
void | set_SmartStyleBehavior (bool value) |
Setter for get_SmartStyleBehavior. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
Aspose::Words::ImportFormatOptions::ImportFormatOptions | ( | ) |
bool Aspose::Words::ImportFormatOptions::get_ForceCopyStyles | ( | ) | const |
Gets or sets a boolean value indicating either to copy conflicting styles in KeepSourceFormatting 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.
bool Aspose::Words::ImportFormatOptions::get_IgnoreHeaderFooter | ( | ) | const |
Gets or sets a boolean value that specifies that source formatting of headers/footers content ignored if KeepSourceFormatting mode is used. The default value is true
.
Shows how to specifies ignoring or not source formatting of headers/footers content.
bool Aspose::Words::ImportFormatOptions::get_IgnoreTextBoxes | ( | ) | const |
Gets or sets a boolean value that specifies that source formatting of textboxes content ignored if KeepSourceFormatting mode is used. The default value is true
.
Shows how to manage text box formatting while appending a document.
bool Aspose::Words::ImportFormatOptions::get_KeepSourceNumbering | ( | ) | const |
Gets or sets a boolean value that specifies how the numbering will be imported when it clashes in source and destination documents. The default value is false
.
Shows how to import a document with numbered lists.
Shows how resolve a clash when importing documents that have lists with the same list definition identifier.
Shows how to resolve list numbering clashes in source and destination documents.
bool Aspose::Words::ImportFormatOptions::get_MergePastedLists | ( | ) | const |
Gets or sets a boolean value that specifies whether pasted lists will be merged with surrounding lists. The default value is false
.
Shows how to merge lists from a documents.
bool Aspose::Words::ImportFormatOptions::get_SmartStyleBehavior | ( | ) | const |
Gets or sets a boolean value that specifies how styles will be imported when they have equal names in source and destination documents. The default value is false
.
When this option is enabled, the source style will be expanded into a direct attributes inside a destination document, if KeepSourceFormatting 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.
Shows how to resolve duplicate styles while inserting documents.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::ImportFormatOptions::set_ForceCopyStyles | ( | bool | value | ) |
void Aspose::Words::ImportFormatOptions::set_IgnoreHeaderFooter | ( | bool | value | ) |
void Aspose::Words::ImportFormatOptions::set_IgnoreTextBoxes | ( | bool | value | ) |
void Aspose::Words::ImportFormatOptions::set_KeepSourceNumbering | ( | bool | value | ) |
void Aspose::Words::ImportFormatOptions::set_MergePastedLists | ( | bool | value | ) |
void Aspose::Words::ImportFormatOptions::set_SmartStyleBehavior | ( | bool | value | ) |
|
static |