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

Показать файл Открыть проект

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

Свойство Тип Описание
m_hvoRoot int
m_objRepo ICmObjectRepository
m_vc InterlinVc

Private Properties

Свойство Тип Описание
AddAdditionalWsMenuItem void
AddHideLineMenuItem void
AddMoveDownMenuItem void
AddMoveUpMenuItem void
AddNewLineMenuItem void
CalculateHorizContextButtonPosition void
ConvertBookmarkToAnalysis AnalysisOccurrence
ConvertBookmarkToAnalysis AnalysisOccurrence
CreateFocusBox void
EnsureVc void
GetAppropriateLineLabel string
GetMaster InterlinMaster
GetParagraphIndexForAnalysis int
GetRealWsFromSpec int
GetUnusedSpecs IEnumerable
GetWsComboItems IEnumerable
MakeContextMenu ContextMenuStrip
OccurrenceContainingSelection AnalysisOccurrence
OnExportInterlinear bool
PersistAndDisplayChangedLineChoices void
PostponedUpdateWordforms bool
RemoveContextButtonIfPresent void
SetContextButtonPosition void
ShowContextMenuIfNotClosing void
TryHideFocusBoxAndUninstall bool
TryRestoreLineChoices bool
UpdateDisplayForNewLineChoices void
UpdateForNewLineChoices void
UpdateGuessData void
UpdateGuesses void
UpdateGuesses void
addLineItem_Click void
addWsToFlidItem_Click void
configLink_Click void
hideItem_Click void
m_contextButton_Click void
m_labelContextMenu_Closed void
moveDownItem_Click void
moveUpItem_Click void

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

Метод Описание
GetRootBox ( ) : IVwRootBox

Returns the rootbox of this object, or null if not applicable

InterlinDocRootSiteBase ( ) : System
MakeRoot ( ) : void
OnConfigureInterlinear ( object argument ) : bool

Launch the Configure interlinear dialog and deal with the results

OnDisplayExportInterlinear ( object commandObject, UIItemDisplayProperties &display ) : bool
PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
SelectBookmark ( IStTextBookmark bookmark ) : void
SelectOccurrence ( AnalysisOccurrence point ) : void

This base version is used by 'read-only' tabs that need to select an occurrence in IText from the analysis occurrence. Override for Sandbox-type selections.

SetRoot ( int hvo ) : void
SetupLineChoices ( string lineConfigPropName, SIL.FieldWorks.IText.InterlinLineChoices mode ) : SIL.FieldWorks.IText.InterlinLineChoices

UpdatingOccurrence ( IAnalysis oldAnalysis, IAnalysis newAnalysis ) : void

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

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

Allows InterlinTaggingChild to add a DomainDataByFlid decorator to the rootbox.

FocusWhenVisible ( object sender, EventArgs e ) : void
GetAnalysisFromSelection ( IVwSelection sel ) : AnalysisOccurrence
GetIndexOfLineChoice ( IVwSelection selTest ) : int
GrabMousePtSelectionToTest ( MouseEventArgs e ) : IVwSelection

Takes a mouse click point and makes an invisible selection for testing. Exceptions caused by selection problems are caught, but not dealt with. In case of an exception, the selection returned will be null.

MakeRootInternal ( ) : void
MakeVc ( ) : void

MakeWordformSelection ( SelLevInfo rgvsli ) : IVwSelection

Get overridden for subclasses needing a Sandbox.

