source: wkhtmltox/trunk/fuentes/include/wkhtmltox/imagesettings.hh @ 51

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

wip

File size: 2.1 KB
Line 
1// Copyright 2010 wkhtmltopdf authors
2//
3// This file is part of wkhtmltopdf.
4//
5// wkhtmltopdf is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// wkhtmltopdf is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with wkhtmltopdf.  If not, see <http://www.gnu.org/licenses/>.
17
18#ifndef __IMAGESETTINGS_HH__
19#define __IMAGESETTINGS_HH__
20
21#include <QString>
22#include <wkhtmltox/loadsettings.hh>
23#include <wkhtmltox/websettings.hh>
24
25#include <wkhtmltox/dllbegin.inc>
26namespace wkhtmltopdf {
27namespace settings {
28
29/*! \brief Settings for cropping image */
30struct DLL_PUBLIC CropSettings {
31        CropSettings();
32        //! Cropping left/x coord
33        int left;
34        //! Cropping top/y coord
35        int top;
36        //! Cropping width/w dime
37        int width;
38        //! Cropping height/h dime
39        int height;
40};
41
42/*! \brief Class holding all user settings.
43
44    This class holds all the user settings, settings can be filled in by hand,
45    or with other methods.
46    \sa CommandLineParser::parse()
47*/
48struct DLL_PUBLIC ImageGlobal {
49        ImageGlobal();
50
51        //! Crop related settings
52        CropSettings crop;
53        //! Scale related settings
54        // ScaleSettings scale;
55
56        LoadGlobal loadGlobal;
57        LoadPage loadPage;
58        Web web;
59
60        //! Be less verbose
61        bool quiet;
62
63        bool transparent;
64
65        //! Should we use the graphics system
66        bool useGraphics;
67
68        QString in;
69        //! The file for output
70        QString out;
71        //! The output format
72        QString fmt;
73
74        //! Set the screen width
75        int screenWidth;
76
77        //! Set the screen height
78        int screenHeight;
79
80        //! Image Quality
81        int quality;
82
83        bool smartWidth;
84
85        QString get(const char * name);
86        bool set(const char * name, const QString & value);
87};
88
89#include <wkhtmltox/dllend.inc>
90}
91}
92#endif //__IMAGESETTINGS_HH__
Note: See TracBrowser for help on using the repository browser.