C# 클래스 SIL.FieldWorks.IText.SandboxBase.InterlinComboHandler

This class and its subclasses handles the events that can happen in the course of the use of a combo box or popup list box in the Sandbox. Actually, a collection of subclasses, one for each kind of place the combo can be in the annotation hierarchy, handles the events. For most of the primary events, the default here is to do nothing.
상속: IComboHandler, IFWDisposable
파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
m_caches CachePair
m_fUnderConstruction bool
m_hvoMorph int
m_hvoSbWord int
m_hvoSelObject int
m_items List
m_rgvsli SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]
m_rootb IVwRootBox
m_sandbox SandboxBase
m_wsAnal int
m_wsUser int
m_wsVern int

Private Properties

프로퍼티 타입 설명
AddPartsOfSpeechToComboItems void
AddVectorToComboItems void
AdjustListBoxSize void
GetComboItem object
HandleComboSelChange void
HandleComboSelSame void
HideCombo void
InitCombo void
InterlinComboHandler System
MakeCombo IComboHandler
MakeCombo IComboHandler
MakeCombo IComboHandler
MakeNewSelection void
MorphHvo int
NewAnalysisString ITsString
SetComboListForTesting void
SetMorphForTesting void
SetSandboxForTesting void
SyncMonomorphemicGlossAndPos void

공개 메소드들

메소드 설명
Activate ( SIL loc ) : void
HandleReturnKey ( ) : bool
HandleSelect ( int index ) : void
HandleSelectIfActive ( ) : void

Handle the user selecting an item in the control.

Hide ( ) : void

Hide yourself.

InterlinComboHandler ( ) : System
SelectComboItem ( int hvoTarget ) : void

select the combo item matching the given hvoTarget

SelectComboItem ( string target ) : void

select the combo list item matching the given string

SetupCombo ( ) : void
StrFromTss ( ITsString tss ) : string

Handles the problem that an ITsString returns null (which works fine as a BSTR) when there are no characters. But in C#, null is not the same as an empty string. Also handles the possibility that the ITsString itself is null.

보호된 메소드들

메소드 설명
CopyLexPosToWordPos ( bool fCopyToWordCat, int hvoMsaPos ) : int
CopySenseToWordGloss ( bool fCopyWordGloss, int hvoSbRootSense ) : void
DisabledItemProperties ( ) : ITsTextProps

Setup the properties for combo items that should appear disabled.

DisposeManagedResources ( ) : void
DisposeUnmanagedResources ( ) : void
HighlightProperty ( System highlightColor ) : ITsTextProps

Setup a property for a specified color.

비공개 메소드들

메소드 설명
AddPartsOfSpeechToComboItems ( ) : void
AddVectorToComboItems ( int hvoOwner, int flidVec ) : void

Add to the combo list the items in property flidVec of object hvoOwner in the main cache. Add to m_comboList.items the ShortName of each item, and to m_items the hvo.

AdjustListBoxSize ( ) : void
GetComboItem ( string target, int &index ) : object
HandleComboSelChange ( object sender, EventArgs ea ) : void
HandleComboSelSame ( object sender, EventArgs ea ) : void
HideCombo ( ) : void
InitCombo ( ) : void
InterlinComboHandler ( SandboxBase sandbox ) : System
MakeCombo ( IHelpTopicProvider helpTopicProvider, IVwSelection vwselNew, SandboxBase sandbox, bool fMouseDown ) : IComboHandler
MakeCombo ( IHelpTopicProvider helpTopicProvider, int tagComboIcon, SandboxBase sandbox, int imorph ) : IComboHandler

make a combo handler based upon the given comboIcon and morph

MakeCombo ( IHelpTopicProvider helpTopicProvider, int tagComboIcon, SandboxBase sandbox, int hvoMorph, SIL.FieldWorks.Common.COMInterfaces.SelLevInfo rgvsli, int hvoSelObject ) : IComboHandler
MakeNewSelection ( int isliCopy, int tag, int ihvo, int tagTextProp, int ws ) : void
MorphHvo ( int i ) : int
NewAnalysisString ( string str ) : ITsString
SetComboListForTesting ( IComboList list ) : void
SetMorphForTesting ( int imorph ) : void
SetSandboxForTesting ( SandboxBase sandbox ) : void
SyncMonomorphemicGlossAndPos ( bool fCopyToWordGloss, bool fCopyToWordPos ) : void

