C# Class SIL.FieldWorks.FDO.FDOTests.InterlinearTestBase.TextBuilder

This can be used to build a Text based upon an xml specification. Note: the xml specification will be modified to save the expected state of the text.
Afficher le fichier Open project: sillsdev/FieldWorks

Private Properties

Свойство Type Description
BuildText FDO.IText
CreateContents IStText
CreateText FDO.IText
DeleteParagraphBreak void
DeleteParagraphBreak void
DeleteParagraphDefn void
DeleteParagraphDefn void
DeleteText void
GetParagraphBuilder ParagraphBuilder
GetParagraphBuilderForNotYetExistingParagraph ParagraphBuilder
InsertNewParagraphDefn System.Xml.XmlElement
InsertParagraphBreak System.Xml.XmlNode
SelectNode System.Xml.XmlNode
SelectNode System.Xml.XmlNode
SelectNode System.Xml.XmlNode
SetName void
SetTextDefnFromSelectedNode System.Xml.XmlNode
TextBuilder System
TextBuilder System

Méthodes publiques

Méthode Description
AppendNewParagraph ( ) : IStTxtPara

CreateText ( bool fCreateContents ) : FDO.IText

Creates the text to be used by this TextBuilder

ExportRealSegmentAnnotationsFromDefn ( ) : List

TODO: Finish implementing this.

GenerateAnnotationIdsFromDefn ( ) : void

InsertNewParagraphAfter ( XmlNode paragraphDefnToInsertAfter ) : IStTxtPara

Private Methods

Méthode Description
BuildText ( XmlNode textDefn ) : FDO.IText
CreateContents ( FDO text ) : IStText
CreateText ( ) : FDO.IText
DeleteParagraphBreak ( IStTxtPara para ) : void
DeleteParagraphBreak ( XmlNode paraNodeToDelBreak ) : void
DeleteParagraphDefn ( IStTxtPara para ) : void
DeleteParagraphDefn ( XmlNode paraDefn ) : void
DeleteText ( ) : void
GetParagraphBuilder ( IStTxtPara para ) : ParagraphBuilder

get the paragraph builder for the given hvoPara

GetParagraphBuilderForNotYetExistingParagraph ( XmlNode paraDefn ) : ParagraphBuilder

Note: paraDefn may not yet be mapped to a real paragraph Hvo.

InsertNewParagraphDefn ( XmlNode paraDefnToInsertAfter ) : XmlElement
InsertParagraphBreak ( IStTxtPara para, XmlNode startingNodeToMoveToNewPara ) : XmlNode

SelectNode ( IStTxtPara para ) : XmlNode
SelectNode ( IStTxtPara para, int iSeg ) : XmlNode
SelectNode ( IStTxtPara para, int iSeg, int iSegForm ) : XmlNode
SetName ( string name, int ws ) : void
SetTextDefnFromSelectedNode ( XmlNode node ) : XmlNode
TextBuilder ( FdoCache cache ) : System
TextBuilder ( TextBuilder tbToClone ) : System

Method Details

AppendNewParagraph() public méthode

public AppendNewParagraph ( ) : IStTxtPara
Résultat IStTxtPara

CreateText() public méthode

Creates the text to be used by this TextBuilder
public CreateText ( bool fCreateContents ) : FDO.IText
fCreateContents bool
Résultat FDO.IText

ExportRealSegmentAnnotationsFromDefn() public méthode

TODO: Finish implementing this.
public ExportRealSegmentAnnotationsFromDefn ( ) : List
Résultat List

GenerateAnnotationIdsFromDefn() public méthode

public GenerateAnnotationIdsFromDefn ( ) : void
Résultat void

InsertNewParagraphAfter() public méthode

public InsertNewParagraphAfter ( XmlNode paragraphDefnToInsertAfter ) : IStTxtPara
paragraphDefnToInsertAfter System.Xml.XmlNode
Résultat IStTxtPara