C# Class SIL.FieldWorks.IText.SandboxBase

Inheritance: SIL.FieldWorks.Common.RootSites.RootSite
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
m_caches CachePair
m_choices InterlinLineChoices
m_hvoInitialWag int
m_occurrenceSelected AnalysisOccurrence
m_rawWordform ITsString
m_vc SandboxVc

Private Properties

Свойство Type Description
AddMorphInfo SelLevInfo[]
CacheLexGlossWithInflTypeForAllCurrentWs void
CacheStringAltForAllCurrentWs void
CacheStringAltForAllCurrentWs void
CheckMorphs int
ClearAllGlosses void
CopyStringsToSecondary void
CopyStringsToSecondary void
CreateRealAnalysisMethod GetRealAnalysisMethod
CreateSecondaryAndCopyStrings int
CreateSecondaryAndCopyStrings int
CurrentLexEntriesAnalysis int
CurrentPos int
DefaultMorph IMoForm
DisposeComboHandler void
DoActionOnIconSelection bool
EstablishDefaultEntry void
EstablishDefaultSense ILexSense
FindAFullWordForm ITsString
FindNearestSelectionType IVwSelection
GetBestVernWordform ITsString
GetDefaults void
GetFullMorphForm ITsString
GetHvoForJumpToToolClass int
GetInfoForJumpToTool int
GetLineOfCurrentSelectionAndNextTabStop void
GetMostPromisingEntry int
GetObjectFromRightClickMorph int
GetSenseForVariantIfPossible ILexSense
GetSenseForVariantIfPossible int
GetWfiAnalysisInUse IWfiAnalysis
GetWfiAnalysisOfAnalysis IWfiAnalysis
GetWfiAnalysisOfAnalysisObject IWfiAnalysis
GetWordGlossInfo void
GetWordform IWfiWordform
GetWordformOfAnalysis IWfiWordform
HandleComboSelChange void
HandleDownKey bool
HandleEndKey bool
HandleHomeKey bool
HandleLeftKey bool
HandleMovingSelectionToTextInAdjacentLine bool
HandleRightClickOnObject bool
HandleRightKey bool
HandleTab void
HandleUpKey bool
Handle_AnalysisChosen void
HasWordCat bool
HasWordGloss bool
HideCombos void
InitializeComponent void
IsAnalysisHumanApproved bool
IsEntryBound bool
IsInGlossMode bool
IsPhrase bool
IsSelectionOnIcon bool
LoadRealDataIntoSec void
LoadRealDataIntoSec void
LoadRealDataIntoSec1 bool
LoadSecDataForEntry void
MakeFirstMorph void
MakeSelectionIcon IVwSelection
MakeTss ITsString
MarkAsInitialState void
MoveAnalysisIconOrNext void
MoveSelection bool
MoveSelection bool
MoveSelectionIcon void
NextMorphIndex int
NextPositionForLexEntryText void
OnJumpToTool bool
OnKeyPress void
OnMouseUp void
OnPreeditClosed void
OnPreeditOpened void
OnUpdateEdited void
OpenComboBox void
ResyncSandboxToDatabase void
SbWordForm ITsString
ScanForIcon IVwSelection
SelectAtEndOfMorph void
SelectAtEndOfWordGloss bool
SelectAtStartOfMorph bool
SelectAtStartOfMorph bool
SelectEntryIconOfMorph void
SelectFirstAssociatedText IVwSelection
SelectFirstAssociatedText IVwSelection
SelectIconOfMorph void
SelectOnOrBeyondLine bool
SelectOnOrBeyondLine bool
SelectTextNearestToNextIcon bool
SetWordform void
ShowCombo void
ShowComboForSelection void
SubscribeToRootSiteEventHandlerEvents void
SyncControlSizeToRootBoxSize void

Méthodes publiques

Méthode Description
FinishUpOk ( ) : void

The Sandbox is about to close, or move to another word...if there are pending edits, save them. This is done by simulating a Return key press in the combo.

GetAvailWidth ( IVwRootBox prootb ) : int
GetHasMultipleRelevantAnalyses ( IWfiWordform analysis ) : bool
GetLineOfCurrentSelection ( ) : int

Return the index of the line that contains the selection.

