source: wkhtmltox/trunk/fuentes/src/lib/websettings.hh @ 51

Last change on this file since 51 was 51, checked in by mabarracus, 4 years ago

wip

File size: 1.7 KB
Line 
1// -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
2// vi:set ts=4 sts=4 sw=4 noet :
3//
4// Copyright 2010 wkhtmltopdf authors
5//
6// This file is part of wkhtmltopdf.
7//
8// wkhtmltopdf is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Lesser General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12//
13// wkhtmltopdf is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU Lesser General Public License
19// along with wkhtmltopdf.  If not, see <http://www.gnu.org/licenses/>.
20
21#ifndef __WEBSETTINGS_HH__
22#define __WEBSETTINGS_HH__
23
24#include <QNetworkProxy>
25#include <QString>
26
27#include <wkhtmltox/dllbegin.inc>
28namespace wkhtmltopdf {
29namespace settings {
30
31struct DLL_PUBLIC Web {
32        Web();
33
34        //! Should we print background images
35        bool background;
36
37        //! Should we load images
38        bool loadImages;
39
40        //! Should we enable Javascript
41        bool enableJavascript;
42
43        //! Should the horrible intelligent shrinking feature be enabled?
44        bool enableIntelligentShrinking;
45
46        //! Minimum font size
47        int minimumFontSize;
48
49        //! Should we use the print or the screen media type
50        bool printMediaType;
51
52        //! Encoding used to enterpit a document with do supplied encoding
53        QString defaultEncoding;
54
55        //! Stylesheet supplied by the user
56        QString userStyleSheet;
57
58        //! Should plugins be allowed
59        bool enablePlugins;
60};
61
62}
63}
64#include <wkhtmltox/dllend.inc>
65#endif //__WEBSETTINGS_HH__
Note: See TracBrowser for help on using the repository browser.