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
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
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