diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt/internal/cocoa/WebPreferences.d	Sat Aug 09 17:00:02 2008 +0200
@@ -0,0 +1,254 @@
+/*******************************************************************************
+ * Copyright (c) 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+module dwt.internal.cocoa;
+
+public class WebPreferences : NSObject {
+
+public WebPreferences() {
+    super();
+}
+
+public WebPreferences(int id) {
+    super(id);
+}
+
+//public bool allowsAnimatedImageLooping() {
+//  return OS.objc_msgSend(this.id, OS.sel_allowsAnimatedImageLooping) !is 0;
+//}
+//
+//public bool allowsAnimatedImages() {
+//  return OS.objc_msgSend(this.id, OS.sel_allowsAnimatedImages) !is 0;
+//}
+
+//public bool arePlugInsEnabled() {
+//  return OS.objc_msgSend(this.id, OS.sel_arePlugInsEnabled) !is 0;
+//}
+//
+//public bool autosaves() {
+//  return OS.objc_msgSend(this.id, OS.sel_autosaves) !is 0;
+//}
+
+//public int cacheModel() {
+//  return OS.objc_msgSend(this.id, OS.sel_cacheModel);
+//}
+//
+//public NSString cursiveFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_cursiveFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+
+//public int defaultFixedFontSize() {
+//  return OS.objc_msgSend(this.id, OS.sel_defaultFixedFontSize);
+//}
+//
+//public int defaultFontSize() {
+//  return OS.objc_msgSend(this.id, OS.sel_defaultFontSize);
+//}
+//
+//public NSString defaultTextEncodingName() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_defaultTextEncodingName);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+
+//public NSString fantasyFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_fantasyFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+//
+//public NSString fixedFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_fixedFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+
+public NSString identifier() {
+    int result = OS.objc_msgSend(this.id, OS.sel_identifier);
+    return result !is 0 ? new NSString(result) : null;
+}
+
+public id initWithIdentifier(NSString anIdentifier) {
+    int result = OS.objc_msgSend(this.id, OS.sel_initWithIdentifier_1, anIdentifier !is null ? anIdentifier.id : 0);
+    return result !is 0 ? new id(result) : null;
+}
+
+//public bool isJavaEnabled() {
+//  return OS.objc_msgSend(this.id, OS.sel_isJavaEnabled) !is 0;
+//}
+
+//public bool isJavaScriptEnabled() {
+//  return OS.objc_msgSend(this.id, OS.sel_isJavaScriptEnabled) !is 0;
+//}
+//
+//public bool javaScriptCanOpenWindowsAutomatically() {
+//  return OS.objc_msgSend(this.id, OS.sel_javaScriptCanOpenWindowsAutomatically) !is 0;
+//}
+//
+//public bool loadsImagesAutomatically() {
+//  return OS.objc_msgSend(this.id, OS.sel_loadsImagesAutomatically) !is 0;
+//}
+//
+//public int minimumFontSize() {
+//  return OS.objc_msgSend(this.id, OS.sel_minimumFontSize);
+//}
+//
+//public int minimumLogicalFontSize() {
+//  return OS.objc_msgSend(this.id, OS.sel_minimumLogicalFontSize);
+//}
+//
+//public bool privateBrowsingEnabled() {
+//  return OS.objc_msgSend(this.id, OS.sel_privateBrowsingEnabled) !is 0;
+//}
+//
+//public NSString sansSerifFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_sansSerifFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+//
+//public NSString serifFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_serifFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+//
+//public void setAllowsAnimatedImageLooping(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setAllowsAnimatedImageLooping_1, flag);
+//}
+//
+//public void setAllowsAnimatedImages(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setAllowsAnimatedImages_1, flag);
+//}
+//
+//public void setAutosaves(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setAutosaves_1, flag);
+//}
+//
+//public void setCacheModel(int cacheModel) {
+//  OS.objc_msgSend(this.id, OS.sel_setCacheModel_1, cacheModel);
+//}
+//
+//public void setCursiveFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setCursiveFontFamily_1, family !is null ? family.id : 0);
+//}
+//
+//public void setDefaultFixedFontSize(int size) {
+//  OS.objc_msgSend(this.id, OS.sel_setDefaultFixedFontSize_1, size);
+//}
+//
+//public void setDefaultFontSize(int size) {
+//  OS.objc_msgSend(this.id, OS.sel_setDefaultFontSize_1, size);
+//}
+//
+//public void setDefaultTextEncodingName(NSString encoding) {
+//  OS.objc_msgSend(this.id, OS.sel_setDefaultTextEncodingName_1, encoding !is null ? encoding.id : 0);
+//}
+//
+//public void setFantasyFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setFantasyFontFamily_1, family !is null ? family.id : 0);
+//}
+//
+//public void setFixedFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setFixedFontFamily_1, family !is null ? family.id : 0);
+//}
+
+public void setJavaEnabled(bool flag) {
+    OS.objc_msgSend(this.id, OS.sel_setJavaEnabled_1, flag);
+}
+
+//public void setJavaScriptCanOpenWindowsAutomatically(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setJavaScriptCanOpenWindowsAutomatically_1, flag);
+//}
+//
+//public void setJavaScriptEnabled(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setJavaScriptEnabled_1, flag);
+//}
+//
+//public void setLoadsImagesAutomatically(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setLoadsImagesAutomatically_1, flag);
+//}
+//
+//public void setMinimumFontSize(int size) {
+//  OS.objc_msgSend(this.id, OS.sel_setMinimumFontSize_1, size);
+//}
+//
+//public void setMinimumLogicalFontSize(int size) {
+//  OS.objc_msgSend(this.id, OS.sel_setMinimumLogicalFontSize_1, size);
+//}
+//
+//public void setPlugInsEnabled(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setPlugInsEnabled_1, flag);
+//}
+//
+//public void setPrivateBrowsingEnabled(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setPrivateBrowsingEnabled_1, flag);
+//}
+//
+//public void setSansSerifFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setSansSerifFontFamily_1, family !is null ? family.id : 0);
+//}
+//
+//public void setSerifFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setSerifFontFamily_1, family !is null ? family.id : 0);
+//}
+//
+//public void setShouldPrintBackgrounds(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setShouldPrintBackgrounds_1, flag);
+//}
+//
+//public void setStandardFontFamily(NSString family) {
+//  OS.objc_msgSend(this.id, OS.sel_setStandardFontFamily_1, family !is null ? family.id : 0);
+//}
+//
+//public void setTabsToLinks(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setTabsToLinks_1, flag);
+//}
+//
+//public void setUserStyleSheetEnabled(bool flag) {
+//  OS.objc_msgSend(this.id, OS.sel_setUserStyleSheetEnabled_1, flag);
+//}
+//
+//public void setUserStyleSheetLocation(NSURL URL) {
+//  OS.objc_msgSend(this.id, OS.sel_setUserStyleSheetLocation_1, URL !is null ? URL.id : 0);
+//}
+//
+//public void setUsesPageCache(bool usesPageCache) {
+//  OS.objc_msgSend(this.id, OS.sel_setUsesPageCache_1, usesPageCache);
+//}
+//
+//public bool shouldPrintBackgrounds() {
+//  return OS.objc_msgSend(this.id, OS.sel_shouldPrintBackgrounds) !is 0;
+//}
+//
+//public NSString standardFontFamily() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_standardFontFamily);
+//  return result !is 0 ? new NSString(result) : null;
+//}
+//
+public static WebPreferences standardPreferences() {
+    int result = OS.objc_msgSend(OS.class_WebPreferences, OS.sel_standardPreferences);
+    return result !is 0 ? new WebPreferences(result) : null;
+}
+//
+//public bool tabsToLinks() {
+//  return OS.objc_msgSend(this.id, OS.sel_tabsToLinks) !is 0;
+//}
+//
+//public bool userStyleSheetEnabled() {
+//  return OS.objc_msgSend(this.id, OS.sel_userStyleSheetEnabled) !is 0;
+//}
+//
+//public NSURL userStyleSheetLocation() {
+//  int result = OS.objc_msgSend(this.id, OS.sel_userStyleSheetLocation);
+//  return result !is 0 ? new NSURL(result) : null;
+//}
+//
+//public bool usesPageCache() {
+//  return OS.objc_msgSend(this.id, OS.sel_usesPageCache) !is 0;
+//}
+
+}