C# Class SIL.FieldWorks.Common.FwUtils.LayoutKeyUtils

Class for utilities used to determine/search/build keys for layout configurations. Used by Inventory, LayoutCache, LayoutMerger and XmlDocConfigureDlg
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
GetPossibleLabelSuffix ( XmlNode partRefNode ) : string

Look at the part ref label for a possible duplicated node suffix to put on the new label. Will be of the format "(x)" where x is a digit, except there could be more than one separated by spaces.

GetPossibleParamSuffix ( XmlNode partRefNode ) : string

Look at the part ref param attribute for a possible duplicated node suffix to copy to the new param attribute. Will be of the format "%0x" where x is a digit.

GetSuffixedPartOfNamedViewOrDuplicateNode ( string keyAttributes, string keyVals, string &stdKeyVals ) : string

Look for signs of user named view or duplicated node in this user config key's name attribute. If found, return the extra part suffixed to the name as well as a new key array with the original (unmodified) name that should match the newMaster.

Method Details

GetPossibleLabelSuffix() public static méthode

Look at the part ref label for a possible duplicated node suffix to put on the new label. Will be of the format "(x)" where x is a digit, except there could be more than one separated by spaces.
public static GetPossibleLabelSuffix ( XmlNode partRefNode ) : string
partRefNode System.Xml.XmlNode
Résultat string

GetPossibleParamSuffix() public static méthode

Look at the part ref param attribute for a possible duplicated node suffix to copy to the new param attribute. Will be of the format "%0x" where x is a digit.
public static GetPossibleParamSuffix ( XmlNode partRefNode ) : string
partRefNode System.Xml.XmlNode
Résultat string

GetSuffixedPartOfNamedViewOrDuplicateNode() public static méthode

Look for signs of user named view or duplicated node in this user config key's name attribute. If found, return the extra part suffixed to the name as well as a new key array with the original (unmodified) name that should match the newMaster.
public static GetSuffixedPartOfNamedViewOrDuplicateNode ( string keyAttributes, string keyVals, string &stdKeyVals ) : string
keyAttributes string
keyVals string oldConfigured key values with (probably) suffixed material on the name
stdKeyVals string key values that should match the newMaster version
Résultat string