| IPreviewType Interface |
Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
The IPreviewType type exposes the following members.
| Name | Description | |
|---|---|---|
| SourceGeneratorId |
Identifier for the generator that can generate the source language
file to be displayed using the preview.
| |
| TargetGeneratorId |
Identifier for the generator that can generate the target language
file to be displayed in the preview.
|
The preview type determines which preview file generators should be used for generating the preview files.
Different generator types can be defined for source and target files. However, very often the same generator is used for both. By setting the generator id to Default (which is the equivalent to default(GeneratorId) or new GenertorId(null)) the default generator type defined for the file type will be used. (This is the default value. It will be used in case it is not explicitly set.)
Generators can be either of the type IFileGenerator or IBilingualDocumentGenerator. It is up to the host application to determine which one, and set up the file conversion (and the output properties) accordingly.