Can be used to specify additional options when saving a document into the Text format.
Shows how to save a .txt document with a custom paragraph break.
#include <Aspose.Words.Cpp/Saving/TxtSaveOptions.h>
Public Member Functions | |
TxtSaveOptions () | |
bool | get_AddBidiMarks () const |
Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format. The default value is false. More... | |
SharedPtr< TxtListIndentation > | get_ListIndentation () const |
Gets a ListIndentation object that specifies how many and which character to use for indentation of list levels. By default it is zero count of character '\0', that means no indentation. More... | |
int32_t | get_MaxCharactersPerLine () const |
Gets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit. More... | |
bool | get_PreserveTableLayout () const |
Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is false. More... | |
SaveFormat | get_SaveFormat () override |
Specifies the format in which the document will be saved if this save options object is used. Can only be Text. More... | |
bool | get_SimplifyListLabels () const |
Specifies whether the program should simplify list labels in case of complex label formatting not being adequately represented by plain text. If set to true, numbered list labels are written in simple numeric format and itemized list labels as simple ASCII characters. The default value is false. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_AddBidiMarks (bool value) |
Setter for get_AddBidiMarks. More... | |
void | set_MaxCharactersPerLine (int32_t value) |
Sets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit. More... | |
void | set_PreserveTableLayout (bool value) |
Setter for get_PreserveTableLayout. More... | |
void | set_SaveFormat (SaveFormat value) override |
Setter for get_SaveFormat. More... | |
void | set_SimplifyListLabels (bool value) |
Setter for get_SimplifyListLabels. More... | |
![]() | |
TxtSaveOptionsBase () | |
SharedPtr< Encoding > | get_Encoding () const |
Specifies the encoding to use when exporting in text formats. Default value is Encoding.UTF8. More... | |
TxtExportHeadersFootersMode | get_ExportHeadersFootersMode () const |
Specifies the way headers and footers are exported to the text formats. Default value is PrimaryOnly. More... | |
bool | get_ForcePageBreaks () const |
Allows to specify whether the page breaks should be preserved during export. The default value is false. More... | |
String | get_ParagraphBreak () const |
Specifies the string to use as a paragraph break when exporting in text formats. More... | |
void | set_Encoding (SharedPtr< Encoding > value) |
Setter for get_Encoding. More... | |
void | set_ExportHeadersFootersMode (TxtExportHeadersFootersMode value) |
Setter for get_ExportHeadersFootersMode. More... | |
void | set_ForcePageBreaks (bool value) |
Setter for get_ForcePageBreaks. More... | |
void | set_ParagraphBreak (String value) |
Setter for get_ParagraphBreak. More... | |
![]() | |
bool | get_AllowEmbeddingPostScriptFonts () const |
Gets or sets a boolean value indicating whether to allow embedding fonts with PostScript outlines when embedding TrueType fonts in a document upon it is saved. The default value is false. More... | |
SharedPtr< TimeZoneInfo > | get_CustomTimeZoneInfo () const |
String | get_DefaultTemplate () const |
Gets or sets path to default template (including filename). Default value for this property is empty string. More... | |
Dml3DEffectsRenderingMode | get_Dml3DEffectsRenderingMode () const |
Gets a value determining how 3D effects are rendered. More... | |
virtual DmlEffectsRenderingMode | get_DmlEffectsRenderingMode () |
Gets or sets a value determining how DrawingML effects are rendered. More... | |
DmlRenderingMode | get_DmlRenderingMode () const |
Gets or sets a value determining how DrawingML shapes are rendered. More... | |
ImlRenderingMode | get_ImlRenderingMode () const |
Gets or sets a value determining how ink (InkML) objects are rendered. More... | |
bool | get_MemoryOptimization () const |
Gets or sets value determining if memory optimization should be performed before saving the document. Default value for this property is false. More... | |
bool | get_PrettyFormat () const |
When true , pretty formats output where applicable. Default value is false. More... | |
String | get_TempFolder () const |
Specifies the folder for temporary files used when saving to a DOC or DOCX file. By default this property is null and no temporary files are used. More... | |
bool | get_UpdateCreatedTimeProperty () const |
Gets a value determining whether the CreatedTime property is updated before saving. Default value is false;. More... | |
bool | get_UpdateFields () const |
Gets or sets a value determining if fields of certain types should be updated before saving the document to a fixed page format. Default value for this property is true. More... | |
bool | get_UpdateLastPrintedProperty () const |
Gets or sets a value determining whether the LastPrinted property is updated before saving. More... | |
bool | get_UpdateLastSavedTimeProperty () const |
Gets or sets a value determining whether the LastSavedTime property is updated before saving. More... | |
bool | get_UpdateSdtContent () const |
Gets or sets value determining whether content of StructuredDocumentTag is updated before saving. More... | |
bool | get_UseAntiAliasing () const |
Gets or sets a value determining whether or not to use anti-aliasing for rendering. More... | |
bool | get_UseHighQualityRendering () const |
Gets or sets a value determining whether or not to use high quality (i.e. slow) rendering algorithms. More... | |
void | set_AllowEmbeddingPostScriptFonts (bool value) |
Setter for get_AllowEmbeddingPostScriptFonts. More... | |
void | set_CustomTimeZoneInfo (SharedPtr< TimeZoneInfo > value) |
void | set_DefaultTemplate (String value) |
Setter for get_DefaultTemplate. More... | |
void | set_Dml3DEffectsRenderingMode (Dml3DEffectsRenderingMode value) |
Sets a value determining how 3D effects are rendered. More... | |
virtual void | set_DmlEffectsRenderingMode (DmlEffectsRenderingMode value) |
Setter for get_DmlEffectsRenderingMode. More... | |
void | set_DmlRenderingMode (DmlRenderingMode value) |
Setter for get_DmlRenderingMode. More... | |
void | set_ImlRenderingMode (ImlRenderingMode value) |
Setter for get_ImlRenderingMode. More... | |
void | set_MemoryOptimization (bool value) |
Setter for get_MemoryOptimization. More... | |
void | set_PrettyFormat (bool value) |
Setter for get_PrettyFormat. More... | |
void | set_TempFolder (String value) |
Setter for get_TempFolder. More... | |
void | set_UpdateCreatedTimeProperty (bool value) |
Sets a value determining whether the CreatedTime property is updated before saving. Default value is false;. More... | |
void | set_UpdateFields (bool value) |
Setter for get_UpdateFields. More... | |
void | set_UpdateLastPrintedProperty (bool value) |
Setter for get_UpdateLastPrintedProperty. More... | |
void | set_UpdateLastSavedTimeProperty (bool value) |
Setter for get_UpdateLastSavedTimeProperty. More... | |
void | set_UpdateSdtContent (bool value) |
Setter for get_UpdateSdtContent. More... | |
void | set_UseAntiAliasing (bool value) |
Setter for get_UseAntiAliasing. More... | |
void | set_UseHighQualityRendering (bool value) |
Setter for get_UseHighQualityRendering. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
![]() | |
static SharedPtr< SaveOptions > | CreateSaveOptions (SaveFormat saveFormat) |
Creates a save options object of a class suitable for the specified save format. More... | |
static SharedPtr< SaveOptions > | CreateSaveOptions (String fileName) |
Creates a save options object of a class suitable for the file extension specified in the given file name. More... | |
static const TypeInfo & | Type () |
Aspose::Words::Saving::TxtSaveOptions::TxtSaveOptions | ( | ) |
bool Aspose::Words::Saving::TxtSaveOptions::get_AddBidiMarks | ( | ) | const |
Specifies whether to add bi-directional marks before each BiDi run when exporting in plain text format. The default value is false.
Shows how to insert Unicode Character 'RIGHT-TO-LEFT MARK' (U+200F) before each bi-directional Run in text.
System::SharedPtr<Aspose::Words::Saving::TxtListIndentation> Aspose::Words::Saving::TxtSaveOptions::get_ListIndentation | ( | ) | const |
Gets a ListIndentation object that specifies how many and which character to use for indentation of list levels. By default it is zero count of character '\0', that means no indentation.
Shows how to configure list indenting when saving a document to plaintext.
int32_t Aspose::Words::Saving::TxtSaveOptions::get_MaxCharactersPerLine | ( | ) | const |
Gets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit.
bool Aspose::Words::Saving::TxtSaveOptions::get_PreserveTableLayout | ( | ) | const |
Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format. The default value is false.
Shows how to preserve the layout of tables when converting to plaintext.
|
overridevirtual |
Specifies the format in which the document will be saved if this save options object is used. Can only be Text.
Shows how to save a .txt document with a custom paragraph break.
Implements Aspose::Words::Saving::SaveOptions.
bool Aspose::Words::Saving::TxtSaveOptions::get_SimplifyListLabels | ( | ) | const |
Specifies whether the program should simplify list labels in case of complex label formatting not being adequately represented by plain text. If set to true, numbered list labels are written in simple numeric format and itemized list labels as simple ASCII characters. The default value is false.
Shows how to change the appearance of lists when saving a document to plaintext.
|
overridevirtual |
Reimplemented from Aspose::Words::Saving::TxtSaveOptionsBase.
|
overridevirtual |
Reimplemented from Aspose::Words::Saving::TxtSaveOptionsBase.
void Aspose::Words::Saving::TxtSaveOptions::set_AddBidiMarks | ( | bool | value | ) |
void Aspose::Words::Saving::TxtSaveOptions::set_MaxCharactersPerLine | ( | int32_t | value | ) |
Sets an integer value that specifies the maximum number of characters per one line. The default value is 0, that means no limit.
void Aspose::Words::Saving::TxtSaveOptions::set_PreserveTableLayout | ( | bool | value | ) |
|
overridevirtual |
Setter for Aspose::Words::Saving::TxtSaveOptions::get_SaveFormat.
Implements Aspose::Words::Saving::SaveOptions.
void Aspose::Words::Saving::TxtSaveOptions::set_SimplifyListLabels | ( | bool | value | ) |
|
static |