comparison dwt/internal/cocoa/WebPreferences.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children 1a8b3cb347e0
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
1 /*******************************************************************************
2 * Copyright (c) 2007 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 module dwt.internal.cocoa;
12
13 public class WebPreferences : NSObject {
14
15 public WebPreferences() {
16 super();
17 }
18
19 public WebPreferences(int id) {
20 super(id);
21 }
22
23 //public bool allowsAnimatedImageLooping() {
24 // return OS.objc_msgSend(this.id, OS.sel_allowsAnimatedImageLooping) !is 0;
25 //}
26 //
27 //public bool allowsAnimatedImages() {
28 // return OS.objc_msgSend(this.id, OS.sel_allowsAnimatedImages) !is 0;
29 //}
30
31 //public bool arePlugInsEnabled() {
32 // return OS.objc_msgSend(this.id, OS.sel_arePlugInsEnabled) !is 0;
33 //}
34 //
35 //public bool autosaves() {
36 // return OS.objc_msgSend(this.id, OS.sel_autosaves) !is 0;
37 //}
38
39 //public int cacheModel() {
40 // return OS.objc_msgSend(this.id, OS.sel_cacheModel);
41 //}
42 //
43 //public NSString cursiveFontFamily() {
44 // int result = OS.objc_msgSend(this.id, OS.sel_cursiveFontFamily);
45 // return result !is 0 ? new NSString(result) : null;
46 //}
47
48 //public int defaultFixedFontSize() {
49 // return OS.objc_msgSend(this.id, OS.sel_defaultFixedFontSize);
50 //}
51 //
52 //public int defaultFontSize() {
53 // return OS.objc_msgSend(this.id, OS.sel_defaultFontSize);
54 //}
55 //
56 //public NSString defaultTextEncodingName() {
57 // int result = OS.objc_msgSend(this.id, OS.sel_defaultTextEncodingName);
58 // return result !is 0 ? new NSString(result) : null;
59 //}
60
61 //public NSString fantasyFontFamily() {
62 // int result = OS.objc_msgSend(this.id, OS.sel_fantasyFontFamily);
63 // return result !is 0 ? new NSString(result) : null;
64 //}
65 //
66 //public NSString fixedFontFamily() {
67 // int result = OS.objc_msgSend(this.id, OS.sel_fixedFontFamily);
68 // return result !is 0 ? new NSString(result) : null;
69 //}
70
71 public NSString identifier() {
72 int result = OS.objc_msgSend(this.id, OS.sel_identifier);
73 return result !is 0 ? new NSString(result) : null;
74 }
75
76 public id initWithIdentifier(NSString anIdentifier) {
77 int result = OS.objc_msgSend(this.id, OS.sel_initWithIdentifier_1, anIdentifier !is null ? anIdentifier.id : 0);
78 return result !is 0 ? new id(result) : null;
79 }
80
81 //public bool isJavaEnabled() {
82 // return OS.objc_msgSend(this.id, OS.sel_isJavaEnabled) !is 0;
83 //}
84
85 //public bool isJavaScriptEnabled() {
86 // return OS.objc_msgSend(this.id, OS.sel_isJavaScriptEnabled) !is 0;
87 //}
88 //
89 //public bool javaScriptCanOpenWindowsAutomatically() {
90 // return OS.objc_msgSend(this.id, OS.sel_javaScriptCanOpenWindowsAutomatically) !is 0;
91 //}
92 //
93 //public bool loadsImagesAutomatically() {
94 // return OS.objc_msgSend(this.id, OS.sel_loadsImagesAutomatically) !is 0;
95 //}
96 //
97 //public int minimumFontSize() {
98 // return OS.objc_msgSend(this.id, OS.sel_minimumFontSize);
99 //}
100 //
101 //public int minimumLogicalFontSize() {
102 // return OS.objc_msgSend(this.id, OS.sel_minimumLogicalFontSize);
103 //}
104 //
105 //public bool privateBrowsingEnabled() {
106 // return OS.objc_msgSend(this.id, OS.sel_privateBrowsingEnabled) !is 0;
107 //}
108 //
109 //public NSString sansSerifFontFamily() {
110 // int result = OS.objc_msgSend(this.id, OS.sel_sansSerifFontFamily);
111 // return result !is 0 ? new NSString(result) : null;
112 //}
113 //
114 //public NSString serifFontFamily() {
115 // int result = OS.objc_msgSend(this.id, OS.sel_serifFontFamily);
116 // return result !is 0 ? new NSString(result) : null;
117 //}
118 //
119 //public void setAllowsAnimatedImageLooping(bool flag) {
120 // OS.objc_msgSend(this.id, OS.sel_setAllowsAnimatedImageLooping_1, flag);
121 //}
122 //
123 //public void setAllowsAnimatedImages(bool flag) {
124 // OS.objc_msgSend(this.id, OS.sel_setAllowsAnimatedImages_1, flag);
125 //}
126 //
127 //public void setAutosaves(bool flag) {
128 // OS.objc_msgSend(this.id, OS.sel_setAutosaves_1, flag);
129 //}
130 //
131 //public void setCacheModel(int cacheModel) {
132 // OS.objc_msgSend(this.id, OS.sel_setCacheModel_1, cacheModel);
133 //}
134 //
135 //public void setCursiveFontFamily(NSString family) {
136 // OS.objc_msgSend(this.id, OS.sel_setCursiveFontFamily_1, family !is null ? family.id : 0);
137 //}
138 //
139 //public void setDefaultFixedFontSize(int size) {
140 // OS.objc_msgSend(this.id, OS.sel_setDefaultFixedFontSize_1, size);
141 //}
142 //
143 //public void setDefaultFontSize(int size) {
144 // OS.objc_msgSend(this.id, OS.sel_setDefaultFontSize_1, size);
145 //}
146 //
147 //public void setDefaultTextEncodingName(NSString encoding) {
148 // OS.objc_msgSend(this.id, OS.sel_setDefaultTextEncodingName_1, encoding !is null ? encoding.id : 0);
149 //}
150 //
151 //public void setFantasyFontFamily(NSString family) {
152 // OS.objc_msgSend(this.id, OS.sel_setFantasyFontFamily_1, family !is null ? family.id : 0);
153 //}
154 //
155 //public void setFixedFontFamily(NSString family) {
156 // OS.objc_msgSend(this.id, OS.sel_setFixedFontFamily_1, family !is null ? family.id : 0);
157 //}
158
159 public void setJavaEnabled(bool flag) {
160 OS.objc_msgSend(this.id, OS.sel_setJavaEnabled_1, flag);
161 }
162
163 //public void setJavaScriptCanOpenWindowsAutomatically(bool flag) {
164 // OS.objc_msgSend(this.id, OS.sel_setJavaScriptCanOpenWindowsAutomatically_1, flag);
165 //}
166 //
167 //public void setJavaScriptEnabled(bool flag) {
168 // OS.objc_msgSend(this.id, OS.sel_setJavaScriptEnabled_1, flag);
169 //}
170 //
171 //public void setLoadsImagesAutomatically(bool flag) {
172 // OS.objc_msgSend(this.id, OS.sel_setLoadsImagesAutomatically_1, flag);
173 //}
174 //
175 //public void setMinimumFontSize(int size) {
176 // OS.objc_msgSend(this.id, OS.sel_setMinimumFontSize_1, size);
177 //}
178 //
179 //public void setMinimumLogicalFontSize(int size) {
180 // OS.objc_msgSend(this.id, OS.sel_setMinimumLogicalFontSize_1, size);
181 //}
182 //
183 //public void setPlugInsEnabled(bool flag) {
184 // OS.objc_msgSend(this.id, OS.sel_setPlugInsEnabled_1, flag);
185 //}
186 //
187 //public void setPrivateBrowsingEnabled(bool flag) {
188 // OS.objc_msgSend(this.id, OS.sel_setPrivateBrowsingEnabled_1, flag);
189 //}
190 //
191 //public void setSansSerifFontFamily(NSString family) {
192 // OS.objc_msgSend(this.id, OS.sel_setSansSerifFontFamily_1, family !is null ? family.id : 0);
193 //}
194 //
195 //public void setSerifFontFamily(NSString family) {
196 // OS.objc_msgSend(this.id, OS.sel_setSerifFontFamily_1, family !is null ? family.id : 0);
197 //}
198 //
199 //public void setShouldPrintBackgrounds(bool flag) {
200 // OS.objc_msgSend(this.id, OS.sel_setShouldPrintBackgrounds_1, flag);
201 //}
202 //
203 //public void setStandardFontFamily(NSString family) {
204 // OS.objc_msgSend(this.id, OS.sel_setStandardFontFamily_1, family !is null ? family.id : 0);
205 //}
206 //
207 //public void setTabsToLinks(bool flag) {
208 // OS.objc_msgSend(this.id, OS.sel_setTabsToLinks_1, flag);
209 //}
210 //
211 //public void setUserStyleSheetEnabled(bool flag) {
212 // OS.objc_msgSend(this.id, OS.sel_setUserStyleSheetEnabled_1, flag);
213 //}
214 //
215 //public void setUserStyleSheetLocation(NSURL URL) {
216 // OS.objc_msgSend(this.id, OS.sel_setUserStyleSheetLocation_1, URL !is null ? URL.id : 0);
217 //}
218 //
219 //public void setUsesPageCache(bool usesPageCache) {
220 // OS.objc_msgSend(this.id, OS.sel_setUsesPageCache_1, usesPageCache);
221 //}
222 //
223 //public bool shouldPrintBackgrounds() {
224 // return OS.objc_msgSend(this.id, OS.sel_shouldPrintBackgrounds) !is 0;
225 //}
226 //
227 //public NSString standardFontFamily() {
228 // int result = OS.objc_msgSend(this.id, OS.sel_standardFontFamily);
229 // return result !is 0 ? new NSString(result) : null;
230 //}
231 //
232 public static WebPreferences standardPreferences() {
233 int result = OS.objc_msgSend(OS.class_WebPreferences, OS.sel_standardPreferences);
234 return result !is 0 ? new WebPreferences(result) : null;
235 }
236 //
237 //public bool tabsToLinks() {
238 // return OS.objc_msgSend(this.id, OS.sel_tabsToLinks) !is 0;
239 //}
240 //
241 //public bool userStyleSheetEnabled() {
242 // return OS.objc_msgSend(this.id, OS.sel_userStyleSheetEnabled) !is 0;
243 //}
244 //
245 //public NSURL userStyleSheetLocation() {
246 // int result = OS.objc_msgSend(this.id, OS.sel_userStyleSheetLocation);
247 // return result !is 0 ? new NSURL(result) : null;
248 //}
249 //
250 //public bool usesPageCache() {
251 // return OS.objc_msgSend(this.id, OS.sel_usesPageCache) !is 0;
252 //}
253
254 }