Synchronize the word gloss and POS with the morpheme gloss and MSA info, to the extent possible. Currently works FROM the morpheme TO the Word, but going the other way may be useful, too. for the word gloss: - if only one morpheme, copy sense gloss to word gloss - if multiple morphemes, copy first stem gloss to word gloss, but only if word gloss is empty. for the POS: - if there is more than one stem and they have different parts of speech, do nothing. - if there is more than one derivational affix (DA), do nothing. - otherwise, if there is no DA, use the POS of the stem. - if there is no stem, do nothing. - if there is a DA, use its 'to' POS. (currently we don't insist that the 'from' POS matches the stem)

메소드 상세

Activate() 공개 메소드

public Activate ( SIL loc ) : void
loc SIL
리턴 void

CopyLexPosToWordPos() 보호된 메소드

protected CopyLexPosToWordPos ( bool fCopyToWordCat, int hvoMsaPos ) : int
fCopyToWordCat bool
hvoMsaPos int
리턴 int

CopySenseToWordGloss() 보호된 메소드

protected CopySenseToWordGloss ( bool fCopyWordGloss, int hvoSbRootSense ) : void
fCopyWordGloss bool
hvoSbRootSense int
리턴 void

DisabledItemProperties() 보호된 정적인 메소드

Setup the properties for combo items that should appear disabled.
protected static DisabledItemProperties ( ) : ITsTextProps
리턴 ITsTextProps

DisposeManagedResources() 보호된 메소드

protected DisposeManagedResources ( ) : void
리턴 void

DisposeUnmanagedResources() 보호된 메소드

protected DisposeUnmanagedResources ( ) : void
리턴 void

HandleReturnKey() 공개 메소드

public HandleReturnKey ( ) : bool
리턴 bool

HandleSelect() 공개 메소드

public HandleSelect ( int index ) : void
index int
리턴 void

HandleSelectIfActive() 공개 메소드

Handle the user selecting an item in the control.
public HandleSelectIfActive ( ) : void
리턴 void

Hide() 공개 메소드

Hide yourself.
public Hide ( ) : void
리턴 void

HighlightProperty() 보호된 정적인 메소드

Setup a property for a specified color.
protected static HighlightProperty ( System highlightColor ) : ITsTextProps
highlightColor System
리턴 ITsTextProps

InterlinComboHandler() 공개 메소드

public InterlinComboHandler ( ) : System
리턴 System

SelectComboItem() 공개 메소드

select the combo item matching the given hvoTarget
public SelectComboItem ( int hvoTarget ) : void
hvoTarget int
리턴 void

SelectComboItem() 공개 메소드

select the combo list item matching the given string
public SelectComboItem ( string target ) : void
target string
리턴 void

SetupCombo() 공개 메소드

public SetupCombo ( ) : void
리턴 void

StrFromTss() 공개 정적인 메소드

Handles the problem that an ITsString returns null (which works fine as a BSTR) when there are no characters. But in C#, null is not the same as an empty string. Also handles the possibility that the ITsString itself is null.
public static StrFromTss ( ITsString tss ) : string
tss ITsString
리턴 string

프로퍼티 상세

m_caches 보호되어 있는 프로퍼티

protected CachePair m_caches
리턴 CachePair

m_fUnderConstruction 보호되어 있는 프로퍼티

protected bool m_fUnderConstruction
리턴 bool

m_hvoMorph 보호되어 있는 프로퍼티

protected int m_hvoMorph
리턴 int

m_hvoSbWord 보호되어 있는 프로퍼티

protected int m_hvoSbWord
리턴 int

m_hvoSelObject 보호되어 있는 프로퍼티

protected int m_hvoSelObject
리턴 int

m_items 보호되어 있는 프로퍼티

protected List m_items
리턴 List

m_rgvsli 보호되어 있는 프로퍼티

protected SelLevInfo[],SIL.FieldWorks.Common.COMInterfaces m_rgvsli
리턴 SIL.FieldWorks.Common.COMInterfaces.SelLevInfo[]

m_rootb 보호되어 있는 프로퍼티

protected IVwRootBox m_rootb
리턴 IVwRootBox

m_sandbox 보호되어 있는 프로퍼티

protected SandboxBase,SIL.FieldWorks.IText m_sandbox
리턴 SandboxBase

m_wsAnal 보호되어 있는 프로퍼티

protected int m_wsAnal
리턴 int

m_wsUser 보호되어 있는 프로퍼티

protected int m_wsUser
리턴 int

m_wsVern 보호되어 있는 프로퍼티

protected int m_wsVern
리턴 int