1 // Gtk.PaperSize.cs - Allow customization of values in the GtkPaperSize 2 // 3 // This program is free software; you can redistribute it and/or 4 // modify it under the terms of version 2 of the Lesser GNU General 5 // Public License as published by the Free Software Foundation. 6 // 7 // This program is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 // Lesser General Public License for more details. 11 // 12 // You should have received a copy of the GNU Lesser General Public 13 // License along with this program; if not, write to the 14 // Free Software Foundation, Inc., 59 Temple Place - Suite 330, 15 // Boston, MA 02111-1307, USA. 16 // 17 18 namespace Gtk { 19 20 using System; 21 22 public partial class PaperSize { 23 24 static PaperSize letter; 25 public static PaperSize Letter { 26 get { 27 if (letter == null) 28 letter = new PaperSize ("na_letter"); 29 return letter; 30 } 31 } 32 33 static PaperSize executive; 34 public static PaperSize Executive { 35 get { 36 if (executive == null) 37 executive = new PaperSize ("na_executive"); 38 return executive; 39 } 40 } 41 42 static PaperSize legal; 43 public static PaperSize Legal { 44 get { 45 if (legal == null) 46 legal = new PaperSize ("na_legal"); 47 return legal; 48 } 49 } 50 51 static PaperSize a3; 52 public static PaperSize A3 { 53 get { 54 if (a3 == null) 55 a3 = new PaperSize ("iso_a3"); 56 return a3; 57 } 58 } 59 60 static PaperSize a4; 61 public static PaperSize A4 { 62 get { 63 if (a4 == null) 64 a4 = new PaperSize ("iso_a4"); 65 return a4; 66 } 67 } 68 69 static PaperSize a5; 70 public static PaperSize A5 { 71 get { 72 if (a5 == null) 73 a5 = new PaperSize ("iso_a5"); 74 return a5; 75 } 76 } 77 78 static PaperSize b5; 79 public static PaperSize B5 { 80 get { 81 if (b5 == null) 82 b5 = new PaperSize ("iso_b5"); 83 return b5; 84 } 85 } 86 } 87 } 88