C# 클래스 SIL.FieldWorks.IText.InterlinDocRootSiteBase

파일 보기 프로젝트 열기: sillsdev/FieldWorks

보호된 프로퍼티들

프로퍼티 타입 설명
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