source: wkhtmltox/trunk/fuentes/src/image/imagecommandlineparser.hh @ 51

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

wip

File size: 2.2 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, 2011 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 __IMAGECOMMANDLINEPARSER_HH__
22#define __IMAGECOMMANDLINEPARSER_HH__
23#include "commandlineparserbase.hh"
24#include <cstdio>
25#include <wkhtmltox/imagesettings.hh>
26
27/*! \brief The class is responsible for parsing command line information
28*/
29class ImageCommandLineParser: public CommandLineParserBase {
30public:
31        const static int global = 1;
32        wkhtmltopdf::settings::ImageGlobal & settings;
33
34        //arguments.cc
35        ImageCommandLineParser(wkhtmltopdf::settings::ImageGlobal & settings);
36        ~ImageCommandLineParser() {};
37        //docparts.cc
38        void outputManName(Outputter * o) const;
39        void outputSynopsis(Outputter * o) const;
40        void outputDescripton(Outputter * o) const;
41        void outputArgsFromStdin(Outputter * o) const;
42        void outputNotPatched(Outputter * o, bool sure) const;
43        void outputPageBreakDoc(Outputter * o) const;
44        void outputContact(Outputter * o) const;
45        void outputDocStart(Outputter * o) const;
46        void outputCompilation(Outputter * o) const;
47        void outputInstallation(Outputter * o) const;
48        void outputExamples(Outputter * o) const;
49
50        //commandlineparser.cc
51        virtual void usage(FILE * fd, bool extended) const;
52        virtual void manpage(FILE * fd) const;
53        virtual void readme(FILE * fd, bool html) const;
54        virtual QString appName() const {return "wkhtmltoimage";}
55
56        //void loadDefaults();
57        void parseArguments(int argc, const char ** argv, bool final=false);
58
59};
60#endif //__IMAGECOMMANDLINEPARSER_HH__
Note: See TracBrowser for help on using the repository browser.