Debian Codegraph @

src/af/xap/gtk/xap_UnixDlg_PrintPreview.cpp

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2 /* AbiSource Application Framework
3 * Copyright (C) 2003 Dom Lachowicz <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA.
19 */
20
21 #include "ut_assert.h"
22 #include "xap_Dialog_Id.h"
23 #include "xap_DialogFactory.h"
24 #include "xap_Frame.h"
25
26 #include "xap_UnixApp.h"
27 #include "xap_UnixDlg_PrintPreview.h"
28
29 #include "gr_CairoGraphics.h"
30
31 #include "fv_View.h"
32
33 class XAP_UnixFontManager;
34
35 XAP_Dialog * XAP_UnixDialog_PrintPreview::static_constructor(XAP_DialogFactory * pFactory, XAP_Dialog_Id id)
36 {
37 return new XAP_UnixDialog_PrintPreview (pFactory,id);
38 }
39
40 XAP_UnixDialog_PrintPreview::XAP_UnixDialog_PrintPreview(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id)
41 : XAP_Dialog_PrintPreview(pDlgFactory,id), m_pPrintGraphics(NULL)
42 {
43 }
44
45 XAP_UnixDialog_PrintPreview::~XAP_UnixDialog_PrintPreview(void)
46 {
47 }
48
49 void XAP_UnixDialog_PrintPreview::releasePrinterGraphicsContext(GR_Graphics * pGraphics)
50 {
51 UT_return_if_fail(pGraphics == m_pPrintGraphics);
52 DELETEP(m_pPrintGraphics);
53 }
54
55 GR_Graphics * XAP_UnixDialog_PrintPreview::getPrinterGraphicsContext(void)
56 {
57 return m_pPrintGraphics;
58 }
59
60 void XAP_UnixDialog_PrintPreview::runModal(XAP_Frame * /* pFrame */)
61 {
62 UT_ASSERT(UT_SHOULD_NOT_HAPPEN);
63 }