Represents options to control field handling in a document.
#include <Aspose.Words.Cpp/Fields/FieldOptions.h>
Public Member Functions | |
SharedPtr< IBarcodeGenerator > | get_BarcodeGenerator () const |
Gets or set custom barcode generator. More... | |
ArrayPtr< String > | get_BuiltInTemplatesPaths () const |
Gets or sets paths of MS Word built-in templates. More... | |
SharedPtr< IComparisonExpressionEvaluator > | get_ComparisonExpressionEvaluator () const |
Gets or sets the field comparison expressions evaluator. More... | |
SharedPtr< UserInformation > | get_CurrentUser () const |
Gets or sets the current user information. More... | |
String | get_CustomTocStyleSeparator () const |
Gets or sets custom style separator for the \t switch in TOC field. More... | |
String | get_DefaultDocumentAuthor () const |
Gets or sets default document author's name. If author's name is already specified in built-in document properties, this option is not considered. More... | |
FieldIndexFormat | get_FieldIndexFormat () |
Gets or sets a FieldIndexFormat that represents the formatting for the FieldIndex fields in the document. More... | |
SharedPtr< IFieldUpdateCultureProvider > | get_FieldUpdateCultureProvider () const |
Gets or sets a provider that returns a culture object specific for each particular field. More... | |
FieldUpdateCultureSource | get_FieldUpdateCultureSource () const |
Specifies what culture to use to format the field result. More... | |
String | get_FileName () const |
Gets or sets the file name of the document. More... | |
bool | get_IsBidiTextSupportedOnUpdate () const |
Gets or sets the value indicating whether bidirectional text is fully supported during field update or not. More... | |
bool | get_LegacyNumberFormat () const |
Gets or sets the value indicating whether legacy (early than AW 13.10) number format for fields is enabled or not. More... | |
SharedPtr< CultureInfo > | get_PreProcessCulture () const |
Gets or sets the culture to preprocess field values. More... | |
SharedPtr< IFieldResultFormatter > | get_ResultFormatter () const |
Allows to control how the field result is formatted. More... | |
SharedPtr< ToaCategories > | get_ToaCategories () const |
Gets or sets the table of authorities categories. More... | |
bool | get_UseInvariantCultureNumberFormat () const |
Gets or sets the value indicating that number format is parsed using invariant culture or not. More... | |
SharedPtr< IFieldUserPromptRespondent > | get_UserPromptRespondent () const |
Gets or sets the respondent to user prompts during field update. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_BarcodeGenerator (SharedPtr< IBarcodeGenerator > value) |
Gets or set custom barcode generator. More... | |
void | set_BuiltInTemplatesPaths (ArrayPtr< String > value) |
Setter for get_BuiltInTemplatesPaths. More... | |
void | set_ComparisonExpressionEvaluator (SharedPtr< IComparisonExpressionEvaluator > value) |
Setter for get_ComparisonExpressionEvaluator. More... | |
void | set_CurrentUser (SharedPtr< UserInformation > value) |
Setter for get_CurrentUser. More... | |
void | set_CustomTocStyleSeparator (String value) |
Setter for get_CustomTocStyleSeparator. More... | |
void | set_DefaultDocumentAuthor (String value) |
Setter for get_DefaultDocumentAuthor. More... | |
void | set_FieldIndexFormat (FieldIndexFormat value) |
Setter for get_FieldIndexFormat. More... | |
void | set_FieldUpdateCultureProvider (SharedPtr< IFieldUpdateCultureProvider > value) |
Setter for get_FieldUpdateCultureProvider. More... | |
void | set_FieldUpdateCultureSource (FieldUpdateCultureSource value) |
Setter for get_FieldUpdateCultureSource. More... | |
void | set_FileName (String value) |
Setter for get_FileName. More... | |
void | set_IsBidiTextSupportedOnUpdate (bool value) |
Setter for get_IsBidiTextSupportedOnUpdate. More... | |
void | set_LegacyNumberFormat (bool value) |
Setter for get_LegacyNumberFormat. More... | |
void | set_PreProcessCulture (SharedPtr< CultureInfo > value) |
Setter for get_PreProcessCulture. More... | |
void | set_ResultFormatter (SharedPtr< IFieldResultFormatter > value) |
Setter for get_ResultFormatter. More... | |
void | set_ToaCategories (SharedPtr< ToaCategories > value) |
Setter for get_ToaCategories. More... | |
void | set_UseInvariantCultureNumberFormat (bool value) |
Setter for get_UseInvariantCultureNumberFormat. More... | |
void | set_UserPromptRespondent (SharedPtr< IFieldUserPromptRespondent > value) |
Setter for get_UserPromptRespondent. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
System::SharedPtr<Aspose::Words::Fields::IBarcodeGenerator> Aspose::Words::Fields::FieldOptions::get_BarcodeGenerator | ( | ) | const |
Gets or set custom barcode generator.
System::ArrayPtr<System::String> Aspose::Words::Fields::FieldOptions::get_BuiltInTemplatesPaths | ( | ) | const |
Gets or sets paths of MS Word built-in templates.
This property is used by the AUTOTEXT and GLOSSARY fields, if referenced auto text entry is not found in the AttachedTemplate template.
By defalut MS Word stores built-in templates in c:\Users\<username>\AppData\Roaming\Microsoft\Document Building Blocks\1033\16\Built-In Building Blocks.dotx and C:\Users\<username>\AppData\Roaming\Microsoft\Templates\Normal.dotm files.
Shows how to display a building block with AUTOTEXT and GLOSSARY fields.
System::SharedPtr<Aspose::Words::Fields::IComparisonExpressionEvaluator> Aspose::Words::Fields::FieldOptions::get_ComparisonExpressionEvaluator | ( | ) | const |
Gets or sets the field comparison expressions evaluator.
Shows how to implement custom evaluation for the IF and COMPARE fields.
System::SharedPtr<Aspose::Words::Fields::UserInformation> Aspose::Words::Fields::FieldOptions::get_CurrentUser | ( | ) | const |
Gets or sets the current user information.
Shows how to set user details, and display them using fields.
System::String Aspose::Words::Fields::FieldOptions::get_CustomTocStyleSeparator | ( | ) | const |
Gets or sets custom style separator for the \t switch in TOC field.
Shows how to insert a TOC, and populate it with entries based on heading styles.
System::String Aspose::Words::Fields::FieldOptions::get_DefaultDocumentAuthor | ( | ) | const |
Gets or sets default document author's name. If author's name is already specified in built-in document properties, this option is not considered.
Shows how to use an AUTHOR field to display a document creator's name.
Aspose::Words::Fields::FieldIndexFormat Aspose::Words::Fields::FieldOptions::get_FieldIndexFormat | ( | ) |
Gets or sets a FieldIndexFormat that represents the formatting for the FieldIndex fields in the document.
Shows how to formatting FieldIndex fields.
System::SharedPtr<Aspose::Words::Fields::IFieldUpdateCultureProvider> Aspose::Words::Fields::FieldOptions::get_FieldUpdateCultureProvider | ( | ) | const |
Gets or sets a provider that returns a culture object specific for each particular field.
The provider is requested when the value of FieldUpdateCultureSource is FieldUpdateCultureSource.FieldCode.
If the provider is present, then the culture object it returns is used for the field update. Otherwise, a system culture is used.
Shows how to specify a culture which parses date/time formatting for each field.
Aspose::Words::Fields::FieldUpdateCultureSource Aspose::Words::Fields::FieldOptions::get_FieldUpdateCultureSource | ( | ) | const |
Specifies what culture to use to format the field result.
By default, the culture of the current thread is used.
The setting affects only date/time fields with \\@ format switch.
System::String Aspose::Words::Fields::FieldOptions::get_FileName | ( | ) | const |
Gets or sets the file name of the document.
This property is used by the FILENAME field with higher priority than the OriginalFileName property.
Shows how to use FieldOptions to override the default value for the FILENAME field.
bool Aspose::Words::Fields::FieldOptions::get_IsBidiTextSupportedOnUpdate | ( | ) | const |
Gets or sets the value indicating whether bidirectional text is fully supported during field update or not.
When this property is set to true, additional steps are performed to produce Right-To-Left language (i.e. Arabic or Hebrew) compatible field result during its update.
When this property is set to false and Right-To-Left language is used, correctness of field result after its update is not guaranteed.
The default value is false.
Shows how to use FieldOptions to ensure that field updating fully supports bi-directional text.
bool Aspose::Words::Fields::FieldOptions::get_LegacyNumberFormat | ( | ) | const |
Gets or sets the value indicating whether legacy (early than AW 13.10) number format for fields is enabled or not.
When this property is set to true, template symbol "#" worked as in .net: Replaces the pound sign with the corresponding digit if one is present; otherwise, no symbols appears in the result string.
When this property is set to false, template symbol "#" works as MS Word: This format item specifies the requisite numeric places to display in the result. If the result does not include a digit in that place, MS Word displays a space. For example, { = 9 + 6 \# $### } displays $ 15.
The default value is false.
Shows how enable legacy number formatting for fields.
System::SharedPtr<System::Globalization::CultureInfo> Aspose::Words::Fields::FieldOptions::get_PreProcessCulture | ( | ) | const |
Gets or sets the culture to preprocess field values.
Currently this property only affects value of the DOCPROPERTY field.
The default value is null. When this property is set to null, the DOCPROPERTY field's value is preprocessed with the culture controlled by the FieldUpdateCultureSource property.
Shows how to set the preprocess culture.
System::SharedPtr<Aspose::Words::Fields::IFieldResultFormatter> Aspose::Words::Fields::FieldOptions::get_ResultFormatter | ( | ) | const |
Allows to control how the field result is formatted.
Shows how to automatically apply a custom format to field results as the fields are updated.
System::SharedPtr<Aspose::Words::Fields::ToaCategories> Aspose::Words::Fields::FieldOptions::get_ToaCategories | ( | ) | const |
Gets or sets the table of authorities categories.
Shows how to specify a set of categories for TOA fields.
bool Aspose::Words::Fields::FieldOptions::get_UseInvariantCultureNumberFormat | ( | ) | const |
Gets or sets the value indicating that number format is parsed using invariant culture or not.
When this property is set to true, number format is taken from an invariant culture.
When this property is set to false, number format is taken from the current thread's culture.
The default value is false.
Shows how to format numbers according to the invariant culture.
System::SharedPtr<Aspose::Words::Fields::IFieldUserPromptRespondent> Aspose::Words::Fields::FieldOptions::get_UserPromptRespondent | ( | ) | const |
Gets or sets the respondent to user prompts during field update.
If the value of this property is set to null, the fields that require user response on prompting (such as ASK or FILLIN) are not updated.
The default value is null.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Fields::FieldOptions::set_BarcodeGenerator | ( | System::SharedPtr< Aspose::Words::Fields::IBarcodeGenerator > | value | ) |
Gets or set custom barcode generator.
void Aspose::Words::Fields::FieldOptions::set_BuiltInTemplatesPaths | ( | System::ArrayPtr< System::String > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_ComparisonExpressionEvaluator | ( | System::SharedPtr< Aspose::Words::Fields::IComparisonExpressionEvaluator > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_CurrentUser | ( | System::SharedPtr< Aspose::Words::Fields::UserInformation > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_CustomTocStyleSeparator | ( | System::String | value | ) |
void Aspose::Words::Fields::FieldOptions::set_DefaultDocumentAuthor | ( | System::String | value | ) |
void Aspose::Words::Fields::FieldOptions::set_FieldIndexFormat | ( | Aspose::Words::Fields::FieldIndexFormat | value | ) |
void Aspose::Words::Fields::FieldOptions::set_FieldUpdateCultureProvider | ( | System::SharedPtr< Aspose::Words::Fields::IFieldUpdateCultureProvider > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_FieldUpdateCultureSource | ( | Aspose::Words::Fields::FieldUpdateCultureSource | value | ) |
void Aspose::Words::Fields::FieldOptions::set_FileName | ( | System::String | value | ) |
void Aspose::Words::Fields::FieldOptions::set_IsBidiTextSupportedOnUpdate | ( | bool | value | ) |
void Aspose::Words::Fields::FieldOptions::set_LegacyNumberFormat | ( | bool | value | ) |
void Aspose::Words::Fields::FieldOptions::set_PreProcessCulture | ( | System::SharedPtr< System::Globalization::CultureInfo > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_ResultFormatter | ( | System::SharedPtr< Aspose::Words::Fields::IFieldResultFormatter > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_ToaCategories | ( | System::SharedPtr< Aspose::Words::Fields::ToaCategories > | value | ) |
void Aspose::Words::Fields::FieldOptions::set_UseInvariantCultureNumberFormat | ( | bool | value | ) |
void Aspose::Words::Fields::FieldOptions::set_UserPromptRespondent | ( | System::SharedPtr< Aspose::Words::Fields::IFieldUserPromptRespondent > | value | ) |
|
static |