GetRealAnalysis ( bool fSaveGuess, IWfiAnalysis &obsoleteAna ) : AnalysisTree

GetVariantRef ( FdoCache cache, int hvoEntry, bool fMonoMorphemic ) : ILexEntryRef

If hvoEntry is the id of a variant, try to find an entry it's a variant of that has a sense. Return the corresponding ILexEntryRef for the first such entry. If this is being called to establish a default monomorphemic guess, skip over any bound root or bound stem entries that hvoEntry may be a variant of.

MakeDefaultSelection ( ) : void

Create the default selection that is wanted when we move to a new word in a way that does not predetermine what is selected. (For example, left and right arrow can move to a specific corresponding field.)

MakeRoot ( ) : void

Make the root box.

OnDisplayBestStyleName ( object commandObject, UIItemDisplayProperties &display ) : bool

Never show the style combo box in the toolbar while focused in the Sandbox.

OnDisplayJumpToTool ( object commandObject, UIItemDisplayProperties &display ) : bool
OnDisplayWritingSystemHvo ( object commandObject, UIItemDisplayProperties &display ) : bool
OnOpenCombo ( ) : void
OnPrint ( object args ) : bool

The SandBox is never the control that should print.

OnProblemDeletion ( IVwSelection sel, VwDelProbType dpt ) : VwDelProbResponse

Handle a problem deleting some selection in the sandbox. So far, the only cases we handle are backspace and delete merging morphemes. Enhance JohnT: could also handle deleting a range that merges morphemes.

RefreshDisplay ( ) : bool

Do nothing if the Sandbox somehow gets refreshed directly...its parent window destroys and recreates it.

RootBoxSizeChanged ( IVwRootBox prootb ) : void

If sizing to content, a change of the size of the root box requires us to resize the window.

SandboxBase ( ) : System
SandboxBase ( FdoCache cache, Mediator mediator, IVwStylesheet ss, SIL.FieldWorks.IText.InterlinLineChoices choices ) : System
SandboxBase ( FdoCache cache, Mediator mediator, IVwStylesheet ss, SIL.FieldWorks.IText.InterlinLineChoices choices, int hvoAnalysis ) : System
ScrollSelectionIntoView ( IVwSelection sel, VwScrollSelOpts scrollOption ) : bool
SelectOnOrBeyondLine ( int startLine, int increment ) : bool

Try to make a selection on the specified line, or some subsequent line in the direction indicated by increment.

SetSelectedEntry ( ILexEntry entryReal ) : void

Set the (real) LexEntry that is considered current. Broadcast a notification to delegates if it changed.

ShouldSave ( bool fSaveGuess ) : bool

indicates whether the sandbox is in a state that can or should be saved.

UpdateLineChoices ( SIL.FieldWorks.IText.InterlinLineChoices choices ) : void

Méthodes protégées

