SIL.FieldWorks.XWorks.LexText.FlexStylesXmlAccessor.StyleReplacementAllowed C# (CSharp) Method

StyleReplacementAllowed() protected method

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.
return bool
		protected override bool StyleReplacementAllowed(string styleName, string replStyleName)
		{
			return (styleName == "External Link" && replStyleName == "Hyperlink") ||
				(styleName == "Internal Link" && replStyleName == "Hyperlink") ||
				(styleName == "Language Code" && replStyleName == "Writing System Abbreviation");
		}