You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(41) |
Oct
(14) |
Nov
(62) |
Dec
|
---|
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:33
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/Color In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/Color Modified Files: SvgColorTests.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: SvgColorTests.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Svg/Color/SvgColorTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- SvgColorTests.cs 28 Jun 2003 20:37:31 -0000 1.3 +++ SvgColorTests.cs 20 Nov 2005 20:42:23 -0000 1.4 @@ -48,10 +48,10 @@ { SvgColor color = _createColor("rgb(12,234 , 121)"); color.SetColor(SvgColorType.RgbColor, "#ff00ff", ""); - Assertion.AssertEquals("rgb(255,0,255)", color.CssText); + Assert.AreEqual("rgb(255,0,255)", color.CssText); color.SetColor(SvgColorType.CurrentColor, null, null); - Assertion.AssertEquals("currentColor", color.CssText); + Assert.AreEqual("currentColor", color.CssText); } [Test] @@ -59,7 +59,7 @@ { SvgColor color = _createColor("rgb(12,234 , 121)"); color.SetRgbColor("#ff0000"); - Assertion.AssertEquals("rgb(255,0,0)", color.CssText); + Assert.AreEqual("rgb(255,0,0)", color.CssText); } [Test] @@ -73,7 +73,7 @@ { // should allways be false SvgColor color = _createColor("rgb(12,234 , 121)"); - Assertion.AssertEquals(false, color.ReadOnly); + Assert.AreEqual(false, color.ReadOnly); } [Test] @@ -82,7 +82,7 @@ { SvgColor color = _createColor("rgb(12,234 , 121)"); color.SetRgbColorIccColor("#ff0000", "somename"); - Assertion.AssertEquals("rgb(255,0,0) icc-color(somename)", color.CssText); + Assert.AreEqual("rgb(255,0,0) icc-color(somename)", color.CssText); } @@ -90,16 +90,16 @@ public void TestColorType() { SvgColor color = _createColor("rgb(12,234 , 121)"); - Assertion.AssertEquals(SvgColorType.RgbColor, color.ColorType); + Assert.AreEqual(SvgColorType.RgbColor, color.ColorType); color = _createColor("currentColor"); - Assertion.AssertEquals(SvgColorType.CurrentColor, color.ColorType); + Assert.AreEqual(SvgColorType.CurrentColor, color.ColorType); color.SetColor(SvgColorType.RgbColor, "rgb(80%, 50%, 12)", null); - Assertion.AssertEquals(SvgColorType.RgbColor, color.ColorType); + Assert.AreEqual(SvgColorType.RgbColor, color.ColorType); color.SetColor(SvgColorType.RgbColorIccColor, "rgb(80%, 50%, 12)", "icc-color(somename)"); - Assertion.AssertEquals(SvgColorType.RgbColorIccColor, color.ColorType); + Assert.AreEqual(SvgColorType.RgbColorIccColor, color.ColorType); } public override void TestCssReadOnly() @@ -271,9 +271,9 @@ SvgColor color = _createColor(name); SvgColor color2 = _createColor(hexColor); - Assertion.AssertEquals(name + " red", color2.RgbColor.Red.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Red.GetFloatValue(CssPrimitiveType.Number)); - Assertion.AssertEquals(name + " green", color2.RgbColor.Green.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Green.GetFloatValue(CssPrimitiveType.Number)); - Assertion.AssertEquals(name + " blue", color2.RgbColor.Blue.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Blue.GetFloatValue(CssPrimitiveType.Number)); + Assert.AreEqual(color2.RgbColor.Red.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Red.GetFloatValue(CssPrimitiveType.Number), name + " red"); + Assert.AreEqual(color2.RgbColor.Green.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Green.GetFloatValue(CssPrimitiveType.Number), name + " green"); + Assert.AreEqual(color2.RgbColor.Blue.GetFloatValue(CssPrimitiveType.Number), color.RgbColor.Blue.GetFloatValue(CssPrimitiveType.Number), name + " blue"); } } } |
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:32
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorUnitTests/SharpVectors/Dom/Events Modified Files: EventTests.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: EventTests.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/Events/EventTests.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- EventTests.cs 14 Aug 2003 13:40:51 -0000 1.4 +++ EventTests.cs 20 Nov 2005 20:42:23 -0000 1.5 @@ -30,21 +30,22 @@ [Test] public void EventTarget() { - Assertion.Assert(rect is IEventTarget); + IEventTarget targ = rect as IEventTarget; + Assert.IsNotNull(targ); } [Test] public void TestConstructor() { Event e = new Event("mousemove", true, false); - Assertion.AssertEquals("mousemove", e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual("mousemove", e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); e = new Event("dummy", false, true); - Assertion.AssertEquals("dummy", e.Type); - Assertion.AssertEquals(false, e.Bubbles); - Assertion.AssertEquals(true, e.Cancelable); + Assert.AreEqual("dummy", e.Type); + Assert.AreEqual(false, e.Bubbles); + Assert.AreEqual(true, e.Cancelable); } [Test] @@ -61,23 +62,23 @@ private void PropagateHandlerAtTarget(IEvent e) { - Assertion.AssertSame(rect, e.CurrentTarget); - Assertion.AssertEquals(rect, e.Target); - Assertion.AssertEquals(EventPhase.AtTarget, e.EventPhase); + Assert.AreSame(rect, e.CurrentTarget); + Assert.AreEqual(rect, e.Target); + Assert.AreEqual(EventPhase.AtTarget, e.EventPhase); eventStatus = 1; } private void PropagateHandlerAtG(IEvent e) { - Assertion.AssertSame(g, e.CurrentTarget); - Assertion.AssertEquals(rect, e.Target); + Assert.AreSame(g, e.CurrentTarget); + Assert.AreEqual(rect, e.Target); if(e.EventPhase == EventPhase.CapturingPhase || (e.EventPhase == EventPhase.BubblingPhase && eventStatus == 1)) { } else { - Assertion.Fail(); + Assert.Fail(); } eventStatus = 2; } @@ -87,7 +88,7 @@ { ((IEventTarget)rect).AddEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mousemove", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).RemoveEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); } @@ -97,7 +98,7 @@ ((IEventTarget)g).AddEventListener("mousemove", new EventListener(PropagateHandlerAtG), false); ((IEventTarget)rect).AddEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mousemove", true, true)); - Assertion.AssertEquals(2, eventStatus); + Assert.AreEqual(2, eventStatus); ((IEventTarget)rect).RemoveEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)g).RemoveEventListener("mousemove", new EventListener(PropagateHandlerAtG), false); } @@ -107,7 +108,7 @@ { ((IEventTarget)rect).AddEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mousemove", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).RemoveEventListener("mousemove", new EventListener(PropagateHandlerAtTarget), false); } @@ -116,7 +117,7 @@ { ((IEventTarget)rect).AddEventListener("mousedown", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mousedown", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).AddEventListener("mousedown", new EventListener(PropagateHandlerAtTarget), false); } @@ -125,7 +126,7 @@ { ((IEventTarget)rect).AddEventListener("mouseup", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mouseup", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).RemoveEventListener("mouseup", new EventListener(PropagateHandlerAtTarget), false); } @@ -134,7 +135,7 @@ { ((IEventTarget)rect).AddEventListener("mouseover", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mouseover", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).RemoveEventListener("mouseover", new EventListener(PropagateHandlerAtTarget), false); } @@ -143,7 +144,7 @@ { ((IEventTarget)rect).AddEventListener("mouseout", new EventListener(PropagateHandlerAtTarget), false); ((IEventTarget)rect).DispatchEvent(new Event("mouseout", true, true)); - Assertion.AssertEquals(1, eventStatus); + Assert.AreEqual(1, eventStatus); ((IEventTarget)rect).RemoveEventListener("mouseout", new EventListener(PropagateHandlerAtTarget), false); } } |
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:32
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi Modified Files: GdiRenderer.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: GdiRenderer.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi/GdiRenderer.cs,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- GdiRenderer.cs 19 Nov 2005 03:13:24 -0000 1.39 +++ GdiRenderer.cs 20 Nov 2005 20:42:23 -0000 1.40 @@ -916,17 +916,17 @@ startButton.AddEventListener("mousedown", new EventListener(svgControl.EventListener), false); - Assertion.AssertEquals(0, svgControl.EventCount); + Assert.AreEqual(0, svgControl.EventCount); svgControl.Renderer.OnMouseEvent("mousedown", new MouseEventArgs(MouseButtons.Left, 1, 20, 20, 0)); - Assertion.AssertEquals(1, svgControl.EventCount); + Assert.AreEqual(1, svgControl.EventCount); svgControl.Renderer.OnMouseEvent("mousedown", new MouseEventArgs(MouseButtons.Left, 1, 5, 5, 0)); - Assertion.AssertEquals(1, svgControl.EventCount); + Assert.AreEqual(1, svgControl.EventCount); } #endregion |
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:32
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types Modified Files: SvgElement.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: SvgElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgElement.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- SvgElement.cs 19 Nov 2005 03:13:23 -0000 1.3 +++ SvgElement.cs 20 Nov 2005 20:42:23 -0000 1.4 @@ -42,7 +42,9 @@ if (renderingNode != null && renderingNode.ScreenRegion != RectangleF.Empty) return; - // Invalidate the children foreach (XmlNode node in ChildNodes ) { + // Invalidate the children + foreach (XmlNode node in ChildNodes ) + { SvgElement element = node as SvgElement; if (element != null) { @@ -56,7 +58,9 @@ if (renderingNode != null) renderingNode.ScreenRegion = RectangleF.Empty; - // Invalidate the children foreach (XmlNode node in ChildNodes ) { + // Invalidate the children + foreach (XmlNode node in ChildNodes ) + { SvgElement element = node as SvgElement; if (element != null) { @@ -67,7 +71,8 @@ public virtual void Render(ISvgRenderer renderer) { - if ( !(this is ISharpDoNotPaint) || (this is SvgSymbolElement && this.ParentNode is SvgUseElement)) { + if ( !(this is ISharpDoNotPaint) || (this is SvgSymbolElement && this.ParentNode is SvgUseElement)) + { if (renderingNode == null) { renderingNode = renderer.GetRenderingNode(this); @@ -85,7 +90,8 @@ public virtual void RenderChildren(ISvgRenderer renderer) { - foreach ( XmlNode node in ChildNodes ) { + foreach ( XmlNode node in ChildNodes ) + { SvgElement element = node as SvgElement; if ( element != null ) { @@ -269,7 +275,7 @@ // public override void TestTypeFromDocument() // { // XmlElement elm = TestUtil.GetXmlElement("<" + localName + " xmlns='http://www.w3.org/2000/svg' />", "", localName); - // Assertion.AssertEquals(elmType, elm.GetType()); + // Assert.AreEqual(elmType, elm.GetType()); // } // // [Test] @@ -279,7 +285,7 @@ // SvgDocument doc = new SvgDocument(wnd); // XmlElement elm = doc.CreateElement("", localName, "http://www.w3.org/2000/svg"); // - // Assertion.AssertEquals(elmType, elm.GetType()); + // Assert.AreEqual(elmType, elm.GetType()); // } // // } |
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:32
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/StyleSheets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorUnitTests/SharpVectors/Dom/StyleSheets Modified Files: MediaListTests.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: MediaListTests.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorUnitTests/SharpVectors/Dom/StyleSheets/MediaListTests.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MediaListTests.cs 14 Mar 2003 15:27:34 -0000 1.2 +++ MediaListTests.cs 20 Nov 2005 20:42:23 -0000 1.3 @@ -11,25 +11,25 @@ public void TestEmptyConstructor() { MediaList list = new MediaList(); - Assertion.AssertEquals(0, list.Length); - Assertion.AssertEquals("", list.MediaText); + Assert.AreEqual(0, list.Length); + Assert.AreEqual("", list.MediaText); } [Test] public void TestStringConstructor() { MediaList list = new MediaList("all, screen"); - Assertion.AssertEquals(2, list.Length); - Assertion.AssertEquals("all,screen", list.MediaText); - Assertion.AssertEquals("all", list[0]); - Assertion.AssertEquals("screen", list[1]); + Assert.AreEqual(2, list.Length); + Assert.AreEqual("all,screen", list.MediaText); + Assert.AreEqual("all", list[0]); + Assert.AreEqual("screen", list[1]); } [Test] public void TestToBigIndex() { MediaList list = new MediaList("all, screen"); - Assertion.AssertNull(list[2]); + Assert.IsNull(list[2]); } [Test] @@ -37,21 +37,21 @@ { MediaList list = new MediaList(); list.AppendMedium("screen"); - Assertion.AssertEquals(1, list.Length); - Assertion.AssertEquals("screen", list.MediaText); - Assertion.AssertEquals("screen", list[0]); + Assert.AreEqual(1, list.Length); + Assert.AreEqual("screen", list.MediaText); + Assert.AreEqual("screen", list[0]); list.AppendMedium("all"); - Assertion.AssertEquals(2, list.Length); - Assertion.AssertEquals("screen,all", list.MediaText); - Assertion.AssertEquals("screen", list[0]); - Assertion.AssertEquals("all", list[1]); + Assert.AreEqual(2, list.Length); + Assert.AreEqual("screen,all", list.MediaText); + Assert.AreEqual("screen", list[0]); + Assert.AreEqual("all", list[1]); list.AppendMedium("screen"); - Assertion.AssertEquals(2, list.Length); - Assertion.AssertEquals("all,screen", list.MediaText); - Assertion.AssertEquals("all", list[0]); - Assertion.AssertEquals("screen", list[1]); + Assert.AreEqual(2, list.Length); + Assert.AreEqual("all,screen", list.MediaText); + Assert.AreEqual("all", list[0]); + Assert.AreEqual("screen", list[1]); } [Test] @@ -59,17 +59,17 @@ { MediaList list = new MediaList("screen, all"); list.DeleteMedium("screen"); - Assertion.AssertEquals(1, list.Length); - Assertion.AssertEquals("all", list.MediaText); - Assertion.AssertEquals("all", list[0]); + Assert.AreEqual(1, list.Length); + Assert.AreEqual("all", list.MediaText); + Assert.AreEqual("all", list[0]); } [Test] public void TestIncorrectButParsable1() { MediaList list = new MediaList("screen,,all"); - Assertion.AssertEquals(2, list.Length); - Assertion.AssertEquals("screen,all", list.MediaText); + Assert.AreEqual(2, list.Length); + Assert.AreEqual("screen,all", list.MediaText); } [Test] @@ -78,7 +78,7 @@ MediaList ssList = new MediaList("screen"); MediaList rendList = new MediaList("screen"); - Assertion.Assert(ssList.Matches(rendList)); + Assert.IsTrue(ssList.Matches(rendList)); } [Test] @@ -87,7 +87,7 @@ MediaList ssList = new MediaList("all"); MediaList rendList = new MediaList("screen"); - Assertion.Assert(ssList.Matches(rendList)); + Assert.IsTrue(ssList.Matches(rendList)); } [Test] @@ -96,7 +96,7 @@ MediaList ssList = new MediaList(String.Empty); MediaList rendList = new MediaList("screen"); - Assertion.Assert(ssList.Matches(rendList)); + Assert.IsTrue(ssList.Matches(rendList)); } [Test] @@ -105,7 +105,7 @@ MediaList ssList = new MediaList("dummy"); MediaList rendList = new MediaList("screen"); - Assertion.Assert(!ssList.Matches(rendList)); + Assert.IsTrue(!ssList.Matches(rendList)); } [Test] @@ -114,7 +114,7 @@ MediaList ssList = new MediaList("foo, screen"); MediaList rendList = new MediaList("screen"); - Assertion.Assert(ssList.Matches(rendList)); + Assert.IsTrue(ssList.Matches(rendList)); } |
From: Jeff R. <jef...@us...> - 2005-11-20 20:42:31
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorDom/SharpVectors/Dom Modified Files: Element.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: Element.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Element.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Element.cs 23 Oct 2005 23:39:29 -0000 1.2 +++ Element.cs 20 Nov 2005 20:42:23 -0000 1.3 @@ -152,7 +152,7 @@ // Add first event listener eventTarget.AddEventListener("mousemove", new EventListener(OnMouseMove), false); eventTarget.DispatchEvent(new Event("uievent", "mousemove", true, false)); - Assertion.AssertEquals(1, increment); + Assert.AreEqual(1, increment); // Add second event listener // "If multiple identical EventListeners are registered on the same EventTarget with the same @@ -160,18 +160,18 @@ // be called twice and since they are discarded they do not need to be removed with the removeEventListener method." eventTarget.AddEventListener("mousemove", new EventListener(OnMouseMove), false); eventTarget.DispatchEvent(new Event("uievent", "mousemove", true, false)); - Assertion.AssertEquals(2, increment); + Assert.AreEqual(2, increment); // Remove first event listener eventTarget.RemoveEventListener("mousemove", new EventListener(OnMouseMove), false); eventTarget.DispatchEvent(new Event("uievent", "mousemove", true, false)); - Assertion.AssertEquals(2, increment); + Assert.AreEqual(2, increment); // Remove second event listener // "Calling removeEventListener with arguments which do not identify any currently registered EventListener on the EventTarget has no effect." eventTarget.RemoveEventListener("mousemove", new EventListener(OnMouseMove), false); eventTarget.DispatchEvent(new Event("uievent", "mousemove", true, false)); - Assertion.AssertEquals(2, increment); + Assert.AreEqual(2, increment); } } |
From: Jeff R. <jef...@us...> - 2005-11-19 14:30:49
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SvgComponents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8825/src/SvgComponents Added Files: SvgPictureBox.resx Log Message: SvgPictureBox.resx re-add, file was lost --- NEW FILE: SvgPictureBox.resx --- <?xml version="1.0" encoding="utf-8" ?> <root> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="ResMimeType"> <value>text/microsoft-resx</value> </resheader> <resheader name="Version"> <value>1.0.0.0</value> </resheader> <resheader name="Reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="Writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> </root> |
From: Jeff R. <jef...@us...> - 2005-11-19 03:15:53
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting/Wrapping In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12937/src/SharpVectorScripting/SharpVectors/Scripting/Wrapping Added Files: Css.cs CssWrapper.cs Dom.cs DomWrapper.cs Events.cs EventsWrapper.cs ScriptWrapper.cs Smil.cs SmilWrapper.cs StyleSheets.cs StyleSheetsWrapper.cs Svg.cs SvgWrapper.cs Views.cs ViewsWrapper.cs Window.cs WindowWrapper.cs Log Message: Scripting Library wrappers and monitors initial add --- NEW FILE: EventsWrapper.cs --- using System; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; namespace SharpVectors.Scripting { /// <summary> /// Implementation wrapper for IScriptableEventTarget /// </summary> public class ScriptableEventTarget : ScriptableObject, IScriptableEventTarget { public ScriptableEventTarget(object baseObject) : base (baseObject) { } #region Methods - IScriptableEventTarget public void addEventListener(string type, object listener, bool useCapture) { if (listener is Microsoft.JScript.Closure) { ClosureEventMonitor mon = ClosureEventMonitor.CreateMonitor((Microsoft.JScript.Closure)listener); ((IEventTarget)baseObject).AddEventListener(type, new EventListener(mon.EventHandler), useCapture); } } public void removeEventListener(string type, object listener, bool useCapture) { if (listener is Microsoft.JScript.Closure) { ClosureEventMonitor mon = ClosureEventMonitor.CreateMonitor((Microsoft.JScript.Closure)listener); ((IEventTarget)baseObject).RemoveEventListener(type, new EventListener(mon.EventHandler), useCapture); } } public bool dispatchEvent(IScriptableEvent evt) { return ((IEventTarget)baseObject).DispatchEvent(((IEvent)((ScriptableEvent)evt).baseObject)); } #endregion } /// <summary> /// Implementation wrapper for IScriptableEventListener /// </summary> public class ScriptableEventListener : ScriptableObject, IScriptableEventListener { public ScriptableEventListener(object baseObject) : base (baseObject) { } #region Methods - IScriptableEventListener public void handleEvent(IScriptableEvent evt) { throw new NotImplementedException(); //((IEventListener)baseObject).HandleEvent(((IEvent)((ScriptableEvent)evt).baseObject)); } #endregion } /// <summary> /// Implementation wrapper for IScriptableEvent /// </summary> public class ScriptableEvent : ScriptableObject, IScriptableEvent { const ushort CAPTURING_PHASE = 1; const ushort AT_TARGET = 2; const ushort BUBBLING_PHASE = 3; public ScriptableEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableEvent public void stopPropagation() { ((IEvent)baseObject).StopPropagation(); } public void preventDefault() { ((IEvent)baseObject).PreventDefault(); } public void initEvent(string eventTypeArg, bool canBubbleArg, bool cancelableArg) { ((IEvent)baseObject).InitEvent(eventTypeArg, canBubbleArg, cancelableArg); } #endregion #region Properties - IScriptableEvent public string type { get { return ((IEvent)baseObject).Type; } } public IScriptableEventTarget target { get { object result = ((IEvent)baseObject).Target; return (result != null) ? (IScriptableEventTarget)ScriptableObject.CreateWrapper(result) : null; } } public IScriptableEventTarget currentTarget { get { object result = ((IEvent)baseObject).CurrentTarget; return (result != null) ? (IScriptableEventTarget)ScriptableObject.CreateWrapper(result) : null; } } public ushort eventPhase { get { return (ushort)((IEvent)baseObject).EventPhase; } } public bool bubbles { get { return ((IEvent)baseObject).Bubbles; } } public bool cancelable { get { return ((IEvent)baseObject).Cancelable; } } public IScriptableDomTimeStamp timeStamp { get { object result = ((IEvent)baseObject).TimeStamp; return (result != null) ? (IScriptableDomTimeStamp)ScriptableObject.CreateWrapper(result) : null; } } #endregion } /// <summary> /// Implementation wrapper for IScriptableDocumentEvent /// </summary> public class ScriptableDocumentEvent : ScriptableObject, IScriptableDocumentEvent { public ScriptableDocumentEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableDocumentEvent public IScriptableEvent createEvent(string eventType) { object result = ((IDocumentEvent)baseObject).CreateEvent(eventType); return (result != null) ? (IScriptableEvent)ScriptableObject.CreateWrapper(result) : null; } #endregion } /// <summary> /// Implementation wrapper for IScriptableUiEvent /// </summary> public class ScriptableUiEvent : ScriptableEvent, IScriptableUiEvent { public ScriptableUiEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableUiEvent public void initUIEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableAbstractView viewArg, long detailArg) { ((IUiEvent)baseObject).InitUiEvent(typeArg, canBubbleArg, cancelableArg, ((IAbstractView)((ScriptableAbstractView)viewArg).baseObject), detailArg); } #endregion #region Properties - IScriptableUiEvent public IScriptableAbstractView view { get { object result = ((IUiEvent)baseObject).View; return (result != null) ? (IScriptableAbstractView)ScriptableObject.CreateWrapper(result) : null; } } public long detail { get { return ((IUiEvent)baseObject).Detail; } } #endregion } /// <summary> /// Implementation wrapper for IScriptableMouseEvent /// </summary> public class ScriptableMouseEvent : ScriptableUiEvent, IScriptableMouseEvent { public ScriptableMouseEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableMouseEvent public void initMouseEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableAbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, ushort buttonArg, IScriptableEventTarget relatedTargetArg) { ((IMouseEvent)baseObject).InitMouseEvent(typeArg, canBubbleArg, cancelableArg, ((IAbstractView)((ScriptableAbstractView)viewArg).baseObject), detailArg, screenXArg, screenYArg, clientXArg, clientYArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg, ((IEventTarget)((ScriptableEventTarget)relatedTargetArg).baseObject)); } #endregion #region Properties - IScriptableMouseEvent public long screenX { get { return ((IMouseEvent)baseObject).ScreenX; } } public long screenY { get { return ((IMouseEvent)baseObject).ScreenY; } } public long clientX { get { return ((IMouseEvent)baseObject).ClientX; } } public long clientY { get { return ((IMouseEvent)baseObject).ClientY; } } public bool ctrlKey { get { return ((IMouseEvent)baseObject).CtrlKey; } } public bool shiftKey { get { return ((IMouseEvent)baseObject).ShiftKey; } } public bool altKey { get { return ((IMouseEvent)baseObject).AltKey; } } public bool metaKey { get { return ((IMouseEvent)baseObject).MetaKey; } } public ushort button { get { return ((IMouseEvent)baseObject).Button; } } public IScriptableEventTarget relatedTarget { get { object result = ((IMouseEvent)baseObject).RelatedTarget; return (result != null) ? (IScriptableEventTarget)ScriptableObject.CreateWrapper(result) : null; } } #endregion } /// <summary> /// Implementation wrapper for IScriptableMutationEvent /// </summary> public class ScriptableMutationEvent : ScriptableEvent, IScriptableMutationEvent { const ushort MODIFICATION = 1; const ushort ADDITION = 2; const ushort REMOVAL = 3; public ScriptableMutationEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableMutationEvent public void initMutationEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableNode relatedNodeArg, string prevValueArg, string newValueArg, string attrNameArg, ushort attrChangeArg) { ((IMutationEvent)baseObject).InitMutationEvent(typeArg, canBubbleArg, cancelableArg, ((INode)((ScriptableNode)relatedNodeArg).baseObject), prevValueArg, newValueArg, attrNameArg, (AttrChangeType)attrChangeArg); } #endregion #region Properties - IScriptableMutationEvent public IScriptableNode relatedNode { get { object result = ((IMutationEvent)baseObject).RelatedNode; return (result != null) ? (IScriptableNode)ScriptableObject.CreateWrapper(result) : null; } } public string prevValue { get { return ((IMutationEvent)baseObject).PrevValue; } } public string newValue { get { return ((IMutationEvent)baseObject).NewValue; } } public string attrName { get { return ((IMutationEvent)baseObject).AttrName; } } public ushort attrChange { get { return (ushort)((IMutationEvent)baseObject).AttrChange; } } #endregion } } --- NEW FILE: Events.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableEventTarget /// </summary> public interface IScriptableEventTarget { void addEventListener(string type, object listener, bool useCapture); void removeEventListener(string type, object listener, bool useCapture); bool dispatchEvent(IScriptableEvent evt); } /// <summary> /// IScriptableEventListener /// </summary> public interface IScriptableEventListener { void handleEvent(IScriptableEvent evt); } /// <summary> /// IScriptableEvent /// </summary> public interface IScriptableEvent { void stopPropagation(); void preventDefault(); void initEvent(string eventTypeArg, bool canBubbleArg, bool cancelableArg); string type { get; } IScriptableEventTarget target { get; } IScriptableEventTarget currentTarget { get; } ushort eventPhase { get; } bool bubbles { get; } bool cancelable { get; } IScriptableDomTimeStamp timeStamp { get; } } /// <summary> /// IScriptableDocumentEvent /// </summary> public interface IScriptableDocumentEvent { IScriptableEvent createEvent(string eventType); } /// <summary> /// IScriptableUiEvent /// </summary> public interface IScriptableUiEvent : IScriptableEvent { void initUIEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableAbstractView viewArg, long detailArg); IScriptableAbstractView view { get; } long detail { get; } } /// <summary> /// IScriptableMouseEvent /// </summary> public interface IScriptableMouseEvent : IScriptableUiEvent { void initMouseEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableAbstractView viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, ushort buttonArg, IScriptableEventTarget relatedTargetArg); long screenX { get; } long screenY { get; } long clientX { get; } long clientY { get; } bool ctrlKey { get; } bool shiftKey { get; } bool altKey { get; } bool metaKey { get; } ushort button { get; } IScriptableEventTarget relatedTarget { get; } } /// <summary> /// IScriptableMutationEvent /// </summary> public interface IScriptableMutationEvent : IScriptableEvent { void initMutationEvent(string typeArg, bool canBubbleArg, bool cancelableArg, IScriptableNode relatedNodeArg, string prevValueArg, string newValueArg, string attrNameArg, ushort attrChangeArg); IScriptableNode relatedNode { get; } string prevValue { get; } string newValue { get; } string attrName { get; } ushort attrChange { get; } } } --- NEW FILE: Window.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableSvgWindow /// </summary> public interface IScriptableSvgWindow { string setTimeout(object scriptOrClosure, ulong delay); void clearTimeout(string token); string setInterval(object scriptOrClosure, ulong delay); void clearInterval(string token); void alert(string message); void setSrc(string newURL); string getSrc(); string printNode(IScriptableNode node); IScriptableNode parseXML(string xml, IScriptableDocument owner); IScriptableSvgDocument document { get; } IScriptableSvgDocument svgDocument { get; } IScriptableStyleSheet defaultStyleSheet{get;} long innerWidth { get; } long innerHeight { get; } void registerEval(object closure); } } --- NEW FILE: Smil.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableElementTimeControl /// </summary> public interface IScriptableElementTimeControl { void beginElement(); void beginElementAt(float offset); void endElement(); void endElementAt(float offset); } /// <summary> /// IScriptableTimeEvent /// </summary> public interface IScriptableTimeEvent : IScriptableEvent { void initTimeEvent(string typeArg, IScriptableAbstractView viewArg, long detailArg); IScriptableAbstractView view { get; } long detail { get; } } } --- NEW FILE: StyleSheets.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableStyleSheet /// </summary> public interface IScriptableStyleSheet { string type { get; } bool disabled { get; set; } IScriptableNode ownerNode { get; } IScriptableStyleSheet parentStyleSheet { get; } string href { get; } string title { get; } IScriptableMediaList media { get; } } /// <summary> /// IScriptableStyleSheetList /// </summary> public interface IScriptableStyleSheetList { IScriptableStyleSheet item(ulong index); ulong length { get; } } /// <summary> /// IScriptableMediaList /// </summary> public interface IScriptableMediaList { string item(ulong index); void deleteMedium(string oldMedium); void appendMedium(string newMedium); string mediaText { get; set; } ulong length { get; } } /// <summary> /// IScriptableLinkStyle /// </summary> public interface IScriptableLinkStyle { IScriptableStyleSheet sheet { get; } } /// <summary> /// IScriptableDocumentStyle /// </summary> public interface IScriptableDocumentStyle { IScriptableStyleSheetList styleSheets { get; } } } --- NEW FILE: Views.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableAbstractView /// </summary> public interface IScriptableAbstractView { IScriptableDocumentView document { get; } } /// <summary> /// IScriptableDocumentView /// </summary> public interface IScriptableDocumentView { IScriptableAbstractView defaultView { get; } } } --- NEW FILE: CssWrapper.cs --- using System; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; using System.Xml; namespace SharpVectors.Scripting { /// <summary> /// Implementation wrapper for IScriptableCssRuleList /// </summary> public class ScriptableCssRuleList : ScriptableObject, IScriptableCssRuleList { public ScriptableCssRuleList(object baseObject) : base (baseObject) { } [...1303 lines suppressed...] } /// <summary> /// Implementation wrapper for IScriptableDomImplementationCss /// </summary> public class ScriptableDomImplementationCss : ScriptableDomImplementation, IScriptableDomImplementationCss { public ScriptableDomImplementationCss(object baseObject) : base (baseObject) { } #region Methods - IScriptableDomImplementationCss public IScriptableCssStyleSheet createCSSStyleSheet(string title, string media) { object result = ((IDomImplementationCss)baseObject).CreateCssStyleSheet(title, media); return (result != null) ? (IScriptableCssStyleSheet)ScriptableObject.CreateWrapper(result) : null; } #endregion } } --- NEW FILE: Svg.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableSvgElement /// </summary> public interface IScriptableSvgElement : IScriptableElement { string id { get; set; } string xmlbase { get; set; } IScriptableSvgSvgElement ownerSVGElement { get; } IScriptableSvgElement viewportElement { get; } } /// <summary> /// IScriptableSvgAnimatedBoolean [...1600 lines suppressed...] /// <summary> /// IScriptableSvgMetadataElement /// </summary> public interface IScriptableSvgMetadataElement : IScriptableSvgElement { } /// <summary> /// IScriptableSvgForeignObjectElement /// </summary> public interface IScriptableSvgForeignObjectElement : IScriptableSvgElement, IScriptableSvgTests, IScriptableSvgLangSpace, IScriptableSvgExternalResourcesRequired, IScriptableSvgStylable, IScriptableSvgTransformable, IScriptableEventTarget { IScriptableSvgAnimatedLength x { get; } IScriptableSvgAnimatedLength y { get; } IScriptableSvgAnimatedLength width { get; } IScriptableSvgAnimatedLength height { get; } } } --- NEW FILE: Css.cs --- using System; namespace SharpVectors.Scripting { /// <summary> /// IScriptableCssRuleList /// </summary> public interface IScriptableCssRuleList { IScriptableCssRule item(ulong index); ulong length { get; } } /// <summary> /// IScriptableCssRule /// </summary> public interface IScriptableCssRule { ushort type { get; } string cssText { get; set; } IScriptableCssStyleSheet parentStyleSheet { get; } IScriptableCssRule parentRule { get; } } /// <summary> /// IScriptableCssStyleRule /// </summary> public interface IScriptableCssStyleRule : IScriptableCssRule { string selectorText { get; set; } IScriptableCssStyleDeclaration style { get; } } /// <summary> /// IScriptableCssMediaRule /// </summary> public interface IScriptableCssMediaRule : IScriptableCssRule { ulong insertRule(string rule, ulong index); void deleteRule(ulong index); IScriptableMediaList media { get; } IScriptableCssRuleList cssRules { get; } } /// <summary> /// IScriptableCssFontFaceRule /// </summary> public interface IScriptableCssFontFaceRule : IScriptableCssRule { IScriptableCssStyleDeclaration style { get; } } /// <summary> /// IScriptableCssPageRule /// </summary> public interface IScriptableCssPageRule : IScriptableCssRule { string selectorText { get; set; } IScriptableCssStyleDeclaration style { get; } } /// <summary> /// IScriptableCssImportRule /// </summary> public interface IScriptableCssImportRule : IScriptableCssRule { string href { get; } IScriptableMediaList media { get; } IScriptableCssStyleSheet styleSheet { get; } } /// <summary> /// IScriptableCssCharsetRule /// </summary> public interface IScriptableCssCharsetRule : IScriptableCssRule { string encoding { get; set; } } /// <summary> /// IScriptableCssUnknownRule /// </summary> public interface IScriptableCssUnknownRule : IScriptableCssRule { } /// <summary> /// IScriptableCssStyleDeclaration /// </summary> public interface IScriptableCssStyleDeclaration { string getPropertyValue(string propertyName); IScriptableCssValue getPropertyCSSValue(string propertyName); string removeProperty(string propertyName); string getPropertyPriority(string propertyName); void setProperty(string propertyName, string value, string priority); string item(ulong index); string cssText { get; set; } ulong length { get; } IScriptableCssRule parentRule { get; } } /// <summary> /// IScriptableCssValue /// </summary> public interface IScriptableCssValue { string cssText { get; set; } ushort cssValueType { get; } } /// <summary> /// IScriptableCssPrimitiveValue /// </summary> public interface IScriptableCssPrimitiveValue : IScriptableCssValue { void setFloatValue(ushort unitType, float floatValue); float getFloatValue(ushort unitType); void setStringValue(ushort stringType, string stringValue); string getStringValue(); IScriptableCounter getCounterValue(); IScriptableRect getRectValue(); IScriptableRgbColor getRGBColorValue(); ushort primitiveType { get; } } /// <summary> /// IScriptableCssValueList /// </summary> public interface IScriptableCssValueList : IScriptableCssValue { IScriptableCssValue item(ulong index); ulong length { get; } } /// <summary> /// IScriptableRgbColor /// </summary> public interface IScriptableRgbColor { IScriptableCssPrimitiveValue red { get; } IScriptableCssPrimitiveValue green { get; } IScriptableCssPrimitiveValue blue { get; } } /// <summary> /// IScriptableRect /// </summary> public interface IScriptableRect { IScriptableCssPrimitiveValue top { get; } IScriptableCssPrimitiveValue right { get; } IScriptableCssPrimitiveValue bottom { get; } IScriptableCssPrimitiveValue left { get; } } /// <summary> /// IScriptableCounter /// </summary> public interface IScriptableCounter { string identifier { get; } string listStyle { get; } string separator { get; } } /// <summary> /// IScriptableElementCssInlineStyle /// </summary> public interface IScriptableElementCssInlineStyle { IScriptableCssStyleDeclaration style { get; } } /// <summary> /// IScriptableCss2Properties /// </summary> public interface IScriptableCss2Properties { string azimuth { get; set; } string background { get; set; } string backgroundAttachment { get; set; } string backgroundColor { get; set; } string backgroundImage { get; set; } string backgroundPosition { get; set; } string backgroundRepeat { get; set; } string border { get; set; } string borderCollapse { get; set; } string borderColor { get; set; } string borderSpacing { get; set; } string borderStyle { get; set; } string borderTop { get; set; } string borderRight { get; set; } string borderBottom { get; set; } string borderLeft { get; set; } string borderTopColor { get; set; } string borderRightColor { get; set; } string borderBottomColor { get; set; } string borderLeftColor { get; set; } string borderTopStyle { get; set; } string borderRightStyle { get; set; } string borderBottomStyle { get; set; } string borderLeftStyle { get; set; } string borderTopWidth { get; set; } string borderRightWidth { get; set; } string borderBottomWidth { get; set; } string borderLeftWidth { get; set; } string borderWidth { get; set; } string bottom { get; set; } string captionSide { get; set; } string clear { get; set; } string clip { get; set; } string color { get; set; } string content { get; set; } string counterIncrement { get; set; } string counterReset { get; set; } string cue { get; set; } string cueAfter { get; set; } string cueBefore { get; set; } string cursor { get; set; } string direction { get; set; } string display { get; set; } string elevation { get; set; } string emptyCells { get; set; } string cssFloat { get; set; } string font { get; set; } string fontFamily { get; set; } string fontSize { get; set; } string fontSizeAdjust { get; set; } string fontStretch { get; set; } string fontStyle { get; set; } string fontVariant { get; set; } string fontWeight { get; set; } string height { get; set; } string left { get; set; } string letterSpacing { get; set; } string lineHeight { get; set; } string listStyle { get; set; } string listStyleImage { get; set; } string listStylePosition { get; set; } string listStyleType { get; set; } string margin { get; set; } string marginTop { get; set; } string marginRight { get; set; } string marginBottom { get; set; } string marginLeft { get; set; } string markerOffset { get; set; } string marks { get; set; } string maxHeight { get; set; } string maxWidth { get; set; } string minHeight { get; set; } string minWidth { get; set; } string orphans { get; set; } string outline { get; set; } string outlineColor { get; set; } string outlineStyle { get; set; } string outlineWidth { get; set; } string overflow { get; set; } string padding { get; set; } string paddingTop { get; set; } string paddingRight { get; set; } string paddingBottom { get; set; } string paddingLeft { get; set; } string page { get; set; } string pageBreakAfter { get; set; } string pageBreakBefore { get; set; } string pageBreakInside { get; set; } string pause { get; set; } string pauseAfter { get; set; } string pauseBefore { get; set; } string pitch { get; set; } string pitchRange { get; set; } string playDuring { get; set; } string position { get; set; } string quotes { get; set; } string richness { get; set; } string right { get; set; } string size { get; set; } string speak { get; set; } string speakHeader { get; set; } string speakNumeral { get; set; } string speakPunctuation { get; set; } string speechRate { get; set; } string stress { get; set; } string tableLayout { get; set; } string textAlign { get; set; } string textDecoration { get; set; } string textIndent { get; set; } string textShadow { get; set; } string textTransform { get; set; } string top { get; set; } string unicodeBidi { get; set; } string verticalAlign { get; set; } string visibility { get; set; } string voiceFamily { get; set; } string volume { get; set; } string whiteSpace { get; set; } string widows { get; set; } string width { get; set; } string wordSpacing { get; set; } string zIndex { get; set; } } /// <summary> /// IScriptableCssStyleSheet /// </summary> public interface IScriptableCssStyleSheet : IScriptableStyleSheet { ulong insertRule(string rule, ulong index); void deleteRule(ulong index); IScriptableCssRule ownerRule { get; } IScriptableCssRuleList cssRules { get; } } /// <summary> /// IScriptableViewCss /// </summary> public interface IScriptableViewCss : IScriptableAbstractView { IScriptableCssStyleDeclaration getComputedStyle(IScriptableElement elt, string pseudoElt); } /// <summary> /// IScriptableDocumentCss /// </summary> public interface IScriptableDocumentCss : IScriptableDocumentStyle { IScriptableCssStyleDeclaration getOverrideStyle(IScriptableElement elt, string pseudoElt); } /// <summary> /// IScriptableDomImplementationCss /// </summary> public interface IScriptableDomImplementationCss : IScriptableDomImplementation { IScriptableCssStyleSheet createCSSStyleSheet(string title, string media); } } --- NEW FILE: SmilWrapper.cs --- using System; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; namespace SharpVectors.Scripting { /// <summary> /// Implementation wrapper for IScriptableElementTimeControl /// </summary> public class ScriptableElementTimeControl : ScriptableObject, IScriptableElementTimeControl { public ScriptableElementTimeControl(object baseObject) : base (baseObject) { } #region Methods - IScriptableElementTimeControl public void beginElement() { throw new NotImplementedException(); //((IElementTimeControl)baseObject).BeginElement(); } public void beginElementAt(float offset) { throw new NotImplementedException(); //((IElementTimeControl)baseObject).BeginElementAt(offset); } public void endElement() { throw new NotImplementedException(); //((IElementTimeControl)baseObject).EndElement(); } public void endElementAt(float offset) { throw new NotImplementedException(); //((IElementTimeControl)baseObject).EndElementAt(offset); } #endregion } /// <summary> /// Implementation wrapper for IScriptableTimeEvent /// </summary> public class ScriptableTimeEvent : ScriptableEvent, IScriptableTimeEvent { public ScriptableTimeEvent(object baseObject) : base (baseObject) { } #region Methods - IScriptableTimeEvent public void initTimeEvent(string typeArg, IScriptableAbstractView viewArg, long detailArg) { throw new NotImplementedException(); //((ITimeEvent)baseObject).InitTimeEvent(typeArg, ((IAbstractView)((ScriptableAbstractView)viewArg).baseObject), detailArg); } #endregion #region Properties - IScriptableTimeEvent public IScriptableAbstractView view { get { throw new NotImplementedException(); }//object result = ((ITimeEvent)baseObject).View; return (result != null) ? (IScriptableAbstractView)ScriptableObject.CreateWrapper(result) : null; } } public long detail { get { throw new NotImplementedException(); }//return ((ITimeEvent)baseObject).Detail; } } #endregion } } --- NEW FILE: WindowWrapper.cs --- using System; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; using SharpVectors.Scripting; using System.Xml; using Microsoft.JScript; namespace SharpVectors.Scripting { /// <summary> /// Implementation wrapper for IScriptableSvgWindow /// </summary> public class ScriptableSvgWindow : ScriptableObject, IScriptableSvgWindow { public ScriptableSvgWindow(object baseObject, ScriptEngine engine) : base (baseObject) { this.Engine = engine; } public ScriptEngine Engine; #region Methods - IScriptableSvgWindow public string setTimeout(object scriptOrClosure, ulong delay) { return ScriptTimerMonitor.CreateMonitor((VsaScriptEngine)Engine, (ISvgWindow)baseObject, scriptOrClosure, delay, false); } public void clearTimeout(string token) { ScriptTimerMonitor.ClearMonitor(token); } public string setInterval(object scriptOrClosure, ulong delay) { return ScriptTimerMonitor.CreateMonitor((VsaScriptEngine)Engine, (ISvgWindow)baseObject, scriptOrClosure, delay, true); } public void clearInterval(string token) { ScriptTimerMonitor.ClearMonitor(token); } public void alert(string message) { ((ISvgWindow)baseObject).Alert(message); } public void setSrc(string newURL) { ((ISvgWindow)baseObject).Src = newURL; } public string getSrc() { return ((ISvgWindow)baseObject).Src; } public string printNode(IScriptableNode node) { return ((ISvgWindow)baseObject).PrintNode(((XmlNode)((ScriptableNode)node).baseObject)); } public IScriptableNode parseXML(string xml, IScriptableDocument owner) { object result = ((ISvgWindow)baseObject).ParseXML(xml, ((XmlDocument)((ScriptableDocument)owner).baseObject)); return (result != null) ? (IScriptableNode)ScriptableObject.CreateWrapper(result) : null; } public void registerEval(object scriptFunction) { JScriptEngine js = ((JScriptEngine)Engine); js.EvaluateFunction = (ScriptFunction)scriptFunction; } #endregion #region Properties - IScriptableWindow public IScriptableSvgDocument document { get { object result = ((ISvgWindow)baseObject).Document; return (result != null) ? (IScriptableSvgDocument)ScriptableObject.CreateWrapper(result) : null; } } public IScriptableSvgDocument svgDocument { get { object result = ((ISvgWindow)baseObject).Document; return (result != null) ? (IScriptableSvgDocument)ScriptableObject.CreateWrapper(result) : null; } } public IScriptableStyleSheet defaultStyleSheet { get { object result = ((ISvgWindow)baseObject).DefaultStyleSheet; return (result != null) ? (IScriptableStyleSheet)ScriptableObject.CreateWrapper(result) : null; } } public long innerWidth { get { return ((ISvgWindow)baseObject).InnerWidth; } } public long innerHeight { get { return ((ISvgWindow)baseObject).InnerHeight; } } #endregion } } --- NEW FILE: ViewsWrapper.cs --- using System; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; namespace SharpVectors.Scripting { /// <summary> /// Implementation wrapper for IScriptableAbstractView /// </summary> public class ScriptableAbstractView : ScriptableObject, IScriptableAbstractView { public ScriptableAbstractView(object baseObject) : base (baseObject) { } #region Properties - IScriptableAbstractView public IScriptableDocumentView document { get { object result = ((IAbstractView)baseObject).Document; return (result != null) ? (IScriptableDocumentView)ScriptableObject.CreateWrapper(result) : null; } } #endregion } /// <summary> /// Implementation wrapper for IScriptableDocumentView /// </summary> public class ScriptableDocumentView : ScriptableObject, IScriptableDocumentView { public ScriptableDocumentView(object baseObject) : base (baseObject) { } #region Properties - IScriptableDocumentView public IScriptableAbstractView defaultView { get { object result = ((IDocumentView)baseObject).DefaultView; return (result != null) ? (IScriptableAbstractView)ScriptableObject.CreateWrapper(result) : null; } } #endregion } } --- NEW FILE: ScriptWrapper.cs --- using System; using System.Collections; using SharpVectors.Dom; using SharpVectors.Dom.Css; using SharpVectors.Dom.Events; using SharpVectors.Dom.Stylesheets; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Views; using SharpVectors.Xml; using SharpVectors.Collections; namespace SharpVectors.Scripting { /// /// Base class for all wrappers /// public class ScriptableObject { internal object baseObject = null; /// <summary> /// Base constructor, if used you must assign the baseObject after the call. /// This constructor should only be called internally. Higher order classes should construct /// new wrappers using the CreateWrapper function to allow for type lookups. /// </summary> public ScriptableObject() { this.baseObject = null; } /// <summary> /// Base constructor, accepts the baseObject that will be wrapped with all inherited calls. /// This constructor should only be called internally. Higher order classes should construct /// new wrappers using the CreateWrapper function to allow for type lookups. /// </summary> /// <param name="baseObject">The object to wrap with a scriptable object.</param> public ScriptableObject(object baseObject) { this.baseObject = baseObject; } ~ScriptableObject() { // We need to remove the item from the global hash table ScriptableObject.RemoveWrapper(baseObject); } private static Object[] args = new Object[1]; private static Hashtable wrappers = new Hashtable(); /// <summary> /// Creates a new scriptable wrapper for the specified object. Use this function instead /// of calling the ScriptableObject constructor. /// </summary> /// <param name="wrappableObject">The object to wrap. It's type will be used as a key /// in a lookup for creating the correct wrappable type.</param> /// <returns>A new scriptable object that has been created with a type corresponding /// to the wrappableObject's type.</returns> public static ScriptableObject CreateWrapper(object wrappableObject) { // return null if we get null if (wrappableObject == null) return null; // Check that the static table is built if (wrapperTypes == null) InitializeWrapperTypes(); // Do we already have a wrapper for this object? WeakReference weak = (WeakReference)wrappers[wrappableObject]; ScriptableObject so = null; if (weak != null) { so = (ScriptableObject)weak.Target; if (so != null) return so; } // Return a new instance try { // Normal try { args[0] = wrappableObject; so = (ScriptableObject)wrapperTypes.CreateInstance(wrappableObject.GetType().Name, args); wrappers[wrappableObject] = new WeakReference(so); return so; } catch (Exception) { // Try the ancestor so = (ScriptableObject)wrapperTypes.CreateInstance(wrappableObject.GetType().BaseType.Name, args); wrappers[wrappableObject] = new WeakReference(so); return so; } } catch(Exception e) { throw new SvgException(SvgExceptionType.SvgWrongTypeErr, "Could not create wrappable type for " + wrappableObject.GetType().FullName, e); } } /// <summary> /// Removes the wrapper and base object key value pair. This function is called by the ScriptableObject destructor. /// </summary> /// <param name="baseObject"></param> public static void RemoveWrapper(object wrappableObject) { if (wrappableObject == null) return; // Remove it wrappers.Remove(wrappableObject); } // The table of key types to wrappable type values private static TypeDictionary wrapperTypes = null; /// <summary> /// Builds the wrapper type table for static lookups /// </summary> private static void InitializeWrapperTypes() { wrapperTypes = new TypeDictionary(); // CSS Types wrapperTypes[typeof(CssRuleList).Name] = typeof(ScriptableCssRuleList); wrapperTypes[typeof(CssRule).Name] = typeof(ScriptableCssRule); wrapperTypes[typeof(CssStyleRule).Name] = typeof(ScriptableCssStyleRule); wrapperTypes[typeof(CssMediaRule).Name] = typeof(ScriptableCssMediaRule); wrapperTypes[typeof(CssFontFaceRule).Name] = typeof(ScriptableCssFontFaceRule); wrapperTypes[typeof(CssPageRule).Name] = typeof(ScriptableCssPageRule); wrapperTypes[typeof(CssImportRule).Name] = typeof(ScriptableCssImportRule); wrapperTypes[typeof(CssCharsetRule).Name] = typeof(ScriptableCssCharsetRule); wrapperTypes[typeof(CssUnknownRule).Name] = typeof(ScriptableCssUnknownRule); wrapperTypes[typeof(CssStyleDeclaration).Name] = typeof(ScriptableCssStyleDeclaration); wrapperTypes[typeof(CssValue).Name] = typeof(ScriptableCssValue); wrapperTypes[typeof(CssPrimitiveValue).Name] = typeof(ScriptableCssPrimitiveValue); //TODO wrapperTypes[typeof(CssValueList).Name] = typeof(ScriptableCssValueList); wrapperTypes[typeof(RgbColor).Name] = typeof(ScriptableRgbColor); wrapperTypes[typeof(Rect).Name] = typeof(ScriptableRect); //TODO wrapperTypes[typeof(Counter).Name] = typeof(ScriptableCounter); //TODO wrapperTypes[typeof(ElementCssInlineStyle).Name] = typeof(ScriptableElementCssInlineStyle); //TODO wrapperTypes[typeof(Css2Properties).Name] = typeof(ScriptableCss2Properties); wrapperTypes[typeof(CssStyleSheet).Name] = typeof(ScriptableCssStyleSheet); //TODO wrapperTypes[typeof(ViewCss).Name] = typeof(ScriptableViewCss); //TODO wrapperTypes[typeof(DocumentCss).Name] = typeof(ScriptableDocumentCss); //TODO wrapperTypes[typeof(DomImplementationCss).Name] = typeof(ScriptableDomImplementationCss); // DOM Types wrapperTypes[typeof(SharpVectors.Dom.DomImplementation).Name] = typeof(ScriptableDomImplementation); wrapperTypes[typeof(System.Xml.XmlNode).Name] = typeof(ScriptableNode); wrapperTypes[typeof(SharpVectors.Dom.NodeListAdapter).Name] = typeof(ScriptableNodeList); wrapperTypes[typeof(System.Xml.XmlNodeList).Name] = typeof(ScriptableNodeList); wrapperTypes[typeof(SharpVectors.Dom.NodeListAdapter).Name] = typeof(ScriptableNodeList); wrapperTypes[typeof(System.Xml.XmlNamedNodeMap).Name] = typeof(ScriptableNamedNodeMap); wrapperTypes[typeof(System.Xml.XmlCDataSection).Name] = typeof(ScriptableCharacterData); wrapperTypes[typeof(SharpVectors.Dom.Attribute).Name] = typeof(ScriptableAttr); wrapperTypes[typeof(SharpVectors.Dom.Element).Name] = typeof(ScriptableElement); wrapperTypes[typeof(SharpVectors.Dom.Text).Name] = typeof(ScriptableText); wrapperTypes[typeof(SharpVectors.Dom.Comment).Name] = typeof(ScriptableComment); wrapperTypes[typeof(SharpVectors.Dom.CDataSection).Name] = typeof(ScriptableCDataSection); wrapperTypes[typeof(SharpVectors.Dom.DocumentType).Name] = typeof(ScriptableDocumentType); wrapperTypes[typeof(System.Xml.XmlNotation).Name] = typeof(ScriptableNotation); wrapperTypes[typeof(System.Xml.XmlEntity).Name] = typeof(ScriptableEntity); wrapperTypes[typeof(SharpVectors.Dom.EntityReference).Name] = typeof(ScriptableEntityReference); wrapperTypes[typeof(SharpVectors.Dom.ProcessingInstruction).Name] = typeof(ScriptableProcessingInstruction); wrapperTypes[typeof(SharpVectors.Dom.DocumentFragment).Name] = typeof(ScriptableDocumentFragment); wrapperTypes[typeof(SharpVectors.Dom.Document).Name] = typeof(ScriptableDocument); // Events Types wrapperTypes[typeof(EventTarget).Name] = typeof(ScriptableEventTarget); //TODO wrapperTypes[typeof(EventListener).Name] = typeof(ScriptableEventListener); wrapperTypes[typeof(Event).Name] = typeof(ScriptableEvent); //TODO, I think this is handled under Document: wrapperTypes[typeof(DocumentEvent).Name] = typeof(ScriptableDocumentEvent); wrapperTypes[typeof(UiEvent).Name] = typeof(ScriptableUiEvent); wrapperTypes[typeof(MouseEvent).Name] = typeof(ScriptableMouseEvent); wrapperTypes[typeof(MutationEvent).Name] = typeof(ScriptableMutationEvent); wrapperTypes[typeof(IUiEvent).Name] = typeof(ScriptableUiEvent); wrapperTypes[typeof(IMouseEvent).Name] = typeof(ScriptableMouseEvent); wrapperTypes[typeof(IMutationEvent).Name] = typeof(ScriptableMutationEvent); // SMIL Types //TODO wrapperTypes[typeof(ElementTimeControl).Name] = typeof(ScriptableElementTimeControl); //TODO wrapperTypes[typeof(TimeEvent).Name] = typeof(ScriptableTimeEvent); // StyleSheets Types wrapperTypes[typeof(StyleSheet).Name] = typeof(ScriptableStyleSheet); wrapperTypes[typeof(StyleSheetList).Name] = typeof(ScriptableStyleSheetList); wrapperTypes[typeof(MediaList).Name] = typeof(ScriptableMediaList); //TODO wrapperTypes[typeof(LinkStyle).Name] = typeof(ScriptableLinkStyle); //TODO wrapperTypes[typeof(DocumentStyle).Name] = typeof(ScriptableDocumentStyle); // SVG Types wrapperTypes[typeof(SvgElement).Name] = typeof(ScriptableSvgElement); wrapperTypes[typeof(SvgAnimatedBoolean).Name] = typeof(ScriptableSvgAnimatedBoolean); wrapperTypes[typeof(SvgAnimatedString).Name] = typeof(ScriptableSvgAnimatedString); wrapperTypes[typeof(SvgStringList).Name] = typeof(ScriptableSvgStringList); wrapperTypes[typeof(SvgAnimatedEnumeration).Name] = typeof(ScriptableSvgAnimatedEnumeration); //TODO wrapperTypes[typeof(SvgAnimatedInteger).Name] = typeof(ScriptableSvgAnimatedInteger); wrapperTypes[typeof(SvgNumber).Name] = typeof(ScriptableSvgNumber); wrapperTypes[typeof(SvgAnimatedNumber).Name] = typeof(ScriptableSvgAnimatedNumber); wrapperTypes[typeof(SvgNumberList).Name] = typeof(ScriptableSvgNumberList); wrapperTypes[typeof(SvgAnimatedNumberList).Name] = typeof(ScriptableSvgAnimatedNumberList); wrapperTypes[typeof(SvgLength).Name] = typeof(ScriptableSvgLength); wrapperTypes[typeof(SvgAnimatedLength).Name] = typeof(ScriptableSvgAnimatedLength); wrapperTypes[typeof(SvgLengthList).Name] = typeof(ScriptableSvgLengthList); wrapperTypes[typeof(SvgAnimatedLengthList).Name] = typeof(ScriptableSvgAnimatedLengthList); wrapperTypes[typeof(SvgAngle).Name] = typeof(ScriptableSvgAngle); wrapperTypes[typeof(SvgAnimatedAngle).Name] = typeof(ScriptableSvgAnimatedAngle); wrapperTypes[typeof(SvgColor).Name] = typeof(ScriptableSvgColor); //TODO wrapperTypes[typeof(SvgIccColor).Name] = typeof(ScriptableSvgIccColor); wrapperTypes[typeof(SvgRect).Name] = typeof(ScriptableSvgRect); wrapperTypes[typeof(SvgAnimatedRect).Name] = typeof(ScriptableSvgAnimatedRect); //No Type information wrapperTypes[typeof(SvgUnitTypes).Name] = typeof(ScriptableSvgUnitTypes); wrapperTypes[typeof(SvgStyleableElement).Name] = typeof(ScriptableSvgStylable); //TODO wrapperTypes[typeof(SvgLocatable).Name] = typeof(ScriptableSvgLocatable); wrapperTypes[typeof(SvgTransformableElement).Name] = typeof(ScriptableSvgTransformable); wrapperTypes[typeof(SvgTests).Name] = typeof(ScriptableSvgTests); //TODO wrapperTypes[typeof(SvgLangSpace).Name] = typeof(ScriptableSvgLangSpace); wrapperTypes[typeof(SvgExternalResourcesRequired).Name] = typeof(ScriptableSvgExternalResourcesRequired); wrapperTypes[typeof(SvgFitToViewBox).Name] = typeof(ScriptableSvgFitToViewBox); wrapperTypes[typeof(SvgZoomAndPan).Name] = typeof(ScriptableSvgZoomAndPan); wrapperTypes[typeof(SvgViewSpec).Name] = typeof(ScriptableSvgViewSpec); wrapperTypes[typeof(SvgURIReference).Name] = typeof(ScriptableSvgUriReference); //No Type information wrapperTypes[typeof(SvgCssRule).Name] = typeof(ScriptableSvgCssRule); //No Type information wrapperTypes[typeof(SvgRenderingIntent).Name] = typeof(ScriptableSvgRenderingIntent); wrapperTypes[typeof(SvgDocument).Name] = typeof(ScriptableSvgDocument); wrapperTypes[typeof(SvgSvgElement).Name] = typeof(ScriptableSvgSvgElement); wrapperTypes[typeof(SvgGElement).Name] = typeof(ScriptableSvgGElement); wrapperTypes[typeof(SvgDefsElement).Name] = typeof(ScriptableSvgDefsElement); wrapperTypes[typeof(SvgDescElement).Name] = typeof(ScriptableSvgDescElement); wrapperTypes[typeof(SvgTitleElement).Name] = typeof(ScriptableSvgTitleElement); wrapperTypes[typeof(SvgSymbolElement).Name] = typeof(ScriptableSvgSymbolElement); wrapperTypes[typeof(SvgUseElement).Name] = typeof(ScriptableSvgUseElement); wrapperTypes[typeof(SvgElementInstance).Name] = typeof(ScriptableSvgElementInstance); wrapperTypes[typeof(SvgElementInstanceList).Name] = typeof(ScriptableSvgElementInstanceList); wrapperTypes[typeof(SvgImageElement).Name] = typeof(ScriptableSvgImageElement); wrapperTypes[typeof(SvgSwitchElement).Name] = typeof(ScriptableSvgSwitchElement); //TODO wrapperTypes[typeof(GetSvgDocument).Name] = typeof(ScriptableGetSvgDocument); //TODO wrapperTypes[typeof(SvgStyleElement).Name] = typeof(ScriptableSvgStyleElement); wrapperTypes[typeof(SvgPoint).Name] = typeof(ScriptableSvgPoint); wrapperTypes[typeof(SvgPointList).Name] = typeof(ScriptableSvgPointList); wrapperTypes[typeof(SvgMatrix).Name] = typeof(ScriptableSvgMatrix); wrapperTypes[typeof(SvgTransform).Name] = typeof(ScriptableSvgTransform); wrapperTypes[typeof(SvgTransformList).Name] = typeof(ScriptableSvgTransformList); wrapperTypes[typeof(SvgAnimatedTransformList).Name] = typeof(ScriptableSvgAnimatedTransformList); wrapperTypes[typeof(SvgPreserveAspectRatio).Name] = typeof(ScriptableSvgPreserveAspectRatio); wrapperTypes[typeof(SvgAnimatedPreserveAspectRatio).Name] = typeof(ScriptableSvgAnimatedPreserveAspectRatio); wrapperTypes[typeof(SvgPathSeg).Name] = typeof(ScriptableSvgPathSeg); wrapperTypes[typeof(SvgPathSegClosePath).Name] = typeof(ScriptableSvgPathSegClosePath); wrapperTypes[typeof(SvgPathSegMovetoAbs).Name] = typeof(ScriptableSvgPathSegMovetoAbs); wrapperTypes[typeof(SvgPathSegMovetoRel).Name] = typeof(ScriptableSvgPathSegMovetoRel); wrapperTypes[typeof(SvgPathSegLinetoAbs).Name] = typeof(ScriptableSvgPathSegLinetoAbs); wrapperTypes[typeof(SvgPathSegLinetoRel).Name] = typeof(ScriptableSvgPathSegLinetoRel); wrapperTypes[typeof(SvgPathSegCurvetoCubicAbs).Name] = typeof(ScriptableSvgPathSegCurvetoCubicAbs); wrapperTypes[typeof(SvgPathSegCurvetoCubicRel).Name] = typeof(ScriptableSvgPathSegCurvetoCubicRel); wrapperTypes[typeof(SvgPathSegCurvetoQuadraticAbs).Name] = typeof(ScriptableSvgPathSegCurvetoQuadraticAbs); wrapperTypes[typeof(SvgPathSegCurvetoQuadraticRel).Name] = typeof(ScriptableSvgPathSegCurvetoQuadraticRel); wrapperTypes[typeof(SvgPathSegArcAbs).Name] = typeof(ScriptableSvgPathSegArcAbs); wrapperTypes[typeof(SvgPathSegArcRel).Name] = typeof(ScriptableSvgPathSegArcRel); wrapperTypes[typeof(SvgPathSegLinetoHorizontalAbs).Name] = typeof(ScriptableSvgPathSegLinetoHorizontalAbs); wrapperTypes[typeof(SvgPathSegLinetoHorizontalRel).Name] = typeof(ScriptableSvgPathSegLinetoHorizontalRel); wrapperTypes[typeof(SvgPathSegLinetoVerticalAbs).Name] = typeof(ScriptableSvgPathSegLinetoVerticalAbs); wrapperTypes[typeof(SvgPathSegLinetoVerticalRel).Name] = typeof(ScriptableSvgPathSegLinetoVerticalRel); wrapperTypes[typeof(SvgPathSegCurvetoCubicSmoothAbs).Name] = typeof(ScriptableSvgPathSegCurvetoCubicSmoothAbs); wrapperTypes[typeof(SvgPathSegCurvetoCubicSmoothRel).Name] = typeof(ScriptableSvgPathSegCurvetoCubicSmoothRel); wrapperTypes[typeof(SvgPathSegCurvetoQuadraticSmoothAbs).Name] = typeof(ScriptableSvgPathSegCurvetoQuadraticSmoothAbs); wrapperTypes[typeof(SvgPathSegCurvetoQuadraticSmoothRel).Name] = typeof(ScriptableSvgPathSegCurvetoQuadraticSmoothRel); wrapperTypes[typeof(SvgPathSegList).Name] = typeof(ScriptableSvgPathSegList); //TODO wrapperTypes[typeof(SvgAnimatedPathData).Name] = typeof(ScriptableSvgAnimatedPathData); wrapperTypes[typeof(SvgPathElement).Name] = typeof(ScriptableSvgPathElement); wrapperTypes[typeof(SvgRectElement).Name] = typeof(ScriptableSvgRectElement); wrapperTypes[typeof(SvgCircleElement).Name] = typeof(ScriptableSvgCircleElement); wrapperTypes[typeof(SvgEllipseElement).Name] = typeof(ScriptableSvgEllipseElement); wrapperTypes[typeof(SvgLineElement).Name] = typeof(ScriptableSvgLineElement); //TODO wrapperTypes[typeof(SvgAnimatedPoints).Name] = typeof(ScriptableSvgAnimatedPoints); wrapperTypes[typeof(SvgPolylineElement).Name] = typeof(ScriptableSvgPolylineElement); wrapperTypes[typeof(SvgPolygonElement).Name] = typeof(ScriptableSvgPolygonElement); wrapperTypes[typeof(SvgTextContentElement).Name] = typeof(ScriptableSvgTextContentElement); wrapperTypes[typeof(SvgTextPositioningElement).Name] = typeof(ScriptableSvgTextPositioningElement); wrapperTypes[typeof(SvgTextElement).Name] = typeof(ScriptableSvgTextElement); wrapperTypes[typeof(SvgTSpanElement).Name] = typeof(ScriptableSvgTSpanElement); wrapperTypes[typeof(SvgTRefElement).Name] = typeof(ScriptableSvgTRefElement); //TODO wrapperTypes[typeof(SvgTextPathElement).Name] = typeof(ScriptableSvgTextPathElement); //TODO wrapperTypes[typeof(SvgAltGlyphElement).Name] = typeof(ScriptableSvgAltGlyphElement); //TODO wrapperTypes[typeof(SvgAltGlyphDefElement).Name] = typeof(ScriptableSvgAltGlyphDefElement); //TODO wrapperTypes[typeof(SvgAltGlyphItemElement).Name] = typeof(ScriptableSvgAltGlyphItemElement); //TODO wrapperTypes[typeof(SvgGlyphRefElement).Name] = typeof(ScriptableSvgGlyphRefElement); wrapperTypes[typeof(SvgPaint).Name] = typeof(ScriptableSvgPaint); wrapperTypes[typeof(SvgMarkerElement).Name] = typeof(ScriptableSvgMarkerElement); //TODO wrapperTypes[typeof(SvgColorProfileElement).Name] = typeof(ScriptableSvgColorProfileElement); //TODO wrapperTypes[typeof(SvgColorProfileRule).Name] = typeof(ScriptableSvgColorProfileRule); wrapperTypes[typeof(SvgGradientElement).Name] = typeof(ScriptableSvgGradientElement); wrapperTypes[typeof(SvgLinearGradientElement).Name] = typeof(ScriptableSvgLinearGradientElement); wrapperTypes[typeof(SvgRadialGradientElement).Name] = typeof(ScriptableSvgRadialGradientElement); wrapperTypes[typeof(SvgStopElement).Name] = typeof(ScriptableSvgStopElement); wrapperTypes[typeof(SvgPatternElement).Name] = typeof(ScriptableSvgPatternElement); wrapperTypes[typeof(SvgClipPathElement).Name] = typeof(ScriptableSvgClipPathElement); wrapperTypes[typeof(SvgMaskElement).Name] = typeof(ScriptableSvgMaskElement); wrapperTypes[typeof(SvgFilterElement).Name] = typeof(ScriptableSvgFilterElement); //TODO wrapperTypes[typeof(SvgFilterPrimitiveStandardAttributes).Name] = typeof(ScriptableSvgFilterPrimitiveStandardAttributes); //TODO wrapperTypes[typeof(SvgFEBlendElement).Name] = typeof(ScriptableSvgFEBlendElement); //TODO wrapperTypes[typeof(SvgFEColorMatrixElement).Name] = typeof(ScriptableSvgFEColorMatrixElement); //TODO wrapperTypes[typeof(SvgFEComponentTransferElement).Name] = typeof(ScriptableSvgFEComponentTransferElement); //TODO wrapperTypes[typeof(SvgComponentTransferFunctionElement).Name] = typeof(ScriptableSvgComponentTransferFunctionElement); //TODO wrapperTypes[typeof(SvgFEFuncRElement).Name] = typeof(ScriptableSvgFEFuncRElement); //TODO wrapperTypes[typeof(SvgFEFuncGElement).Name] = typeof(ScriptableSvgFEFuncGElement); //TODO wrapperTypes[typeof(SvgFEFuncBElement).Name] = typeof(ScriptableSvgFEFuncBElement); //TODO wrapperTypes[typeof(SvgFEFuncAElement).Name] = typeof(ScriptableSvgFEFuncAElement); //TODO wrapperTypes[typeof(SvgFECompositeElement).Name] = typeof(ScriptableSvgFECompositeElement); //TODO wrapperTypes[typeof(SvgFEConvolveMatrixElement).Name] = typeof(ScriptableSvgFEConvolveMatrixElement); //TODO wrapperTypes[typeof(SvgFEDiffuseLightingElement).Name] = typeof(ScriptableSvgFEDiffuseLightingElement); //TODO wrapperTypes[typeof(SvgFEDistantLightElement).Name] = typeof(ScriptableSvgFEDistantLightElement); //TODO wrapperTypes[typeof(SvgFEPointLightElement).Name] = typeof(ScriptableSvgFEPointLightElement); //TODO wrapperTypes[typeof(SvgFESpotLightElement).Name] = typeof(ScriptableSvgFESpotLightElement); //TODO wrapperTypes[typeof(SvgFEDisplacementMapElement).Name] = typeof(ScriptableSvgFEDisplacementMapElement); //TODO wrapperTypes[typeof(SvgFEFloodElement).Name] = typeof(ScriptableSvgFEFloodElement); //TODO wrapperTypes[typeof(SvgFEGaussianBlurElement).Name] = typeof(ScriptableSvgFEGaussianBlurElement); //TODO wrapperTypes[typeof(SvgFEImageElement).Name] = typeof(ScriptableSvgFEImageElement); //TODO wrapperTypes[typeof(SvgFEMergeElement).Name] = typeof(ScriptableSvgFEMergeElement); //TODO wrapperTypes[typeof(SvgFEMergeNodeElement).Name] = typeof(ScriptableSvgFEMergeNodeElement); //TODO wrapperTypes[typeof(SvgFEMorphologyElement).Name] = typeof(ScriptableSvgFEMorphologyElement); //TODO wrapperTypes[typeof(SvgFEOffsetElement).Name] = typeof(ScriptableSvgFEOffsetElement); //TODO wrapperTypes[typeof(SvgFESpecularLightingElement).Name] = typeof(ScriptableSvgFESpecularLightingElement); //TODO wrapperTypes[typeof(SvgFETileElement).Name] = typeof(ScriptableSvgFETileElement); //TODO wrapperTypes[typeof(SvgFETurbulenceElement).Name] = typeof(ScriptableSvgFETurbulenceElement); //TODO wrapperTypes[typeof(SvgCursorElement).Name] = typeof(ScriptableSvgCursorElement); //TODO wrapperTypes[typeof(SvgAElement).Name] = typeof(ScriptableSvgAElement); //TODO wrapperTypes[typeof(SvgViewElement).Name] = typeof(ScriptableSvgViewElement); wrapperTypes[typeof(SvgScriptElement).Name] = typeof(ScriptableSvgScriptElement); //TODO wrapperTypes[typeof(SvgEvent).Name] = typeof(ScriptableSvgEvent); //TODO wrapperTypes[typeof(SvgZoomEvent).Name] = typeof(ScriptableSvgZoomEvent); //TODO wrapperTypes[typeof(SvgAnimationElement).Name] = typeof(ScriptableSvgAnimationElement); //TODO wrapperTypes[typeof(SvgAnimateElement).Name] = typeof(ScriptableSvgAnimateElement); //TODO wrapperTypes[typeof(SvgSetElement).Name] = typeof(ScriptableSvgSetElement); //TODO wrapperTypes[typeof(SvgAnimateMotionElement).Name] = typeof(ScriptableSvgAnimateMotionElement); //TODO wrapperTypes[typeof(SvgMPathElement).Name] = typeof(ScriptableSvgMPathElement); //TODO wrapperTypes[typeof(SvgAnimateColorElement).Name] = typeof(ScriptableSvgAnimateColorElement); //TODO wrapperTypes[typeof(SvgAnimateTransformElement).Name] = typeof(ScriptableSvgAnimateTransformElement); //TODO wrapperTypes[typeof(SvgFontElement).Name] = typeof(ScriptableSvgFontElement); //TODO wrapperTypes[typeof(SvgGlyphElement).Name] = typeof(ScriptableSvgGlyphElement); //TODO wrapperTypes[typeof(SvgMissingGlyphElement).Name] = typeof(ScriptableSvgMissingGlyphElement); //TODO wrapperTypes[typeof(SvgHKernElement).Name] = typeof(ScriptableSvgHKernElement); //TODO wrapperTypes[typeof(SvgVKernElement).Name] = typeof(ScriptableSvgVKernElement); //TODO wrapperTypes[typeof(SvgFontFaceElement).Name] = typeof(ScriptableSvgFontFaceElement); //TODO wrapperTypes[typeof(SvgFontFaceSrcElement).Name] = typeof(ScriptableSvgFontFaceSrcElement); //TODO wrapperTypes[typeof(SvgFontFaceUriElement).Name] = typeof(ScriptableSvgFontFaceUriElement); //TODO wrapperTypes[typeof(SvgFontFaceFormatElement).Name] = typeof(ScriptableSvgFontFaceFormatElement); //TODO wrapperTypes[typeof(SvgFontFaceNameElement).Name] = typeof(ScriptableSvgFontFaceNameElement); //TODO wrapperTypes[typeof(SvgDefinitionSrcElement).Name] = typeof(ScriptableSvgDefinitionSrcElement); wrapperTypes[typeof(SvgMetadataElement).Name] = typeof(ScriptableSvgMetadataElement); //TODO wrapperTypes[typeof(SvgForeignObjectElement).Name] = typeof(ScriptableSvgForeignObjectElement); // Views Types //TODO wrapperTypes[typeof(AbstractView).Name] = typeof(ScriptableAbstractView); //TODO wrapperTypes[typeof(DocumentView).Name] = typeof(ScriptableDocumentView); // Window Types wrapperTypes[typeof(SvgWindow).Name] = typeof(ScriptableSvgWindow); } public override bool Equals(Object obj) { if (obj == null) return false; return obj is ScriptableObject && this.baseObject == ((ScriptableObject)obj).baseObject; } public override int GetHashCode() { if (baseObject == null) return 0; return baseObject.GetHashCode(); } public static bool operator ==(ScriptableObject x, ScriptableObject y) { if ((object)x == null || (object)y == null) return false; return x.baseObject == y.baseObject; } public static bool operator !=(ScriptableObject x, ScriptableObject y) { return !(x == y); } } } --- NEW FILE: Dom.cs --- using System; namespace SharpVectors.Scripting { /// /// IScriptableDomTimeStamp /// public interface IScriptableDomTimeStamp { } /// <summary> /// IScriptableDomImplementation /// </summary> public interface IScriptableDomImplementation { bool hasFeature(string feature, string version); IScriptableDocumentType createDocumentType(string qualifiedName, string publicId, string systemId); IScriptableDocument createDocument(string namespaceURI, string qualifiedName, IScriptableDocumentType doctype); } /// <summary> /// IScriptableNode /// </summary> public interface IScriptableNode { IScriptableNode insertBefore(IScriptableNode newChild, IScriptableNode refChild); IScriptableNode replaceChild(IScriptableNode newChild, IScriptableNode oldChild); IScriptableNode removeChild(IScriptableNode oldChild); IScriptableNode appendChild(IScriptableNode newChild); bool hasChildNodes(); IScriptableNode cloneNode(bool deep); void normalize(); bool isSupported(string feature, string version); bool hasAttributes(); string nodeName { get; } string nodeValue { get; set; } ushort nodeType { get; } IScriptableNode parentNode { get; } IScriptableNodeList childNodes { get; } IScriptableNode firstChild { get; } IScriptableNode lastChild { get; } IScriptableNode previousSibling { get; } IScriptableNode nextSibling { get; } IScriptableNamedNodeMap attributes { get; } IScriptableDocument ownerDocument { get; } string namespaceURI { get; } string prefix { get; set; } string localName { get; } } /// <summary> /// IScriptableNode... [truncated message content] |
From: Jeff R. <jef...@us...> - 2005-11-19 03:15:53
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12937/src/SharpVectorScripting/SharpVectors/Scripting Added Files: ClosureEventMonitor.cs ScriptEventMonitor.cs ScriptTimerMonitor.cs Log Message: Scripting Library wrappers and monitors initial add --- NEW FILE: ScriptEventMonitor.cs --- using System; using System.Reflection; using Microsoft.Vsa; using Microsoft.JScript; using Microsoft.JScript.Vsa; using SharpVectors.Dom; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Events; namespace SharpVectors.Scripting { /// <summary> /// Summary description for ScriptEventMonitor. /// </summary> public class ScriptEventMonitor { private IAttribute att = null; private VsaScriptEngine engine = null; private ISvgWindow window = null; public ScriptEventMonitor(VsaScriptEngine engine, IAttribute att, ISvgWindow window) { this.att = att; this.engine = engine; this.window = window; } public void EventHandler( IEvent @event) { try { int handle = window.Document.RootElement.SuspendRedraw(60000); ((JScriptEngine)engine).Evaluate(att.Value, @event); window.Document.RootElement.UnsuspendRedraw(handle); System.GC.Collect(); System.GC.WaitForPendingFinalizers(); } catch (Exception e) { System.Windows.Forms.MessageBox.Show(e.Message + "\n" + e.StackTrace + "\n" + e.ToString()); } } } } --- NEW FILE: ClosureEventMonitor.cs --- using System; using System.Reflection; using System.Collections; using Microsoft.Vsa; using Microsoft.JScript; using Microsoft.JScript.Vsa; using SharpVectors.Dom; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Events; namespace SharpVectors.Scripting { /// <summary> /// Summary description for ClosureEventMonitor. /// </summary> public class ClosureEventMonitor { private Closure closure = null; private static Hashtable monitorMap = new Hashtable(); public static ClosureEventMonitor CreateMonitor(Closure clo) { ClosureEventMonitor mon = (ClosureEventMonitor)monitorMap[clo]; if (mon == null) { mon = new ClosureEventMonitor(clo); monitorMap[clo] = mon; } return mon; } public static ClosureEventMonitor Find(Closure clo) { return (ClosureEventMonitor)monitorMap[clo]; } public static void Clear() { monitorMap.Clear(); } public ClosureEventMonitor(Closure closure) { this.closure = closure; } public void EventHandler( IEvent @event) { VsaEngine vsa = (Microsoft.JScript.Vsa.VsaEngine)closure.engine; try { //int handle = window.Document.RootElement.SuspendRedraw(60000); Object[] args = new Object[1]; args[0] = ScriptableObject.CreateWrapper(@event); GlobalScope scope = vsa.GetMainScope(); closure.Invoke(closure.GetParent(), args); //window.Document.RootElement.UnsuspendRedraw(handle); } catch (Exception e) { System.Windows.Forms.MessageBox.Show(e.Message + "\n" + e.StackTrace + "\n" + e.ToString()); } } } } --- NEW FILE: ScriptTimerMonitor.cs --- using System; using System.Reflection; using System.Collections; using System.Timers; using Microsoft.Vsa; using Microsoft.JScript; using Microsoft.JScript.Vsa; using SharpVectors.Dom; using SharpVectors.Dom.Svg; using SharpVectors.Dom.Events; namespace SharpVectors.Scripting { /// <summary> /// Summary description for ScriptTimerMonitor. /// </summary> public class ScriptTimerMonitor { private static ArrayList timerMonitors = new ArrayList(); private object scriptOrClosure = null; private VsaScriptEngine engine = null; private ISvgWindow window = null; private Timer timer = null; public ScriptTimerMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval) { if (delay == 0) delay = 1; this.engine = engine; this.window = window; this.scriptOrClosure = scriptOrClosure; this.timer = new Timer(delay); this.timer.AutoReset = isInterval; this.timer.Elapsed += new ElapsedEventHandler(this.EventHandler); this.timer.Enabled = true; } public static string CreateMonitor(VsaScriptEngine engine, ISvgWindow window, object scriptOrClosure, ulong delay, bool isInterval) { ScriptTimerMonitor stm = new ScriptTimerMonitor(engine, window, scriptOrClosure, delay, isInterval); timerMonitors.Add(stm); return ""+stm.timer.GetHashCode(); } public static void ClearMonitor(string token) { ScriptTimerMonitor monToClear = null; foreach (ScriptTimerMonitor stm in timerMonitors) { if (""+stm.timer.GetHashCode() == token) { monToClear = stm; break; } } if (monToClear != null) { monToClear.timer.Enabled = false; monToClear.timer = null; timerMonitors.Remove(monToClear); } } public static void Reset() { foreach (ScriptTimerMonitor stm in timerMonitors) { stm.timer.Enabled = false; stm.timer = null; } timerMonitors.Clear(); } public void EventHandler(object source, ElapsedEventArgs args) { VsaEngine vsa = (Microsoft.JScript.Vsa.VsaEngine)engine.Engine; try { int handle = window.Document.RootElement.SuspendRedraw(60000); if (scriptOrClosure is Closure) { Closure closure = (Closure)scriptOrClosure; Object[] closureArgs = new Object[0]; GlobalScope scope = vsa.GetMainScope(); closure.Invoke(closure.GetParent(), closureArgs); } else ((JScriptEngine)engine).Evaluate(scriptOrClosure.ToString(), null); window.Document.RootElement.UnsuspendRedraw(handle); } catch (Exception e) { System.Windows.Forms.MessageBox.Show(scriptOrClosure.ToString() + "\n\n" + e.Message + "\n" + e.StackTrace + "\n" + e.ToString()); } // Clear this if we can if (! timer.AutoReset) { ClearMonitor(""+timer.GetHashCode()); } } } } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Clipping Masking and Compositing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Clipping Masking and Compositing Modified Files: SvgClipPathElement.cs SvgMaskElement.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgMaskElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Clipping Masking and Compositing/SvgMaskElement.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgMaskElement.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgMaskElement.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -26,7 +26,7 @@ SvgUnitType mask = SvgUnitType.ObjectBoundingBox; if(GetAttribute("maskUnits") == "userSpaceOnUse") mask = SvgUnitType.UserSpaceOnUse; - maskUnits = new SvgAnimatedEnumeration(mask); + maskUnits = new SvgAnimatedEnumeration((ushort)mask); } return maskUnits; } @@ -42,7 +42,7 @@ SvgUnitType maskContent = SvgUnitType.UserSpaceOnUse; if(GetAttribute("maskContentUnits") == "objectBoundingBox") maskContent = SvgUnitType.ObjectBoundingBox; - maskContentUnits = new SvgAnimatedEnumeration(maskContent); + maskContentUnits = new SvgAnimatedEnumeration((ushort)maskContent); } return maskContentUnits; } Index: SvgClipPathElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Clipping Masking and Compositing/SvgClipPathElement.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgClipPathElement.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgClipPathElement.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -30,7 +30,7 @@ { clipPath = SvgUnitType.ObjectBoundingBox; } - clipPathUnits = new SvgAnimatedEnumeration(clipPath); + clipPathUnits = new SvgAnimatedEnumeration((ushort)clipPath); } return clipPathUnits; } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Events In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorDom/SharpVectors/Dom/Events Modified Files: Event.cs EventListenerMap.cs EventListenerMapEntry.cs EventTarget.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: Event.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Events/Event.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Event.cs 23 Oct 2005 23:39:29 -0000 1.3 +++ Event.cs 19 Nov 2005 03:13:23 -0000 1.4 @@ -205,32 +205,33 @@ [TestFixture] public class EventTests { - public class EventMonitor - { - public int AtEvents = 0; - public int BubbledEvents = 0; - public int CapturedEvents = 0; - public int Events = 0; + public class EventMonitor + { + public int AtEvents = 0; + public int BubbledEvents = 0; + public int CapturedEvents = 0; + public int Events = 0; - public void EventHandler( - IEvent @event) - { - switch (@event.EventPhase) - { - case EventPhase.AtTarget: - AtEvents++; - break; - case EventPhase.BubblingPhase: - BubbledEvents++; - break; - case EventPhase.CapturingPhase: - CapturedEvents++; - break; - } + public void EventHandler( + IEvent @event) + { + switch (@event.EventPhase) + { + case EventPhase.AtTarget: + AtEvents++; + break; + case EventPhase.BubblingPhase: + BubbledEvents++; + break; + case EventPhase.CapturingPhase: + CapturedEvents++; + break; + } - Events++; - } - } + Events++; + } + } + public class ListenerRemover { @@ -273,32 +274,32 @@ public void TestConstructor() { Event e = new Event("mousemove", true, false); - Assertion.AssertEquals(null, e.NamespaceUri); - Assertion.AssertEquals("mousemove", e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual(null, e.NamespaceUri); + Assert.AreEqual("mousemove", e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); e = new Event("dummy", false, true); - Assertion.AssertEquals(null, e.NamespaceUri); - Assertion.AssertEquals("dummy", e.Type); - Assertion.AssertEquals(false, e.Bubbles); - Assertion.AssertEquals(true, e.Cancelable); + Assert.AreEqual(null, e.NamespaceUri); + Assert.AreEqual("dummy", e.Type); + Assert.AreEqual(false, e.Bubbles); + Assert.AreEqual(true, e.Cancelable); } [Test] public void TestConstructorNs() { Event e = new Event("uievents", "mousemove", true, false); - Assertion.AssertEquals("uievents", e.NamespaceUri); - Assertion.AssertEquals("mousemove", e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual("uievents", e.NamespaceUri); + Assert.AreEqual("mousemove", e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); e = new Event("namespace", "dummy", false, true); - Assertion.AssertEquals("namespace", e.NamespaceUri); - Assertion.AssertEquals("dummy", e.Type); - Assertion.AssertEquals(false, e.Bubbles); - Assertion.AssertEquals(true, e.Cancelable); + Assert.AreEqual("namespace", e.NamespaceUri); + Assert.AreEqual("dummy", e.Type); + Assert.AreEqual(false, e.Bubbles); + Assert.AreEqual(true, e.Cancelable); } [Test] @@ -306,10 +307,10 @@ { Event e = new Event("", true, false); - Assertion.AssertEquals(null, e.NamespaceUri); - Assertion.AssertEquals("", e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual(null, e.NamespaceUri); + Assert.AreEqual("", e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); } [Test] @@ -317,10 +318,10 @@ { Event e = new Event("namespaceUri", "", true, false); - Assertion.AssertEquals("namespaceUri", e.NamespaceUri); - Assertion.AssertEquals("", e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual("namespaceUri", e.NamespaceUri); + Assert.AreEqual("", e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); } [Test] @@ -328,10 +329,10 @@ { Event e = new Event("namespaceUri", null, true, false); - Assertion.AssertEquals("namespaceUri", e.NamespaceUri); - Assertion.AssertEquals(null, e.Type); - Assertion.AssertEquals(true, e.Bubbles); - Assertion.AssertEquals(false, e.Cancelable); + Assert.AreEqual("namespaceUri", e.NamespaceUri); + Assert.AreEqual(null, e.Type); + Assert.AreEqual(true, e.Bubbles); + Assert.AreEqual(false, e.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="createEvent01"> @@ -344,7 +345,7 @@ { IDocument document = LoadDocument("hc_staff.xml"); IEvent @event = ((IDocumentEvent)document).CreateEvent("MutationEvents"); - Assertion.AssertNotNull(@event); + Assert.IsNotNull(@event); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="createEvent02"> @@ -358,7 +359,7 @@ { IDocument document = LoadDocument("hc_staff.xml"); IEvent @event = ((IDocumentEvent)document).CreateEvent("Events"); - Assertion.AssertNotNull(@event); + Assert.IsNotNull(@event); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="createEvent03"> @@ -371,8 +372,8 @@ public void W3CTS_CreateEvent03() { IDocument document = LoadDocument("hc_staff.xml"); - IEvent @event = ((IDocumentEvent)document).CreateEvent("UIEvent"); - Assertion.AssertNotNull(@event); + IEvent @event = ((IDocumentEvent)document).CreateEvent("UIEvent"); + Assert.IsNotNull(@event); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="createEvent04"> @@ -386,7 +387,7 @@ { IDocument document = LoadDocument("hc_staff.xml"); IEvent @event = ((IDocumentEvent)document).CreateEvent("MouseEvent"); - Assertion.AssertNotNull(@event); + Assert.IsNotNull(@event); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="createEvent05"> @@ -400,7 +401,7 @@ { IDocument document = LoadDocument("hc_staff.xml"); IEvent @event = ((IDocumentEvent)document).CreateEvent("HTMLEvents"); - Assertion.AssertNotNull(@event); + Assert.IsNotNull(@event); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="DocumentEventCast01"> @@ -624,9 +625,9 @@ ((IEventTarget)document).AddEventListener("foo", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(1, eventMonitor.AtEvents); - Assertion.AssertEquals(0, eventMonitor.BubbledEvents); - Assertion.AssertEquals(0, eventMonitor.CapturedEvents); + Assert.AreEqual(1, eventMonitor.AtEvents); + Assert.AreEqual(0, eventMonitor.BubbledEvents); + Assert.AreEqual(0, eventMonitor.CapturedEvents); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent09"> @@ -646,9 +647,9 @@ ((IEventTarget)document).AddEventListener("foo", new EventListener(eventMonitor.EventHandler), true); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(eventMonitor.AtEvents, 0); - Assertion.AssertEquals(eventMonitor.BubbledEvents, 0); - Assertion.AssertEquals(eventMonitor.CapturedEvents, 0); + Assert.AreEqual(eventMonitor.AtEvents, 0); + Assert.AreEqual(eventMonitor.BubbledEvents, 0); + Assert.AreEqual(eventMonitor.CapturedEvents, 0); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent10"> @@ -668,9 +669,9 @@ ((IEventTarget)document).AddEventListener("foo", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).AddEventListener("foo", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(eventMonitor.AtEvents, 1); - Assertion.AssertEquals(eventMonitor.BubbledEvents, 0); - Assertion.AssertEquals(eventMonitor.CapturedEvents, 0); + Assert.AreEqual(eventMonitor.AtEvents, 1); + Assert.AreEqual(eventMonitor.BubbledEvents, 0); + Assert.AreEqual(eventMonitor.CapturedEvents, 0); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent11"> @@ -691,9 +692,9 @@ ((IEventTarget)document).AddEventListener("foo", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).RemoveEventListener("foo", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(eventMonitor.AtEvents, 0); - Assertion.AssertEquals(eventMonitor.BubbledEvents, 0); - Assertion.AssertEquals(eventMonitor.CapturedEvents, 0); + Assert.AreEqual(eventMonitor.AtEvents, 0); + Assert.AreEqual(eventMonitor.BubbledEvents, 0); + Assert.AreEqual(eventMonitor.CapturedEvents, 0); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent12"> @@ -717,7 +718,7 @@ ((IEventTarget)document).RemoveEventListener("food", new EventListener(eventMonitor.EventHandler), false); ((IEventTarget)document).RemoveEventListener("foo", new EventListener(otherMonitor.EventHandler), true); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(eventMonitor.Events, 1); + Assert.AreEqual(eventMonitor.Events, 1); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent13"> @@ -748,7 +749,7 @@ ((IEventTarget)document).AddEventListener("foo", new EventListener(listenerRemover2.EventHandler), false); ((IEventTarget)document).DispatchEvent(@event); - Assertion.AssertEquals(events.Count, 1); + Assert.AreEqual(events.Count, 1); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent01"> @@ -763,9 +764,9 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("Events"); Assertion.Assert(@event != null); @event.InitEvent("rotate", true, false); - Assertion.AssertEquals("rotate", @event.Type); - Assertion.AssertEquals(true, @event.Bubbles); - Assertion.AssertEquals(false, @event.Cancelable); + Assert.AreEqual("rotate", @event.Type); + Assert.AreEqual(true, @event.Bubbles); + Assert.AreEqual(false, @event.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent02"> @@ -780,8 +781,8 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("Events"); Assertion.Assert(@event != null); @event.InitEvent("rotate", false, true); - Assertion.AssertEquals(false, @event.Bubbles); - Assertion.AssertEquals(true, @event.Cancelable); + Assert.AreEqual(false, @event.Bubbles); + Assert.AreEqual(true, @event.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent03"> @@ -797,13 +798,13 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("Events"); Assertion.Assert(@event != null); @event.InitEvent("rotate", true, true); - Assertion.AssertEquals("rotate", @event.Type); - Assertion.AssertEquals(true, @event.Bubbles); - Assertion.AssertEquals(true, @event.Cancelable); + Assert.AreEqual("rotate", @event.Type); + Assert.AreEqual(true, @event.Bubbles); + Assert.AreEqual(true, @event.Cancelable); @event.InitEvent("shear", false, false); - Assertion.AssertEquals("shear", @event.Type); - Assertion.AssertEquals(false, @event.Bubbles); - Assertion.AssertEquals(false, @event.Cancelable); + Assert.AreEqual("shear", @event.Type); + Assert.AreEqual(false, @event.Bubbles); + Assert.AreEqual(false, @event.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent04"> @@ -819,9 +820,9 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("MutationEvents"); Assertion.Assert(@event != null); @event.InitEvent("rotate", true, false); - Assertion.AssertEquals("rotate", @event.Type); - Assertion.AssertEquals(true, @event.Bubbles); - Assertion.AssertEquals(false, @event.Cancelable); + Assert.AreEqual("rotate", @event.Type); + Assert.AreEqual(true, @event.Bubbles); + Assert.AreEqual(false, @event.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent05"> @@ -837,9 +838,9 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("MutationEvents"); Assertion.Assert(@event != null); @event.InitEvent("rotate", false, true); - Assertion.AssertEquals("rotate", @event.Type); - Assertion.AssertEquals(false, @event.Bubbles); - Assertion.AssertEquals(true, @event.Cancelable); + Assert.AreEqual("rotate", @event.Type); + Assert.AreEqual(false, @event.Bubbles); + Assert.AreEqual(true, @event.Cancelable); } /// <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="initEvent06"> @@ -856,13 +857,13 @@ IEvent @event = ((IDocumentEvent)document).CreateEvent("MutationEvents"); Assertion.Assert(@event != null); @event.InitEvent("rotate", true, true); - Assertion.AssertEquals("rotate", @event.Type); - Assertion.AssertEquals(true, @event.Bubbles); - Assertion.AssertEquals(true, @event.Cancelable); + Assert.AreEqual("rotate", @event.Type); + Assert.AreEqual(true, @event.Bubbles); + Assert.AreEqual(true, @event.Cancelable); @event.InitEvent("shear", false, false); - Assertion.AssertEquals("shear", @event.Type); - Assertion.AssertEquals(false, @event.Bubbles); - Assertion.AssertEquals(false, @event.Cancelable); + Assert.AreEqual("shear", @event.Type); + Assert.AreEqual(false, @event.Bubbles); + Assert.AreEqual(false, @event.Cancelable); } } Index: EventListenerMap.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Events/EventListenerMap.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- EventListenerMap.cs 23 Oct 2005 23:39:29 -0000 1.2 +++ EventListenerMap.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -20,7 +20,8 @@ private EventListenerMapEntry[] entries; private int count; - + private bool locked; + #endregion #region Private Helpers @@ -34,6 +35,7 @@ growth * GrowthFactor + GrowthBuffer]; this.count = 0; + this.locked = false; return entries; } @@ -86,7 +88,7 @@ } entries[count] = new EventListenerMapEntry( - namespaceUri, eventType, eventGroup, listener); + namespaceUri, eventType, eventGroup, listener, locked); count++; } @@ -131,9 +133,13 @@ string eventType = @event.Type; for (int i = 0; i < count; i++) { + // Check if the entry was added during this phase + if (entries[i].Locked) + continue; + string entryNamespaceUri = entries[i].NamespaceUri; - string entryEventType = entries[i].Type; - + string entryEventType = entries[i].Type; + if (entryNamespaceUri != null && namespaceUri != null) { if (entryNamespaceUri != namespaceUri) @@ -178,6 +184,22 @@ return false; } + public void Lock() + { + locked = true; + } + + public void Unlock() + { + // Unlock the map + locked = false; + + // Unlock pending entries + for (int i = 0; i < count; i++) + { + entries[i].Locked = false; + } + } #endregion } } Index: EventListenerMapEntry.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Events/EventListenerMapEntry.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- EventListenerMapEntry.cs 14 Aug 2003 13:40:50 -0000 1.1 +++ EventListenerMapEntry.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -17,17 +17,20 @@ public string Type; public object Group; public EventListener Listener; + public bool Locked; public EventListenerMapEntry( string namespaceUri, string type, object group, - EventListener listener) + EventListener listener, + bool locked) { NamespaceUri = namespaceUri; Type = type; Group = group; Listener = listener; + Locked = locked; } } } Index: EventTarget.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Events/EventTarget.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- EventTarget.cs 23 Oct 2005 23:39:29 -0000 1.5 +++ EventTarget.cs 19 Nov 2005 03:13:23 -0000 1.6 @@ -261,12 +261,14 @@ { case EventPhase.AtTarget: case EventPhase.BubblingPhase: + bubbleMap.Lock(); bubbleMap.FireEvent(@event); - + bubbleMap.Unlock(); break; case EventPhase.CapturingPhase: + captureMap.Lock(); captureMap.FireEvent(@event); - + captureMap.Unlock(); break; } } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorCss/SharpVectors/Dom/Css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorCss/SharpVectors/Dom/Css Modified Files: CssXmlElement.cs XPathSelector.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: XPathSelector.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorCss/SharpVectors/Dom/Css/XPathSelector.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- XPathSelector.cs 23 Oct 2005 23:39:29 -0000 1.6 +++ XPathSelector.cs 19 Nov 2005 03:13:23 -0000 1.7 @@ -298,10 +298,10 @@ int specificity = sel.Specificity; // specificity = 123 - specificityA = (int)Math.Floor(specificity / 100); + specificityA = (int)Math.Floor((double) specificity / 100); specificity -= specificityA*100; // specificity = 23 - specificityB = (int)Math.Floor((specificity) / 10); + specificityB = (int)Math.Floor((double) (specificity) / 10); specificity -= specificityB * 10; // specificity = 3 @@ -672,7 +672,7 @@ } [Test] - [Ignore("This test will fail if run because we are searching for id nodes based on attribute name, not DTD ID type")] + [Ignore("DTD support disabled")] public void TestIdMatchingNoDtd() { // id on <b> is not defined in the DTD as ID @@ -786,6 +786,7 @@ public void TestTargetMatching() { Console.WriteLine(doc.Url); + } */ @@ -928,6 +929,7 @@ { XPathSelector xsel = new XPathSelector(sel, nsTable); xsel.Matches(e); + // Console.WriteLine(xsel.XPath); } } Index: CssXmlElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorCss/SharpVectors/Dom/Css/CssXmlElement.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- CssXmlElement.cs 12 Feb 2005 17:21:39 -0000 1.17 +++ CssXmlElement.cs 19 Nov 2005 03:13:23 -0000 1.18 @@ -102,17 +102,19 @@ #endregion #region Update handling - public void CssInvalidate() + public virtual void CssInvalidate() { - // TODO: why is this being called during load? - cachedCSD = null; - - foreach(XmlNode child in ChildNodes) + // TODO: why is this being called during load? + foreach(XmlNode child in ChildNodes) { if (child is CssXmlElement) ((CssXmlElement)child).CssInvalidate(); } + // Kill the cache + cachedCSD = null; + + // Notify FireCssChange(); } @@ -150,6 +152,10 @@ /// <see cref="CssXmlDocument"/> public virtual void AttributeChange(Object src, XmlNodeChangedEventArgs args) { + // Invalidate the CSS, the cascade for the CSS heirarchy will need to be recomputed + // We do this before and after the change because we need to invalidate the old and new locations + CssInvalidate(); + XmlAttribute attribute = src as XmlAttribute; if(attribute != null) @@ -161,6 +167,9 @@ FireAttributeChange(src, args); FireParentNodeChange(src, args, false); FireChildNodeChange(src, args, false); + + // Invalidate the CSS, the cascade for the CSS heirarchy will need to be recomputed + CssInvalidate(); } /// <summary> @@ -179,8 +188,6 @@ style = null; break; } - // Invalidate the CSS - CssInvalidate(); } } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Shapes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Shapes Modified Files: SvgRectElement.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgRectElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Shapes/SvgRectElement.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgRectElement.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgRectElement.cs 19 Nov 2005 03:13:24 -0000 1.2 @@ -170,7 +170,7 @@ RectangleF rect = new RectangleF((float)X.AnimVal.Value, (float)Y.AnimVal.Value, (float)Width.AnimVal.Value, (float)Height.AnimVal.Value); - float rx = (float)Rx.AnimVal.Value; + float rx = (float)Rx.AnimVal.Value; float ry = (float)Ry.AnimVal.Value; if(rx == 0F && ry == 0F) @@ -267,6 +267,9 @@ case "transform": Invalidate(); break; + case "onclick": + break; + } base.HandleAttributeChange(attribute); |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorScripting Modified Files: SharpVectorScripting.csproj Log Message: Library wide changes for scripting support and automated re-rendering Index: SharpVectorScripting.csproj =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectorScripting.csproj,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- SharpVectorScripting.csproj 12 Sep 2005 15:08:23 -0000 1.7 +++ SharpVectorScripting.csproj 19 Nov 2005 03:13:24 -0000 1.8 @@ -154,6 +154,31 @@ AssemblyName = "System.Windows.Forms" HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll" /> + <Reference + Name = "SharpVectorBindings" + Project = "{D6BB65FC-240E-4241-B2ED-A7FB3F13E978}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> + <Reference + Name = "SharpVectorUtil" + Project = "{2C3D4EE6-4F71-41F0-99F6-DDAA439C88C6}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> + <Reference + Name = "SharpVectorCss" + Project = "{351B0A6E-2F6B-497A-844B-DCB5A502FB0D}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> + <Reference + Name = "SharpVectorDom" + Project = "{FE34CBC0-D23C-4A95-BA64-83A031814010}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> + <Reference + Name = "SharpVectorObjectModel" + Project = "{5D336F48-3FB9-4382-B4B9-06974C764007}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> </References> </Build> <Files> @@ -164,6 +189,11 @@ BuildAction = "Compile" /> <File + RelPath = "SharpVectors\Scripting\ClosureEventMonitor.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "SharpVectors\Scripting\JScriptEngine.cs" SubType = "Code" BuildAction = "Compile" @@ -174,10 +204,105 @@ BuildAction = "Compile" /> <File + RelPath = "SharpVectors\Scripting\ScriptEventMonitor.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\ScriptTimerMonitor.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "SharpVectors\Scripting\VsaScriptEngine.cs" SubType = "Code" BuildAction = "Compile" /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Css.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\CssWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Dom.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\DomWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Events.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\EventsWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\ScriptWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Smil.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\SmilWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\StyleSheets.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\StyleSheetsWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Svg.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\SvgWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Views.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\ViewsWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\Window.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "SharpVectors\Scripting\Wrapping\WindowWrapper.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> </CSHARP> |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorScripting/SharpVectors/Scripting Modified Files: JScriptEngine.cs ScriptEngine.cs VsaScriptEngine.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: ScriptEngine.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting/ScriptEngine.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ScriptEngine.cs 9 Jun 2003 02:26:29 -0000 1.3 +++ ScriptEngine.cs 19 Nov 2005 03:13:24 -0000 1.4 @@ -2,19 +2,21 @@ namespace SharpVectors.Scripting { - public abstract class ScriptEngine - { - #region Fields - protected object scriptGlobal; - #endregion + public abstract class ScriptEngine + { + #region Fields + protected object scriptGlobal; + #endregion - #region Constructor - protected ScriptEngine(object scriptGlobal) - { - this.scriptGlobal = scriptGlobal; - } - #endregion + #region Constructor + protected ScriptEngine(object scriptGlobal) + { + this.scriptGlobal = (new ScriptableSvgWindow(scriptGlobal, this)) as IScriptableSvgWindow; + } + #endregion - public abstract void Execute(string code); - } + public abstract void Execute(string code); + public abstract void Initialise(); + public abstract void Close(); + } } Index: VsaScriptEngine.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting/VsaScriptEngine.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- VsaScriptEngine.cs 9 Jun 2003 02:26:29 -0000 1.3 +++ VsaScriptEngine.cs 19 Nov 2005 03:13:24 -0000 1.4 @@ -3,58 +3,68 @@ namespace SharpVectors.Scripting { - public abstract class VsaScriptEngine : ScriptEngine, IVsaSite - { - #region Fields - protected IVsaEngine engine; - protected IVsaItems items; - #endregion - #region Constructor - protected VsaScriptEngine(object scriptGlobal) : base(scriptGlobal) {} - #endregion + public abstract class VsaScriptEngine : ScriptEngine, IVsaSite + { + #region Fields + protected IVsaEngine engine; + protected IVsaItems items; + #endregion - #region VsaSite interface - void IVsaSite.GetCompiledState(out Byte[] pe, out Byte[] debugInfo) - { - pe = debugInfo = null; - } + #region Constructor + protected VsaScriptEngine(object scriptGlobal) : base(scriptGlobal) {} + #endregion - object IVsaSite.GetEventSourceInstance(string itemName, string eventSourceName) - { - return this.scriptGlobal; - } + #region VsaSite interface + void IVsaSite.GetCompiledState(out Byte[] pe, out Byte[] debugInfo) + { + pe = debugInfo = null; + } - object IVsaSite.GetGlobalInstance(string name) - { - object result; + object IVsaSite.GetEventSourceInstance(string itemName, string eventSourceName) + { + return this.scriptGlobal; + } - switch (name) - { - case "window": - result = this.scriptGlobal; - break; - default: - Console.WriteLine("GlobalInstance not found: " + name); - result = null; - break; - } + object IVsaSite.GetGlobalInstance(string name) + { + object result; - return result; - } + switch (name) + { + case "window": + result = this.scriptGlobal; + break; + default: + Console.WriteLine("GlobalInstance not found: " + name); + result = null; + break; + } - void IVsaSite.Notify(string notify, object info) - { - } + return result; + } - bool IVsaSite.OnCompilerError(IVsaError e) - { - Console.WriteLine( - String.Format("Error of severity {0} on line {1}: {2}", e.Severity, e.Line, e.Description)); + void IVsaSite.Notify(string notify, object info) + { + } - // Continue to report errors - return true; - } - #endregion - } + bool IVsaSite.OnCompilerError(IVsaError e) + { + Console.WriteLine( + String.Format("Error of severity {0} on line {1}: {2}", e.Severity, e.Line, e.Description)); + + //((IScriptableSvgWindow)scriptGlobal).alert(String.Format("Compilation Error of severity {0} on line {1}: {2}", e.Severity, e.Line, e.Description)); + // Continue to report errors + return true; + } + + public IVsaEngine Engine + { + get + { + return engine; + } + } + #endregion + } } Index: JScriptEngine.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorScripting/SharpVectors/Scripting/JScriptEngine.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- JScriptEngine.cs 9 Jun 2003 02:26:29 -0000 1.2 +++ JScriptEngine.cs 19 Nov 2005 03:13:24 -0000 1.3 @@ -2,94 +2,151 @@ using System.Reflection; using System.Text; using Microsoft.Vsa; +using Microsoft.JScript; +using Microsoft.JScript.Vsa; using System.Windows.Forms; namespace SharpVectors.Scripting { - public class JScriptEngine : VsaScriptEngine - { - #region Fields - private static int counter = 0; - #endregion + public class JScriptEngine : VsaScriptEngine + { + #region Fields + private static int counter = 0; + #endregion - #region Constructors - public JScriptEngine(object scriptGlobal) : base(scriptGlobal) - { - engine = new Microsoft.JScript.Vsa.VsaEngine(); - engine.RootMoniker = "sharpvectors://jsengine/" + counter++; - engine.Site = this; - engine.InitNew(); - engine.RootNamespace = "SharpVectors.Scripting.Runtime"; - engine.GenerateDebugInfo = true; - items = engine.Items; + #region Constructors + public JScriptEngine(object scriptGlobal) : base(scriptGlobal) + { + engine = new Microsoft.JScript.Vsa.VsaEngine(); + engine.RootMoniker = "sharpvectors://jsengine/" + counter++; + engine.Site = this; + engine.InitNew(); + engine.RootNamespace = "SharpVectors.Scripting"; + engine.GenerateDebugInfo = false; + engine.RevokeCache(); + engine.SetOption("Fast", false); + + items = engine.Items; + Assembly asm = typeof(SharpVectors.Scripting.JScriptEngine).Assembly; + IVsaReferenceItem refItem = (IVsaReferenceItem)items.CreateItem(asm.Location, VsaItemType.Reference, VsaItemFlag.None); + refItem.AssemblyName = asm.Location; + } + + #endregion - // add all assemblies from this AppDomain - foreach ( Assembly asm in AppDomain.CurrentDomain.GetAssemblies() ) - { - string assemName = asm.Location; - IVsaReferenceItem refItem = (IVsaReferenceItem) items.CreateItem(assemName, VsaItemType.Reference, VsaItemFlag.None); + #region Public Methods + + public override void Initialise() + { + // Get the Items + items = engine.Items; + // Load the preamble code + string preamble = @" + var document = window.document; + function setTimeout(script : String, delay : ulong) : String { return window.setTimeout(script, delay); } + function clearTimeout(token : String) : void { window.clearTimeout(token); } + function setInterval(script : String, delay : ulong) : String { return window.setInterval(script, delay); } + function clearInterval(token : String) : void { window.clearInterval(token); } + function getSrc() : String { return window.getSrc(); } + function printNode(node : Object) : String { return window.printNode(node); } + function parseXML(xml : String, owner : Object) : Object { return window.parseXML(xml, owner); } + function alert(msg : String) : void { window.alert(msg); } + function browserEval(src : String, evt : Object) : String { return eval( src, 'unsafe'); } + window.registerEval(browserEval); + "; + IVsaCodeItem codeItem = (IVsaCodeItem)items.CreateItem("Preamble", VsaItemType.Code, VsaItemFlag.None); + codeItem.SourceText = preamble; + + // Add the global "window" item + IVsaGlobalItem globalItem = (IVsaGlobalItem) items.CreateItem("window", VsaItemType.AppGlobal, VsaItemFlag.None); + globalItem.TypeString = "SharpVectors.Scripting.IScriptableSvgWindow"; + globalItem.ExposeMembers = true; + } - refItem.AssemblyName = assemName; - } + public override void Close() + { + engine.Close(); + } - // Load the preamble code - string preamble = @" -import System.Xml; -function alert(msg : String) : void { window.alert(msg); } -function printNode(node : XmlNode) : String { return window.PrintNode(node); } -"; - IVsaCodeItem codeItem = (IVsaCodeItem)items.CreateItem("Preamble", VsaItemType.Code, VsaItemFlag.None); - codeItem.SourceText = preamble; + public override void Execute(string code) + { + try + { + if (engine.IsRunning) + { + engine.Reset(); } - #endregion - #region Public Methods - public override void Execute(string code) + // Load the script code + IVsaCodeItem codeItem = (IVsaCodeItem) items.CreateItem("Script", VsaItemType.Code, VsaItemFlag.None); + codeItem.SourceText = code; + + // compile and run + if (engine.Compile()) { - // Load the script code - IVsaCodeItem codeItem = (IVsaCodeItem) items.CreateItem("Script", VsaItemType.Code, VsaItemFlag.None); - codeItem.SourceText = code; + engine.Run(); + } + } + catch (Exception e) + { + MessageBox.Show(e.Message + "\n" + e.StackTrace + "\n" + e.ToString()); + } + } - // Add the global "window" item - IVsaGlobalItem globalItem = (IVsaGlobalItem) items.CreateItem("window", VsaItemType.AppGlobal, VsaItemFlag.None); - globalItem.TypeString = "SharpVectors.Dom.Svg.SvgWindow"; + private ScriptFunction evaluateFunction = null; + public ScriptFunction EvaluateFunction + { + get + { + return evaluateFunction; + } + set + { + evaluateFunction = value; + } + } - // compile and run - engine.Compile(); - engine.Run(); - } - #endregion + public object Evaluate(string code, object @event) + { + if (evaluateFunction == null) + return null; + Object[] args = new Object[2]; + args[0] = code; + args[1] = ScriptableObject.CreateWrapper(@event); + return evaluateFunction.Invoke(evaluateFunction.GetParent(), args); + } + #endregion - #region Private Methods - private void showTypeInfo() + #region Private Methods + private void showTypeInfo() + { + if ( engine.IsRunning ) + { + // show types + System.Type[] types = engine.Assembly.GetTypes(); + StringBuilder typeNames = new StringBuilder(); + foreach ( Type type in types ) { - if ( engine.IsRunning ) + typeNames.Append(type.FullName); + typeNames.Append("\n"); + MethodInfo[] methods = type.GetMethods(); + foreach ( MethodInfo method in methods ) + { + typeNames.Append(" "); + typeNames.Append(method.Name); + typeNames.Append("("); + foreach ( ParameterInfo param in method.GetParameters() ) { - // show types - System.Type[] types = engine.Assembly.GetTypes(); - StringBuilder typeNames = new StringBuilder(); - foreach ( Type type in types ) - { - typeNames.Append(type.FullName); - typeNames.Append("\n"); - MethodInfo[] methods = type.GetMethods(); - foreach ( MethodInfo method in methods ) - { - typeNames.Append(" "); - typeNames.Append(method.Name); - typeNames.Append("("); - foreach ( ParameterInfo param in method.GetParameters() ) - { - typeNames.Append(" "); - typeNames.Append(param.ParameterType.Name); - } - typeNames.Append(" )\n"); - } - } - MessageBox.Show(typeNames.ToString()); + typeNames.Append(" "); + typeNames.Append(param.ParameterType.Name); } + typeNames.Append(" )\n"); + } } - #endregion - } + MessageBox.Show(typeNames.ToString()); + } + } + #endregion + } } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Paint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Paint Modified Files: SvgMarkerElement.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgMarkerElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Paint/SvgMarkerElement.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- SvgMarkerElement.cs 27 May 2003 20:44:04 -0000 1.10 +++ SvgMarkerElement.cs 19 Nov 2005 03:13:23 -0000 1.11 @@ -85,7 +85,7 @@ type = SvgMarkerUnit.StrokeWidth; break; } - markerUnits = new SvgAnimatedEnumeration(type); + markerUnits = new SvgAnimatedEnumeration((ushort)type); } return markerUnits; } @@ -135,11 +135,11 @@ { if(GetAttribute("orient") == "auto") { - orientType = new SvgAnimatedEnumeration(SvgMarkerOrient.Auto); + orientType = new SvgAnimatedEnumeration((ushort)SvgMarkerOrient.Auto); } else { - orientType = new SvgAnimatedEnumeration(SvgMarkerOrient.Angle); + orientType = new SvgAnimatedEnumeration((ushort)SvgMarkerOrient.Angle); } } return orientType; |
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types Modified Files: SvgAnimatedEnumeration.cs SvgElement.cs SvgMatrix.cs SvgPreserveAspectRatio.cs SvgViewSpec.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgAnimatedEnumeration.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgAnimatedEnumeration.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgAnimatedEnumeration.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgAnimatedEnumeration.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -11,19 +11,19 @@ public class SvgAnimatedEnumeration : ISvgAnimatedEnumeration { #region Private Fields - private Enum baseVal; - private Enum animVal; + private ushort baseVal; + private ushort animVal; #endregion #region Constructor - public SvgAnimatedEnumeration(Enum val) + public SvgAnimatedEnumeration(ushort val) { baseVal = animVal = val; } #endregion #region ISvgAnimatedEnumeration Interface - public Enum BaseVal + public ushort BaseVal { get { @@ -35,7 +35,7 @@ } } - public Enum AnimVal + public ushort AnimVal { get { Index: SvgMatrix.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgMatrix.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- SvgMatrix.cs 12 Feb 2005 17:26:56 -0000 1.10 +++ SvgMatrix.cs 19 Nov 2005 03:13:23 -0000 1.11 @@ -40,31 +40,37 @@ public float A { get { return (float) this.a; } + set { this.a = value; } } public float B { get { return (float) this.b; } + set { this.b = value; } } public float C { get { return (float) this.c; } + set { this.c = value; } } public float D { get { return (float) this.d; } + set { this.d = value; } } public float E { get { return (float) this.e; } + set { this.e = value; } } public float F { get { return (float) this.f; } + set { this.f = value; } } public ISvgMatrix Multiply(ISvgMatrix secondMatrix) Index: SvgPreserveAspectRatio.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgPreserveAspectRatio.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgPreserveAspectRatio.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgPreserveAspectRatio.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -170,7 +170,11 @@ get { return align; - } + } + set + { + throw new NotImplementedException(); + } } private SvgMeetOrSlice meetOrSlice; @@ -180,7 +184,11 @@ { return meetOrSlice; } - } + set + { + throw new NotImplementedException(); + } + } #endregion } } Index: SvgViewSpec.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgViewSpec.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgViewSpec.cs 14 Feb 2005 14:17:18 -0000 1.1 +++ SvgViewSpec.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -80,6 +80,11 @@ } return SvgZoomAndPanType.Unknown; } + set + { + throw new NotImplementedException(); + } + } #endregion Index: SvgElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Basic types/SvgElement.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SvgElement.cs 23 Oct 2005 23:39:29 -0000 1.2 +++ SvgElement.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -175,6 +175,10 @@ return s; } + set + { + SetAttribute("xml:space", value); + } } public string XmlLang @@ -194,6 +198,10 @@ return s; } + set + { + this.SetAttribute("xml:lang", value); + } } #endregion |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure Modified Files: SvgDocument.cs SvgSvgElement.cs SvgTransformableElement.cs SvgWindow.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgDocument.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure/SvgDocument.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SvgDocument.cs 23 Oct 2005 23:39:29 -0000 1.2 +++ SvgDocument.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -587,12 +587,12 @@ { collectedIds = new Hashtable(); // TODO: handle xml:id, handle duplicate ids? - XmlNodeList ids = this.SelectNodes("//*/@id"); + XmlNodeList ids = this.SelectNodes("//*/@id"); foreach (XmlAttribute node in ids) { try { - collectedIds.Add(node.Value, node.OwnerElement); + collectedIds.Add(node.Value, node.OwnerElement); } catch (Exception) { Index: SvgSvgElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure/SvgSvgElement.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SvgSvgElement.cs 11 Sep 2005 18:26:49 -0000 1.2 +++ SvgSvgElement.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -1,5 +1,8 @@ using System; using System.Xml; +using System.Collections; +using System.Drawing; +using System.Timers; namespace SharpVectors.Dom.Svg { @@ -26,6 +29,11 @@ { return CurrentView.ZoomAndPan; } + set + { + throw new NotImplementedException(); + } + } #endregion @@ -138,6 +146,10 @@ { return GetAttribute("contentScriptType"); } + set + { + SetAttribute("contentScriptType", value); + } } /// <summary> @@ -150,6 +162,10 @@ { return GetAttribute("contentStyleType"); } + set + { + SetAttribute("contentStyleType", value); + } } @@ -335,6 +351,7 @@ if (this == OwnerDocument.RootElement) { // TODO: Invalidate! Fire OnZoom + currentView = null; currentScale = value; cachedViewBoxTransform = null; viewport = null; @@ -487,19 +504,47 @@ currentTranslate = CreateSvgPoint(); } return currentTranslate; - } else + } + else return OwnerDocument.RootElement.CurrentTranslate; } } + private ArrayList redrawTimers = new ArrayList(); + + public void RedrawTimerElapsed(object source, ElapsedEventArgs args) + { + UnsuspendRedraw(((Timer)source).GetHashCode()); + } + /// <summary> - /// Takes a time-out value which indicates that redraw shall not occur until: (a) the corresponding unsuspendRedraw(suspend_handle_id) call has been made, (b) an unsuspendRedrawAll() call has been made, or (c) its timer has timed out. In environments that do not support interactivity (e.g., print media), then redraw shall not be suspended. suspend_handle_id = suspendRedraw(max_wait_milliseconds) and unsuspendRedraw(suspend_handle_id) must be packaged as balanced pairs. When you want to suspend redraw actions as a collection of SVG DOM changes occur, then precede the changes to the SVG DOM with a method call similar to suspend_handle_id = suspendRedraw(max_wait_milliseconds) and follow the changes with a method call similar to unsuspendRedraw(suspend_handle_id). Note that multiple suspendRedraw calls can be used at once and that each such method call is treated independently of the other suspendRedraw method calls. + /// Takes a time-out value which indicates that redraw shall not occur until: (a) the + /// corresponding unsuspendRedraw(suspend_handle_id) call has been made, (b) an + /// unsuspendRedrawAll() call has been made, or (c) its timer has timed out. In + /// environments that do not support interactivity (e.g., print media), then redraw shall + /// not be suspended. suspend_handle_id = suspendRedraw(max_wait_milliseconds) and + /// unsuspendRedraw(suspend_handle_id) must be packaged as balanced pairs. When you + /// want to suspend redraw actions as a collection of SVG DOM changes occur, then + /// precede the changes to the SVG DOM with a method call similar to + /// suspend_handle_id = suspendRedraw(max_wait_milliseconds) and follow the changes with + /// a method call similar to unsuspendRedraw(suspend_handle_id). Note that multiple + /// suspendRedraw calls can be used at once and that each such method call is treated + /// independently of the other suspendRedraw method calls. /// </summary> - /// <param name="max_wait_milliseconds">The amount of time in milliseconds to hold off before redrawing the device. Values greater than 60 seconds will be truncated down to 60 seconds.</param> + /// <param name="max_wait_milliseconds">The amount of time in milliseconds to hold off + /// before redrawing the device. Values greater than 60 seconds will be truncated + /// down to 60 seconds.</param> /// <returns>A number which acts as a unique identifier for the given suspendRedraw() call. This value must be passed as the parameter to the corresponding unsuspendRedraw() method call.</returns> public int SuspendRedraw(int maxWaitMilliseconds) { - throw new NotImplementedException(); + if (maxWaitMilliseconds > 60000) + maxWaitMilliseconds = 60000; + Timer t = new Timer(maxWaitMilliseconds); + t.AutoReset = false; + t.Elapsed += new ElapsedEventHandler(this.RedrawTimerElapsed); + t.Enabled = true; + redrawTimers.Add(t); + return t.GetHashCode(); } /// <summary> @@ -509,17 +554,40 @@ /// <exception cref="DomException">This method will raise a DOMException with value NOT_FOUND_ERR if an invalid value (i.e., no such suspend_handle_id is active) for suspend_handle_id is provided.</exception> public void UnsuspendRedraw(int suspendHandleId) { - throw new NotImplementedException(); + Timer timer = null; + foreach (Timer t in redrawTimers) + { + if (t.GetHashCode() == suspendHandleId) + { + timer = t; + break; + } + } + if (timer == null) + throw new DomException(DomExceptionType.NotFoundErr, "Invalid handle submitted to unsuspendRedraw"); + + timer.Enabled = false; + redrawTimers.Remove(timer); + if (OwnerDocument.Window.Renderer.InvalidRect != RectangleF.Empty) + OwnerDocument.Window.Renderer.Render((ISvgDocument)OwnerDocument); + } /// <summary> - /// Cancels all currently active suspendRedraw() method calls. This method is most useful + /// Cancels all currently active suspendRedraw() method calls. This method is most + /// useful /// at the very end of a set of SVG DOM calls to ensure that all pending suspendRedraw() /// method calls have been cancelled. /// </summary> public void UnsuspendRedrawAll() { - throw new NotImplementedException(); + foreach (Timer t in redrawTimers) + { + t.Enabled = false; + } + redrawTimers.Clear(); + if (OwnerDocument.Window.Renderer.InvalidRect != RectangleF.Empty) + OwnerDocument.Window.Renderer.Render((ISvgDocument)OwnerDocument); } /// <summary> @@ -528,7 +596,8 @@ /// </summary> public void ForceRedraw() { - throw new NotImplementedException(); + OwnerDocument.Window.Renderer.InvalidRect = RectangleF.Empty; + OwnerDocument.Window.Renderer.Render((ISvgDocument)OwnerDocument); } /// <summary> @@ -807,21 +876,45 @@ public void Resize() { + // TODO: Invalidate! Fire SVGResize + width = null; + height = null; + x = null; + y = null; + currentView = null; + cachedViewBoxTransform = null; + viewport = null; + svgFitToViewBox = null; + svgFitToViewBox = new SvgFitToViewBox(this); if (this == OwnerDocument.RootElement) { - // TODO: Invalidate! Fire SVGResize - cachedViewBoxTransform = null; - viewport = null; - width = null; - height = null; - x = null; - y = null; - svgFitToViewBox = null; - svgFitToViewBox = new SvgFitToViewBox(this); + // TODO } else (OwnerDocument.RootElement as SvgSvgElement).Resize(); } + + #region Update handling + public override void HandleAttributeChange(XmlAttribute attribute) + { + if(attribute.NamespaceURI.Length == 0) + { + switch(attribute.LocalName) + { + case "x": + case "y": + case "width": + case "height": + case "viewBox": + case "preserveAspectRatio": + Resize(); + break; + } + + base.HandleAttributeChange(attribute); + } + } + #endregion } } Index: SvgWindow.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure/SvgWindow.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgWindow.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgWindow.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -8,282 +8,178 @@ using SharpVectors.Collections; using SharpVectors.Dom.Svg.Rendering; -using SharpVectors.Scripting; +using SharpVectors.Dom.Events; using SharpVectors.Xml; namespace SharpVectors.Dom.Svg { - public class SvgWindow : ISvgWindow - { - #region Contructors - [Obsolete("This constructor is obsolete and will be removed in future versions.")] - public SvgWindow(long innerWidth, long innerHeight) - { - this.innerWidth = innerWidth; - this.innerHeight = innerHeight; - } - - public SvgWindow(long innerWidth, long innerHeight, ISvgRenderer renderer) - { - this.renderer = renderer; - if(this.renderer != null) - { - this.renderer.Window = this; - } - - this.innerWidth = innerWidth; - this.innerHeight = innerHeight; - } + public class SvgWindow : ISvgWindow + { + #region Contructors + [Obsolete("This constructor is obsolete and will be removed in future versions.")] + public SvgWindow(long innerWidth, long innerHeight) + { + this.innerWidth = innerWidth; + this.innerHeight = innerHeight; + } - public SvgWindow(SvgWindow parentWindow, long innerWidth, long innerHeight) : this(innerWidth, innerHeight, parentWindow.Renderer) - { - this.parentWindow = parentWindow; - } + public SvgWindow(long innerWidth, long innerHeight, ISvgRenderer renderer) + { + this.renderer = renderer; + if(this.renderer != null) + { + this.renderer.Window = this; + } - public SvgWindow(Control control, ISvgRenderer renderer) - { - if ( control == null ) - { - throw new NullReferenceException( "control cannot be null" ); - } - else - { - this.control = control; - this.renderer = renderer; - this.renderer.Window = this; + this.innerWidth = innerWidth; + this.innerHeight = innerHeight; + } - // setup default script engines - // NOTE: I believe this is the only constructor where this is - // needed since this is the only constructor involving a - // potentially interactive SVG - scriptEngineByMimeType = new TypeDictionary(); + public SvgWindow(SvgWindow parentWindow, long innerWidth, long innerHeight) : this(innerWidth, innerHeight, parentWindow.Renderer) + { + this.parentWindow = parentWindow; + } - SetMimeTypeEngineType("text/jscript.net", typeof(JScriptEngine)); - } - } - #endregion + public SvgWindow(Control control, ISvgRenderer renderer) + { + if ( control == null ) + { + throw new NullReferenceException( "control cannot be null" ); + } + else + { + this.control = control; + this.renderer = renderer; + this.renderer.Window = this; + } + } + #endregion - #region Private fields - private Control control = null; - private Hashtable referencedWindows = new Hashtable(); - private Hashtable referencedFiles = new Hashtable(); - private TypeDictionary scriptEngineByMimeType; - #endregion + #region Private fields + private Control control = null; + private Hashtable referencedWindows = new Hashtable(); + private Hashtable referencedFiles = new Hashtable(); + #endregion - #region Public properties - private SvgWindow parentWindow = null; - public SvgWindow ParentWindow - { - get - { - return parentWindow; - } - } + #region Public properties + private SvgWindow parentWindow = null; + public SvgWindow ParentWindow + { + get + { + return parentWindow; + } + } - private ISvgRenderer renderer; - public ISvgRenderer Renderer - { - get { return renderer; } - set { renderer = value; } - } - #endregion + private ISvgRenderer renderer; + public ISvgRenderer Renderer + { + get { return renderer; } + set { renderer = value; } + } + #endregion - #region Public methods - public void SetMimeTypeEngineType(string mimeType, Type engineType) + #region Public methods + /// <summary> /// Create and assign an empty SvgDocument to this window. This is needed only in situations where the library user needs to create an SVG DOM tree outside of the usual LoadSvgDocument mechanism. /// </summary> + public SvgDocument CreateEmptySvgDocument() + { + return document = new SvgDocument(this); + } + #endregion + + #region Implementation of ISvgWindow + private long innerWidth; + public long InnerWidth + { + get + { + if(control != null) { - scriptEngineByMimeType[mimeType] = engineType; + return control.Width; } - - /// <summary> /// Create and assign an empty SvgDocument to this window. This is needed only in situations where the library user needs to create an SVG DOM tree outside of the usual LoadSvgDocument mechanism. /// </summary> - public SvgDocument CreateEmptySvgDocument() + else { - return document = new SvgDocument(this); + return innerWidth; } + } + set + { + this.innerWidth = value; + } + } - /*public void Render() + private long innerHeight; + public long InnerHeight + { + get + { + if(control != null) { - if ( this.document != null && renderer != null && InnerWidth > 0 && InnerHeight > 0 ) { - renderer.BeforeRender(); - document.Render(renderer); - renderer.AfterRender(); - } - }*/ - - public void Alert(string message) - { - MessageBox.Show(message); + return control.Height; } - #endregion - - #region Private Methods - /// <summary> /// Collect the text in all script elements, build engine and execute. Note that this is very rough right now...just trying to get a simple case working - KL /// </summary> - private void executeScripts() + else { - Hashtable codeByMimeType = new Hashtable(); - StringBuilder codeBuilder; - - XmlNodeList scripts = document.GetElementsByTagName("script", SvgDocument.SvgNamespace); - StringBuilder code = new StringBuilder(); - - foreach ( XmlElement script in scripts ) - { - string type = script.GetAttribute("type"); - - if ( scriptEngineByMimeType.Contains(type) ) - { - // make sure we have a StringBuilder for this MIME type - if ( codeByMimeType.Contains(type) ) - codeByMimeType[type] = new StringBuilder(); - - // grab this MIME type's codeBuilder - codeBuilder = (StringBuilder) codeByMimeType[type]; - - if ( script.HasChildNodes ) - { - // process each child that is text node or a CDATA section - foreach ( XmlNode node in script.ChildNodes ) - { - if ( node.NodeType == XmlNodeType.CDATA || node.NodeType == XmlNodeType.Text ) - { - code.Append(node.Value); - } - } - } - else - { - // need to handle potential external reference here - } - } - } - - // execute code for all script engines - foreach ( string mimeType in codeByMimeType.Keys ) - { - codeBuilder = (StringBuilder) codeByMimeType[mimeType]; - - if ( codeBuilder.Length > 0 ) - { - object[] args = new object[] { this }; - - ScriptEngine engine = (ScriptEngine) scriptEngineByMimeType.CreateInstance(mimeType, args); - engine.Execute( codeBuilder.ToString() ); - } - } + return innerHeight; } + } + set + { + this.innerHeight = value; + } + } - #endregion - - #region Implementation of ISvgWindow - private long innerWidth; - public long InnerWidth - { - get - { - if(control != null) - { - return control.Width; - } - else - { - return innerWidth; - } - } - set - { - this.innerWidth = value; - } - } - - private long innerHeight; - public long InnerHeight - { - get - { - if(control != null) - { - return control.Height; - } - else - { - return innerHeight; - } - } - set - { - this.innerHeight = value; - } - } - - public void ClearInterval(object interval) - { - - } - - public void ClearTimeout(object timeout) - { - - } - - public XmlDocumentFragment ParseXML(string source, XmlDocument document) - { - XmlDocumentFragment frag = document.CreateDocumentFragment(); - frag.InnerXml = source; - return frag; - } - - public string PrintNode(System.Xml.XmlNode node) - { - return node.OuterXml; - } + public XmlDocumentFragment ParseXML(string source, XmlDocument document) + { + XmlDocumentFragment frag = document.CreateDocumentFragment(); + frag.InnerXml = source; + return frag; + } - public object SetInterval(string code, long delay) - { - return null; - } + public string PrintNode(System.Xml.XmlNode node) + { + return node.OuterXml; + } - public object SetTimeout(string code, long delay) - { - return null; - } + public SharpVectors.Dom.Stylesheets.IStyleSheet DefaultStyleSheet + { + get + { + return null; + } + } - public SharpVectors.Dom.Stylesheets.IStyleSheet DefaultStyleSheet - { - get - { - return null; - } - } + private SvgDocument document; + public ISvgDocument Document + { + get + { + return document; + } + set + { + document = (SvgDocument)value; + } + } - private SvgDocument document; - public ISvgDocument Document - { - get - { - return document; - } - set - { - document = (SvgDocument)value; - } - } + public void Alert(string message) + { + MessageBox.Show(message); + } - public string Src - { - get - { - return (document != null) ? document.Url : String.Empty; - } - set - { - Uri uri = new Uri(new Uri(Application.ExecutablePath), value); + public string Src + { + get + { + return (document != null) ? document.Url : String.Empty; + } + set + { + Uri uri = new Uri(new Uri(Application.ExecutablePath), value); - document = new SvgDocument(this); - document.Load(uri.AbsoluteUri); - - // Execute all script elements - //executeScripts(); - } - } + document = new SvgDocument(this); + document.Load(uri.AbsoluteUri); + } + } /// <summary> /// This is expected to be called by the host @@ -297,6 +193,6 @@ if (Document != null && Document.RootElement != null) (Document.RootElement as SvgSvgElement).Resize(); } - #endregion - } + #endregion + } } Index: SvgTransformableElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Document Structure/SvgTransformableElement.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SvgTransformableElement.cs 23 Oct 2005 23:39:29 -0000 1.2 +++ SvgTransformableElement.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -70,6 +70,11 @@ GraphicsPath gp = gdiPathElm.GetGraphicsPath(); SvgMatrix svgMatrix = (SvgMatrix)this.GetScreenCTM(); RectangleF bounds = gp.GetBounds(svgMatrix.ToMatrix()); + string strokeWidth = this.GetPropertyValue("stroke-width"); + if(strokeWidth.Length == 0) strokeWidth = "1px"; + SvgLength strokeWidthLength = new SvgLength(this, "stroke-width", SvgLengthDirection.Viewport, strokeWidth); + float sw = (float)strokeWidthLength.Value; + margin += sw; bounds = RectangleF.Inflate(bounds, margin, margin); return bounds; } @@ -250,6 +255,22 @@ #region Update handling + public override void CssInvalidate() + { + base.CssInvalidate(); + + if (renderingNode != null) + { + // Quick-cache + renderingNode.ScreenRegion = GetBRect(0); + OwnerDocument.Window.Renderer.InvalidateRect(renderingNode.ScreenRegion); + } + else + { + OwnerDocument.Window.Renderer.InvalidateRect(GetBRect(0)); + } + } + public override void HandleAttributeChange(XmlAttribute attribute) { if(attribute.NamespaceURI.Length == 0) |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Text In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Text Modified Files: SvgTextContentElement.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgTextContentElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Text/SvgTextContentElement.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgTextContentElement.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgTextContentElement.cs 19 Nov 2005 03:13:24 -0000 1.2 @@ -102,6 +102,7 @@ public void Invalidate() { + CssInvalidate(); gp = null; renderingNode = null; } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel Modified Files: SharpVectorObjectModel.csproj Log Message: Library wide changes for scripting support and automated re-rendering Index: SharpVectorObjectModel.csproj =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectorObjectModel.csproj,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- SharpVectorObjectModel.csproj 12 Sep 2005 15:08:23 -0000 1.58 +++ SharpVectorObjectModel.csproj 19 Nov 2005 03:13:23 -0000 1.59 @@ -150,26 +150,11 @@ HintPath = "..\..\..\..\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Data.dll" /> <Reference - Name = "Microsoft.Vsa" - AssemblyName = "Microsoft.Vsa" - HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Microsoft.Vsa.dll" - /> - <Reference - Name = "Microsoft.JScript" - AssemblyName = "Microsoft.JScript" - HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Microsoft.JScript.dll" - /> - <Reference Name = "SharpVectorCss" Project = "{351B0A6E-2F6B-497A-844B-DCB5A502FB0D}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> <Reference - Name = "SharpVectorScripting" - Project = "{2C56C191-EB9D-4658-84EE-73D2605896E6}" - Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" - /> - <Reference Name = "SharpVectorUtil" Project = "{2C3D4EE6-4F71-41F0-99F6-DDAA439C88C6}" Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" @@ -645,16 +630,6 @@ BuildAction = "Compile" /> <File - RelPath = "SharpVectors\Dom\Svg\Rendering\ISvgRenderer.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File - RelPath = "SharpVectors\Dom\Svg\Rendering\RenderingNode.cs" - SubType = "Code" - BuildAction = "Compile" - /> - <File RelPath = "SharpVectors\Dom\Svg\Scripting\SvgScriptElement.cs" SubType = "Code" BuildAction = "Compile" |
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths Modified Files: ISvgPathSegArcAbs.cs ISvgPathSegArcRel.cs ISvgPathSegCurvetoCubicAbs.cs ISvgPathSegCurvetoCubicRel.cs ISvgPathSegCurvetoCubicSmoothAbs.cs ISvgPathSegCurvetoCubicSmoothRel.cs ISvgPathSegCurvetoQuadraticAbs.cs ISvgPathSegCurvetoQuadraticRel.cs ISvgPathSegCurvetoQuadraticSmoothAbs.cs ISvgPathSegCurvetoQuadraticSmoothRel.cs ISvgPathSegLinetoAbs.cs ISvgPathSegLinetoHorizontalAbs.cs ISvgPathSegLinetoHorizontalRel.cs ISvgPathSegLinetoRel.cs ISvgPathSegLinetoVerticalAbs.cs ISvgPathSegLinetoVerticalRel.cs ISvgPathSegMovetoAbs.cs ISvgPathSegMovetoRel.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: ISvgPathSegLinetoHorizontalAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoHorizontalAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoHorizontalAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoHorizontalAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,6 +9,6 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoHorizontalAbs : ISvgPathSeg { - float X{get;} + float X{get;set;} } } \ No newline at end of file Index: ISvgPathSegArcAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegArcAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegArcAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegArcAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,12 +9,12 @@ /// <completed>100</completed> public interface ISvgPathSegArcAbs : ISvgPathSeg { - float X{get;} - float Y{get;} - float R1{get;} - float R2{get;} - float Angle{get;} - bool LargeArcFlag{get;} - bool SweepFlag{get;} + float X{get;set;} + float Y{get;set;} + float R1{get;set;} + float R2{get;set;} + float Angle{get;set;} + bool LargeArcFlag{get;set;} + bool SweepFlag{get;set;} } } Index: ISvgPathSegCurvetoQuadraticSmoothRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoQuadraticSmoothRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoQuadraticSmoothRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoQuadraticSmoothRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoQuadraticSmoothRel : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoCubicSmoothAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoCubicSmoothAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoCubicSmoothAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoCubicSmoothAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,9 +9,9 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoCubicSmoothAbs : ISvgPathSeg { - float X{get;} - float Y{get;} - float X2{get;} - float Y2{get;} + float X{get;set;} + float Y{get;set;} + float X2{get;set;} + float Y2{get;set;} } } \ No newline at end of file Index: ISvgPathSegLinetoVerticalRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoVerticalRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoVerticalRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoVerticalRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -8,6 +8,6 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoVerticalRel : ISvgPathSeg { - float Y{get;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegLinetoAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoAbs : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoCubicAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoCubicAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoCubicAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoCubicAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,11 +9,11 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoCubicAbs : ISvgPathSeg { - float X{get;} - float Y{get;} - float X1{get;} - float Y1{get;} - float X2{get;} - float Y2{get;} + float X{get;set;} + float Y{get;set;} + float X1{get;set;} + float Y1{get;set;} + float X2{get;set;} + float Y2{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoQuadraticRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoQuadraticRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoQuadraticRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoQuadraticRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,9 +9,9 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoQuadraticRel : ISvgPathSeg { - float X{get;} - float Y{get;} - float X1{get;} - float Y1{get;} + float X{get;set;} + float Y{get;set;} + float X1{get;set;} + float Y1{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoQuadraticAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoQuadraticAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoQuadraticAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoQuadraticAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,9 +9,9 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoQuadraticAbs : ISvgPathSeg { - float X{get;} - float Y{get;} - float X1{get;} - float Y1{get;} + float X{get;set;} + float Y{get;set;} + float X1{get;set;} + float Y1{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoCubicRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoCubicRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoCubicRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoCubicRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,11 +9,11 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoCubicRel : ISvgPathSeg { - float X{get;} - float Y{get;} - float X1{get;} - float Y1{get;} - float X2{get;} - float Y2{get;} + float X{get;set;} + float Y{get;set;} + float X1{get;set;} + float Y1{get;set;} + float X2{get;set;} + float Y2{get;set;} } } \ No newline at end of file Index: ISvgPathSegLinetoHorizontalRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoHorizontalRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoHorizontalRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoHorizontalRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,6 +9,6 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoHorizontalRel : ISvgPathSeg { - float X{get;} + float X{get;set;} } } \ No newline at end of file Index: ISvgPathSegLinetoVerticalAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoVerticalAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoVerticalAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoVerticalAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,6 +9,6 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoVerticalAbs : ISvgPathSeg { - float Y{get;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegMovetoAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegMovetoAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegMovetoAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegMovetoAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegMovetoAbs : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } Index: ISvgPathSegCurvetoCubicSmoothRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoCubicSmoothRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoCubicSmoothRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoCubicSmoothRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,9 +9,9 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoCubicSmoothRel : ISvgPathSeg { - float X{get;} - float Y{get;} - float X2{get;} - float Y2{get;} + float X{get;set;} + float Y{get;set;} + float X2{get;set;} + float Y2{get;set;} } } \ No newline at end of file Index: ISvgPathSegCurvetoQuadraticSmoothAbs.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegCurvetoQuadraticSmoothAbs.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegCurvetoQuadraticSmoothAbs.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegCurvetoQuadraticSmoothAbs.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegCurvetoQuadraticSmoothAbs : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegMovetoRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegMovetoRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegMovetoRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegMovetoRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegMovetoRel : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegLinetoRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegLinetoRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegLinetoRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegLinetoRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,7 +9,7 @@ /// <completed>100</completed> public interface ISvgPathSegLinetoRel : ISvgPathSeg { - float X{get;} - float Y{get;} + float X{get;set;} + float Y{get;set;} } } \ No newline at end of file Index: ISvgPathSegArcRel.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Paths/ISvgPathSegArcRel.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPathSegArcRel.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPathSegArcRel.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -9,12 +9,12 @@ /// <completed>100</completed> public interface ISvgPathSegArcRel : ISvgPathSeg { - float X{get;} - float Y{get;} - float R1{get;} - float R2{get;} - float Angle{get;} - bool LargeArcFlag{get;} - bool SweepFlag{get;} + float X{get;set;} + float Y{get;set;} + float R1{get;set;} + float R2{get;set;} + float Angle{get;set;} + bool LargeArcFlag{get;set;} + bool SweepFlag{get;set;} } } \ No newline at end of file |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces Modified Files: ISvgAngle.cs ISvgAnimatedEnumeration.cs ISvgAnimatedInteger.cs ISvgLangSpace.cs ISvgRect.cs ISvgZoomAndPan.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: ISvgZoomAndPan.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgZoomAndPan.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgZoomAndPan.cs 9 Aug 2003 22:50:15 -0000 1.1 +++ ISvgZoomAndPan.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -7,6 +7,6 @@ /// <completed>100</completed> public interface ISvgZoomAndPan { - SvgZoomAndPanType ZoomAndPan{get;} + SvgZoomAndPanType ZoomAndPan{get;set;} } } \ No newline at end of file Index: ISvgAnimatedInteger.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgAnimatedInteger.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgAnimatedInteger.cs 9 Aug 2003 22:50:14 -0000 1.1 +++ ISvgAnimatedInteger.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -4,7 +4,7 @@ { public interface ISvgAnimatedInteger { - long BaseVal{get;} + long BaseVal{get;set;} long AnimVal{get;} } } Index: ISvgRect.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgRect.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgRect.cs 9 Aug 2003 22:50:14 -0000 1.1 +++ ISvgRect.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -8,9 +8,9 @@ /// <completed>100</completed> public interface ISvgRect { - double X { get; } - double Y { get; } - double Width { get; } - double Height { get; } + double X { get; set; } + double Y { get; set; } + double Width { get; set; } + double Height { get; set; } } } Index: ISvgLangSpace.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgLangSpace.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgLangSpace.cs 9 Aug 2003 22:50:14 -0000 1.1 +++ ISvgLangSpace.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -8,7 +8,7 @@ /// <completed>100</completed> public interface ISvgLangSpace { - string XmlLang{get;} - string XmlSpace{get;} + string XmlLang{get;set;} + string XmlSpace{get;set;} } } Index: ISvgAngle.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgAngle.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgAngle.cs 9 Aug 2003 22:50:13 -0000 1.1 +++ ISvgAngle.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -20,7 +20,7 @@ /// and valueAsString to be updated automatically to reflect /// this setting. /// </summary> - double Value{get;} + double Value{get;set;} /// <summary> /// The angle value as a floating point value, in the units @@ -28,7 +28,7 @@ /// value and valueAsString to be updated automatically to /// reflect this setting. /// </summary> - double ValueInSpecifiedUnits{get;} + double ValueInSpecifiedUnits{get;set;} /// <summary> /// The angle value as a string value, in the units expressed @@ -36,7 +36,7 @@ /// valueInSpecifiedUnits to be updated automatically to /// reflect this setting. /// </summary> - string ValueAsString{get;} + string ValueAsString{get;set;} /// <summary> /// Reset the value as a number with an associated unitType, Index: ISvgAnimatedEnumeration.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Basic Data Types and Interfaces/ISvgAnimatedEnumeration.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgAnimatedEnumeration.cs 9 Aug 2003 22:50:13 -0000 1.1 +++ ISvgAnimatedEnumeration.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -15,7 +15,7 @@ /// applying any animations. Inheriting Class should throw /// an excpetion when the value is read only /// </summary> - Enum BaseVal{get;set;} + ushort BaseVal{get;set;} /// <summary> /// If the given attribute or property is being animated, @@ -24,6 +24,6 @@ /// currently being animated, contains the same value as /// 'BaseVal'. /// </summary> - Enum AnimVal{get;} + ushort AnimVal{get;} } } \ No newline at end of file |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Gradients and Patterns In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorObjectModel/SharpVectors/dom/svg/Gradients and Patterns Modified Files: SvgGradientElement.cs SvgPatternElement.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: SvgPatternElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Gradients and Patterns/SvgPatternElement.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- SvgPatternElement.cs 27 May 2003 20:44:03 -0000 1.3 +++ SvgPatternElement.cs 19 Nov 2005 03:13:23 -0000 1.4 @@ -39,7 +39,7 @@ type = SvgUnitType.ObjectBoundingBox; break; } - patternUnits = new SvgAnimatedEnumeration(type); + patternUnits = new SvgAnimatedEnumeration((ushort)type); } return patternUnits; } @@ -69,7 +69,7 @@ type = SvgUnitType.UserSpaceOnUse; break; } - patternContentUnits = new SvgAnimatedEnumeration(type); + patternContentUnits = new SvgAnimatedEnumeration((ushort)type); } return patternContentUnits; } Index: SvgGradientElement.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorObjectModel/SharpVectors/dom/svg/Gradients and Patterns/SvgGradientElement.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SvgGradientElement.cs 6 Mar 2005 08:07:04 -0000 1.1 +++ SvgGradientElement.cs 19 Nov 2005 03:13:23 -0000 1.2 @@ -45,7 +45,7 @@ break; } - gradientUnits = new SvgAnimatedEnumeration(gradUnit); + gradientUnits = new SvgAnimatedEnumeration((ushort)gradUnit); } return gradientUnits; } @@ -99,7 +99,7 @@ break; } - spreadMethod = new SvgAnimatedEnumeration(spreadMeth); + spreadMethod = new SvgAnimatedEnumeration((ushort)spreadMeth); } return spreadMethod; } |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:37
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorDom/SharpVectors/Dom Modified Files: Attribute.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: Attribute.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorDom/SharpVectors/Dom/Attribute.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Attribute.cs 15 Aug 2003 11:11:22 -0000 1.2 +++ Attribute.cs 19 Nov 2005 03:13:23 -0000 1.3 @@ -63,9 +63,8 @@ bool IEventTarget.DispatchEvent( IEvent @event) { - return eventTarget.DispatchEvent(@event); + return eventTarget.DispatchEvent(@event); } - #endregion #region DOM Level 3 Experimental |
From: Jeff R. <jef...@us...> - 2005-11-19 03:13:36
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Coordinate Systems Transformations and Units In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12283/src/SharpVectorBindings/SharpVectors/Dom/Svg/Coordinate Systems Transformations and Units Modified Files: ISvgMatrix.cs ISvgPreserveAspectRatio.cs Log Message: Library wide changes for scripting support and automated re-rendering Index: ISvgMatrix.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Coordinate Systems Transformations and Units/ISvgMatrix.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgMatrix.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgMatrix.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -8,12 +8,12 @@ /// <completed>100</completed> public interface ISvgMatrix { - float A { get; } - float B { get; } - float C { get; } - float D { get; } - float E { get; } - float F { get; } + float A { get;set; } + float B { get;set; } + float C { get;set; } + float D { get;set; } + float E { get;set; } + float F { get;set; } ISvgMatrix Multiply(ISvgMatrix secondMatrix); ISvgMatrix Inverse(); Index: ISvgPreserveAspectRatio.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorBindings/SharpVectors/Dom/Svg/Coordinate Systems Transformations and Units/ISvgPreserveAspectRatio.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ISvgPreserveAspectRatio.cs 9 Aug 2003 23:24:57 -0000 1.1 +++ ISvgPreserveAspectRatio.cs 19 Nov 2005 03:13:22 -0000 1.2 @@ -10,11 +10,11 @@ /// <summary> /// The type of the alignment value as specified by one of the constants specified above. /// </summary> - SvgPreserveAspectRatioType Align{get;} + SvgPreserveAspectRatioType Align{get;set;} /// <summary> /// The type of the meet-or-slice value as specified by one of the constants specified above. /// </summary> - SvgMeetOrSlice MeetOrSlice{get;} + SvgMeetOrSlice MeetOrSlice{get;set;} } } \ No newline at end of file |