Debian Codegraph @

src/af/xap/xp/xap_Dlg_PrintPreview.h

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2
3 /* AbiSource Application Framework
4 * Copyright (C) 1998 AbiSource, Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301 USA.
20 */
21
22 #ifndef XAP_DIALOG_PRINTPREVIEW_H
23 #define XAP_DIALOG_PRINTPREVIEW_H
24
25 #include "xap_Dialog.h"
26
27 class GR_Graphics;
28
29 class XAP_Frame;
30
31 /*****************************************************************/
32
33 class ABI_EXPORT XAP_Dialog_PrintPreview : public XAP_Dialog_NonPersistent
34 {
35 public:
36 XAP_Dialog_PrintPreview(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
37 virtual ~XAP_Dialog_PrintPreview(void);
38
39 void setPaperSize (const char *);
40 void setDocumentTitle(const char *);
41 void setDocumentPathname(const char * );
42 virtual GR_Graphics * getPrinterGraphicsContext(void) = 0;
43 virtual void releasePrinterGraphicsContext(GR_Graphics * pGraphics) = 0;
44 virtual void runModal(XAP_Frame * pFrame) = 0;
45
46 protected:
47 char * m_szDocumentTitle; /* input */
48 char * m_szDocumentPathname; /* input */
49 char * m_szPaperSize; /* input */
50 };
51
52 #endif /* XAP_DIALOG_PRINTPREVIEW_H */