C# Class SIL.FieldWorks.XWorks.MorphologyEditor.RuleFormulaVcBase

This view constructor is intended to be extended by particular rule formula view constructors. It handles the display of phonological contexts, such as PhSequenceContext, PhIterationContext, PhSimpleContextNC, PhSimpleContextSeg, PhSimpleContextNC, etc., for rule formulas.
Inheritance: SIL.FieldWorks.LexText.Controls.PatternVcBase
显示文件 Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_infinity ITsString
m_x ITsString

Public Methods

Method Description
Display ( IVwEnv vwenv, int hvo, int frag ) : void
DisplayIterCtxt ( int numLines, IVwEnv vwenv ) : void
DisplayVariant ( IVwEnv vwenv, int tag, int frag ) : ITsString
UpdateProp ( IVwSelection vwsel, int hvo, int tag, int frag, ITsString tssVal ) : ITsString

Protected Methods

Method Description
GetMaxNumLines ( ) : int

Gets the maximum number of lines for context cells.

GetNumLines ( IEnumerable seq ) : int

Gets the maximum number of lines to display the specified sequence of simple contexts.

GetNumLines ( IPhContextOrVar ctxtOrVar ) : int

Gets the number of lines needed to display the specified context or variable.

GetStrWidth ( ITsString tss, ITsTextProps props, IVwEnv vwenv ) : int
GetVarIndex ( IPhFeatureConstraint var ) : int

Gets the index of the specified feature constraint. This is used to ensure that the same variable is used for a feature constraint across the entire rule.

GetWidth ( IPhContextOrVar ctxtOrVar, IVwEnv vwenv ) : int

Gets the width of the specified context or variable.

RuleFormulaVcBase ( SIL.FieldWorks.FDO.FdoCache cache, XCore mediator ) : System

Private Methods

Method Description
CreateFeatureLine ( IFsClosedValue value ) : ITsString
CreateVariableLine ( IPhFeatureConstraint var, bool polarity ) : ITsString
GetIterCtxtWidth ( IPhIterationContext ctxt, IVwEnv vwenv ) : int
GetMinMaxWidth ( IPhIterationContext ctxt, ITsTextProps props, IVwEnv vwenv ) : int
GetNCCtxtWidth ( IPhSimpleContextNC ctxt, IVwEnv vwenv ) : int
GetNCFeatsWidth ( IPhSimpleContextNC ctxt, IVwEnv vwenv ) : int
GetSimpleCtxtWidth ( IPhSimpleContext ctxt, IVwEnv vwenv ) : int
GetTermUnitWidth ( IPhTerminalUnit tu, IVwEnv vwenv ) : int
GetVariablesWidth ( IPhSimpleContextNC ctxt, IVwEnv vwenv, bool polarity ) : int

Method Details

Display() public method

public Display ( IVwEnv vwenv, int hvo, int frag ) : void
vwenv IVwEnv
hvo int
frag int
return void

DisplayIterCtxt() public method

public DisplayIterCtxt ( int numLines, IVwEnv vwenv ) : void
numLines int
vwenv IVwEnv
return void

DisplayVariant() public method

public DisplayVariant ( IVwEnv vwenv, int tag, int frag ) : ITsString
vwenv IVwEnv
tag int
frag int
return ITsString

GetMaxNumLines() protected abstract method

Gets the maximum number of lines for context cells.
protected abstract GetMaxNumLines ( ) : int
return int

GetNumLines() protected method

Gets the maximum number of lines to display the specified sequence of simple contexts.
protected GetNumLines ( IEnumerable seq ) : int
seq IEnumerable The sequence.
return int

GetNumLines() protected method

Gets the number of lines needed to display the specified context or variable.
protected GetNumLines ( IPhContextOrVar ctxtOrVar ) : int
ctxtOrVar IPhContextOrVar The context or variable.
return int

GetStrWidth() protected method

protected GetStrWidth ( ITsString tss, ITsTextProps props, IVwEnv vwenv ) : int
tss ITsString
props ITsTextProps
vwenv IVwEnv
return int

GetVarIndex() protected abstract method

Gets the index of the specified feature constraint. This is used to ensure that the same variable is used for a feature constraint across the entire rule.
protected abstract GetVarIndex ( IPhFeatureConstraint var ) : int
var IPhFeatureConstraint The variable.
return int

GetWidth() protected method

Gets the width of the specified context or variable.
protected GetWidth ( IPhContextOrVar ctxtOrVar, IVwEnv vwenv ) : int
ctxtOrVar IPhContextOrVar The context or variable.
vwenv IVwEnv The vwenv.
return int

RuleFormulaVcBase() protected method

protected RuleFormulaVcBase ( SIL.FieldWorks.FDO.FdoCache cache, XCore mediator ) : System
cache SIL.FieldWorks.FDO.FdoCache
mediator XCore
return System

UpdateProp() public method

public UpdateProp ( IVwSelection vwsel, int hvo, int tag, int frag, ITsString tssVal ) : ITsString
vwsel IVwSelection
hvo int
tag int
frag int
tssVal ITsString
return ITsString

Property Details

m_infinity protected_oe property

protected ITsString m_infinity
return ITsString

m_x protected_oe property

protected ITsString m_x
return ITsString