Click or drag to resize
IPreviewType Interface
Describes a type of preview that is available for a file type through its file type definition. This interface is further specialized into IControlPreviewType and IApplicationPreviewType for previews that can be hosted in controls or launch standalone applications. The preview type is normally defined as part of a IPreviewSet. The preview set determines whether the preview type is used as a source, target, or side-by-side preview in the user interface.

Namespace: Sdl.FileTypeSupport.Framework.IntegrationApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public interface IPreviewType

The IPreviewType type exposes the following members.

Properties
  NameDescription
Public propertySourceGeneratorId
Identifier for the generator that can generate the source language file to be displayed using the preview.
Public propertyTargetGeneratorId
Identifier for the generator that can generate the target language file to be displayed in the preview.
Top
Remarks

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.

See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments