00001 /* AbiWord 00002 * Copyright (C) 2001 Martin Sevior <msevior@physics.unimelb.edu.au> 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 00021 #ifndef AP_PREVIEW_ABI_H 00022 #define AP_PREVIEW_ABI_H 00023 00024 #include "ut_misc.h" 00025 #include "ut_types.h" 00026 #include "ut_vector.h" 00027 00028 #include "xap_Preview.h" 00029 #include "xap_Frame.h" 00030 #include "xap_App.h" 00031 #include "fv_View.h" 00032 #include "pd_Document.h" 00033 00034 class GR_Font; 00035 00036 class ABI_EXPORT AP_Preview_Abi : public XAP_Preview 00037 { 00038 public: 00039 00040 AP_Preview_Abi(GR_Graphics * gc, UT_uint32 iWidth, UT_uint32 iHeight, 00041 XAP_Frame * pFrame, PreViewMode previewMode, PD_Document * pDoc = NULL); 00042 virtual ~AP_Preview_Abi(void); 00043 00044 FV_View * getView(void) const; 00045 PD_Document * getDoc(void) const; 00046 virtual void draw(const UT_Rect *clip=NULL); 00047 00048 protected: 00049 00050 private: 00051 XAP_Frame * m_pFrame; 00052 FV_View * m_pView; 00053 FL_DocLayout * m_pDocLayout; 00054 PD_Document * m_pDocument; 00055 }; 00056 00057 #endif /* AP_PREVIEW_ABI_H */ 00058 00059 00060