New test.
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / SubMenuStyle.cs
index 4bb26c088b85057e9fbdd441e5350918c14b6ac6..9556b46a1a8d80dc71f1905ffa880bfdcdfceec8 100644 (file)
@@ -36,7 +36,7 @@ using System.ComponentModel;
 
 namespace System.Web.UI.WebControls
 {
-       public class SubMenuStyle: Style
+       public class SubMenuStyle: Style, ICustomTypeDescriptor
        {
                private const string HORZ_PADD = "HorizontalPadding";
                private const string VERT_PADD = "VerticalPadding";
@@ -132,14 +132,86 @@ namespace System.Web.UI.WebControls
                {
                        base.FillStyleAttributes (attributes, urlResolver);
                        if (IsSet (HORZ_PADD)) {
-                               attributes.Add (HtmlTextWriterStyle.PaddingLeft, HorizontalPadding.ToString () + "px");
-                               attributes.Add (HtmlTextWriterStyle.PaddingRight, HorizontalPadding.ToString () + "px");
+                               attributes.Add (HtmlTextWriterStyle.PaddingLeft, HorizontalPadding.ToString ());
+                               attributes.Add (HtmlTextWriterStyle.PaddingRight, HorizontalPadding.ToString ());
                        }
                        if (IsSet (VERT_PADD)) {
-                               attributes.Add (HtmlTextWriterStyle.PaddingTop, VerticalPadding.ToString () + "px");
-                               attributes.Add (HtmlTextWriterStyle.PaddingBottom, VerticalPadding.ToString () + "px");
+                               attributes.Add (HtmlTextWriterStyle.PaddingTop, VerticalPadding.ToString ());
+                               attributes.Add (HtmlTextWriterStyle.PaddingBottom, VerticalPadding.ToString ());
                        }
                }
+
+               [MonoTODO]
+               System.ComponentModel.AttributeCollection ICustomTypeDescriptor.GetAttributes ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               string ICustomTypeDescriptor.GetClassName ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               string ICustomTypeDescriptor.GetComponentName ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               TypeConverter ICustomTypeDescriptor.GetConverter ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               EventDescriptor ICustomTypeDescriptor.GetDefaultEvent ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               object ICustomTypeDescriptor.GetEditor (Type editorBaseType)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               EventDescriptorCollection ICustomTypeDescriptor.GetEvents ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               EventDescriptorCollection ICustomTypeDescriptor.GetEvents (Attribute [] arr)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties (Attribute [] arr)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               object ICustomTypeDescriptor.GetPropertyOwner (PropertyDescriptor pd)
+               {
+                       throw new NotImplementedException ();
+               }
        }
 }