JVCL Help:TJvConversion
JVCL Help: TJvConversion Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvConversion
TJvMSTextConversion
TJvStreamConversion
run\JvRichEdit.pas
Summary
Converts rich text data or plain text from one encoding format to another.
Pascal
run\JvRichEdit.pas
TJvConversion = class(TObject);
Description
Write a TJvConversion descendant to convert rich text data or plain text from one specific encoding format to another. Register the object with a call to RegisterConversionFormat. Registered conversion objects are used by TJvRichEdit when either the LoadFromFile, LoadFromStream, SaveToFile or SaveToStream method of its Lines property called.
A TJvRichEdit control will call the methods of a conversion object in the following order:
- Init, to initialize the converter.
- CanHandle, to determine whether the converter can handle a specific extension.
- IsFormatCorrect, to determine whether the converter can handle a specific file or stream. (onlyfor import operations) * Open
- Multiple ConvertRead or ConvertWrite calls.
- Retry, if an error occurred, followed again by multiple ConvertRead or ConvertWrite calls.
- Done, to finalize the converter.
The following objects are descendants of TJvConversion:
Class | Function |
TJvRTFConversion | Reads or writes rich text data. |
TJvTextConversion | Reads or writes plain text. |
TJvStreamConversion | Base class for stream converters. |
TJvOEMConversion | Converts rich text data from and to OEM formatted text. |
TJvMSTextConversion | Wrapper for a MS Text conversion dll. |
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page