C# 클래스 SIL.FieldWorks.XWorks.MorphologyEditor.RuleFormulaControl

This class class represents a rule formula control. It is not intended to be used directly. Specific phonological/morphological rules should extend this class. It is not abstract so that it can be modified in Windows Form designer. It is a button launcher with a rule formula view and a rule insertion control. It handles selection, deletion, insertion, and cursor movement for a rule formula. Rules that extend this class override the methods that provide information about the various table cells in the rule and the data contained in each cell.
상속: SIL.FieldWorks.Common.Framework.DetailControls.ButtonLauncher
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_insertionControl SIL.FieldWorks.LexText.Controls.InsertionControl
m_view SIL.FieldWorks.LexText.Controls.PatternView

공개 메소드들

메소드 설명
GetContext ( SelectionHelper sel ) : object
GetContext ( SelectionHelper sel, SelectionHelper limit ) : object
GetContextCount ( object ctxt ) : int
GetFlid ( object ctxt ) : int
GetItem ( SelectionHelper sel, SelectionHelper limit ) : object
GetItemContextIndex ( object ctxt, object obj ) : int
GetLevelInfo ( object ctxt, int index ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
GetNextContext ( object ctxt ) : object
GetPrevContext ( object ctxt ) : object
Initialize ( SIL.FieldWorks.FDO.FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider, XCore.Mediator mediator, string displayNameProperty, string displayWs ) : void
RuleFormulaControl ( ) : System
RuleFormulaControl ( XmlNode configurationNode ) : System
SetContextFeatures ( ) : void

Sets the phonological features for the currently selected natural class simple context with a feature-based natural class.

보호된 메소드들

메소드 설명
DisplayChooser ( string fieldName, string linkText, string toolName, string guiControl, IEnumerable candidates ) : ICmObject
GetCell ( SelectionHelper sel ) : int
GetCell ( SelectionHelper sel, SelectionHelper limit ) : int
GetCellCount ( int cellId ) : int
GetCmObject ( SelectionHelper sel, SelectionHelper limit ) : ICmObject
GetFlid ( int cellId ) : int
GetIndexToRemove ( ICmObject objs, SelectionHelper sel, bool forward ) : int
GetIndicesToRemove ( ICmObject objs, SelectionHelper sel ) : int[]
GetInsertionIndex ( ICmObject objs, SelectionHelper sel ) : int
GetItemCellIndex ( int cellId, ICmObject obj ) : int
GetLevelInfo ( int cellId, int index ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
GetNextCell ( int cellId ) : int
GetPrevCell ( int cellId ) : int
HandleChooser ( ) : void

Handle launching of the environment chooser.

Subclasses should override this method, if the SimpleListChooser is not suitable.

InsertBdry ( IPhBdryMarker bdry, SelectionHelper sel, int &cellIndex ) : int

Inserts an item from a boundary.

InsertColumn ( SelectionHelper sel ) : int

Inserts a new column.

InsertContextInto ( IPhSimpleContext ctxt, SelectionHelper sel, IFdoOwningSequence seq ) : int
InsertContextInto ( IPhSimpleContext ctxt, SelectionHelper sel, IPhSequenceContext seqCtxt ) : int
InsertIndex ( int index, SelectionHelper sel, int &cellIndex ) : int

Inserts an item from the specified rule mapping index.

InsertNC ( IPhNaturalClass nc, SelectionHelper sel, int &cellIndex, IPhSimpleContextNC &ctxt ) : int

Inserts an item from a natural class.

InsertPhoneme ( IPhPhoneme phoneme, SelectionHelper sel, int &cellIndex ) : int

Inserts an item from a phoneme.

InsertVariable ( SelectionHelper sel, int &cellIndex ) : int

Inserts the variable (PhVariable).

ReconstructView ( int cellId, int cellIndex, bool initial ) : void

Reconstructs the view and moves the cursor the specified position.

RemoveContextsFrom ( bool forward, SelectionHelper sel, IFdoOwningSequence seq, bool preRemovalSideEffects, int &index ) : bool
RemoveContextsFrom ( bool forward, SelectionHelper sel, IPhSequenceContext seqCtxt, bool preRemovalSideEffects, int &index ) : bool
RemoveItems ( SelectionHelper sel, bool forward, int &cellIndex ) : int

Removes items based on the specified selection and direction.

SetupPhonologicalFeatureChoooserDlg ( PhonologicalFeatureChooserDlg featChooser ) : void
UpdateEnvironment ( IPhEnvironment env ) : int

Updates the environment.

비공개 메소드들

메소드 설명
ContextMenuRequested ( object sender, ContextMenuRequestedEventArgs e ) : void
GetOptionString ( RuleInsertType type ) : string
InitializeComponent ( ) : void
InsertNC ( IPhNaturalClass nc, SelectionHelper sel, int &cellIndex ) : int
IsMorphBoundary ( IPhContextOrVar ctxt ) : bool
IsWordBoundary ( IPhContextOrVar ctxt ) : bool
ProcessIndicesSeqContext ( ICmObject ctxts, bool preRemovalSideEffects, int idx ) : void
ProcessIndicesSimpleContext ( IFdoOwningSequence seq, ICmObject ctxts, bool preRemovalSideEffects, int idx ) : void
RemoveItemsRequested ( object sender, RemoveItemsRequestedEventArgs e ) : void
SelectionChanged ( object sender, EventArgs eventArgs ) : void
ToCellId ( object ctxt ) : int
ToContextObject ( int cellId ) : object
m_insertionControl_Insert ( object sender, InsertEventArgs e ) : void

Handles the Insert event of the m_insertionControl control.

메소드 상세

DisplayChooser() 보호된 메소드

protected DisplayChooser ( string fieldName, string linkText, string toolName, string guiControl, IEnumerable candidates ) : ICmObject
fieldName string
linkText string
toolName string
guiControl string
candidates IEnumerable
리턴 ICmObject

GetCell() 보호된 메소드

protected GetCell ( SelectionHelper sel ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 int

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

GetContext() 공개 메소드

public GetContext ( SelectionHelper sel ) : object
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 object

GetContext() 공개 메소드

public GetContext ( SelectionHelper sel, SelectionHelper limit ) : object
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
limit SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 object

GetContextCount() 공개 메소드

public GetContextCount ( object ctxt ) : int
ctxt object
리턴 int

GetFlid() 보호된 메소드

protected GetFlid ( int cellId ) : int
cellId int
리턴 int

GetFlid() 공개 메소드

public GetFlid ( object ctxt ) : int
ctxt object
리턴 int

GetIndexToRemove() 보호된 메소드

protected GetIndexToRemove ( ICmObject objs, SelectionHelper sel, bool forward ) : int
objs ICmObject
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
forward bool
리턴 int

GetIndicesToRemove() 보호된 메소드

protected GetIndicesToRemove ( ICmObject objs, SelectionHelper sel ) : int[]
objs ICmObject
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 int[]

GetInsertionIndex() 보호된 메소드

protected GetInsertionIndex ( ICmObject objs, SelectionHelper sel ) : int
objs ICmObject
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 int

GetItem() 공개 메소드

public GetItem ( SelectionHelper sel, SelectionHelper limit ) : object
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
limit SIL.FieldWorks.Common.RootSites.SelectionHelper
리턴 object

GetItemCellIndex() 보호된 메소드

protected GetItemCellIndex ( int cellId, ICmObject obj ) : int
cellId int
obj ICmObject
리턴 int

GetItemContextIndex() 공개 메소드

public GetItemContextIndex ( object ctxt, object obj ) : int
ctxt object
obj object
리턴 int

GetLevelInfo() 보호된 메소드

protected GetLevelInfo ( int cellId, int index ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
cellId int
index int
리턴 SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]

GetLevelInfo() 공개 메소드

public GetLevelInfo ( object ctxt, int index ) : SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
ctxt object
index int
리턴 SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]

GetNextCell() 보호된 메소드

protected GetNextCell ( int cellId ) : int
cellId int
리턴 int

GetNextContext() 공개 메소드

public GetNextContext ( object ctxt ) : object
ctxt object
리턴 object

GetPrevCell() 보호된 메소드

protected GetPrevCell ( int cellId ) : int
cellId int
리턴 int

GetPrevContext() 공개 메소드

public GetPrevContext ( object ctxt ) : object
ctxt object
리턴 object

HandleChooser() 보호된 메소드

Handle launching of the environment chooser.
Subclasses should override this method, if the SimpleListChooser is not suitable.
protected HandleChooser ( ) : void
리턴 void

Initialize() 공개 메소드

public Initialize ( SIL.FieldWorks.FDO.FdoCache cache, ICmObject obj, int flid, string fieldName, IPersistenceProvider persistProvider, XCore.Mediator mediator, string displayNameProperty, string displayWs ) : void
cache SIL.FieldWorks.FDO.FdoCache
obj ICmObject
flid int
fieldName string
persistProvider IPersistenceProvider
mediator XCore.Mediator
displayNameProperty string
displayWs string
리턴 void

InsertBdry() 보호된 메소드

Inserts an item from a boundary.
protected InsertBdry ( IPhBdryMarker bdry, SelectionHelper sel, int &cellIndex ) : int
bdry IPhBdryMarker The boundary.
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The sel.
cellIndex int Index of the new item.
리턴 int

InsertColumn() 보호된 메소드

Inserts a new column.
protected InsertColumn ( SelectionHelper sel ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
리턴 int

InsertContextInto() 보호된 메소드

protected InsertContextInto ( IPhSimpleContext ctxt, SelectionHelper sel, IFdoOwningSequence seq ) : int
ctxt IPhSimpleContext
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
seq IFdoOwningSequence
리턴 int

InsertContextInto() 보호된 메소드

protected InsertContextInto ( IPhSimpleContext ctxt, SelectionHelper sel, IPhSequenceContext seqCtxt ) : int
ctxt IPhSimpleContext
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
seqCtxt IPhSequenceContext
리턴 int

InsertIndex() 보호된 메소드

Inserts an item from the specified rule mapping index.
protected InsertIndex ( int index, SelectionHelper sel, int &cellIndex ) : int
index int The rule mapping index.
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
cellIndex int Index of the new item.
리턴 int

InsertNC() 보호된 메소드

Inserts an item from a natural class.
protected InsertNC ( IPhNaturalClass nc, SelectionHelper sel, int &cellIndex, IPhSimpleContextNC &ctxt ) : int
nc IPhNaturalClass The natural class.
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
cellIndex int Index of the new item.
ctxt IPhSimpleContextNC The new context.
리턴 int

InsertPhoneme() 보호된 메소드

Inserts an item from a phoneme.
protected InsertPhoneme ( IPhPhoneme phoneme, SelectionHelper sel, int &cellIndex ) : int
phoneme IPhPhoneme The phoneme.
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
cellIndex int Index of the new item.
리턴 int

InsertVariable() 보호된 메소드

Inserts the variable (PhVariable).
protected InsertVariable ( SelectionHelper sel, int &cellIndex ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
cellIndex int Index of the new item.
리턴 int

ReconstructView() 보호된 메소드

Reconstructs the view and moves the cursor the specified position.
protected ReconstructView ( int cellId, int cellIndex, bool initial ) : void
cellId int The cell id.
cellIndex int Index of the item in the cell.
initial bool if true move the cursor to the beginning of the specified item, otherwise it is moved to the end
리턴 void

RemoveContextsFrom() 보호된 메소드

protected RemoveContextsFrom ( bool forward, SelectionHelper sel, IFdoOwningSequence seq, bool preRemovalSideEffects, int &index ) : bool
forward bool
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
seq IFdoOwningSequence
preRemovalSideEffects bool
index int
리턴 bool

RemoveContextsFrom() 보호된 메소드

protected RemoveContextsFrom ( bool forward, SelectionHelper sel, IPhSequenceContext seqCtxt, bool preRemovalSideEffects, int &index ) : bool
forward bool
sel SIL.FieldWorks.Common.RootSites.SelectionHelper
seqCtxt IPhSequenceContext
preRemovalSideEffects bool
index int
리턴 bool

RemoveItems() 보호된 메소드

Removes items based on the specified selection and direction.
protected RemoveItems ( SelectionHelper sel, bool forward, int &cellIndex ) : int
sel SIL.FieldWorks.Common.RootSites.SelectionHelper The selection.
forward bool if true delete button was used, otherwise backspace was used
cellIndex int Index of the item before the removed items.
리턴 int

RuleFormulaControl() 공개 메소드

public RuleFormulaControl ( ) : System
리턴 System

RuleFormulaControl() 공개 메소드

public RuleFormulaControl ( XmlNode configurationNode ) : System
configurationNode System.Xml.XmlNode
리턴 System

SetContextFeatures() 공개 메소드

Sets the phonological features for the currently selected natural class simple context with a feature-based natural class.
public SetContextFeatures ( ) : void
리턴 void

SetupPhonologicalFeatureChoooserDlg() 보호된 메소드

protected SetupPhonologicalFeatureChoooserDlg ( PhonologicalFeatureChooserDlg featChooser ) : void
featChooser PhonologicalFeatureChooserDlg
리턴 void

UpdateEnvironment() 보호된 메소드

Updates the environment.
protected UpdateEnvironment ( IPhEnvironment env ) : int
env IPhEnvironment The environment.
리턴 int

프로퍼티 상세

m_insertionControl 보호되어 있는 프로퍼티

protected InsertionControl,SIL.FieldWorks.LexText.Controls m_insertionControl
리턴 SIL.FieldWorks.LexText.Controls.InsertionControl

m_view 보호되어 있는 프로퍼티

protected PatternView,SIL.FieldWorks.LexText.Controls m_view
리턴 SIL.FieldWorks.LexText.Controls.PatternView