C# Класс SIL.FieldWorks.XWorks.LexText.FlexStylesXmlAccessor

Specialization of StylesXmlAccessor for loading the Flex factory styles.
Наследование: SIL.FieldWorks.Common.Framework.StylesXmlAccessor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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