Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    AbstractNativeFileWriter
    AbstractNativePreviewFileWriter
    Implements
    INativeFileWriter
    INativeGenerationContentHandler
    IAbstractNativeContentHandler
    INativeOutputSettingsAware
    System.IDisposable
    Inherited Members
    AbstractNativeFileWriter.SetOutputProperties(INativeOutputFileProperties)
    AbstractNativeFileWriter.StructureTag(IStructureTagProperties)
    AbstractNativeFileWriter.InlineStartTag(IStartTagProperties)
    AbstractNativeFileWriter.InlineEndTag(IEndTagProperties)
    AbstractNativeFileWriter.InlinePlaceholderTag(IPlaceholderTagProperties)
    AbstractNativeFileWriter.Text(ITextProperties)
    AbstractNativeFileWriter.CustomInfo(ICustomInfoProperties)
    AbstractNativeFileWriter.LocationMark(LocationMarkerId)
    AbstractNativeFileWriter.ChangeContext(IContextProperties)
    AbstractNativeFileWriter.LockedContentStart(ILockedContentProperties)
    AbstractNativeFileWriter.LockedContentEnd()
    AbstractNativeFileWriter.RevisionStart(IRevisionProperties)
    AbstractNativeFileWriter.RevisionEnd()
    AbstractNativeFileWriter.CommentStart(ICommentProperties)
    AbstractNativeFileWriter.CommentEnd()
    AbstractNativeFileWriter.ParagraphComments(ICommentProperties)
    AbstractNativeFileWriter.ParagraphUnitStart(IParagraphUnitProperties)
    AbstractNativeFileWriter.ParagraphUnitEnd()
    AbstractNativeFileWriter.SegmentStart(ISegmentPairProperties)
    AbstractNativeFileWriter.SegmentEnd()
    AbstractNativeFileWriter.Dispose()
    AbstractNativeFileWriter.Dispose(Boolean)
    AbstractNativeFileWriter.OutputProperties
    AbstractNativeFileWriter.MessageReporter
    AbstractNativeFileWriter.LocationTracker
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.FileTypeSupport.Framework.PreviewControls
    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
    System.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
    Overrides
    AbstractNativeFileWriter.GetProposedOutputFileInfo(IPersistentFileConversionProperties, IOutputFileInfo)

    Implements

    INativeFileWriter
    INativeGenerationContentHandler
    IAbstractNativeContentHandler
    INativeOutputSettingsAware
    System.IDisposable

    On this page

    • Constructors
      • AbstractNativePreviewFileWriter()
    • Properties
      • ExtensionMaps
    • Methods
      • GetProposedOutputFileInfo(IPersistentFileConversionProperties, IOutputFileInfo)
    • Implements
    Back to top Generated by DocFX