C# Класс SIL.FieldWorks.XWorks.MorphologyEditor.AffixRuleFormulaControl

This class represents an affix process rule formula control. An affix process is represented by a left input empty cell, a right input empty cell, a cell for each input phonological context, and a result cell. The input emtpy cells are simply used to insert new contexts in to a MoAffixProcess. The context cells represent the contexts in the Input field of MoAffixProcess. The data in the result cell consists of the rule mapping objects in the Output field.
Наследование: RuleFormulaControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateSeqCtxt IPhSequenceContext
DisplayColumnOption bool
DisplayIndices IEnumerable
DisplayNoOptsMsg string
DisplayOption bool
DisplayVariableOption bool
GetColumnInsertIndex int
InsertContext int
InsertIntoOutput int
IsFinalLastVariableMapping bool
IsLastVariable bool
IsLastVariableMapping bool
SelectionChanged void
UpdateMappings void

Открытые методы

Метод Описание
AffixRuleFormulaControl ( XmlNode configurationNode ) : System
Initialize ( SIL.FieldWorks.FDO.FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider, XCore mediator, string displayNameProperty, string displayWs ) : void
SetMappingFeatures ( ) : void
SetMappingNaturalClass ( ) : void

Защищенные методы

Метод Описание
GetCell ( SelectionHelper sel, SelectionHelper limit ) : int
GetCellCount ( int cellId ) : int
GetCmObject ( SelectionHelper sel, SelectionHelper limit ) : ICmObject
GetFlid ( int cellId ) : int
GetItemCellIndex ( int cellId, ICmObject obj ) : int
GetLevelInfo ( int cellId, int cellIndex ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
GetNextCell ( int cellId ) : int
GetPrevCell ( int cellId ) : int
InsertBdry ( IPhBdryMarker bdry, SelectionHelper sel, int &cellIndex ) : int
InsertColumn ( SelectionHelper sel ) : int
InsertIndex ( int index, SelectionHelper sel, int &cellIndex ) : int
InsertNC ( IPhNaturalClass nc, SelectionHelper sel, int &cellIndex, IPhSimpleContextNC &ctxt ) : int
InsertPhoneme ( IPhPhoneme phoneme, SelectionHelper sel, int &cellIndex ) : int
InsertVariable ( SelectionHelper sel, int &cellIndex ) : int
OnSizeChanged ( EventArgs e ) : void
RemoveFromOutput ( bool forward, SelectionHelper sel, int &index ) : bool
RemoveItems ( SelectionHelper sel, bool forward, int &cellIndex ) : int

Приватные методы

Метод Описание
CreateSeqCtxt ( IPhPhonContext ctxt ) : IPhSequenceContext
DisplayColumnOption ( object option ) : bool
DisplayIndices ( ) : IEnumerable
DisplayNoOptsMsg ( ) : string
DisplayOption ( object option ) : bool
DisplayVariableOption ( object option ) : bool
GetColumnInsertIndex ( SelectionHelper sel ) : int
InsertContext ( IPhContextOrVar ctxtOrVar, SelectionHelper sel, int &cellIndex ) : int
InsertIntoOutput ( IMoRuleMapping mapping, SelectionHelper sel ) : int
IsFinalLastVariableMapping ( IMoRuleMapping mapping ) : bool
IsLastVariable ( IPhContextOrVar ctxtOrVar ) : bool
IsLastVariableMapping ( IMoRuleMapping mapping ) : bool
SelectionChanged ( object sender, EventArgs e ) : void
UpdateMappings ( IPhContextOrVar oldCtxtOrVar, IPhContextOrVar newCtxtOrVar ) : void

Updates the context that the mappings point to. This is used when the context changes from a single context to a sequence context.

Описание методов

AffixRuleFormulaControl() публичный Метод

public AffixRuleFormulaControl ( XmlNode configurationNode ) : System
configurationNode System.Xml.XmlNode
Результат System

GetCell() защищенный Метод

protected GetCell ( SelectionHelper sel, SelectionHelper limit ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
limit SIL.FieldWorks.Common.RootSites.SelectionHelper
Результат int

GetCellCount() защищенный Метод

protected GetCellCount ( int cellId ) : int
cellId int
Результат int

GetCmObject() защищенный Метод

protected GetCmObject ( SelectionHelper sel, SelectionHelper limit ) : ICmObject
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
limit SIL.FieldWorks.Common.RootSites.SelectionHelper
Результат ICmObject

GetFlid() защищенный Метод

protected GetFlid ( int cellId ) : int
cellId int
Результат int

GetItemCellIndex() защищенный Метод

protected GetItemCellIndex ( int cellId, ICmObject obj ) : int
cellId int
obj ICmObject
Результат int

GetLevelInfo() защищенный Метод

protected GetLevelInfo ( int cellId, int cellIndex ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
cellId int
cellIndex int
Результат SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]

GetNextCell() защищенный Метод

protected GetNextCell ( int cellId ) : int
cellId int
Результат int

GetPrevCell() защищенный Метод

protected GetPrevCell ( int cellId ) : int
cellId int
Результат int

Initialize() публичный Метод

public Initialize ( SIL.FieldWorks.FDO.FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider, XCore mediator, string displayNameProperty, string displayWs ) : void
cache SIL.FieldWorks.FDO.FdoCache
obj ICmObject
flid int
fieldName string
persistProvider IPersistenceProvider
mediator XCore
displayNameProperty string
displayWs string
Результат void

InsertBdry() защищенный Метод

protected InsertBdry ( IPhBdryMarker bdry, SelectionHelper sel, int &cellIndex ) : int
bdry IPhBdryMarker
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
cellIndex int
Результат int

InsertColumn() защищенный Метод

protected InsertColumn ( SelectionHelper sel ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
Результат int

InsertIndex() защищенный Метод

protected InsertIndex ( int index, SelectionHelper sel, int &cellIndex ) : int
index int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
cellIndex int
Результат int

InsertNC() защищенный Метод

protected InsertNC ( IPhNaturalClass nc, SelectionHelper sel, int &cellIndex, IPhSimpleContextNC &ctxt ) : int
nc IPhNaturalClass
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
cellIndex int
ctxt IPhSimpleContextNC
Результат int

InsertPhoneme() защищенный Метод

protected InsertPhoneme ( IPhPhoneme phoneme, SelectionHelper sel, int &cellIndex ) : int
phoneme IPhPhoneme
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
cellIndex int
Результат int

InsertVariable() защищенный Метод

protected InsertVariable ( SelectionHelper sel, int &cellIndex ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
cellIndex int
Результат int

OnSizeChanged() защищенный Метод

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

RemoveFromOutput() защищенный Метод

protected RemoveFromOutput ( bool forward, SelectionHelper sel, int &index ) : bool
forward bool
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
index int
Результат bool

RemoveItems() защищенный Метод

protected RemoveItems ( SelectionHelper sel, bool forward, int &cellIndex ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
forward bool
cellIndex int
Результат int

SetMappingFeatures() публичный Метод

public SetMappingFeatures ( ) : void
Результат void

SetMappingNaturalClass() публичный Метод

public SetMappingNaturalClass ( ) : void
Результат void