C# Class SIL.FieldWorks.IText.InterAreaBookmark

Helper for keeping track of our location in the text when switching from and back to the Texts area (cf. LT-1543). It also serves to keep our place when switching between RawTextPane (Baseline), GlossPane, AnalyzePane(Interlinearizer), TaggingPane, PrintPane and ConstChartPane.
Inheritance: IStTextBookmark
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
BookmarkPropertyName string
Init void
InterAreaBookmark System
InterAreaBookmark System
Save void
SavePersisted void

Public Methods

Method Description
Reset ( int index, XCore.Mediator mediator ) : void

Reset the bookmark to its default values.

Restore ( int index, XCore.Mediator mediator ) : void

Restore the InterlinMaster bookmark to its previously saved state.

Save ( SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence point, bool fPersistNow, int index, XCore.Mediator mediator ) : void

Saves the given AnalysisOccurrence in the InterlinMaster.

Save ( bool fPersistNow, int index, XCore.Mediator mediator ) : void

Saves the current selected annotation in the InterlinMaster.

Private Methods

Method Description
BookmarkPropertyName ( string attribute ) : string
Init ( InterlinMaster interlinMaster, SIL.FieldWorks.FDO.FdoCache cache ) : void
InterAreaBookmark ( ) : System
InterAreaBookmark ( InterlinMaster interlinMaster, XCore.Mediator mediator, SIL.FieldWorks.FDO.FdoCache cache ) : System
Save ( int textIndex, int paragraphIndex, int beginCharOffset, int endCharOffset, bool fPersistNow, XCore.Mediator mediator ) : void
SavePersisted ( int recordIndex, XCore.Mediator mediator ) : void

Method Details

Reset() public method

Reset the bookmark to its default values.
public Reset ( int index, XCore.Mediator mediator ) : void
index int
mediator XCore.Mediator
return void

Restore() public method

Restore the InterlinMaster bookmark to its previously saved state.
public Restore ( int index, XCore.Mediator mediator ) : void
index int
mediator XCore.Mediator
return void

Save() public method

Saves the given AnalysisOccurrence in the InterlinMaster.
public Save ( SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence point, bool fPersistNow, int index, XCore.Mediator mediator ) : void
point SIL.FieldWorks.FDO.DomainServices.AnalysisOccurrence
fPersistNow bool if true, this annotation will persist.
index int The index of the selected text in the list
mediator XCore.Mediator
return void

Save() public method

Saves the current selected annotation in the InterlinMaster.
public Save ( bool fPersistNow, int index, XCore.Mediator mediator ) : void
fPersistNow bool if true, this annotation will persist.
index int
mediator XCore.Mediator
return void