Méthode Description
CallMouseDown ( System.Point point, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void

Simulate MouseDown on the rootbox, but allow selections in read-only text.

CallMouseDownExtended ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void

Simulate MouseDownExtended on the rootbox, but allow selections in read-only text.

CallMouseMoveDrag ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void

Call MouseMoveDrag on the rootbox

CallMouseUp ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void

Call MouseUp on the rootbox

CreateRealAnalysisMethod ( ) : GetRealAnalysisMethod
CreateRealWfiAnalysisMethod ( ) : GetRealAnalysisMethod
CurrentMorphs ( ) : List

get the current dummy sandbox morphs

Dispose ( bool disposing ) : void

Clean up any resources being used.

DoContextMenu ( IVwSelection invSel, System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool

Overide this to provide a context menu for some subclass.

HandleSelectionChange ( IVwRootBox rootb, IVwSelection vwselNew ) : void
LexSensesForCurrentMorphs ( ) : List

Get's the real lex senses for each current morph.

LoadForWordBundleAnalysis ( int hvoWag ) : void
OnDisplayRedo ( object commandObject, UIItemDisplayProperties &display ) : bool

Disables/enables the Edit/Undo menu item

OnDisplayUndo ( object commandObject, UIItemDisplayProperties &display ) : bool

Disables/enables the Edit/Undo menu item

OnHandleCreated ( EventArgs e ) : void

When a sandbox is created, inform the main window that it needs to receive keyboard input until further notice. (See FWNX-785.)

OnHandleDestroyed ( EventArgs e ) : void

When a sandbox is destroyed, inform the main window that it no longer exists to receive keyboard input. (See FWNX-785.)

OnHandleEnter ( ) : void
OnKeyDown ( KeyEventArgs e ) : void

Calling it through xCore doesn't seem to work, maybe this isn't a target? Try forcing it this way.

OnMouseMove ( MouseEventArgs e ) : void

Handle the mouse moving...remember where it was last in case it turns into a hover.

OnRedo ( object args ) : bool

Consistent with OnDisplayRedo.

OnRightMouseUp ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool

Process right mouse button down. In particular, handle CTRL+Right Mouse Click.

OnUndo ( object args ) : bool

This function will undo the last changes done to the project. This function is executed when the user clicks the undo menu item.

OnVisibleChanged ( EventArgs e ) : void
ReconstructForWordBundleAnalysis ( int hvoWag ) : void
Select ( bool directed, bool forward ) : void
SelectIcon ( int tag ) : void

Select the indicated icon of the word.

VernCaseFuncs ( ITsString tss ) : CaseFunctions

Private Methods

Méthode Description
AddMorphInfo ( SelLevInfo rgvsli, int isense ) : SelLevInfo[]

Add to rgvsli an initial item that selects the indicated morpheme

CacheLexGlossWithInflTypeForAllCurrentWs ( ILexEntry possibleVariant, int hvoLexSenseSec, int wsVern, IVwCacheDa cda, ILexEntryInflType inflType ) : void
CacheStringAltForAllCurrentWs ( IEnumerable currentWsList, IVwCacheDa cda, int hvoSec, int flidSec, ITsString>.Func createStringAlt ) : void
CacheStringAltForAllCurrentWs ( IEnumerable currentWsList, IVwCacheDa cda, int hvoSec, int flidSec, ISilDataAccess sdaMain, int hvoMain, int flidMain ) : void
CheckMorphs ( ) : int

Return the count of morphemes, after creating the initial one if there are none.

ClearAllGlosses ( ) : void
CopyStringsToSecondary ( IList writingSystems, ISilDataAccess sdaMain, int hvoMain, int flidMain, IVwCacheDa cda, int hvoSec, int flidSec, ITsStrFactory tsf ) : void
CopyStringsToSecondary ( int flidChoices, ISilDataAccess sdaMain, int hvoMain, int flidMain, IVwCacheDa cda, int hvoSec, int flidSec, ITsStrFactory tsf ) : void

Copy to the secondary cache NamedObect hvoSec all alternatives of property flid of real object hvoMain. The user may change the actual writing system assigned to a given line at any time, so we need all the possibilities available in the local cache.

CreateRealAnalysisMethod ( bool fWantOnlyWfiAnalysis ) : GetRealAnalysisMethod
CreateSecondaryAndCopyStrings ( int flidChoices, int hvoMain, int flidMain ) : int
CreateSecondaryAndCopyStrings ( int flidChoices, int hvoMain, int flidMain, int hvoSbWord, ISilDataAccess sdaMain, IVwCacheDa cda, ITsStrFactory tsf ) : int
CurrentLexEntriesAnalysis ( int hvoMorph ) : int

Return the hvo best describing the state of the secondary cache for LexEntry fields (by MSA, LexSense, or LexEntry).

CurrentPos ( int hvoMorph ) : int
DefaultMorph ( string form, IMoMorphType mmt ) : IMoForm

Find the MoForm, from among those whose form (in some ws) is the given one starting from the most frequently referenced by the MorphBundles property of a WfiAnalysis. If there is no wordform analysis, then fall back to selecting any matching MoForm.

DisposeComboHandler ( ) : void
DoActionOnIconSelection ( IVwSelection vwselNew ) : bool

If we have an action installed for this icon selection, do it.

EstablishDefaultEntry ( int hvoMorph, string form, IMoMorphType mmt, bool fMonoMorphemic ) : void

Given that we have set the form of hvoMorph (in the sandbox cache) to the given form, figure defaults for the LexEntry, LexGloss, and LexPos lines as far as possible. It is assumed that all three following lines are empty to begin with. Also set matching text for any other WSs that are displayed for MoForm. (This is important because if the user confirms the analysis, we will write that information back to the MoForm. If we leave the lines blank that process could remove the other alternatives.)

EstablishDefaultSense ( int hvoMorph, ILexEntry entryReal, ILexSense senseReal, ILexEntryInflType inflType ) : ILexSense

Given that we have made hvoEntryReal the lex entry for the (sandbox) morpheme hvoMorph, look for the sense given by hvoSenseReal and fill it in.

FindAFullWordForm ( IWfiWordform realWordform ) : ITsString

Find the actual original form of the current wordform. (For more information see definition for Sandbox.FormOfWordForm.)

FindNearestSelectionType ( IVwSelection selOrig, VwSelType selType, uint xMin, uint xMaxCountOfPixels, int dxPixelIncrement ) : IVwSelection

find a selection of the given selType in the RootBox starting at xMin coordinate and spanning xMaxCountOfPixels along the mid y-coordinate of the given selOrig, by the direction and increment of dxPixelIncrement.

GetBestVernWordform ( IWfiWordform wf ) : ITsString
GetDefaults ( IWfiWordform wordform, IWfiAnalysis &analysis, IWfiGloss &gloss, bool fAdjustCase ) : void

Obtain the HVO of the most desirable default annotation to use for a particular wordform.

GetFullMorphForm ( int hvoSbMorph ) : ITsString

Get the string that should be stored in the MorphBundle Form. This will include any prefix and/or postfix markers.

GetHvoForJumpToToolClass ( string className ) : int
GetInfoForJumpToTool ( IVwSelection sel, int &hvoReal ) : int

Given a selection (typically from a click), determine the object that should be the target for jumping to, and return the property that was clicked (which in the case of a right-click may generate a spelling menu instead).

GetLineOfCurrentSelectionAndNextTabStop ( bool fShift, int &currentLineIndex, int &startLineIndex, int &increment, bool &fSkipIcon, int &iNextMorphIndex ) : void
GetMostPromisingEntry ( ) : int

Return the HVO of the most promising LexEntry to jump to. This is a fall-back when the user has not clicked on a morpheme.

GetObjectFromRightClickMorph ( int tag ) : int
GetSenseForVariantIfPossible ( ILexEntry entryReal ) : ILexSense
GetSenseForVariantIfPossible ( int hvoEntryReal ) : int

If hvoEntryReal refers to a variant, try for the first sense of the entry it's a variant of. Otherwise, give up and return 0.

GetWfiAnalysisInUse ( ) : IWfiAnalysis

The wfi analysis currently used to setup the sandbox. Could have possibly come from a guess, not simply the current annotations InstanceOf.

GetWfiAnalysisOfAnalysis ( ) : IWfiAnalysis

Gets the WfiAnalysis HVO of the analysis we're displaying (if any).

GetWfiAnalysisOfAnalysisObject ( ICmObject analysisValueObject ) : IWfiAnalysis

Gets the WfiAnalysis HVO of the given analysis.

GetWordGlossInfo ( int lineIndex, int &glossLength, int &cpropPrevious ) : void
GetWordform ( ITsString form ) : IWfiWordform

return the wordform that corresponds to the given form, or zero if none.

GetWordformOfAnalysis ( ) : IWfiWordform

Copied from ChooseAnalysisHandler. Gets the wordform that owns the analysis we're displaying. (If there's no current analysis, or it is an object which someone has pathologically deleted in another window, return the current wordform.) It's possible for this to return null, if we're displaying a case-adjusted morpheme at the start of a sentence, and no wordform has been created for that case form.

HandleComboSelChange ( object sender, EventArgs ea ) : void
HandleDownKey ( ) : bool
HandleEndKey ( bool fControl ) : bool

Handle the End key (Ctrl-End if fControl is true). Return true to suppress normal End-Key processing

HandleHomeKey ( bool fControl ) : bool

Handle the Home key (Ctrl-Home if fControl is true). Return true to suppress normal Home-Key processing

HandleLeftKey ( ) : bool

Handle a press of the left arrow key.

HandleMovingSelectionToTextInAdjacentLine ( bool fForward ) : bool
HandleRightClickOnObject ( int hvoReal, IxCoreColleague additionalTarget ) : bool
HandleRightKey ( ) : bool

Handle a press of the right arrow key.

HandleTab ( bool fShift ) : void

Handle a tab character. If there is no selection in the sandbox, we go to the first line. If there is one, we go Wordform -> Morph (or word gloss, if morphs not showing) Morph ->LexEntry LexEntry, LexGloss, LexPOS->Next LexEntry, or word gloss. Word gloss->WordPOS WordPOS -> Wordform.

HandleUpKey ( ) : bool
Handle_AnalysisChosen ( object sender, EventArgs e ) : void

This handles the user choosing an analysis from the pull-down in the top ("Word") line of the Sandbox. The sender must be a ChooseAnalysisHandler (CAH). The Sandbox switches to showing the analysis indicated by the 'Analysis' property of that CAH.

HasWordCat ( ) : bool
HasWordGloss ( ) : bool
HideCombos ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsAnalysisHumanApproved ( FdoCache cache, IWfiAnalysis analysis ) : bool
IsEntryBound ( FdoCache cache, int hvoComponent, int clid ) : bool

Check whether the given entry (or entry owning the given sense) is either a bound root or a bound stem. We don't want to use those as guesses for monomorphemic words. See LT-10323.

IsInGlossMode ( ) : bool

True if user is in gloss tab.

IsPhrase ( string word ) : bool

the given word is a phrase if it has any word breaking space characters

IsSelectionOnIcon ( IVwSelection vwselNew ) : bool
LoadRealDataIntoSec ( bool fLookForDefaults, bool fAdjustCase ) : void

Load the real data into the secondary cache, and establish this as the state we'd return to if we undo all changes in the analysis (i.e. does fClearDirty).

LoadRealDataIntoSec ( bool fLookForDefaults, bool fAdjustCase, bool fClearDirty ) : void

Load the real data into the secondary cache.

LoadRealDataIntoSec1 ( int hvoSbWord, bool fLookForDefaults, bool fAdjustCase ) : bool

LoadSecDataForEntry ( ILexEntry entryReal, ILexSense senseReal, int hvoSbWord, IVwCacheDa cda, int wsVern, int hvoMbSec, int fGuessing, ISilDataAccess sdaMain, ITsStrFactory tsf ) : void
MakeFirstMorph ( ) : void

Create a first morpheme whose content matches the word. Typically the user clicked or tabbed to an empty morpheme line.

MakeSelectionIcon ( SelLevInfo rgvsli, int tag, bool fInstall ) : IVwSelection
MakeTss ( string text, int ws, ITsStrFactory tsf ) : ITsString

Make a string in the specified ws, using the provided TSF if possible, if passed null, make one.

MarkAsInitialState ( ) : void
MoveAnalysisIconOrNext ( ) : void

Move to the analysis icon if we're showing one, otherwise, to the following line.

MoveSelection ( SelLevInfo rgvsli, int tag, int cpropPrevious ) : bool

Make and install the selection indicated by the array of objects on the first (and only root), an IP at the start of the property.

MoveSelection ( SelLevInfo rgvsli, int tag, int cpropPrevious, int ichAnchor, int ichEnd ) : bool

Make and install the selection indicated by the array of objects on the first (and only root), an IP at the start of the property.

MoveSelectionIcon ( SelLevInfo rgvsli, int tag ) : void

Make and install the selection indicated by the array and a following atomic property that contains an icon.

NextMorphIndex ( int increment, bool &fOnNextLine ) : int

Return the index of the next morpheme, based on the current selection and increment (direction).

NextPositionForLexEntryText ( int increment, bool fOnNextLine, bool fIsPictureSel, int &currentLineIndex, int &startLineIndex, int &iNextMorphIndex ) : void
OnJumpToTool ( object commandObject ) : bool
OnKeyPress ( KeyPressEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPreeditClosed ( object sender, EventArgs e ) : void
OnPreeditOpened ( object sender, EventArgs e ) : void
OnUpdateEdited ( ) : void

Triggered to tell clients that the Sandbox has changed (e.g. been edited from its initial state) to help determine whether we should allow trying to save or undo the changes. Currently triggered by SandboxEditMonitor.PropChanged whenever a property changes on the cache

OpenComboBox ( IVwSelection selection ) : void
ResyncSandboxToDatabase ( ) : void

Resync the sandbox and reconstruct the rootbox to match the current state of the database.

SbWordForm ( int wsVern ) : ITsString
ScanForIcon ( IVwSelection selOrig ) : IVwSelection

given a (text) selection, scan the beginning of its paragraph box and then immediately before its paragraph box in search of the icon.

SelectAtEndOfMorph ( int index, int cPrevOccurrences ) : void
SelectAtEndOfWordGloss ( int lineIndex ) : bool

Make a selection at the end of the specified word gloss line.

SelectAtStartOfMorph ( int index ) : bool

Make a selection at the start of the indicated morpheme in the morphs line. That is, at the start of the prefix if there is one, otherwise, the start of the form.

SelectAtStartOfMorph ( int index, int cprevOccurrences ) : bool
SelectEntryIconOfMorph ( int index ) : void

Make a selection at the start of the indicated morpheme in the morphs line. That is, at the start of the prefix if there is one, otherwise, the start of the form.

SelectFirstAssociatedText ( ) : IVwSelection
SelectFirstAssociatedText ( IVwSelection selOrig ) : IVwSelection

Given an icon selection, find the nearest associated text. In left to right, that's the first text to right of the picture. In right to left, it's the first text to the left of the picture;

SelectIconOfMorph ( int index, int tag ) : void

Select the indicated icon of the indicated morpheme.

SelectOnOrBeyondLine ( int startLine, int increment, int iMorph, bool fSkipIconToTextField, bool fWrapToNextLine ) : bool

SelectOnOrBeyondLine ( int startLine, int limitLine, int increment, int iMorph, bool fSkipIconToTextField, bool fWrapToNextLine ) : bool

Try to make a selection on startLine. If unsuccessful, try successive lines (the direction is indicated by increment, which should be 1 or -1). If the increment process reaches the beginning or end, wrap around. If it reaches limitLine, give up and return false. (However, it WILL try startLine once, even if it is equal to limitLine.

SelectTextNearestToNextIcon ( bool fForward ) : bool

Find the next icon to jump to, and then select nearest text

SetWordform ( ITsString form, bool fLookForDefaults ) : void
ShowCombo ( ) : void
ShowComboForSelection ( IVwSelection vwselNew, bool fMouseDown ) : void

Make a combo box appropriate for the specified selection. If fMouseDown is true, do so unconditionally...otherwise (mousemove) only if the new selection is on a different thing.

SubscribeToRootSiteEventHandlerEvents ( ) : void
SyncControlSizeToRootBoxSize ( ) : void

Method Details

CallMouseDown() protected méthode

Simulate MouseDown on the rootbox, but allow selections in read-only text.
protected CallMouseDown ( System.Point point, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void
point System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat void

CallMouseDownExtended() protected méthode

Simulate MouseDownExtended on the rootbox, but allow selections in read-only text.
protected CallMouseDownExtended ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void
pt System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat void

CallMouseMoveDrag() protected méthode

Call MouseMoveDrag on the rootbox
protected CallMouseMoveDrag ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void
pt System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat void

CallMouseUp() protected méthode

Call MouseUp on the rootbox
protected CallMouseUp ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : void
pt System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat void

CreateRealAnalysisMethod() protected méthode

protected CreateRealAnalysisMethod ( ) : GetRealAnalysisMethod
Résultat GetRealAnalysisMethod

CreateRealWfiAnalysisMethod() protected méthode

protected CreateRealWfiAnalysisMethod ( ) : GetRealAnalysisMethod
Résultat GetRealAnalysisMethod

CurrentMorphs() protected méthode

get the current dummy sandbox morphs
protected CurrentMorphs ( ) : List
Résultat List

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DoContextMenu() protected méthode

Overide this to provide a context menu for some subclass.
protected DoContextMenu ( IVwSelection invSel, System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool
invSel IVwSelection
pt System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat bool

FinishUpOk() public méthode

The Sandbox is about to close, or move to another word...if there are pending edits, save them. This is done by simulating a Return key press in the combo.
public FinishUpOk ( ) : void
Résultat void

GetAvailWidth() public méthode

public GetAvailWidth ( IVwRootBox prootb ) : int
prootb IVwRootBox
Résultat int

GetHasMultipleRelevantAnalyses() public static méthode

public static GetHasMultipleRelevantAnalyses ( IWfiWordform analysis ) : bool
analysis IWfiWordform
Résultat bool

GetLineOfCurrentSelection() public méthode

Return the index of the line that contains the selection.
public GetLineOfCurrentSelection ( ) : int
Résultat int

GetRealAnalysis() public méthode

public GetRealAnalysis ( bool fSaveGuess, IWfiAnalysis &obsoleteAna ) : AnalysisTree
fSaveGuess bool
obsoleteAna IWfiAnalysis
Résultat AnalysisTree

GetVariantRef() public méthode

If hvoEntry is the id of a variant, try to find an entry it's a variant of that has a sense. Return the corresponding ILexEntryRef for the first such entry. If this is being called to establish a default monomorphemic guess, skip over any bound root or bound stem entries that hvoEntry may be a variant of.
public GetVariantRef ( FdoCache cache, int hvoEntry, bool fMonoMorphemic ) : ILexEntryRef
cache FdoCache
hvoEntry int
fMonoMorphemic bool
Résultat ILexEntryRef

HandleSelectionChange() protected méthode

protected HandleSelectionChange ( IVwRootBox rootb, IVwSelection vwselNew ) : void
rootb IVwRootBox
vwselNew IVwSelection
Résultat void

LexSensesForCurrentMorphs() protected méthode

Get's the real lex senses for each current morph.
protected LexSensesForCurrentMorphs ( ) : List
Résultat List

LoadForWordBundleAnalysis() protected méthode

protected LoadForWordBundleAnalysis ( int hvoWag ) : void
hvoWag int
Résultat void

MakeDefaultSelection() public méthode

Create the default selection that is wanted when we move to a new word in a way that does not predetermine what is selected. (For example, left and right arrow can move to a specific corresponding field.)
public MakeDefaultSelection ( ) : void
Résultat void

MakeRoot() public méthode

Make the root box.
public MakeRoot ( ) : void
Résultat void

OnDisplayBestStyleName() public méthode

Never show the style combo box in the toolbar while focused in the Sandbox.
public OnDisplayBestStyleName ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Résultat bool

OnDisplayJumpToTool() public méthode

public OnDisplayJumpToTool ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Résultat bool

OnDisplayRedo() protected méthode

Disables/enables the Edit/Undo menu item
protected OnDisplayRedo ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Résultat bool

OnDisplayUndo() protected méthode

Disables/enables the Edit/Undo menu item
protected OnDisplayUndo ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Résultat bool

OnDisplayWritingSystemHvo() public méthode

public OnDisplayWritingSystemHvo ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Résultat bool

OnHandleCreated() protected méthode

When a sandbox is created, inform the main window that it needs to receive keyboard input until further notice. (See FWNX-785.)
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnHandleDestroyed() protected méthode

When a sandbox is destroyed, inform the main window that it no longer exists to receive keyboard input. (See FWNX-785.)
protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnHandleEnter() protected méthode

protected OnHandleEnter ( ) : void
Résultat void

OnKeyDown() protected méthode

Calling it through xCore doesn't seem to work, maybe this isn't a target? Try forcing it this way.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
Résultat void

OnMouseMove() protected méthode

Handle the mouse moving...remember where it was last in case it turns into a hover.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnOpenCombo() public méthode

public OnOpenCombo ( ) : void
Résultat void

OnPrint() public méthode

The SandBox is never the control that should print.
public OnPrint ( object args ) : bool
args object
Résultat bool

OnProblemDeletion() public méthode

Handle a problem deleting some selection in the sandbox. So far, the only cases we handle are backspace and delete merging morphemes. Enhance JohnT: could also handle deleting a range that merges morphemes.
public OnProblemDeletion ( IVwSelection sel, VwDelProbType dpt ) : VwDelProbResponse
sel IVwSelection
dpt VwDelProbType
Résultat VwDelProbResponse

OnRedo() protected méthode

Consistent with OnDisplayRedo.
protected OnRedo ( object args ) : bool
args object Unused
Résultat bool

OnRightMouseUp() protected méthode

Process right mouse button down. In particular, handle CTRL+Right Mouse Click.
protected OnRightMouseUp ( System.Point pt, Rectangle rcSrcRoot, Rectangle rcDstRoot ) : bool
pt System.Point
rcSrcRoot Rectangle
rcDstRoot Rectangle
Résultat bool

OnUndo() protected méthode

This function will undo the last changes done to the project. This function is executed when the user clicks the undo menu item.
protected OnUndo ( object args ) : bool
args object Unused
Résultat bool

OnVisibleChanged() protected méthode

protected OnVisibleChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

ReconstructForWordBundleAnalysis() protected méthode

protected ReconstructForWordBundleAnalysis ( int hvoWag ) : void
hvoWag int
Résultat void

RefreshDisplay() public méthode

Do nothing if the Sandbox somehow gets refreshed directly...its parent window destroys and recreates it.
public RefreshDisplay ( ) : bool
Résultat bool

RootBoxSizeChanged() public méthode

If sizing to content, a change of the size of the root box requires us to resize the window.
public RootBoxSizeChanged ( IVwRootBox prootb ) : void
prootb IVwRootBox
Résultat void

SandboxBase() public méthode

public SandboxBase ( ) : System
Résultat System

SandboxBase() public méthode

public SandboxBase ( FdoCache cache, Mediator mediator, IVwStylesheet ss, SIL.FieldWorks.IText.InterlinLineChoices choices ) : System
cache FdoCache
mediator Mediator
ss IVwStylesheet
choices SIL.FieldWorks.IText.InterlinLineChoices
Résultat System

SandboxBase() public méthode

public SandboxBase ( FdoCache cache, Mediator mediator, IVwStylesheet ss, SIL.FieldWorks.IText.InterlinLineChoices choices, int hvoAnalysis ) : System
cache FdoCache
mediator Mediator
ss IVwStylesheet
choices SIL.FieldWorks.IText.InterlinLineChoices
hvoAnalysis int
Résultat System

ScrollSelectionIntoView() public méthode

public ScrollSelectionIntoView ( IVwSelection sel, VwScrollSelOpts scrollOption ) : bool
sel IVwSelection
scrollOption VwScrollSelOpts
Résultat bool

Select() protected méthode

protected Select ( bool directed, bool forward ) : void
directed bool
forward bool
Résultat void

SelectIcon() protected méthode

Select the indicated icon of the word.
protected SelectIcon ( int tag ) : void
tag int
Résultat void

SelectOnOrBeyondLine() public méthode

Try to make a selection on the specified line, or some subsequent line in the direction indicated by increment.
public SelectOnOrBeyondLine ( int startLine, int increment ) : bool
startLine int
increment int (the direction is indicated by increment, which should be 1 or -1)
Résultat bool

SetSelectedEntry() public méthode

Set the (real) LexEntry that is considered current. Broadcast a notification to delegates if it changed.
public SetSelectedEntry ( ILexEntry entryReal ) : void
entryReal ILexEntry
Résultat void

ShouldSave() public méthode

indicates whether the sandbox is in a state that can or should be saved.
public ShouldSave ( bool fSaveGuess ) : bool
fSaveGuess bool
Résultat bool

UpdateLineChoices() public méthode

public UpdateLineChoices ( SIL.FieldWorks.IText.InterlinLineChoices choices ) : void
choices SIL.FieldWorks.IText.InterlinLineChoices
Résultat void

VernCaseFuncs() protected méthode

protected VernCaseFuncs ( ITsString tss ) : CaseFunctions
tss ITsString
Résultat CaseFunctions

Property Details

m_caches protected_oe property

protected CachePair m_caches
Résultat CachePair

m_choices protected_oe property

protected InterlinLineChoices m_choices
Résultat InterlinLineChoices

m_hvoInitialWag protected_oe property

protected int m_hvoInitialWag
Résultat int

m_occurrenceSelected protected_oe property

protected AnalysisOccurrence m_occurrenceSelected
Résultat AnalysisOccurrence

m_rawWordform protected_oe property

protected ITsString m_rawWordform
Résultat ITsString

m_vc protected_oe property

protected SandboxVc m_vc
Résultat SandboxVc