C# Class SIL.FieldWorks.XWorks.LexEd.LexEntryMenuHandler

LexEntryMenuHandler inherits from DTMenuHandler and adds some special smarts. this class would normally be constructed by the factory method on DTMenuHandler, when the XML configuration of the RecordEditView specifies this class. This is an IxCoreColleague, so it gets a chance to modify the display characteristics of the menu just before the menu is displayed.
Inheritance: SIL.FieldWorks.XWorks.DTMenuHandler
Afficher le fichier Open project: sillsdev/FieldWorks

Méthodes publiques

Méthode Description
LexEntryMenuHandler ( ) : System
OnConvertLexemeForm ( object cmd ) : bool
OnDisplayConvertLexemeForm ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplayDataTreeDeleteSense ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

decide whether to enable this tree delete Menu Item

OnDisplayDataTreeInsert ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

decide whether to display this tree insert Menu Item

OnDisplayInsertMediaFile ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

We want to be able to insert a sound/movie file for a pronunciation, even when the pronunciation doesn't yet exist. See LT-6685.

OnDisplayPictureProperties ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplayShow_DictionaryPubPreview ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool

handle the message to see if the menu item should be enabled

OnDisplaySwapAllomorphWithLexeme ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplaySwapLexemeWithAllomorph ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnSwapLexemeWithAllomorph ( object cmd ) : bool
SelectNewFormSlice ( IMoForm newForm ) : void

Private Methods

Méthode Description
CheckForFormDataLoss ( IMoForm origForm, int toClsid ) : bool
CreateNewForm ( ILexEntry parent, int clsid ) : IMoForm
GetNotifyVirtChgInfo ( Slice slice, string &propName, int &clid, Control &parent ) : void

Extract information from the slice which will be needed to call NotifyVirtualChanged after the slice has been disposed.

OnConvertAllomorph ( object cmd ) : bool
OnDataTreeDeleteSense ( object cmd ) : bool
OnDemoteSense ( object cmd ) : bool
OnDisplayConvertAllomorph ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplayDemoteSense ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnDisplayPromoteSense ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
OnPictureProperties ( object cmd ) : bool
OnPromoteSense ( object cmd ) : bool
OnSwapAllomorphWithLexeme ( object cmd ) : bool
SwapAllomorphWithLexeme ( ILexEntry entry, IMoForm allomorph, Command cmd ) : void

Method Details

LexEntryMenuHandler() public méthode

public LexEntryMenuHandler ( ) : System
Résultat System

OnConvertLexemeForm() public méthode

public OnConvertLexemeForm ( object cmd ) : bool
cmd object
Résultat bool

OnDisplayConvertLexemeForm() public méthode

public OnDisplayConvertLexemeForm ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayDataTreeDeleteSense() public méthode

decide whether to enable this tree delete Menu Item
public OnDisplayDataTreeDeleteSense ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayDataTreeInsert() public méthode

decide whether to display this tree insert Menu Item
public OnDisplayDataTreeInsert ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayInsertMediaFile() public méthode

We want to be able to insert a sound/movie file for a pronunciation, even when the pronunciation doesn't yet exist. See LT-6685.
public OnDisplayInsertMediaFile ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayPictureProperties() public méthode

public OnDisplayPictureProperties ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplayShow_DictionaryPubPreview() public méthode

handle the message to see if the menu item should be enabled
public OnDisplayShow_DictionaryPubPreview ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplaySwapAllomorphWithLexeme() public méthode

public OnDisplaySwapAllomorphWithLexeme ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnDisplaySwapLexemeWithAllomorph() public méthode

public OnDisplaySwapLexemeWithAllomorph ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Résultat bool

OnSwapLexemeWithAllomorph() public méthode

public OnSwapLexemeWithAllomorph ( object cmd ) : bool
cmd object
Résultat bool

SelectNewFormSlice() public méthode

public SelectNewFormSlice ( IMoForm newForm ) : void
newForm IMoForm
Résultat void