C# Класс SIL.FieldWorks.IText.SandboxEditMonitor

Наследование: SIL.Utils.FwDisposableBase, IVwNotifyChange
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildCurrentMorphsString string
BuildCurrentMorphsString string
IsBaseWordPhrase bool
RecreateDelayedSelection void
SandboxEditMonitor System
SetMorphemes void
StartMonitoring void
StopMonitoring void
UpdateMorphemes void

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

Метод Описание
DoPendingMorphemeUpdates ( ) : void
HandleBackspace ( ) : bool

Handle an otherwise-difficult backspace (joining morphemes by deleting a 'space') Return true if successful.

HandleDelete ( ) : bool

Handle an otherwise-difficult delete (joining morphemes by deleting a 'space').

IsPropMorphBreak ( int hvo, int tag, int ws ) : bool

Is the property one of the ones that represents a morpheme breakdown?

PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void

A property changed. Is it one of the ones that requires us to update the morpheme list? Even if so, we shouldn't do it now, because it's dangerous to issue new PropChanged messages for the same property during a PropChanged. Instead we wait for a DoUpdates call. Also don't do it if we're in the middle of processing such an update already.

Защищенные методы

Метод Описание
DisposeManagedResources ( ) : void
DisposeUnmanagedResources ( ) : void

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

Метод Описание
BuildCurrentMorphsString ( ) : string
BuildCurrentMorphsString ( IVwSelection sel ) : string
IsBaseWordPhrase ( string baseWord ) : bool
RecreateDelayedSelection ( object sender, EventArgs e ) : void

Recreate a selection that has (almost certainly) been overwritten by TSF since it can't handle a "selection changed" notification in the middle of it calling into our code to deliver new text.

See https://jira.sil.org/browse/LT-16766 "Keyman 9 IPA - insert morpheme breaks can put cursor in undesirable location, or cause a crash".

SandboxEditMonitor ( SandboxBase sandbox ) : System
SetMorphemes ( string currentMorphemes ) : void
StartMonitoring ( ) : void
StopMonitoring ( ) : void
UpdateMorphemes ( ) : void

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

DisposeManagedResources() защищенный Метод

protected DisposeManagedResources ( ) : void
Результат void

DisposeUnmanagedResources() защищенный Метод

protected DisposeUnmanagedResources ( ) : void
Результат void

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

public DoPendingMorphemeUpdates ( ) : void
Результат void

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

Handle an otherwise-difficult backspace (joining morphemes by deleting a 'space') Return true if successful.
public HandleBackspace ( ) : bool
Результат bool

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

Handle an otherwise-difficult delete (joining morphemes by deleting a 'space').
public HandleDelete ( ) : bool
Результат bool

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

Is the property one of the ones that represents a morpheme breakdown?
public IsPropMorphBreak ( int hvo, int tag, int ws ) : bool
hvo int
tag int
ws int
Результат bool

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

A property changed. Is it one of the ones that requires us to update the morpheme list? Even if so, we shouldn't do it now, because it's dangerous to issue new PropChanged messages for the same property during a PropChanged. Instead we wait for a DoUpdates call. Also don't do it if we're in the middle of processing such an update already.
public PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
hvo int
tag int
ivMin int
cvIns int
cvDel int
Результат void