C# 클래스 SIL.FieldWorks.XWorks.ConcDecorator

This class exists to decorate the main SDA for concordance views and browse views that show occurrence counts. It implements the Occurrences and OccurrencesCount properties for WfiWordform, WfiAnalysis, and/or WfiGloss. Both occurrences and OccurrencesCount are decorator rather than virtual properties because the results depend on per-window choices of which texts to include. It also implements the property ConcOccurrences, which is a decorator-only object as well as a decorator-only property. ConcOccurrences is the top-level list of occurrences of whatever the user asked to search for in Concordance view. Occurrences are 'fake' HVOs that don't correspond to any real object in the database. They also have properties only recognized by the decorator, such as a reference, begin and end character offsets (in the original paragraph string...used to bold the keyword), the object (typically StTxtPara) and segment they belong to, and several other derived properties which can be displayed in optional columns of the concordance views.
상속: SIL.FieldWorks.FDO.Application.DomainDataByFlidDecoratorBase, IAnalysisOccurrenceFromHvo, ISetMediator, IRefreshCache
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
AddNotification ( IVwNotifyChange nchng ) : void

Count the things that are interested in us so that, when there are no more, we can indicate that we no longer care about changes to the collection of interesting texts. Review JohnT: could it ever happen that we regain our interest in those changes, getting a new notifiee after we lost our last one?

ConcDecorator ( ISilDataAccessManaged domainDataByFlid, XmlNode configurationNode, IFdoServiceLocator services ) : System
IsInterestingText ( IStText text ) : bool

Makes more acessible the means of testing for interesting texts.

OccurrenceFromHvo ( int hvo ) : IParaFragment

Makes the actual analysis occurrence available (e.g., for configuring the appropriate interlinear view).

OnItemDataModified ( object argument ) : void

This is invoked by reflection when the Respeller dialog changes the frequency of a wordform.

PropChanged ( int hvo, int tag, int ivMin, int cvIns, int cvDel ) : void
Refresh ( ) : void

Refresh your cached properties.

RemoveNotification ( IVwNotifyChange nchng ) : void
ResumeRefresh ( ) : void
SetMediator ( Mediator mediator ) : void
SetOccurrences ( int hvo, IEnumerable occurrences ) : void

This is used by the ConcordanceControl (in ITextDll), which in various ways comes up with a list of occurrences to display in a concordance browse view. Often the occurrences made in this way do not have a meaningful Index, but we are not using that here. We make a dummy HVO for the root as well as the items, if we don't already have one.

SuspendRefresh ( ) : void
UpdateAnalysisOccurrences ( IAnalysis obj, bool includeChildren ) : void
UpdateExactAnalysisOccurrences ( IAnalysis obj ) : void

Make sure we have the right list of occurrences for the specified analysis (assumes we are using ExactOccurrences).

UpdateOccurrences ( int values ) : void

Update the occurrences list (kflidConcOccurrences of LangProject) to the specified array, without sending PropChanged. (Typically used during ReloadList.)

VecProp ( int hvo, int tag ) : int[]
get_BooleanProp ( int hvo, int tag ) : bool
get_IntProp ( int hvo, int tag ) : int
get_MultiStringAlt ( int hvo, int tag, int ws ) : ITsString
get_ObjectProp ( int hvo, int tag ) : int
get_StringProp ( int hvo, int tag ) : ITsString
get_VecItem ( int hvo, int tag, int index ) : int
get_VecSize ( int hvo, int tag ) : int

보호된 메소드들

메소드 설명
AddAdditionalOccurrences ( int hvoWf, IParaFragment>.Dictionary occurrences, int &nextId, List valuesList ) : void

Overridden in RespellingSda to add caption occurrences.

ReplaceAnalysisOccurrences ( int hvo, int values ) : void

Replace the occurrence values for a WfiWordform. Assume that all of the values are already registered in m_occurrences through previous calls to GetAnalysisOccurrences().

This is used by the Respelling subclass of this decorator.

비공개 메소드들

메소드 설명
BelongsToInterestingText ( ISegment seg ) : bool
EmptyUserString ( ) : ITsString
GetAnalysisOccurrences ( int hvo ) : int[]
GetAnalysisOccurrences ( int hvo, bool includeChildren ) : int[]

Get the occurrences of a particular analysis in the currently interesting texts.

GetSenseOccurrences ( int hvo ) : int[]

Get the values we want for the occurrences of the specified LexSE HVO.

GetStText ( int hvoOccurrence ) : IStText
m_interestingTexts_InterestingTextsChanged ( object sender, InterestingTextsChangedArgs e ) : void

메소드 상세

AddAdditionalOccurrences() 보호된 메소드

