using System.Xml;
using System.Xml.Serialization;

namespace QC.CompareTestTree;

[XmlType(AnonymousType = true)]
public class WConfigSFont
{
	private string fontFamilyField;

	private string graphicsUnitField;

	private byte sizeField;

	private string styleField;

	public string FontFamily
	{
		get
		{
			return fontFamilyField;
		}
		set
		{
			fontFamilyField = value;
		}
	}

	public string GraphicsUnit
	{
		get
		{
			return graphicsUnitField;
		}
		set
		{
			graphicsUnitField = value;
		}
	}

	public byte Size
	{
		get
		{
			return sizeField;
		}
		set
		{
			sizeField = value;
		}
	}

	public string Style
	{
		get
		{
			return styleField;
		}
		set
		{
			styleField = value;
		}
	}

	public virtual void CompareWConfigSFont(WConfigSFont baseWConfigFont, string overrideAttrib, ref XmlDocument xmlDoc, ref XmlElement parentNode)
	{
		if (overrideAttrib != null)
		{
			parentNode.SetAttribute("delta", overrideAttrib);
		}
		CommonFunctions.RootDoc = xmlDoc;
		CommonFunctions.ParentNode = parentNode;
		CommonFunctions.AddElement("FontFamily", FontFamily, baseWConfigFont.FontFamily, overrideAttrib);
		CommonFunctions.AddElement("GraphicsUnit", GraphicsUnit, baseWConfigFont.GraphicsUnit, overrideAttrib);
		CommonFunctions.AddElement("Size", Size, baseWConfigFont.Size, overrideAttrib);
		CommonFunctions.AddElement("Style", Style, baseWConfigFont.Style, overrideAttrib);
	}
}
