1 /* AbiWord
2  * Copyright (C) 2001 Martin Sevior <msevior@physics.unimelb.edu.au>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  * 02110-1301 USA.
18  */
19 
20 
21 #ifndef AP_PREVIEW_ABI_H
22 #define AP_PREVIEW_ABI_H
23 
24 #include "ut_misc.h"
25 #include "ut_types.h"
26 #include "ut_vector.h"
27 
28 #include "xap_Preview.h"
29 #include "xap_Frame.h"
30 #include "xap_App.h"
31 #include "fv_View.h"
32 #include "pd_Document.h"
33 
34 class GR_Font;
35 
36 class ABI_EXPORT AP_Preview_Abi : public XAP_Preview
37 {
38 public:
39 
40 	AP_Preview_Abi(GR_Graphics * gc, UT_uint32 iWidth,  UT_uint32 iHeight,
41 				   XAP_Frame * pFrame, PreViewMode previewMode, PD_Document * pDoc = NULL);
42 	virtual ~AP_Preview_Abi(void);
43 
44 	FV_View * getView(void) const;
45 	PD_Document * getDoc(void) const;
46 	virtual void draw(const UT_Rect *clip=NULL);
47 
48 protected:
49 
50 private:
51 	XAP_Frame * m_pFrame;
52 	FV_View * m_pView;
53 	FL_DocLayout * m_pDocLayout;
54     PD_Document * m_pDocument;
55 };
56 
57 #endif /* AP_PREVIEW_ABI_H */
58 
59 
60 
61