]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/GPreamble.h
fix math fonts with LyX/Mac
[lyx.git] / src / frontends / gnome / GPreamble.h
1 // -*- C++ -*-
2 /**
3  * \file GPreamble.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Michael Koziarski
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GPREAMBLE_H
13 #define GPREAMBLE_H
14
15
16 #include "ControlPreamble.h"
17 #include "GnomeBase.h"
18
19 namespace Gtk {
20 class Button;
21 class TextView;
22 }
23
24 /**
25  * This class implements the dialog to modify the LaTeX preamble
26  */
27 class GPreamble : public GnomeCB<ControlPreamble> {
28 public:
29         ///
30         GPreamble();
31         ///
32         ~GPreamble();
33
34         void apply();
35         void update();
36
37 private:
38         /// Build the dialog
39         void build();
40
41         /// Returns true if the dialog input is in a valid state.
42         bool validate() const;
43
44         ///
45         void connect_signals();
46         ///
47         void disconnect_signals();
48
49         /// generated by accessors.py
50         Gtk::Button * ok_btn() const;
51         /// generated by accessors.py
52         Gtk::Button * apply_btn() const;
53         /// generated by accessors.py
54         Gtk::Button * cancel_btn() const;
55         /// generated by accessors.py
56         Gtk::TextView * preamble() const;
57
58         ///
59         SigC::Connection slot_preamble_;
60
61
62 };
63
64 #endif