Class AbstractNativePreviewFileWriter
Abstract base class that can be used to build native preview file writers.
This class is derived from AbstractNativeFileWriter but also adds a property ExtensionMaps that can be set in the filter definition's preview writer section to automatically map file extensions so that the preview file can be viewed in varions preview applications.
Implements
Inherited Members
Namespace: SdlSdl.FileTypeSupportFrameworkPreviewControls
Assembly: Sdl.FileTypeSupport.Framework.PreviewControls.dll
Syntax
public abstract class AbstractNativePreviewFileWriter : AbstractNativeFileWriter, INativeFileWriter, INativeGenerationContentHandler, IAbstractNativeContentHandler, INativeOutputSettingsAware, IDisposable
Constructors
AbstractNativePreviewFileWriter()
Declaration
protected AbstractNativePreviewFileWriter()
Properties
ExtensionMaps
A list of filter extensions that need to be mapped to other extensions before previewing. For example mappping .csv to .csv.txt files so they can be previewed in an IE browser control.
Declaration
public string[] ExtensionMaps { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
GetProposedOutputFileInfo(IPersistentFileConversionProperties, IOutputFileInfo)
Propose a filename based on origianl file path but with the file extension mapped to a new file extension if a map is found in ExtensionMaps.
Declaration
public override void GetProposedOutputFileInfo(IPersistentFileConversionProperties fileProperties, IOutputFileInfo proposedFileInfo)
Parameters
Type | Name | Description |
---|---|---|
IPersistentFileConversionProperties | fileProperties | |
IOutputFileInfo | proposedFileInfo |