Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/printerwriter.h
Go to the documentation of this file.
00001 /*
00002  * printerwriter.h - declaraction of writer to printer
00003  *
00004  * Copyright (C) 2014, Yodalee, lc85301@gmail.com
00005  *
00006  * This file is part of Qucs
00007  *
00008  * Qucs is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2, or (at your option)
00011  * any later version.
00012  *
00013  * This software is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Qucs.  If not, see <http://www.gnu.org/licenses/>.
00020  *
00021  */
00022 
00023 #ifndef PRINTERWRITER_H_
00024 #define PRINTERWRITER_H_ value
00025 
00026 #include <QPrinter>
00027 #include <QString>
00028 
00029 class QWidget;
00030 
00031 class PrinterWriter
00032 {
00033 public:
00034   PrinterWriter ();
00035   virtual ~PrinterWriter ();
00036   void print(QWidget *);
00037   void noGuiPrint(QWidget *doc, QString printFile,
00038       QString page, int dpi, QString color, QString orientation);
00039 
00040   void setFitToPage(bool _fitToPage) { fitToPage = _fitToPage; };
00041 private:
00042   bool fitToPage;
00043   QPrinter *Printer;
00044 };
00045 
00046 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines