1 /* AbiSource Application Framework
2  * Copyright (C) 1998-2000 AbiSource, Inc.
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 #ifndef XAP_UNIXFONTPREVIEW_H
21 #define XAP_UNIXFONTPREVIEW_H
22 
23 #include <gtk/gtk.h>
24 #include "xap_App.h"
25 #include "xap_FontPreview.h"
26 
27 class XAP_Frame;
28 class GR_CairoGraphics;
29 
30 class XAP_UnixFontPreview : public XAP_FontPreview
31 {
32 public:
33 	XAP_UnixFontPreview(XAP_Frame * pFrame, UT_sint32 left, UT_uint32 top);
34 	virtual ~XAP_UnixFontPreview(void);
35 
36 	GR_CairoGraphics * 		m_gc;
37 protected:
38 private:
39 	// parent frame
40 	XAP_Frame *			m_pFrame;
41 	GtkWidget * 			m_pPreviewWindow;
42 	GtkWidget * 			m_pDrawingArea;
43 	UT_sint32				m_left;
44 	UT_sint32				m_top;
45 };
46 
47 #endif /* XAP_UNIXFONTPREVIEW_H */
48