This commit is contained in:
57
PROMS/Volian.Svg.Library/SvgPart.cs
Normal file
57
PROMS/Volian.Svg.Library/SvgPart.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Xml.Serialization;
|
||||
using System.Drawing;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Volian.Svg.Library
|
||||
{
|
||||
|
||||
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||
public abstract partial class SvgPart
|
||||
{
|
||||
#region ID
|
||||
protected string _ID = string.Empty;
|
||||
[System.ComponentModel.DefaultValueAttribute("")]
|
||||
[XmlAttribute("id")]
|
||||
public string ID
|
||||
{
|
||||
get { return _ID; }
|
||||
set { _ID = value; }
|
||||
}
|
||||
#endregion
|
||||
//#region Parent and Containing Svg
|
||||
//// ToDo: MyParent
|
||||
//private SvgPartGrouping _MyParent;
|
||||
//[XmlIgnore()]
|
||||
//public SvgPartGrouping MyParent
|
||||
//{
|
||||
// get { return _MyParent; }
|
||||
// set { _MyParent = value; }
|
||||
//}
|
||||
//// ToDo: MySvg
|
||||
//private Svg _MySvg;
|
||||
//public Svg MySvg
|
||||
//{
|
||||
// get { return _MySvg; }
|
||||
// set { _MySvg = value; }
|
||||
//}
|
||||
//internal void SetParent(SvgPartGrouping myParent)
|
||||
//{
|
||||
// _MyParent = myParent;
|
||||
// _MySvg = myParent.MySvg == null? MyParent : myParent.MySvg;
|
||||
//}
|
||||
//#endregion
|
||||
#region Setup Inheritance
|
||||
virtual internal void SetupInheritance(SvgInheritedSettings myParentsSettings) { ; }
|
||||
#endregion
|
||||
#region Dictionary of Parts
|
||||
internal virtual void AddLookup(Dictionary<string, SvgPart> lookUp)
|
||||
{
|
||||
if (_ID != string.Empty && !lookUp.ContainsKey(_ID))
|
||||
lookUp.Add(_ID, this);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user