]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/printdlgimpl.h
Add an updateParagraph signal, take the opportunity to make a couple of
[lyx.git] / src / frontends / qt2 / printdlgimpl.h
1 /**
2  * \file printdlgimpl.h
3  * Copyright 2001 LyX Team
4  * see the file COPYING
5  *
6  * \author John Levon, moz@compsoc.man.ac.uk
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #ifndef PRINTDLGIMPL_H
11 #define PRINTDLGIMPL_H
12
13 #include <config.h>
14  
15 #include "printdlg.h"
16 #include "lyxrc.h" 
17 #include "PrinterParams.h"
18
19 class FormPrint;
20
21 class PrintDlgImpl : public PrintDlg
22
23         Q_OBJECT
24
25 public:
26         PrintDlgImpl( FormPrint *f, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
27         ~PrintDlgImpl();
28         
29         // FIXME: these should return std::string !
30         const char * getFrom();
31         const char * getTo();
32         const char * getPrinter();
33         const char * getFile();
34         const char * getCount();
35         PrinterParams::Target getTarget();
36         PrinterParams::WhichPages getWhichPages();
37         bool getReverse();
38         bool getSort();
39         void setFrom(const char *);
40         void setTo(const char *);
41         void setPrinter(const char *);
42         void setFile(const char *);
43         void setCount(int);
44         void setTarget(PrinterParams::Target);
45         void setWhichPages(PrinterParams::WhichPages);
46         void setReverse(bool);
47         void setSort(bool);
48           
49
50 protected slots:
51         void cancel_adaptor();
52         void browse_file();
53         void print();
54         void set_collate(int);
55
56 private:
57         FormPrint * form_;
58
59 };
60
61 #endif // PRINTDLGIMPL_H