• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_Dlg_PrintPreview.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource Application Framework
00004  * Copyright (C) 1998 AbiSource, Inc.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef XAP_DIALOG_PRINTPREVIEW_H
00023 #define XAP_DIALOG_PRINTPREVIEW_H
00024 
00025 #include "xap_Dialog.h"
00026 
00027 class GR_Graphics;
00028 
00029 class XAP_Frame;
00030 
00031 /*****************************************************************/
00032 
00033 class ABI_EXPORT XAP_Dialog_PrintPreview : public XAP_Dialog_NonPersistent
00034 {
00035  public:
00036     XAP_Dialog_PrintPreview(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
00037     virtual ~XAP_Dialog_PrintPreview(void);
00038 
00039     void setPaperSize (const char *);
00040     void                        setDocumentTitle(const char *);
00041     void                        setDocumentPathname(const char * );
00042     virtual GR_Graphics *       getPrinterGraphicsContext(void) = 0;
00043     virtual void                releasePrinterGraphicsContext(GR_Graphics * pGraphics) = 0;
00044     virtual void                runModal(XAP_Frame * pFrame) = 0;
00045 
00046  protected:
00047     char *                  m_szDocumentTitle;      /* input */
00048     char *                  m_szDocumentPathname;   /* input */
00049     char *                  m_szPaperSize; /* input */
00050 };
00051 
00052 #endif /* XAP_DIALOG_PRINTPREVIEW_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1