OnHandleCreated ( EventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
SelectOccurrenceInIText ( AnalysisOccurrence point ) : IVwSelection

Selects the specified AnalysisOccurrence in the interlinear text.

SetRootInternal ( int hvo ) : void
UpdateDisplayForOccurrence ( AnalysisOccurrence occurrence ) : void
UpdateWordforms ( HashSet wordforms ) : void
UserClickedOnLabels ( IVwSelection selTest, int &ilineChoice ) : bool

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

Метод Описание
AddAdditionalWsMenuItem ( ToolStripMenuItem addSubMenu, SIL.FieldWorks.IText.InterlinLineChoices curLineChoices, int ilineChoice ) : void
AddHideLineMenuItem ( ContextMenuStrip menu, SIL.FieldWorks.IText.InterlinLineChoices curLineChoices, int ilineChoice ) : void
AddMoveDownMenuItem ( ContextMenuStrip menu, int ilineChoice ) : void
AddMoveUpMenuItem ( ContextMenuStrip menu, int ilineChoice ) : void
AddNewLineMenuItem ( ToolStripMenuItem addLineSubMenu, SIL.FieldWorks.IText.InterlinLineChoices curLineChoices ) : void
CalculateHorizContextButtonPosition ( Rect rcPrimary, Rect rcSrcRoot ) : void
ConvertBookmarkToAnalysis ( IStTextBookmark bookmark ) : AnalysisOccurrence

Returns an AnalysisOccurrence at least close to the given bookmark. If we can't, we return null.

ConvertBookmarkToAnalysis ( IStTextBookmark bookmark, bool &fExactMatch ) : AnalysisOccurrence

Returns an AnalysisOccurrence at least close to the given bookmark. If we can't, we return null. This version reports whether we found an exact match or not.

CreateFocusBox ( ) : void

Placeholder for a routine which creates the focus box in InterlinDocForAnalysis.

EnsureVc ( ) : void
GetAppropriateLineLabel ( SIL.FieldWorks.IText.InterlinLineChoices curLineChoices, int ilineChoice ) : string
GetMaster ( ) : InterlinMaster
GetParagraphIndexForAnalysis ( AnalysisOccurrence point ) : int
GetRealWsFromSpec ( SIL.FieldWorks.IText.InterlinLineSpec spec ) : int
GetUnusedSpecs ( SIL.FieldWorks.IText.InterlinLineChoices curLineChoices ) : IEnumerable
GetWsComboItems ( SIL.FieldWorks.IText.InterlinLineSpec curSpec ) : IEnumerable
MakeContextMenu ( int ilineChoice ) : ContextMenuStrip
OccurrenceContainingSelection ( ) : AnalysisOccurrence
OnExportInterlinear ( object argument ) : bool
PersistAndDisplayChangedLineChoices ( ) : void
PostponedUpdateWordforms ( object parameter ) : bool
RemoveContextButtonIfPresent ( ) : void
SetContextButtonPosition ( IVwSelection sel, int ilineChoice ) : void
ShowContextMenuIfNotClosing ( Point menuLocation, int ilineChoice ) : void
TryHideFocusBoxAndUninstall ( ) : bool

Hides the sandbox and removes it from the controls.

TryRestoreLineChoices ( SIL.FieldWorks.IText.InterlinLineChoices &lineChoices ) : bool

Tries to restore the LineChoices saved in the ConfigPropName property in the property table.

UpdateDisplayForNewLineChoices ( ) : void

Do whatever is necessary to display new line choices.

UpdateForNewLineChoices ( SIL.FieldWorks.IText.InterlinLineChoices newChoices ) : void

Persist the new line choices and Reconstruct the document based on the given newChoices for interlinear lines.

UpdateGuessData ( ) : void

Update all the guesses in the interlinear doc.

UpdateGuesses ( HashSet wordforms ) : void

Update any necessary guesses when the specified wordforms change.

UpdateGuesses ( HashSet wordforms, bool fUpdateDisplayWhereNeeded ) : void
addLineItem_Click ( object sender, EventArgs e ) : void
addWsToFlidItem_Click ( object sender, EventArgs e ) : void
configLink_Click ( object sender, EventArgs e ) : void
hideItem_Click ( object sender, EventArgs e ) : void
m_contextButton_Click ( object sender, EventArgs e ) : void
m_labelContextMenu_Closed ( object sender, ToolStripDropDownClosedEventArgs e ) : void
moveDownItem_Click ( object sender, EventArgs e ) : void
moveUpItem_Click ( object sender, EventArgs e ) : void

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

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

Allows InterlinTaggingChild to add a DomainDataByFlid decorator to the rootbox.
protected AddDecorator ( ) : void
Результат void

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

protected FocusWhenVisible ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

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

protected GetAnalysisFromSelection ( IVwSelection sel ) : AnalysisOccurrence
sel IVwSelection
Результат AnalysisOccurrence

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

protected GetIndexOfLineChoice ( IVwSelection selTest ) : int
selTest IVwSelection
Результат int

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

Returns the rootbox of this object, or null if not applicable
public GetRootBox ( ) : IVwRootBox
Результат IVwRootBox

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

Takes a mouse click point and makes an invisible selection for testing. Exceptions caused by selection problems are caught, but not dealt with. In case of an exception, the selection returned will be null.
protected GrabMousePtSelectionToTest ( MouseEventArgs e ) : IVwSelection
e MouseEventArgs
Результат IVwSelection

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

public InterlinDocRootSiteBase ( ) : System
Результат System

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

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

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

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

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

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

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

Get overridden for subclasses needing a Sandbox.
protected MakeWordformSelection ( SelLevInfo rgvsli ) : IVwSelection
rgvsli SelLevInfo
Результат IVwSelection

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

Launch the Configure interlinear dialog and deal with the results
public OnConfigureInterlinear ( object argument ) : bool
argument object
Результат bool

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

public OnDisplayExportInterlinear ( object commandObject, UIItemDisplayProperties &display ) : bool
commandObject object
display UIItemDisplayProperties
Результат bool

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

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
Результат void

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

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

public PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
hvo int
tag int
ivMin int
cvIns int
cvDel int
Результат void

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

public SelectBookmark ( IStTextBookmark bookmark ) : void
bookmark IStTextBookmark
Результат void

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

This base version is used by 'read-only' tabs that need to select an occurrence in IText from the analysis occurrence. Override for Sandbox-type selections.
public SelectOccurrence ( AnalysisOccurrence point ) : void
point AnalysisOccurrence
Результат void

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

Selects the specified AnalysisOccurrence in the interlinear text.
protected SelectOccurrenceInIText ( AnalysisOccurrence point ) : IVwSelection
point AnalysisOccurrence
Результат IVwSelection

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

public SetRoot ( int hvo ) : void
hvo int
Результат void

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

protected SetRootInternal ( int hvo ) : void
hvo int
Результат void

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

public SetupLineChoices ( string lineConfigPropName, SIL.FieldWorks.IText.InterlinLineChoices mode ) : SIL.FieldWorks.IText.InterlinLineChoices
lineConfigPropName string the key used to store/restore line configuration settings.
mode SIL.FieldWorks.IText.InterlinLineChoices
Результат SIL.FieldWorks.IText.InterlinLineChoices

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

protected UpdateDisplayForOccurrence ( AnalysisOccurrence occurrence ) : void
occurrence AnalysisOccurrence
Результат void

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

protected UpdateWordforms ( HashSet wordforms ) : void
wordforms HashSet
Результат void

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

public UpdatingOccurrence ( IAnalysis oldAnalysis, IAnalysis newAnalysis ) : void
oldAnalysis IAnalysis
newAnalysis IAnalysis
Результат void

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

protected UserClickedOnLabels ( IVwSelection selTest, int &ilineChoice ) : bool
selTest IVwSelection
ilineChoice int
Результат bool

Описание свойств

m_hvoRoot защищенное свойство

protected int m_hvoRoot
Результат int

m_objRepo защищенное свойство

protected ICmObjectRepository m_objRepo
Результат ICmObjectRepository

m_vc защищенное свойство

protected InterlinVc,SIL.FieldWorks.IText m_vc
Результат InterlinVc