PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gtk/library/gtk_paper_sizes.e

http://github.com/tybor/Liberty
Specman e | 141 lines | 57 code | 18 blank | 66 comment | 2 complexity | fa76124d678f3f85281b6996eeb315d8 MD5 | raw file
  1indexing
  2	description: "Names of various standard paper sizes and related features."
  3	copyright: "[
  4					Copyright (C) 2007 Paolo Redaelli, GTK+ team
  5					
  6					This library is free software; you can redistribute it and/or
  7					modify it under the terms of the GNU Lesser General Public License
  8					as published by the Free Software Foundation; either version 2.1 of
  9					the License, or (at your option) any later version.
 10					
 11					This library is distributed in the hopeOA that it will be useful, but
 12					WITHOUT ANY WARRANTY; without even the implied warranty of
 13					MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 14					Lesser General Public License for more details.
 15
 16					You should have received a copy of the GNU Lesser General Public
 17					License along with this library; if not, write to the Free Software
 18					Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 19					02110-1301 USA
 20			]"
 21
 22deferred class GTK_PAPER_SIZES
 23
 24inherit ANY undefine is_equal, copy end
 25
 26feature -- Paper sizes
 27	--	a3_paper_name: STRING is
 28			
 29	--
 30	-- #define GTK_PAPER_NAME_A3 "iso_a3"
 31	--
 32	--   Name for the A4 paper size.
 33	--
 34	--   --------------------------------------------------------------------------
 35	--
 36	--  GTK_PAPER_NAME_A4
 37	--
 38	-- #define GTK_PAPER_NAME_A4 "iso_a4"
 39	--
 40	--   Name for the A4 paper size.
 41	--
 42	--   --------------------------------------------------------------------------
 43	--
 44	--  GTK_PAPER_NAME_A5
 45	--
 46	-- #define GTK_PAPER_NAME_A5 "iso_a5"
 47	--
 48	--   Name for the A5 paper size.
 49	--
 50	--   --------------------------------------------------------------------------
 51	--
 52	--  GTK_PAPER_NAME_B5
 53	--
 54	-- #define GTK_PAPER_NAME_B5 "iso_b5"
 55	--
 56	--   Name for the B5 paper size.
 57	--
 58	--   --------------------------------------------------------------------------
 59	--
 60	--  GTK_PAPER_NAME_LETTER
 61	--
 62	-- #define GTK_PAPER_NAME_LETTER "na_letter"
 63	--
 64	--   Name for the Letter paper size.
 65	--
 66	--   --------------------------------------------------------------------------
 67	--
 68	--  GTK_PAPER_NAME_EXECUTIVE
 69	--
 70	-- #define GTK_PAPER_NAME_EXECUTIVE "na_executive"
 71	--
 72	--   Name for the Executive paper size.
 73	--
 74	--   --------------------------------------------------------------------------
 75	--
 76	--  GTK_PAPER_NAME_LEGAL
 77	--
 78	-- #define GTK_PAPER_NAME_LEGAL "na_legal"
 79	--
 80	--   Name for the Legal paper size.
 81	--
 82	--   --------------------------------------------------------------------------
 83
 84	--
 85
 86	default_paper_size_name: CONST_STRING is
 87			-- the name of the default paper size, which depends on the current
 88			-- locale.
 89		do
 90			create Result.from_external(gtk_paper_size_get_default)
 91		end
 92
 93feature {} -- External calls
 94	gtk_paper_name_a3_ptr: INTEGER is
 95			-- #define GTK_PAPER_NAME_A3
 96		external "C macro use <gtk/gtk.h>"
 97		alias "GTK_PAPER_NAME_A3"
 98		end
 99
100	gtk_paper_name_a4_ptr: INTEGER is
101			-- #define GTK_PAPER_NAME_A4
102		external "C macro use <gtk/gtk.h>"
103		alias "GTK_PAPER_NAME_A4"
104		end
105
106	gtk_paper_name_a5_ptr: INTEGER is
107			-- #define GTK_PAPER_NAME_A5
108		external "C macro use <gtk/gtk.h>"
109		alias "GTK_PAPER_NAME_A5"
110		end
111
112	gtk_paper_name_b5_ptr: INTEGER is
113			-- #define GTK_PAPER_NAME_B5
114		external "C macro use <gtk/gtk.h>"
115		alias "GTK_PAPER_NAME_B5"
116		end
117
118	gtk_paper_name_letter_ptr: INTEGER is
119			-- #define GTK_PAPER_NAME_LETTER
120		external "C macro use <gtk/gtk.h>"
121		alias "GTK_PAPER_NAME_LETTER"
122		end
123
124	gtk_paper_name_executive_ptr: INTEGER is
125			-- #define GTK_PAPER_NAME_EXECUTIVE
126		external "C macro use <gtk/gtk.h>"
127		alias "GTK_PAPER_NAME_EXECUTIVE"
128		end
129
130	gtk_paper_name_legal_ptr: INTEGER is
131			-- #define GTK_PAPER_NAME_LEGAL
132		external "C macro use <gtk/gtk.h>"
133		alias "GTK_PAPER_NAME_LEGAL"
134		end
135
136
137	gtk_paper_size_get_default: POINTER is
138			-- const gchar* gtk_paper_size_get_default     (void);
139		external "C use <gtk/gtk.h>"
140		end	
141end -- class GTK_PAPER_SIZES