| 1 | /* |
| 2 | * File: PagePrinter.h |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: May 10, 2014 |
| 6 | * |
| 7 | * Copyright (c) 2009-2014 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This file contains the page formatting and PDF extension classes |
| 11 | * |
| 12 | * This program is free software: you can redistribute it and/or modify |
| 13 | * it under the terms of the GNU General Public License as published by |
| 14 | * the Free Software Foundation, either version 3 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #ifndef PAGEPRINTER_H |
| 28 | #define PAGEPRINTER_Hcxx . . $ `HercPrinter/PagePrinter.h:28:9`! |
| 29 | |
| 30 | #include "PrinterInterface.h"cxx . . $ `<file>/HercPrinter/PrinterInterface.h`/ |
| 31 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 32 | |
| 33 | #include <QPdfWriter> |
| 34 | |
| 35 | class PrintRunnercxx . . $ PrintRunner#; |
| 36 | |
| 37 | class PagePrintercxx . . $ PagePrinter# : public GenericPagePrintercxx . . $ GenericPagePrinter# |
| 38 | { |
| 39 | Q_OBJECTcxx . . $ PagePrinter#staticMetaObject. |
| 40 | public: |
| 41 | PagePrintercxx . . $ PagePrinter#PagePrinter(fc86a1dab6867639).(StationeryPtrcxx . . $ StationeryPtr# &stationery, QPaintercxx . . $ QPainter#& painter); |
| 42 | virtual void setBarsColorcxx . . $ PagePrinter#setBarsColor(49f6e7a06ebc5aa8).(); |
| 43 | virtual bool printcxx . . $ PagePrinter#print(a3c6993e7f86f3c4).(QByteArraycxx . . $ QByteArray#); |
| 44 | |
| 45 | protected: |
| 46 | void setValuescxx . . $ PagePrinter#setValues(b45ddcbc8423892c).(bool); |
| 47 | virtual void closecxx . . $ PagePrinter#close(49f6e7a06ebc5aa8).(); |
| 48 | |
| 49 | private: |
| 50 | const DecolationRulesPtrcxx . . $ DecolationRulesPtr# mRulescxx . . $ PagePrinter#mRules.; |
| 51 | QStringcxx . . $ QString# mStationeryNamecxx . . $ PagePrinter#mStationeryName.; |
| 52 | QPaintercxx . . $ QPainter#* mPaintercxx . . $ PagePrinter#mPainter.; |
| 53 | |
| 54 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 55 | void endPagecxx . . $ PagePrinter#endPage(49f6e7a06ebc5aa8).(); |
| 56 | }; |
| 57 | |
| 58 | class PdfPrintercxx . . $ PdfPrinter# : public GenericPagePrintercxx . . $ GenericPagePrinter# |
| 59 | { |
| 60 | public: |
| 61 | PdfPrintercxx . . $ PdfPrinter#PdfPrinter(51a2c7cb5fe6dd8d).(const QStringcxx . . $ QString#& dir, StationeryPtrcxx . . $ StationeryPtr#& stationery, DecolationRulesPtrcxx . . $ DecolationRulesPtr#& decolation, int linesPerInch, int fontSize); |
| 62 | virtual void setBarsColorcxx . . $ PdfPrinter#setBarsColor(49f6e7a06ebc5aa8).(); |
| 63 | virtual bool printcxx . . $ PdfPrinter#print(a3c6993e7f86f3c4).(QByteArraycxx . . $ QByteArray# line); |
| 64 | virtual void closecxx . . $ PdfPrinter#close(49f6e7a06ebc5aa8).(); |
| 65 | virtual bool endOfJobcxx . . $ PdfPrinter#endOfJob(d94238e3c0732208).(QByteArraycxx . . $ QByteArray#& line); |
| 66 | |
| 67 | private: |
| 68 | QStringcxx . . $ QString# decodeFilenamecxx . . $ PdfPrinter#decodeFilename(4365c3963150523e).(); |
| 69 | bool doPrintcxx . . $ PdfPrinter#doPrint(d94238e3c0732208).(QByteArraycxx . . $ QByteArray#& line); |
| 70 | void setValuescxx . . $ PdfPrinter#setValues(b45ddcbc8423892c).(bool eject); |
| 71 | |
| 72 | |
| 73 | QMultiMapcxx . . $ QMultiMap#<int, AccountingFieldcxx . . $ AccountingField#> mAccountingFieldscxx . . $ PdfPrinter#mAccountingFields.; |
| 74 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QStringcxx . . $ QString#> mVariablescxx . . $ PdfPrinter#mVariables.; |
| 75 | QPdfWritercxx . . $ QPdfWriter# * mPdfcxx . . $ PdfPrinter#mPdf.; |
| 76 | QStringcxx . . $ QString# mDircxx . . $ PdfPrinter#mDir.; |
| 77 | QListcxx . . $ QList#<QByteArraycxx . . $ QByteArray#> mFirstPagecxx . . $ PdfPrinter#mFirstPage.; |
| 78 | int mFontSizecxx . . $ PdfPrinter#mFontSize.; |
| 79 | int mCurPagecxx . . $ PdfPrinter#mCurPage.; |
| 80 | int mCurLinecxx . . $ PdfPrinter#mCurLine.; |
| 81 | int mLastPagescxx . . $ PdfPrinter#mLastPages.; |
| 82 | int mLastPagesCountdowncxx . . $ PdfPrinter#mLastPagesCountdown.; |
| 83 | }; |
| 84 | |
| 85 | #endif // PAGEPRINTER_H |
| 86 |