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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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