Overridden in RespellingSda to add caption occurrences.
protected AddAdditionalOccurrences ( int hvoWf, IParaFragment>.Dictionary occurrences, int &nextId, List valuesList ) : void
hvoWf int
occurrences IParaFragment>.Dictionary
nextId int
valuesList List
리턴 void

AddNotification() 공개 메소드

Count the things that are interested in us so that, when there are no more, we can indicate that we no longer care about changes to the collection of interesting texts. Review JohnT: could it ever happen that we regain our interest in those changes, getting a new notifiee after we lost our last one?
public AddNotification ( IVwNotifyChange nchng ) : void
nchng IVwNotifyChange
리턴 void

ConcDecorator() 공개 메소드

public ConcDecorator ( ISilDataAccessManaged domainDataByFlid, XmlNode configurationNode, IFdoServiceLocator services ) : System
domainDataByFlid ISilDataAccessManaged
configurationNode System.Xml.XmlNode
services IFdoServiceLocator
리턴 System

IsInterestingText() 공개 메소드

Makes more acessible the means of testing for interesting texts.
public IsInterestingText ( IStText text ) : bool
text IStText
리턴 bool

OccurrenceFromHvo() 공개 메소드

Makes the actual analysis occurrence available (e.g., for configuring the appropriate interlinear view).
public OccurrenceFromHvo ( int hvo ) : IParaFragment
hvo int
리턴 IParaFragment

OnItemDataModified() 공개 메소드

This is invoked by reflection when the Respeller dialog changes the frequency of a wordform.
public OnItemDataModified ( object argument ) : void
argument object
리턴 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

Refresh() 공개 메소드

Refresh your cached properties.
public Refresh ( ) : void
리턴 void

RemoveNotification() 공개 메소드

public RemoveNotification ( IVwNotifyChange nchng ) : void
nchng IVwNotifyChange
리턴 void

ReplaceAnalysisOccurrences() 보호된 메소드

Replace the occurrence values for a WfiWordform. Assume that all of the values are already registered in m_occurrences through previous calls to GetAnalysisOccurrences().
This is used by the Respelling subclass of this decorator.
protected ReplaceAnalysisOccurrences ( int hvo, int values ) : void
hvo int
values int
리턴 void

ResumeRefresh() 공개 메소드

public ResumeRefresh ( ) : void
리턴 void

SetMediator() 공개 메소드

public SetMediator ( Mediator mediator ) : void
mediator Mediator
리턴 void

SetOccurrences() 공개 메소드

This is used by the ConcordanceControl (in ITextDll), which in various ways comes up with a list of occurrences to display in a concordance browse view. Often the occurrences made in this way do not have a meaningful Index, but we are not using that here. We make a dummy HVO for the root as well as the items, if we don't already have one.
public SetOccurrences ( int hvo, IEnumerable occurrences ) : void
hvo int
occurrences IEnumerable
리턴 void

SuspendRefresh() 공개 메소드

public SuspendRefresh ( ) : void
리턴 void

UpdateAnalysisOccurrences() 공개 메소드

public UpdateAnalysisOccurrences ( IAnalysis obj, bool includeChildren ) : void
obj IAnalysis
includeChildren bool
리턴 void

UpdateExactAnalysisOccurrences() 공개 메소드

Make sure we have the right list of occurrences for the specified analysis (assumes we are using ExactOccurrences).
public UpdateExactAnalysisOccurrences ( IAnalysis obj ) : void
obj IAnalysis
리턴 void

UpdateOccurrences() 공개 메소드

Update the occurrences list (kflidConcOccurrences of LangProject) to the specified array, without sending PropChanged. (Typically used during ReloadList.)
public UpdateOccurrences ( int values ) : void
values int
리턴 void

VecProp() 공개 메소드

public VecProp ( int hvo, int tag ) : int[]
hvo int
tag int
리턴 int[]

get_BooleanProp() 공개 메소드

public get_BooleanProp ( int hvo, int tag ) : bool
hvo int
tag int
리턴 bool

get_IntProp() 공개 메소드

public get_IntProp ( int hvo, int tag ) : int
hvo int
tag int
리턴 int

get_MultiStringAlt() 공개 메소드

public get_MultiStringAlt ( int hvo, int tag, int ws ) : ITsString
hvo int
tag int
ws int
리턴 ITsString

get_ObjectProp() 공개 메소드

public get_ObjectProp ( int hvo, int tag ) : int
hvo int
tag int
리턴 int

get_StringProp() 공개 메소드

public get_StringProp ( int hvo, int tag ) : ITsString
hvo int
tag int
리턴 ITsString

get_VecItem() 공개 메소드

public get_VecItem ( int hvo, int tag, int index ) : int
hvo int
tag int
index int
리턴 int

get_VecSize() 공개 메소드

public get_VecSize ( int hvo, int tag ) : int
hvo int
tag int
리턴 int