Esempio n. 1
0
        /// <summary>
        /// It constructs a desc element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sValue"></param>
        public SvgDesc(SvgDocument doc, string sValue)
            : base(doc)
        {
            Init();

            Value = sValue;
        }
Esempio n. 2
0
        /// <summary>
        /// It constructs a path element.
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="sPathData">SVG document.</param>
        public SvgPath(SvgDocument doc, string sPathData)
            : base(doc)
        {
            Init();

            PathData = sPathData;
        }
Esempio n. 3
0
        /// <summary>
        /// It constructs a polygon element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sPoints"></param>
        public SvgPolygon(SvgDocument doc, string sPoints)
            : base(doc)
        {
            Init();

            Points = sPoints;
        }
Esempio n. 4
0
        /// <summary>
        /// It constructs a text element with no attribute.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        public SvgText(SvgDocument doc)
            : base(doc)
        {
            ElementName = "text";
            HasValue = true;
            ElementType = SvgElementType.TypeText;

            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlBase, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlLang, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlSpace, "");

            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificX, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificY, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificDx, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificDy, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificRotate, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificTextLength, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificLengthAdjust, 0);

            AddAttribute(SvgAttribute.SvgAttributes.AttrStyleClass, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrStyleStyle, "");

            AddAttribute(SvgAttribute.SvgAttributes.AttrFontFamily, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontSize, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontSizeAdjust, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontStretch, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontStyle, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontVariant, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrFontWeight, "");
        }
Esempio n. 5
0
        protected SvgBasicShape(SvgDocument doc)
            : base(doc)
        {
            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlBase, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlLang, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreXmlSpace, null);

            AddAttribute(SvgAttribute.SvgAttributes.AttrStyleClass, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrStyleStyle, null);

            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintColor, Color.Transparent);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintFill, Color.Transparent);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintFillRule, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStroke, Color.Transparent);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeWidth, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeDashArray, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeDashOffSet, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeLineCap, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeLineJoin, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintStrokeMiterLimit, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintColorInterpolation, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintColorInterpolationFilters, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrPaintColorRendering, 0);

            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsDisplay, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsPointerEvents, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsImageRendering, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsShapeRendering, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsTextRendering, 0);
            AddAttribute(SvgAttribute.SvgAttributes.AttrGraphicsVisiblity, 0);

            AddAttribute(SvgAttribute.SvgAttributes.AttrOpacityOpacity, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrOpacityFillOpacity, null);
            AddAttribute(SvgAttribute.SvgAttributes.AttrOpacityStrokeOpacity, null);
        }
Esempio n. 6
0
        /// <summary>
        /// It constructs a circle element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sCX"></param>
        /// <param name="sCY"></param>
        /// <param name="sRadius"></param>
        public SvgCircle(SvgDocument doc, string sCX, string sCY, string sRadius)
            : base(doc)
        {
            Init();

            CX = sCX;
            CY = sCY;
            R = sRadius;
        }
Esempio n. 7
0
        /// <summary>
        /// It constructs an ellipse element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sCX"></param>
        /// <param name="sCY"></param>
        /// <param name="sRX"></param>
        /// <param name="sRY"></param>
        public SvgEllipse(SvgDocument doc, string sCX, string sCY, string sRX, string sRY)
            : base(doc)
        {
            Init();

            CX = sCX;
            CY = sCY;
            RX = sRX;
            RY = sRY;
        }
Esempio n. 8
0
        /// <summary>
        /// It constructs an line element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sX1"></param>
        /// <param name="sY1"></param>
        /// <param name="sX2"></param>
        /// <param name="sY2"></param>
        /// <param name="col"></param>
        public SvgLine(SvgDocument doc, string sX1, string sY1, string sX2, string sY2, Color col)
            : base(doc)
        {
            Init();

            X1 = sX1;
            Y1 = sY1;
            X2 = sX2;
            Y2 = sY2;
            Fill = col;
        }
