C# Класс 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.
Наследование: SIL.FieldWorks.XWorks.DTMenuHandler
Показать файл Открыть проект

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

Метод Описание
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

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

Метод Описание
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

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

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

public LexEntryMenuHandler ( ) : System
Результат System

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

public OnConvertLexemeForm ( object cmd ) : bool
cmd object
Результат bool

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

public OnDisplayConvertLexemeForm ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

decide whether to enable this tree delete Menu Item
public OnDisplayDataTreeDeleteSense ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

decide whether to display this tree insert Menu Item
public OnDisplayDataTreeInsert ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

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
Результат bool

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

public OnDisplayPictureProperties ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

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
Результат bool

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

public OnDisplaySwapAllomorphWithLexeme ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

public OnDisplaySwapLexemeWithAllomorph ( object commandObject, XCore.UIItemDisplayProperties &display ) : bool
commandObject object
display XCore.UIItemDisplayProperties
Результат bool

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

public OnSwapLexemeWithAllomorph ( object cmd ) : bool
cmd object
Результат bool

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

public SelectNewFormSlice ( IMoForm newForm ) : void
newForm IMoForm
Результат void