* OleDbParameterCollectionTest.cs: Fix compile error in 1.1 profile.
[mono.git] / mcs / class / System.Drawing / System.Drawing.Printing / PaperSize.cs
index 4a4d59a01260eab237f15ddf5262b7b75ec8bd8a..7af383022c04d89f17e3a7538fd72fe2cf2e00ef 100644 (file)
@@ -37,13 +37,23 @@ namespace System.Drawing.Printing
        /// <summary>
        /// Summary description for PaperSize.
        /// </summary>
+#if NET_2_0
+       [Serializable]
+#endif
        public class PaperSize
        {
                string name;
                int width;
                int height;
                PaperKind kind;
+               internal bool is_default;
                
+#if NET_2_0
+               public PaperSize ()
+               {
+
+               }
+#endif         
                public PaperSize(string name, int width, int height)
                {
                        this.width = width;
@@ -51,6 +61,16 @@ namespace System.Drawing.Printing
                        this.name = name;
                        this.kind = PaperKind.Custom;
                }
+
+               internal PaperSize(string name, int width, int height, PaperKind kind, bool isDefault)
+               {
+                       this.width = width;
+                       this.height = height;
+                       this.name = name;
+                       this.kind = PaperKind.Custom;
+                       this.is_default = isDefault;
+               }
+
                public int Width{
                        get{
                                return width;
@@ -88,6 +108,22 @@ namespace System.Drawing.Printing
                                return kind;
                        }
                }
+#if NET_2_0
+               [MonoTODO]
+               public int RawKind {
+                       get { throw new NotImplementedException(); }
+                       set { throw new NotImplementedException(); }
+               }\r
+
+#endif
+       
+               internal bool IsDefault {
+                       get { return this.is_default; }
+                       set { this.is_default = value; }
+               }
+
+
+               internal void SetKind (PaperKind k) {kind = k;}
 
                public override string ToString(){
                        string ret = "[PaperSize {0} Kind={1} Height={2} Width={3}]";