Lines Matching refs:QWebSettings
21 #include "qwebsettings.h"
102 hash->insert(QWebSettings::MissingImageGraphic, QPixmap(QLatin1String(":webkit/resources/missingImage.png")));
103 hash->insert(QWebSettings::MissingPluginGraphic, QPixmap(QLatin1String(":webkit/resources/nullPlugin.png")));
104 hash->insert(QWebSettings::DefaultFrameIconGraphic, QPixmap(QLatin1String(":webkit/resources/urlIcon.png")));
105 hash->insert(QWebSettings::TextAreaSizeGripCornerGraphic, QPixmap(QLatin1String(":webkit/resources/textAreaResizeCorner.png")));
106 hash->insert(QWebSettings::DeleteButtonGraphic, QPixmap(QLatin1String(":webkit/resources/deleteButton.png")));
107 hash->insert(QWebSettings::InputSpeechButtonGraphic, QPixmap(QLatin1String(":webkit/resources/inputSpeech.png")));
108 hash->insert(QWebSettings::SearchCancelButtonGraphic, QApplication::style()->standardPixmap(QStyle::SP_DialogCloseButton));
109 hash->insert(QWebSettings::SearchCancelButtonPressedGraphic, QApplication::style()->standardPixmap(QStyle::SP_DialogCloseButton));
122 QWebSettingsPrivate* global = QWebSettings::globalSettings()->d;
124 QString family = fontFamilies.value(QWebSettings::StandardFont,
125 global->fontFamilies.value(QWebSettings::StandardFont));
128 family = fontFamilies.value(QWebSettings::FixedFont,
129 global->fontFamilies.value(QWebSettings::FixedFont));
132 family = fontFamilies.value(QWebSettings::SerifFont,
133 global->fontFamilies.value(QWebSettings::SerifFont));
136 family = fontFamilies.value(QWebSettings::SansSerifFont,
137 global->fontFamilies.value(QWebSettings::SansSerifFont));
140 family = fontFamilies.value(QWebSettings::CursiveFont,
141 global->fontFamilies.value(QWebSettings::CursiveFont));
144 family = fontFamilies.value(QWebSettings::FantasyFont,
145 global->fontFamilies.value(QWebSettings::FantasyFont));
148 int size = fontSizes.value(QWebSettings::MinimumFontSize,
149 global->fontSizes.value(QWebSettings::MinimumFontSize));
152 size = fontSizes.value(QWebSettings::MinimumLogicalFontSize,
153 global->fontSizes.value(QWebSettings::MinimumLogicalFontSize));
156 size = fontSizes.value(QWebSettings::DefaultFontSize,
157 global->fontSizes.value(QWebSettings::DefaultFontSize));
160 size = fontSizes.value(QWebSettings::DefaultFixedFontSize,
161 global->fontSizes.value(QWebSettings::DefaultFixedFontSize));
164 bool value = attributes.value(QWebSettings::AutoLoadImages,
165 global->attributes.value(QWebSettings::AutoLoadImages));
168 value = attributes.value(QWebSettings::JavascriptEnabled,
169 global->attributes.value(QWebSettings::JavascriptEnabled));
172 value = attributes.value(QWebSettings::AcceleratedCompositingEnabled,
173 global->attributes.value(QWebSettings::AcceleratedCompositingEnabled));
178 value = attributes.value(QWebSettings::WebGLEnabled,
179 global->attributes.value(QWebSettings::WebGLEnabled));
184 value = attributes.value(QWebSettings::HyperlinkAuditingEnabled,
185 global->attributes.value(QWebSettings::HyperlinkAuditingEnabled));
189 value = attributes.value(QWebSettings::JavascriptCanOpenWindows,
190 global->attributes.value(QWebSettings::JavascriptCanOpenWindows));
193 value = attributes.value(QWebSettings::JavascriptCanCloseWindows,
194 global->attributes.value(QWebSettings::JavascriptCanCloseWindows));
197 value = attributes.value(QWebSettings::JavaEnabled,
198 global->attributes.value(QWebSettings::JavaEnabled));
201 value = attributes.value(QWebSettings::PluginsEnabled,
202 global->attributes.value(QWebSettings::PluginsEnabled));
205 value = attributes.value(QWebSettings::PrivateBrowsingEnabled,
206 global->attributes.value(QWebSettings::PrivateBrowsingEnabled));
209 value = attributes.value(QWebSettings::SpatialNavigationEnabled,
210 global->attributes.value(QWebSettings::SpatialNavigationEnabled));
213 value = attributes.value(QWebSettings::JavascriptCanAccessClipboard,
214 global->attributes.value(QWebSettings::JavascriptCanAccessClipboard));
218 value = attributes.value(QWebSettings::DeveloperExtrasEnabled,
219 global->attributes.value(QWebSettings::DeveloperExtrasEnabled));
222 value = attributes.value(QWebSettings::FrameFlatteningEnabled,
223 global->attributes.value(QWebSettings::FrameFlatteningEnabled));
235 value = attributes.value(QWebSettings::PrintElementBackgrounds,
236 global->attributes.value(QWebSettings::PrintElementBackgrounds));
240 value = attributes.value(QWebSettings::OfflineStorageDatabaseEnabled,
241 global->attributes.value(QWebSettings::OfflineStorageDatabaseEnabled));
245 value = attributes.value(QWebSettings::OfflineWebApplicationCacheEnabled,
246 global->attributes.value(QWebSettings::OfflineWebApplicationCacheEnabled));
249 value = attributes.value(QWebSettings::LocalStorageEnabled,
250 global->attributes.value(QWebSettings::LocalStorageEnabled));
253 value = attributes.value(QWebSettings::LocalContentCanAccessRemoteUrls,
254 global->attributes.value(QWebSettings::LocalContentCanAccessRemoteUrls));
257 value = attributes.value(QWebSettings::LocalContentCanAccessFileUrls,
258 global->attributes.value(QWebSettings::LocalContentCanAccessFileUrls));
261 value = attributes.value(QWebSettings::XSSAuditingEnabled,
262 global->attributes.value(QWebSettings::XSSAuditingEnabled));
266 value = attributes.value(QWebSettings::TiledBackingStoreEnabled,
267 global->attributes.value(QWebSettings::TiledBackingStoreEnabled));
271 value = attributes.value(QWebSettings::SiteSpecificQuirksEnabled,
272 global->attributes.value(QWebSettings::SiteSpecificQuirksEnabled));
289 QWebSettings* QWebSettings::globalSettings()
291 static QWebSettings* global = 0;
293 global = new QWebSettings;
298 \class QWebSettings
300 \brief The QWebSettings class provides an object to store the settings used
305 Each QWebPage object has its own QWebSettings object, which configures the
310 QWebSettings allows configuration of browser properties, such as font sizes and
313 function. The \l{QWebSettings::WebAttribute}{WebAttribute} enum further describes
316 QWebSettings also configures global properties such as the web page memory
323 \l{QWebSettings::PluginsEnabled}{PluginsEnabled} attribute. For many applications,
345 \enum QWebSettings::FontFamily
360 \enum QWebSettings::FontSize
362 This enum describes the font sizes configurable through QWebSettings.
372 \enum QWebSettings::WebGraphic
387 \enum QWebSettings::WebAttribute
389 This enum describes various attributes that are configurable through QWebSettings.
433 QWebSettings::LocalStorageEnabled instead.
469 QWebSettings::QWebSettings()
473 d->fontSizes.insert(QWebSettings::MinimumFontSize, 0);
474 d->fontSizes.insert(QWebSettings::MinimumLogicalFontSize, 0);
475 d->fontSizes.insert(QWebSettings::DefaultFontSize, 16);
476 d->fontSizes.insert(QWebSettings::DefaultFixedFontSize, 13);
480 d->fontFamilies.insert(QWebSettings::StandardFont, defaultFont.defaultFamily());
481 d->fontFamilies.insert(QWebSettings::SerifFont, defaultFont.defaultFamily());
484 d->fontFamilies.insert(QWebSettings::FantasyFont, defaultFont.defaultFamily());
487 d->fontFamilies.insert(QWebSettings::CursiveFont, defaultFont.defaultFamily());
490 d->fontFamilies.insert(QWebSettings::SansSerifFont, defaultFont.defaultFamily());
493 d->fontFamilies.insert(QWebSettings::FixedFont, defaultFont.defaultFamily());
495 d->attributes.insert(QWebSettings::AutoLoadImages, true);
496 d->attributes.insert(QWebSettings::DnsPrefetchEnabled, false);
497 d->attributes.insert(QWebSettings::JavascriptEnabled, true);
498 d->attributes.insert(QWebSettings::SpatialNavigationEnabled, false);
499 d->attributes.insert(QWebSettings::LinksIncludedInFocusChain, true);
500 d->attributes.insert(QWebSettings::ZoomTextOnly, false);
501 d->attributes.insert(QWebSettings::PrintElementBackgrounds, true);
502 d->attributes.insert(QWebSettings::OfflineStorageDatabaseEnabled, false);
503 d->attributes.insert(QWebSettings::OfflineWebApplicationCacheEnabled, false);
504 d->attributes.insert(QWebSettings::LocalStorageEnabled, false);
505 d->attributes.insert(QWebSettings::LocalContentCanAccessRemoteUrls, false);
506 d->attributes.insert(QWebSettings::LocalContentCanAccessFileUrls, true);
507 d->attributes.insert(QWebSettings::AcceleratedCompositingEnabled, true);
508 d->attributes.insert(QWebSettings::WebGLEnabled, false);
509 d->attributes.insert(QWebSettings::HyperlinkAuditingEnabled, false);
510 d->attributes.insert(QWebSettings::TiledBackingStoreEnabled, false);
511 d->attributes.insert(QWebSettings::FrameFlatteningEnabled, false);
512 d->attributes.insert(QWebSettings::SiteSpecificQuirksEnabled, true);
520 QWebSettings::QWebSettings(WebCore::Settings* settings)
531 QWebSettings::~QWebSettings()
542 void QWebSettings::setFontSize(FontSize type, int size)
551 int QWebSettings::fontSize(FontSize type) const
555 QWebSettingsPrivate* global = QWebSettings::globalSettings()->d;
565 This function has no effect on the global QWebSettings instance.
567 void QWebSettings::resetFontSize(FontSize type)
587 void QWebSettings::setUserStyleSheetUrl(const QUrl& location)
598 QUrl QWebSettings::userStyleSheetUrl() const
613 void QWebSettings::setDefaultTextEncoding(const QString& encoding)
625 QString QWebSettings::defaultTextEncoding() const
640 void QWebSettings::setIconDatabasePath(const QString& path)
666 QString QWebSettings::iconDatabasePath()
677 void QWebSettings::clearIconDatabase()
693 QIcon QWebSettings::iconForUrl(const QUrl& url)
710 QWebPluginDatabase *QWebSettings::pluginDatabase()
724 \l{QWebSettings::WebGraphic}{MissingImageGraphic} is drawn instead.
728 void QWebSettings::setWebGraphic(WebGraphic type, const QPixmap& graphic)
743 QPixmap QWebSettings::webGraphic(WebGraphic type)
754 void QWebSettings::clearMemoryCaches()
787 void QWebSettings::setMaximumPagesInCache(int pages)
789 QWebSettingsPrivate* global = QWebSettings::globalSettings()->d;
797 int QWebSettings::maximumPagesInCache()
818 void QWebSettings::setObjectCacheCapacities(int cacheMinDeadCapacity, int cacheMaxDead, int totalCapacity)
832 void QWebSettings::setFontFamily(FontFamily which, const QString& family)
842 QString QWebSettings::fontFamily(FontFamily which) const
846 QWebSettingsPrivate* global = QWebSettings::globalSettings()->d;
854 in the global QWebSettings instance.
856 This function has no effect on the global QWebSettings instance.
858 void QWebSettings::resetFontFamily(FontFamily which)
867 \fn void QWebSettings::setAttribute(WebAttribute attribute, bool on)
872 void QWebSettings::setAttribute(WebAttribute attr, bool on)
879 \fn bool QWebSettings::testAttribute(WebAttribute attribute) const
883 bool QWebSettings::testAttribute(WebAttribute attr) const
887 QWebSettingsPrivate* global = QWebSettings::globalSettings()->d;
894 \fn void QWebSettings::resetAttribute(WebAttribute attribute)
897 global QWebSettings instance.
899 This function has no effect on the global QWebSettings instance.
903 void QWebSettings::resetAttribute(WebAttribute attr)
921 \l{QWebSettings::OfflineStorageDatabaseEnabled}{OfflineStorageDatabaseEnabled} attribute.
925 void QWebSettings::setOfflineStoragePath(const QString& path)
940 QString QWebSettings::offlineStoragePath()
955 void QWebSettings::setOfflineStorageDefaultQuota(qint64 maximumSize)
957 QWebSettings::globalSettings()->d->offlineStorageDefaultQuota = maximumSize;
965 qint64 QWebSettings::offlineStorageDefaultQuota()
967 return QWebSettings::globalSettings()->d->offlineStorageDefaultQuota;
988 \l{QWebSettings::OfflineWebApplicationCacheEnabled}{OfflineWebApplicationCacheEnabled} attribute.
992 void QWebSettings::setOfflineWebApplicationCachePath(const QString& path)
1007 QString QWebSettings::offlineWebApplicationCachePath()
1022 void QWebSettings::setOfflineWebApplicationCacheQuota(qint64 maximumSize)
1036 qint64 QWebSettings::offlineWebApplicationCacheQuota()
1054 \l{QWebSettings::LocalStorageEnabled}{LocalStorageEnabled} attribute.
1058 void QWebSettings::setLocalStoragePath(const QString& path)
1071 QString QWebSettings::localStoragePath() const
1088 void QWebSettings::enablePersistentStorage(const QString& path)
1103 QWebSettings::setIconDatabasePath(storagePath);
1104 QWebSettings::setOfflineWebApplicationCachePath(storagePath);
1105 QWebSettings::setOfflineStoragePath(WebCore::pathByAppendingComponent(storagePath, "Databases"));
1106 QWebSettings::globalSettings()->setLocalStoragePath(WebCore::pathByAppendingComponent(storagePath, "LocalStorage"));
1107 QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, true);
1108 QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineStorageDatabaseEnabled, true);
1109 QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, true);
1127 \fn QWebSettingsPrivate* QWebSettings::handle() const