Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSPrinter_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSPrinter_p.h
00003  -------------------
00004  begin                : 14/02/2011
00005  copyright            : (C) 2003-2011 by InfoSiAL S.L.
00006  email                : mail@infosial.com
00007  ***************************************************************************/
00008 /***************************************************************************
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; version 2 of the License.               *
00012  ***************************************************************************/
00013 /***************************************************************************
00014  Este  programa es software libre. Puede redistribuirlo y/o modificarlo
00015  bajo  los  términos  de  la  Licencia  Pública General de GNU   en  su
00016  versión 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSPRINTER_P_H_
00020 #define AQSPRINTER_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include <qprinter.h>
00024 
00025 class AQSPrinter : public AQSVoidPtr
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(Printer, VoidPtr);
00030 
00031 public slots:
00032   QPaintDevice *paintDevice() const {
00033     return static_cast<QPaintDevice *>(o_);
00034   }
00035 
00036   //@AQ_BEGIN_DEF_PUB_SLOTS@
00037 public slots:
00038   QString printerName() const;
00039   void setPrinterName(const QString &);
00040   bool outputToFile() const;
00041   void setOutputToFile(bool);
00042   QString outputFileName() const;
00043   void setOutputFileName(const QString &);
00044   QString printProgram() const;
00045   void setPrintProgram(const QString &);
00046   QString printerSelectionOption() const;
00047   void setPrinterSelectionOption(const QString &);
00048   QString docName() const;
00049   void setDocName(const QString &);
00050   QString creator() const;
00051   void setCreator(const QString &);
00052   uint orientation() const;
00053   void setOrientation(uint);
00054   uint pageSize() const;
00055   void setPageSize(uint);
00056   void setPageOrder(uint);
00057   uint pageOrder() const;
00058   void setResolution(int);
00059   int resolution() const;
00060   void setColorMode(uint);
00061   uint colorMode() const;
00062   void setFullPage(bool);
00063   bool fullPage() const;
00064   QSize margins() const;
00065   void setMargins(uint, uint, uint, uint);
00066   int fromPage() const;
00067   int toPage() const;
00068   void setFromTo(int, int);
00069   int minPage() const;
00070   int maxPage() const;
00071   void setMinMax(int, int);
00072   int numCopies() const;
00073   void setNumCopies(int);
00074   uint printRange() const;
00075   void setPrintRange(uint);
00076   bool newPage();
00077   bool abort();
00078   bool aborted() const;
00079   bool setup(QWidget* = 0);
00080   uint paperSource() const;
00081   void setPaperSource(uint);
00082   void setOptionEnabled(uint, bool);
00083   bool isOptionEnabled(uint);
00084 
00085 protected:
00086   static void *construct(const QSArgumentList &args) {
00087     QMap<int, QStringList> candidates;
00088     candidates[0].append(QString::null);
00089     candidates[1].append(QString::fromLatin1("QPrinter::PrinterMode"));
00090     QString sgt(castArgsSignature(args, candidates));
00091     if (sgt.isEmpty())
00092       return new QPrinter;
00093     if (sgt == QString::fromLatin1("QPrinter::PrinterMode"))
00094       return new QPrinter(static_cast<QPrinter::PrinterMode>(args[0].variant().toUInt()));
00095     return 0;
00096   }
00097 
00098 public:
00099   static QMap<int, QStringList> candidateConstructors() {
00100     QMap<int, QStringList> candidates;
00101     candidates[0].append(QString::null);
00102     candidates[1].append(QString::fromLatin1("QPrinter::PrinterMode"));
00103     return candidates;
00104   }
00105   //@AQ_END_DEF_PUB_SLOTS@
00106 };
00107 
00108 //@AQ_BEGIN_IMP_PUB_SLOTS@
00109 inline QString AQSPrinter::printerName() const
00110 {
00111   AQ_CALL_RET_V(printerName(), QString);
00112 }
00113 inline void AQSPrinter::setPrinterName(const QString &arg0)
00114 {
00115   AQ_CALL_VOID(setPrinterName(arg0));
00116 }
00117 inline bool AQSPrinter::outputToFile() const
00118 {
00119   AQ_CALL_RET_V(outputToFile(), bool);
00120 }
00121 inline void AQSPrinter::setOutputToFile(bool arg0)
00122 {
00123   AQ_CALL_VOID(setOutputToFile(arg0));
00124 }
00125 inline QString AQSPrinter::outputFileName() const
00126 {
00127   AQ_CALL_RET_V(outputFileName(), QString);
00128 }
00129 inline void AQSPrinter::setOutputFileName(const QString &arg0)
00130 {
00131   AQ_CALL_VOID(setOutputFileName(arg0));
00132 }
00133 inline QString AQSPrinter::printProgram() const
00134 {
00135   AQ_CALL_RET_V(printProgram(), QString);
00136 }
00137 inline void AQSPrinter::setPrintProgram(const QString &arg0)
00138 {
00139   AQ_CALL_VOID(setPrintProgram(arg0));
00140 }
00141 inline QString AQSPrinter::printerSelectionOption() const
00142 {
00143   AQ_CALL_RET_V(printerSelectionOption(), QString);
00144 }
00145 inline void AQSPrinter::setPrinterSelectionOption(const QString &arg0)
00146 {
00147   AQ_CALL_VOID(setPrinterSelectionOption(arg0));
00148 }
00149 inline QString AQSPrinter::docName() const
00150 {
00151   AQ_CALL_RET_V(docName(), QString);
00152 }
00153 inline void AQSPrinter::setDocName(const QString &arg0)
00154 {
00155   AQ_CALL_VOID(setDocName(arg0));
00156 }
00157 inline QString AQSPrinter::creator() const
00158 {
00159   AQ_CALL_RET_V(creator(), QString);
00160 }
00161 inline void AQSPrinter::setCreator(const QString &arg0)
00162 {
00163   AQ_CALL_VOID(setCreator(arg0));
00164 }
00165 inline uint AQSPrinter::orientation() const
00166 {
00167   AQ_CALL_RET_V(orientation(), uint);
00168 }
00169 inline void AQSPrinter::setOrientation(uint arg0)
00170 {
00171   AQ_CALL_VOID(setOrientation(static_cast<QPrinter::Orientation>(arg0)));
00172 }
00173 inline uint AQSPrinter::pageSize() const
00174 {
00175   AQ_CALL_RET_V(pageSize(), uint);
00176 }
00177 inline void AQSPrinter::setPageSize(uint arg0)
00178 {
00179   AQ_CALL_VOID(setPageSize(static_cast<QPrinter::PageSize>(arg0)));
00180 }
00181 inline void AQSPrinter::setPageOrder(uint arg0)
00182 {
00183   AQ_CALL_VOID(setPageOrder(static_cast<QPrinter::PageOrder>(arg0)));
00184 }
00185 inline uint AQSPrinter::pageOrder() const
00186 {
00187   AQ_CALL_RET_V(pageOrder(), uint);
00188 }
00189 inline void AQSPrinter::setResolution(int arg0)
00190 {
00191   AQ_CALL_VOID(setResolution(arg0));
00192 }
00193 inline int AQSPrinter::resolution() const
00194 {
00195   AQ_CALL_RET_V(resolution(), int);
00196 }
00197 inline void AQSPrinter::setColorMode(uint arg0)
00198 {
00199   AQ_CALL_VOID(setColorMode(static_cast<QPrinter::ColorMode>(arg0)));
00200 }
00201 inline uint AQSPrinter::colorMode() const
00202 {
00203   AQ_CALL_RET_V(colorMode(), uint);
00204 }
00205 inline void AQSPrinter::setFullPage(bool arg0)
00206 {
00207   AQ_CALL_VOID(setFullPage(arg0));
00208 }
00209 inline bool AQSPrinter::fullPage() const
00210 {
00211   AQ_CALL_RET_V(fullPage(), bool);
00212 }
00213 inline QSize AQSPrinter::margins() const
00214 {
00215   AQ_CALL_RET_V(margins(), QSize);
00216 }
00217 inline void AQSPrinter::setMargins(uint arg0,  uint arg1,  uint arg2,  uint arg3)
00218 {
00219   AQ_CALL_VOID(setMargins(arg0, arg1, arg2, arg3));
00220 }
00221 inline int AQSPrinter::fromPage() const
00222 {
00223   AQ_CALL_RET_V(fromPage(), int);
00224 }
00225 inline int AQSPrinter::toPage() const
00226 {
00227   AQ_CALL_RET_V(toPage(), int);
00228 }
00229 inline void AQSPrinter::setFromTo(int arg0,  int arg1)
00230 {
00231   AQ_CALL_VOID(setFromTo(arg0, arg1));
00232 }
00233 inline int AQSPrinter::minPage() const
00234 {
00235   AQ_CALL_RET_V(minPage(), int);
00236 }
00237 inline int AQSPrinter::maxPage() const
00238 {
00239   AQ_CALL_RET_V(maxPage(), int);
00240 }
00241 inline void AQSPrinter::setMinMax(int arg0,  int arg1)
00242 {
00243   AQ_CALL_VOID(setMinMax(arg0, arg1));
00244 }
00245 inline int AQSPrinter::numCopies() const
00246 {
00247   AQ_CALL_RET_V(numCopies(), int);
00248 }
00249 inline void AQSPrinter::setNumCopies(int arg0)
00250 {
00251   AQ_CALL_VOID(setNumCopies(arg0));
00252 }
00253 inline uint AQSPrinter::printRange() const
00254 {
00255   AQ_CALL_RET_V(printRange(), uint);
00256 }
00257 inline void AQSPrinter::setPrintRange(uint arg0)
00258 {
00259   AQ_CALL_VOID(setPrintRange(static_cast<QPrinter::PrintRange>(arg0)));
00260 }
00261 inline bool AQSPrinter::newPage()
00262 {
00263   AQ_CALL_RET_V(newPage(), bool);
00264 }
00265 inline bool AQSPrinter::abort()
00266 {
00267   AQ_CALL_RET_V(abort(), bool);
00268 }
00269 inline bool AQSPrinter::aborted() const
00270 {
00271   AQ_CALL_RET_V(aborted(), bool);
00272 }
00273 inline bool AQSPrinter::setup(QWidget *arg0)
00274 {
00275   AQ_CALL_RET_V(setup(arg0), bool);
00276 }
00277 inline uint AQSPrinter::paperSource() const
00278 {
00279   AQ_CALL_RET_V(paperSource(), uint);
00280 }
00281 inline void AQSPrinter::setPaperSource(uint arg0)
00282 {
00283   AQ_CALL_VOID(setPaperSource(static_cast<QPrinter::PaperSource>(arg0)));
00284 }
00285 inline void AQSPrinter::setOptionEnabled(uint arg0,  bool arg1)
00286 {
00287   AQ_CALL_VOID(setOptionEnabled(static_cast<QPrinter::PrinterOption>(arg0), arg1));
00288 }
00289 inline bool AQSPrinter::isOptionEnabled(uint arg0)
00290 {
00291   AQ_CALL_RET_V(isOptionEnabled(static_cast<QPrinter::PrinterOption>(arg0)), bool);
00292 }
00293 //@AQ_END_IMP_PUB_SLOTS@
00294 
00295 #endif /* AQSPRINTER_P_H_ */
00296 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'