C# 클래스 SIL.FieldWorks.XWorks.LexText.FlexStylesXmlAccessor

Specialization of StylesXmlAccessor for loading the Flex factory styles.
상속: SIL.FieldWorks.Common.Framework.StylesXmlAccessor
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
EnsureCurrentStylesheet ( ILangProject lp, IThreadedProgress progressDlg ) : void

If the current stylesheet version in the Db doesn't match that of the current XML file, update the DB.

FlexStylesXmlAccessor ( ILexDb lexicon ) : System

Constructor

보호된 메소드들

메소드 설명
StyleIsInUse ( IStStyle style ) : bool

Determines whether the given style is (possibly) in use.

This override is needed because previously hotlinks in FLEx were not have made good use of the InUse property of styles.

StyleReplacementAllowed ( string styleName, string replStyleName ) : bool

Special overridable method to allow application-specific overrides to allow a particular style to be renamed.

ValidateContext ( ContextValues context, string styleName ) : void

Complain if the context is not valid for the tool that is loading the styles. Flex currently allows general styles and its own special one.

메소드 상세

EnsureCurrentStylesheet() 공개 정적인 메소드

If the current stylesheet version in the Db doesn't match that of the current XML file, update the DB.
public static EnsureCurrentStylesheet ( ILangProject lp, IThreadedProgress progressDlg ) : void
lp ILangProject The language project
progressDlg IThreadedProgress The progress dialog.
리턴 void

FlexStylesXmlAccessor() 공개 메소드

Constructor
public FlexStylesXmlAccessor ( ILexDb lexicon ) : System
lexicon ILexDb The lexical database
리턴 System

StyleIsInUse() 보호된 메소드

Determines whether the given style is (possibly) in use.
This override is needed because previously hotlinks in FLEx were not have made good use of the InUse property of styles.
protected StyleIsInUse ( IStStyle style ) : bool
style IStStyle The style.
리턴 bool

StyleReplacementAllowed() 보호된 메소드

Special overridable method to allow application-specific overrides to allow a particular style to be renamed.
protected StyleReplacementAllowed ( string styleName, string replStyleName ) : bool
styleName string Name of the original style.
replStyleName string Name of the replacement style.
리턴 bool

ValidateContext() 보호된 메소드

Complain if the context is not valid for the tool that is loading the styles. Flex currently allows general styles and its own special one.
protected ValidateContext ( ContextValues context, string styleName ) : void
context ContextValues
styleName string
리턴 void