C# Class SIL.FieldWorks.FdoUi.LexSenseUi

UI functions for MoMorphSynAnalysis.
Inheritance: CmObjectUi
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
CreateNewUiObject ( XCore.Mediator mediator, int classId, int hvoOwner, int flid, int insertionPosition ) : LexSenseUi

When inserting a LexSense, copy the MSA from the one we are inserting after, or the first one. If this is the first one, we may need to create an MSA if the owning entry does not have an appropriate one.

GuidForJumping ( object commandObject ) : System.Guid

gives the hvo of the object to use in the URL we construct when doing a jump

LexSenseUi ( ICmObject obj ) : System

Create one.

MoveUnderlyingObjectToCopyOfOwner ( ) : void
OnDisplayDeleteSelectedItem ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

disable/hide delete selected item for LexSenses (eg. since we don't want them to delete all senses from its owning entry.)

Méthodes protégées

Méthode Description
GetMergeinfo ( SIL.FieldWorks.LexText.Controls.WindowParams wp, List mergeCandidates, string &guiControl, string &helpTopic ) : DummyCmObject
ShouldDisplayMenuForClass ( int specifiedClsid, XCore.UIItemDisplayProperties display ) : bool

Private Methods

Méthode Description
GetSafeHvoMsa ( SIL.FieldWorks.FDO.FdoCache cache, ILexSense ls ) : int

This method will get an hvo for the MSA which the senses MorphoSyntaxAnalysisRA points to. If it is null it will try and find an appropriate one in the owning Entries list, if that fails it will make one and put it there.

LexSenseUi ( ) : System

Method Details

CreateNewUiObject() public static méthode

When inserting a LexSense, copy the MSA from the one we are inserting after, or the first one. If this is the first one, we may need to create an MSA if the owning entry does not have an appropriate one.
public static CreateNewUiObject ( XCore.Mediator mediator, int classId, int hvoOwner, int flid, int insertionPosition ) : LexSenseUi
mediator XCore.Mediator
classId int
hvoOwner int
flid int
insertionPosition int
Résultat LexSenseUi

GetMergeinfo() protected méthode

protected GetMergeinfo ( SIL.FieldWorks.LexText.Controls.WindowParams wp, List mergeCandidates, string &guiControl, string &helpTopic ) : DummyCmObject
wp SIL.FieldWorks.LexText.Controls.WindowParams
mergeCandidates List
guiControl string
helpTopic string
Résultat DummyCmObject

GuidForJumping() public méthode

gives the hvo of the object to use in the URL we construct when doing a jump
public GuidForJumping ( object commandObject ) : System.Guid
commandObject object
Résultat System.Guid

LexSenseUi() public méthode

Create one.
public LexSenseUi ( ICmObject obj ) : System
obj ICmObject
Résultat System

MoveUnderlyingObjectToCopyOfOwner() public méthode

public MoveUnderlyingObjectToCopyOfOwner ( ) : void
Résultat void

OnDisplayDeleteSelectedItem() public méthode

disable/hide delete selected item for LexSenses (eg. since we don't want them to delete all senses from its owning entry.)
public OnDisplayDeleteSelectedItem ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

ShouldDisplayMenuForClass() protected méthode

protected ShouldDisplayMenuForClass ( int specifiedClsid, XCore.UIItemDisplayProperties display ) : bool
specifiedClsid int
display XCore.UIItemDisplayProperties
Résultat bool