Debian Codegraph @

src/af/xap/win/xap_Win32Dlg_Print.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 1998 AbiSource, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #ifndef XAP_WIN32DIALOG_PRINT_H
21 #define XAP_WIN32DIALOG_PRINT_H
22
23 #include "xap_Dlg_Print.h"
24 #include "xap_Frame.h"
25 #include "ut_Win32LocaleString.h"
26
27 #include <commdlg.h>
28 /*****************************************************************/
29
30 class ABI_EXPORT XAP_Win32Dialog_Print : public XAP_Dialog_Print
31 {
32 public:
33 XAP_Win32Dialog_Print(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
34 virtual ~XAP_Win32Dialog_Print(void);
35
36 virtual void runModal(XAP_Frame * pFrame);
37 virtual GR_Graphics * getPrinterGraphicsContext(void);
38 virtual void releasePrinterGraphicsContext(GR_Graphics *);
39
40 static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id);
41
42 PRINTDLGW * getPrintDlg() const {return m_pPersistPrintDlg;}
43
44 void setOrigPrinter(UT_uint32 i) {m_iOrigPrinter = i;}
45 void setNewPrinter(UT_uint32 i) {m_iNewPrinter = i;}
46
47 UT_uint32 getOrigPrinter() const {return m_iOrigPrinter;}
48 UT_uint32 getNewPrinter() const {return m_iNewPrinter;}
49
50 void setClosed(bool b){m_bClosed = b;}
51
52 protected:
53 void _extractResults(XAP_Frame *pFrame);
54
55 PRINTDLGW * m_pPersistPrintDlg;
56 DOCINFOW m_DocInfo;
57 UT_uint32 m_iOrigPrinter;
58 UT_uint32 m_iNewPrinter;
59 bool m_bClosed;
60 UT_Win32LocaleString m_docName;
61 UT_Win32LocaleString m_fileName;
62 };
63
64 #endif /* XAP_WIN32DIALOG_PRINT_H */