C# Class SIL.FieldWorks.Discourse.InterlinRibbon

This class displays a one-line ribbon of interlinear text which keeps adding more at the end as stuff at the start gets moved into the main chart.
Inheritance: SIL.FieldWorks.Common.RootSites.SimpleRootSite, IInterlinRibbon
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
m_InSelectionChanged bool
m_occurenceListId int

Private Properties

Свойство Type Description
EmitPropChanged void

Méthodes publiques

Méthode Description
CacheRibbonItems ( List wordForms ) : void

Replaces cached ribbon words with input wordforms. Handles PropChanged, as UOW won't emit PropChanged to private Ribbon Decorator items.

GetAvailWidth ( IVwRootBox prootb ) : int

Suppress wrapping by allowing it to be as wide as desired. Todo: for RTL we will have to do something tricky about horizontal scrolling to see the actual text.

InterlinRibbon ( SIL.FieldWorks.FDO.FdoCache cache, int hvoRoot ) : System

Make one.

MakeInitialSelection ( ) : void
MakeRoot ( ) : void
SelectFirstOccurence ( ) : void
SetRoot ( int hvoStText ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
GetScrollOffsets ( int &dxd, int &dyd ) : void
HandleSelectionChange ( object sender, SIL.FieldWorks.Common.RootSites.VwSelectionArgs args ) : void

This override ensures that we always have whole objects selected. Enhance: it may cause flicker during drag, in which case, we may change to only do it on mouse up, or only IF the mouse is up.

OnEditingHelperCreated ( ) : void

Called when the editing helper is created.

OnLoad ( EventArgs e ) : void
SelectUpTo ( int end1 ) : void

Private Methods

Méthode Description
EmitPropChanged ( ) : void

Method Details

CacheRibbonItems() public méthode

Replaces cached ribbon words with input wordforms. Handles PropChanged, as UOW won't emit PropChanged to private Ribbon Decorator items.
public CacheRibbonItems ( List wordForms ) : void
wordForms List
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAvailWidth() public méthode

Suppress wrapping by allowing it to be as wide as desired. Todo: for RTL we will have to do something tricky about horizontal scrolling to see the actual text.
public GetAvailWidth ( IVwRootBox prootb ) : int
prootb IVwRootBox
Résultat int

GetScrollOffsets() protected méthode

protected GetScrollOffsets ( int &dxd, int &dyd ) : void
dxd int
dyd int
Résultat void

HandleSelectionChange() protected méthode

This override ensures that we always have whole objects selected. Enhance: it may cause flicker during drag, in which case, we may change to only do it on mouse up, or only IF the mouse is up.
protected HandleSelectionChange ( object sender, SIL.FieldWorks.Common.RootSites.VwSelectionArgs args ) : void
sender object
args SIL.FieldWorks.Common.RootSites.VwSelectionArgs
Résultat void

InterlinRibbon() public méthode

Make one.
public InterlinRibbon ( SIL.FieldWorks.FDO.FdoCache cache, int hvoRoot ) : System
cache SIL.FieldWorks.FDO.FdoCache
hvoRoot int
Résultat System

MakeInitialSelection() public méthode

public MakeInitialSelection ( ) : void
Résultat void

MakeRoot() public méthode

public MakeRoot ( ) : void
Résultat void

OnEditingHelperCreated() protected méthode

Called when the editing helper is created.
protected OnEditingHelperCreated ( ) : void
Résultat void

OnLoad() protected méthode

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

SelectFirstOccurence() public méthode

public SelectFirstOccurence ( ) : void
Résultat void

SelectUpTo() protected méthode

protected SelectUpTo ( int end1 ) : void
end1 int
Résultat void

SetRoot() public méthode

public SetRoot ( int hvoStText ) : void
hvoStText int
Résultat void

Property Details

m_InSelectionChanged protected_oe property

protected bool m_InSelectionChanged
Résultat bool

m_occurenceListId protected_oe property

protected int m_occurenceListId
Résultat int