Esempio n. 9
0
        internal SvgRoot(SvgDocument doc)
            : base(doc)
        {
            ElementName = "svg";
            ElementType = SvgElementType.TypeSvg;

            AddAttribute(SvgAttribute.SvgAttributes.AttrSvgXmlNs, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSvgVersion, "");

            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificWidth, "");
            AddAttribute(SvgAttribute.SvgAttributes.AttrSpecificHeight, "");
        }
Esempio n. 10
0
        /// <summary>
        /// It constructs an image element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sX"></param>
        /// <param name="sY"></param>
        /// <param name="sWidth"></param>
        /// <param name="sHeight"></param>
        /// <param name="sHRef"></param>
        /// <param name="doc"></param>
        public SvgImage(SvgDocument doc, 
						string sX, 
						string sY, 
						string sWidth, 
						string sHeight,
						string sHRef)
            : base(doc)
        {
            Init();

            X = sX;
            Y = sY;
            Width = sWidth;
            Height = sHeight;
            HRef = sHRef;
        }
Esempio n. 11
0
        protected SvgElement(SvgDocument doc)
        {
            LocalSvgDocument = doc;

            attributes = new ArrayList();

            AddAttribute(SvgAttribute.SvgAttributes.AttrCoreId, null);

            ParentElement = null;
            ChildElement = null;
            NextElement = null;
            PreviousElement = null;

            ElementName = "unsupported";
            ElementValue = "";
            HasValue = false;
            ElementType = SvgElementType.TypeUnsupported;
        }
Esempio n. 12
0
        /// <summary>
        /// It constructs a rect element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sX"></param>
        /// <param name="sY"></param>
        /// <param name="sWidth"></param>
        /// <param name="sHeight"></param>
        /// <param name="sStrokeWidth"></param>
        /// <param name="colFill"></param>
        /// <param name="colStroke"></param>
        public SvgRect(SvgDocument doc, 
			           string sX, 
			           string sY, 
			           string sWidth, 
			           string sHeight, 
			           string sStrokeWidth,
			           Color colFill, 
			           Color colStroke)
            : base(doc)
        {
            Init();

            X = sX;
            Y = sY;
            Width = sWidth;
            StrokeWidth = sStrokeWidth;
            Height = sHeight;
            Fill = colFill;
            Stroke = colStroke;
        }
Esempio n. 13
0
 /// <summary>
 /// It constructs an image element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgImage(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 14
0
 /// <summary>
 /// It constructs a polygon element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgPolygon(SvgDocument doc) : base(doc)
 {
     Init();
 }
Esempio n. 15
0
 /// <summary>
 /// It constructs an ellipse element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgEllipse(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 16
0
        private void ResetTree()
        {
            //m_sFileName = "";

            //m_lvstate = new Hashtable();

            //txtXML.Text = "";
            TreeViewPrintFile.Items.Clear();

            svgDocument = new SvgDocument();
        }
Esempio n. 17
0
 /// <summary>
 /// It constructs a circle element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgCircle(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 18
0
 /// <summary>
 /// It constructs a polygon element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgPolygon(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 19
0
        /// <summary>
        /// It constructs a polygon element.
        /// </summary>
        /// <param name="doc">SVG document.</param>
        /// <param name="sPoints"></param>
        public SvgPolygon(SvgDocument doc, string sPoints) : base(doc)
        {
            Init();

            Points = sPoints;
        }
Esempio n. 20
0
 /// <summary>
 /// It constructs a path element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgPath(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 21
0
 /// <summary>
 /// It constructs a desc element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgDesc(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 22
0
 /// <summary>
 /// It constructs a circle element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgCircle(SvgDocument doc) : base(doc)
 {
     Init();
 }
Esempio n. 23
0
 /// <summary>
 /// It constructs a rect element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgRect(SvgDocument doc)
     : base(doc)
 {
     Init();
 }
Esempio n. 24
0
 /// <summary>
 /// It constructs an line element with no attribute.
 /// </summary>
 /// <param name="doc">SVG document.</param>
 public SvgLine(SvgDocument doc)
     : base(doc)
 {
     Init();
 }