1 /* AbiWord
2  * Copyright (C) 2005 Martin Sevior
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 AP_UNIXDIALOG_LATEX_H
21 #define AP_UNIXDIALOG_LATEX_H
22 
23 #include "ap_Dialog_Latex.h"
24 
25 class XAP_UnixFrame;
26 
27 /*****************************************************************/
28 
29 class AP_UnixDialog_Latex: public AP_Dialog_Latex
30 {
31 public:
32 	AP_UnixDialog_Latex(XAP_DialogFactory * pDlgFactory, XAP_Dialog_Id id);
33 	virtual ~AP_UnixDialog_Latex(void);
34 
35 	virtual void			runModeless(XAP_Frame * pFrame);
36 	virtual void			destroy(void);
37 	virtual void			activate(void);
38 	virtual void			notifyActiveFrame(XAP_Frame *pFrame);
39 
40 	static XAP_Dialog *		static_constructor(XAP_DialogFactory *, XAP_Dialog_Id id);
41 
42 	// callbacks can fire these events
43 
44 	void			event_Insert(void);
45 	void			event_Close(void);
46 	void			event_WindowDelete(void);
47 	virtual void            setLatexInGUI(void);
48 	virtual bool            getLatexFromGUI(void);
49 
50 protected:
51 	virtual void constructDialog(void);
52 
53 	// pointers to widgets we need
54 
55 	GtkWidget * m_wClose;
56 	GtkWidget * m_wInsert;
57 	GtkWidget * m_wText;
58 	GtkWidget * m_windowMain;
59 };
60 
61 #endif /* AP_UNIXDIALOG_Latex_H */
62 
63 
64 
65 
66 
67 
68 
69 
70