summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KHTMLSettings.java
blob: 32bddf680d78188adcaa684ae89124a2444ccabb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQColor;
import org.kde.qt.QtSupport;

/**

 Settings for the HTML view.
 		@short    Settings for the HTML view.

*/
public class KHTMLSettings implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KHTMLSettings(Class dummy){}

	/**	
		 This enum specifies whether Java/JavaScript execution is allowed.
		     		@short    This enum specifies whether Java/JavaScript execution is allowed.
	*/
	public static final int KJavaScriptDunno = 0;
	public static final int KJavaScriptAccept = 1;
	public static final int KJavaScriptReject = 2;

	public static final int KAnimationDisabled = 0;
	public static final int KAnimationLoopOnce = 1;
	public static final int KAnimationEnabled = 2;

	/**	
		 This enum specifies the policy for window.open
		     		@short    This enum specifies the policy for window.
	*/
	public static final int KJSWindowOpenAllow = 0;
	public static final int KJSWindowOpenAsk = 1;
	public static final int KJSWindowOpenDeny = 2;
	public static final int KJSWindowOpenSmart = 3;

	/**	
		 This enum specifies the policy for window.status and .defaultStatus
		     		@short    This enum specifies the policy for window.
	*/
	public static final int KJSWindowStatusAllow = 0;
	public static final int KJSWindowStatusIgnore = 1;

	/**	
		 This enum specifies the policy for window.moveBy and .moveTo
		     		@short    This enum specifies the policy for window.
	*/
	public static final int KJSWindowMoveAllow = 0;
	public static final int KJSWindowMoveIgnore = 1;

	/**	
		 This enum specifies the policy for window.resizeBy and .resizeTo
		     		@short    This enum specifies the policy for window.
	*/
	public static final int KJSWindowResizeAllow = 0;
	public static final int KJSWindowResizeIgnore = 1;

	/**	
		 This enum specifies the policy for window.focus
		     		@short    This enum specifies the policy for window.
	*/
	public static final int KJSWindowFocusAllow = 0;
	public static final int KJSWindowFocusIgnore = 1;

	/**	
			     		@short
	*/
	public KHTMLSettings() {
		newKHTMLSettings();
	}
	private native void newKHTMLSettings();
	public KHTMLSettings(KHTMLSettings other) {
		newKHTMLSettings(other);
	}
	private native void newKHTMLSettings(KHTMLSettings other);
	/**	
		 Called by constructor and reparseConfiguration
		     		@short    Called by constructor and reparseConfiguration
	*/
	public native void init();
	/**	 Read settings from <code>config.</code>
			@param config is a pointer to TDEConfig object.
			@param reset if true, settings are always set; if false,
		  settings are only set if the config file has a corresponding key.
		     		@short   Read settings from <code>config.</code>
	*/
	public native void init(TDEConfig config, boolean reset);
	public native void init(TDEConfig config);
	public native boolean changeCursor();
	public native boolean underlineLink();
	public native boolean hoverLink();
	public native boolean allowTabulation();
	public native boolean autoSpellCheck();
	public native int showAnimations();
	public native String stdFontName();
	public native String fixedFontName();
	public native String serifFontName();
	public native String sansSerifFontName();
	public native String cursiveFontName();
	public native String fantasyFontName();
	public native void setStdFontName(String n);
	public native void setFixedFontName(String n);
	public native int minFontSize();
	public native int mediumFontSize();
	public native boolean jsErrorsEnabled();
	public native void setJSErrorsEnabled(boolean enabled);
	public native String encoding();
	public native boolean followSystemColors();
	public native TQColor textColor();
	public native TQColor baseColor();
	public native TQColor linkColor();
	public native TQColor vLinkColor();
	public native boolean autoLoadImages();
	public native boolean unfinishedImageFrame();
	public native boolean isOpenMiddleClickEnabled();
	public native boolean isBackRightClickEnabled();
	public native boolean isJavaEnabled(String hostname);
	public native boolean isJavaEnabled();
	public native boolean isJavaScriptEnabled(String hostname);
	public native boolean isJavaScriptEnabled();
	public native boolean isJavaScriptDebugEnabled(String hostname);
	public native boolean isJavaScriptDebugEnabled();
	public native boolean isJavaScriptErrorReportingEnabled(String hostname);
	public native boolean isJavaScriptErrorReportingEnabled();
	public native boolean isPluginsEnabled(String hostname);
	public native boolean isPluginsEnabled();
	public native boolean isAdFiltered(String url);
	public native boolean isAdFilterEnabled();
	public native boolean isHideAdsEnabled();
	public native void addAdFilter(String url);
	public native boolean accessKeysEnabled();
	public native int windowOpenPolicy(String hostname);
	public native int windowOpenPolicy();
	public native int windowMovePolicy(String hostname);
	public native int windowMovePolicy();
	public native int windowResizePolicy(String hostname);
	public native int windowResizePolicy();
	public native int windowStatusPolicy(String hostname);
	public native int windowStatusPolicy();
	public native int windowFocusPolicy(String hostname);
	public native int windowFocusPolicy();
	/**	 reads from <code>config</code>'s current group, forcing initialization
		 if <code>reset</code> is true.
			@param config is a pointer to TDEConfig object.
			@param reset true if initialization is to be forced.
			@param global true if the global domain is to be read.
			@param pd_settings will be initialised with the computed (inherited)
				settings.
		      		@short   reads from <code>config</code>'s current group, forcing initialization  if <code>reset</code> is true.
	*/
	// void readDomainSettings(TDEConfig* arg1,bool arg2,bool arg3,KPerDomainSettings& arg4); >>>> NOT CONVERTED
	public native String settingsToCSS();
	public native String userStyleSheet();
	public native boolean isFormCompletionEnabled();
	public native int maxFormCompletionItems();
	public native boolean isAutoDelayedActionsEnabled();
	public native String fallbackAccessKeysAssignments();
	public native void setJSPopupBlockerPassivePopup(boolean enabled);
	public native boolean jsPopupBlockerPassivePopup();
	public static native int strToAdvice(String _str);
	public static native void splitDomainAdvice(String configStr, StringBuffer domain, int javaAdvice, int javaScriptAdvice);
	public static native String adviceToStr(int _advice);
	public static native String availableFamilies();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}