C# Class CardMaker.Card.Translation.TranslatorBase

Afficher le fichier Open project: nhmkdev/cardmaker Class Usage Examples

Protected Properties

Свойство Type Description
m_dictionaryElementStringCache ElementString>.Dictionary
m_dictionaryMarkupCache FormattedTextDataCache>.Dictionary

Méthodes publiques

Méthode Description
AddCachedMarkup ( string sElementName, FormattedTextDataCache zFormattedData ) : void
GetCachedMarkup ( string sElementName ) : FormattedTextDataCache
GetOverrideElement ( ProjectLayoutElement zElement, int nCardIndex, List arrayLine, DeckLine zDeckLine ) : ProjectLayoutElement
GetStringFromTranslationCache ( string sKey ) : ElementString
ResetDeckCache ( ) : void
ResetMarkupCache ( ) : void
ResetMarkupCache ( string sElementName ) : void
ResetTranslationCache ( ) : void
ResetTranslationCache ( ProjectLayoutElement zElement ) : void
TranslateString ( string sRawString, int nCardIndex, DeckLine zDeckLine, ProjectLayoutElement zElement, string sCacheSuffix = "" ) : ElementString

Méthodes protégées

Méthode Description
AddStringToTranslationCache ( string sKey, ElementString zElementString ) : void
TranslateToElementString ( string sRawString, int nCardIndex, DeckLine zDeckLine, ProjectLayoutElement zElement ) : ElementString
TranslatorBase ( int>.Dictionary dictionaryColumnNameToIndex, string>.Dictionary dictionaryDefines, int>.Dictionary dictionaryElementOverrides, List listColumnNames ) : System

Method Details

AddCachedMarkup() public méthode

public AddCachedMarkup ( string sElementName, FormattedTextDataCache zFormattedData ) : void
sElementName string
zFormattedData CardMaker.Card.FormattedText.FormattedTextDataCache
Résultat void

AddStringToTranslationCache() protected méthode

protected AddStringToTranslationCache ( string sKey, ElementString zElementString ) : void
sKey string
zElementString ElementString
Résultat void

GetCachedMarkup() public méthode

public GetCachedMarkup ( string sElementName ) : FormattedTextDataCache
sElementName string
Résultat CardMaker.Card.FormattedText.FormattedTextDataCache

GetOverrideElement() public méthode

public GetOverrideElement ( ProjectLayoutElement zElement, int nCardIndex, List arrayLine, DeckLine zDeckLine ) : ProjectLayoutElement
zElement CardMaker.XML.ProjectLayoutElement
nCardIndex int
arrayLine List
zDeckLine DeckLine
Résultat CardMaker.XML.ProjectLayoutElement

GetStringFromTranslationCache() public méthode

public GetStringFromTranslationCache ( string sKey ) : ElementString
sKey string
Résultat ElementString

ResetDeckCache() public méthode

public ResetDeckCache ( ) : void
Résultat void

ResetMarkupCache() public méthode

public ResetMarkupCache ( ) : void
Résultat void

ResetMarkupCache() public méthode

public ResetMarkupCache ( string sElementName ) : void
sElementName string
Résultat void

ResetTranslationCache() public méthode

public ResetTranslationCache ( ) : void
Résultat void

ResetTranslationCache() public méthode

public ResetTranslationCache ( ProjectLayoutElement zElement ) : void
zElement CardMaker.XML.ProjectLayoutElement
Résultat void

TranslateString() public méthode

public TranslateString ( string sRawString, int nCardIndex, DeckLine zDeckLine, ProjectLayoutElement zElement, string sCacheSuffix = "" ) : ElementString
sRawString string
nCardIndex int
zDeckLine DeckLine
zElement CardMaker.XML.ProjectLayoutElement
sCacheSuffix string
Résultat ElementString

TranslateToElementString() protected abstract méthode

protected abstract TranslateToElementString ( string sRawString, int nCardIndex, DeckLine zDeckLine, ProjectLayoutElement zElement ) : ElementString
sRawString string
nCardIndex int
zDeckLine DeckLine
zElement CardMaker.XML.ProjectLayoutElement
Résultat ElementString

TranslatorBase() protected méthode

protected TranslatorBase ( int>.Dictionary dictionaryColumnNameToIndex, string>.Dictionary dictionaryDefines, int>.Dictionary dictionaryElementOverrides, List listColumnNames ) : System
dictionaryColumnNameToIndex int>.Dictionary
dictionaryDefines string>.Dictionary
dictionaryElementOverrides int>.Dictionary
listColumnNames List
Résultat System

Property Details

m_dictionaryElementStringCache protected_oe property

protected Dictionary m_dictionaryElementStringCache
Résultat ElementString>.Dictionary

m_dictionaryMarkupCache protected_oe property

protected Dictionary m_dictionaryMarkupCache
Résultat FormattedTextDataCache>.Dictionary