Search Results for

    Show / Hide Table of Contents

    Interface IDocumentItemFactory

    Factory for items that can be inserted into the bilingual content model.

    Bilingual file type components typically get an instance of this factory through their implementation of the ItemFactory property, which is set by the framework during component initialization.

    Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
    Assembly: Sdl.FileTypeSupport.Framework.Core.dll
    Syntax
    public interface IDocumentItemFactory

    Properties

    PropertiesFactory

    May hold a reference to the properties factory that is used together with the document item factory.

    Declaration
    IPropertiesFactory PropertiesFactory { get; set; }
    Property Value
    Type Description
    IPropertiesFactory

    Methods

    CreateCommentMarker(ICommentProperties)

    Creates a new comment associated with a comments collection. This is somewhat inconsistent with the other factory methods, because there is no separate comment properties object for wrapping the collection.

    Declaration
    ICommentMarker CreateCommentMarker(ICommentProperties comments)
    Parameters
    Type Name Description
    ICommentProperties comments
    Returns
    Type Description
    ICommentMarker

    CreateDocumentProperties()

    Creates an empty document properties instance.

    Declaration
    IDocumentProperties CreateDocumentProperties()
    Returns
    Type Description
    IDocumentProperties

    CreateFeedback(IRevisionProperties)

    Create a feedback marker that can be used to indicate that a part of teh content has user feedback associated with it.

    Declaration
    IRevisionMarker CreateFeedback(IRevisionProperties properties)
    Parameters
    Type Name Description
    IRevisionProperties properties
    Returns
    Type Description
    IRevisionMarker

    CreateFileProperties()

    Creates an empty file properties instance.

    Declaration
    IFileProperties CreateFileProperties()
    Returns
    Type Description
    IFileProperties

    CreateLocationMarker()

    Creates a new location marker that is initialized with a unique LocationMarkerId.

    Declaration
    ILocationMarker CreateLocationMarker()
    Returns
    Type Description
    ILocationMarker

    CreateLockedContent(ILockedContentProperties)

    Creates a locked content object, which represents locked content.

    Declaration
    ILockedContent CreateLockedContent(ILockedContentProperties properties)
    Parameters
    Type Name Description
    ILockedContentProperties properties
    Returns
    Type Description
    ILockedContent

    CreateOtherMarker()

    Creates an instance of a generic marker type.

    Declaration
    IOtherMarker CreateOtherMarker()
    Returns
    Type Description
    IOtherMarker

    CreateParagraphUnit(LockTypeFlags)

    Creates a new localizable ParagraphUnit with empty source and target content.

    Declaration
    IParagraphUnit CreateParagraphUnit(LockTypeFlags flags)
    Parameters
    Type Name Description
    LockTypeFlags flags

    This indicates which LockTypeFlags are to be used for this ParagraphUnit

    Returns
    Type Description
    IParagraphUnit

    CreatePlaceholderTag(IPlaceholderTagProperties)

    Creates a placeholder tag instance.

    Declaration
    IPlaceholderTag CreatePlaceholderTag(IPlaceholderTagProperties tagInfo)
    Parameters
    Type Name Description
    IPlaceholderTagProperties tagInfo
    Returns
    Type Description
    IPlaceholderTag

    CreateRevision(IRevisionProperties)

    Create a revision marker that can be used to indicate that a part of the content was changed through adding or deleting.

    Declaration
    IRevisionMarker CreateRevision(IRevisionProperties properties)
    Parameters
    Type Name Description
    IRevisionProperties properties
    Returns
    Type Description
    IRevisionMarker

    CreateRevisionProperties(RevisionType)

    Creates a revision properties object, which represents information associated with a revision marker.

    Declaration
    [Obsolete("Please use IPropertiesFactory.CreateRevisionProperties(RevisionType) instead.")]
    IRevisionProperties CreateRevisionProperties(RevisionType type)
    Parameters
    Type Name Description
    RevisionType type
    Returns
    Type Description
    IRevisionProperties

    CreateSegment(ISegmentPairProperties)

    Creates a new segment object and assigns the properties to it.

    Declaration
    ISegment CreateSegment(ISegmentPairProperties properties)
    Parameters
    Type Name Description
    ISegmentPairProperties properties
    Returns
    Type Description
    ISegment
    Remarks

    Uses the same properties object when creating the corresponding source and target segments.

    CreateSegmentPair(ISegment, ISegment)

    Creates a segment pair object that can be used as a convenience when working with source and target segments in a IParagraphUnit.

    Declaration
    ISegmentPair CreateSegmentPair(ISegment source, ISegment target)
    Parameters
    Type Name Description
    ISegment source

    The source segment of a paragraph unit. Must not be null.

    ISegment target

    The target segment corresponding to the source segment. May be null if no target segment exists in the ParagraphUnit yet.

    Returns
    Type Description
    ISegmentPair
    Remarks

    The source and target segment passed in must be in the same paragraph unit.

    CreateSegmentPairProperties()

    Creates a new segment pair properties object that can be used to create segments.

    Declaration
    ISegmentPairProperties CreateSegmentPairProperties()
    Returns
    Type Description
    ISegmentPairProperties

    CreateSerializableContainer()

    Creates an empty container for markup data that is guaranteed to be serializable.

    Declaration
    ISerializableMarkupDataContainer CreateSerializableContainer()
    Returns
    Type Description
    ISerializableMarkupDataContainer
    Remarks

    Used to save data to the Windows clipboard during a copy operation.

    CreateStructureTag(IStructureTagProperties)

    Creates a structure tag instance.

    Declaration
    IStructureTag CreateStructureTag(IStructureTagProperties tagInfo)
    Parameters
    Type Name Description
    IStructureTagProperties tagInfo
    Returns
    Type Description
    IStructureTag

    CreateSubSegmentReference(ISubSegmentProperties, ParagraphUnitId)

    Creates a sub-segment reference instance.

    Declaration
    ISubSegmentReference CreateSubSegmentReference(ISubSegmentProperties subSegment, ParagraphUnitId paragraphUnitId)
    Parameters
    Type Name Description
    ISubSegmentProperties subSegment
    ParagraphUnitId paragraphUnitId
    Returns
    Type Description
    ISubSegmentReference

    CreateTagPair(IStartTagProperties, IEndTagProperties)

    Creates a tag pair instance.

    Declaration
    ITagPair CreateTagPair(IStartTagProperties startTagInfo, IEndTagProperties endTagInfo)
    Parameters
    Type Name Description
    IStartTagProperties startTagInfo
    IEndTagProperties endTagInfo
    Returns
    Type Description
    ITagPair

    CreateText(ITextProperties)

    Creates a text instance.

    Declaration
    IText CreateText(ITextProperties textInfo)
    Parameters
    Type Name Description
    ITextProperties textInfo
    Returns
    Type Description
    IText

    CreateTranslationOrigin()

    Creates a new translation origin object that can be assigned to segment pair properties.

    Declaration
    ITranslationOrigin CreateTranslationOrigin()
    Returns
    Type Description
    ITranslationOrigin

    DeserialzeContainer(IFormatter, Stream)

    De-serialize the stream into a markup data container of the same type returned from CreateSerializableContainer().

    Declaration
    ISerializableMarkupDataContainer DeserialzeContainer(IFormatter formatter, Stream serializationStream)
    Parameters
    Type Name Description
    IFormatter formatter

    Formatter to use for de-serialization

    Stream serializationStream

    Stream that contains the data to de-serialize from

    Returns
    Type Description
    ISerializableMarkupDataContainer

    Null, if the stream cannot be de-serialized to the expected object type

    Remarks

    Used to parse data from the Windows clipboard during a paste operation.

    In this article
    • Properties
      • PropertiesFactory
    • Methods
      • CreateCommentMarker(ICommentProperties)
      • CreateDocumentProperties()
      • CreateFeedback(IRevisionProperties)
      • CreateFileProperties()
      • CreateLocationMarker()
      • CreateLockedContent(ILockedContentProperties)
      • CreateOtherMarker()
      • CreateParagraphUnit(LockTypeFlags)
      • CreatePlaceholderTag(IPlaceholderTagProperties)
      • CreateRevision(IRevisionProperties)
      • CreateRevisionProperties(RevisionType)
      • CreateSegment(ISegmentPairProperties)
      • CreateSegmentPair(ISegment, ISegment)
      • CreateSegmentPairProperties()
      • CreateSerializableContainer()
      • CreateStructureTag(IStructureTagProperties)
      • CreateSubSegmentReference(ISubSegmentProperties, ParagraphUnitId)
      • CreateTagPair(IStartTagProperties, IEndTagProperties)
      • CreateText(ITextProperties)
      • CreateTranslationOrigin()
      • DeserialzeContainer(IFormatter, Stream)
    Back to top Generated by DocFX