SourceCode/PROMS/Volian.Svg.Library/SvgPartInheritance.cs
2010-03-25 19:38:51 +00:00

92 lines
2.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.ComponentModel;
using System.Drawing;
namespace Volian.Svg.Library
{
public partial class SvgPartInheritance : SvgPart
{
#region InheritedSettings
internal SvgInheritedSettings _MyInheritedSettings = new SvgInheritedSettings();
[XmlIgnore()]
internal SvgInheritedSettings MyInheritedSettings
{
get { return _MyInheritedSettings; }
set { _MyInheritedSettings = value; }
}
#region Line Settings
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("stroke")]
public string Stroke
{
get { return _MyInheritedSettings.Stroke; }
set { _MyInheritedSettings.Stroke = value; }
}
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("stroke-width")]
public string StrokeWidth
{
get { return _MyInheritedSettings.StrokeWidth; }
set { _MyInheritedSettings.StrokeWidth = value; }
}
#endregion
#region Fill Settings
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("fill")]
public string Fill
{
get { return _MyInheritedSettings.Fill; }
set { _MyInheritedSettings.Fill = value; }
}
#endregion
#region Font Settings
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("font-family")]
public string FontFamily
{
get { return _MyInheritedSettings.FontFamily; }
set { _MyInheritedSettings.FontFamily = value; }
}
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("font-size")]
public string FontSize
{
get { return _MyInheritedSettings.FontSize; }
set { _MyInheritedSettings.FontSize = value; }
}
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("font-style")]
public string SVGFontStyle
{
get { return _MyInheritedSettings.SVGFontStyle; }
set { _MyInheritedSettings.SVGFontStyle = value; }
}
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("font-weight")]
public string FontWeight
{
get { return _MyInheritedSettings.FontWeight; }
set { _MyInheritedSettings.FontWeight = value; }
}
[System.ComponentModel.DefaultValueAttribute("")]
[XmlAttribute("text-decoration")]
public string TextDecoration
{
get { return _MyInheritedSettings.TextDecoration; }
set { _MyInheritedSettings.TextDecoration = value; }
}
#endregion
#endregion
#region Setup Inheritance
override internal void SetupInheritance(SvgInheritedSettings myParentsSettings)
{
_MyInheritedSettings.MyParentsSettings = myParentsSettings;
//_SvgParts.SetupInheritance(_MyInheritedSettings);
}
#endregion
}
}