| 1 |
/* AbiSource Application Framework |
| 2 |
* Copyright (C) 1998 AbiSource, Inc. |
| 3 |
* Copyright (C) 2001, 2003 Hubert Figuiere |
| 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 |
#ifndef XAP_COCOADIALOG_PRINT_H |
| 22 |
#define XAP_COCOADIALOG_PRINT_H |
| 23 |
|
| 24 |
#include "xap_Dlg_Print.h" |
| 25 |
class GR_CocoaCairoGraphics; |
| 26 |
class AP_CocoaFrame; |
| 27 |
class FV_View; |
| 28 |
|
| 29 |
/*****************************************************************/ |
| 30 |
|
| 31 |
class XAP_CocoaDialog_Print : public XAP_Dialog_Print |
| 32 |
{ |
| 33 |
public: |
| 34 |
XAP_CocoaDialog_Print(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id); |
| 35 |
virtual ~XAP_CocoaDialog_Print(void); |
| 36 |
|
| 37 |
virtual void useStart(void); |
| 38 |
virtual void runModal(XAP_Frame * pFrame); |
| 39 |
virtual void runPrint(XAP_Frame * pFrame, FV_View * pPrintView, |
| 40 |
UT_sint32 iWidth, UT_sint32 iHeight); |
| 41 |
virtual void useEnd(void); |
| 42 |
|
| 43 |
virtual GR_Graphics * getPrinterGraphicsContext(void); |
| 44 |
virtual void releasePrinterGraphicsContext(GR_Graphics *); |
| 45 |
|
| 46 |
static XAP_Dialog * static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id); |
| 47 |
private: |
| 48 |
GR_CocoaCairoGraphics* m_pPrintGraphics; |
| 49 |
}; |
| 50 |
|
| 51 |
#endif /* XAP_COCOADIALOG_PRINT_H */ |