]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GWrap.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / gtk / GWrap.h
1 // -*- C++ -*-
2 /**
3  * \file GWrap.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GWRAPH
13 #define GWRAP_H
14
15 #include "GViewBase.h"
16
17 #include "GtkLengthEntry.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlWrap;
23
24 /** This class provides a GTK+ implementation of the Wrap Dialog.
25  */
26 class GWrap : public GViewCB<ControlWrap, GViewGladeB> {
27 public:
28         GWrap(Dialog & parent);
29 private:
30         virtual void apply();
31         virtual void doBuild();
32         virtual void update();
33
34         // apply() won't act when this is true
35         bool applylock_;
36
37         Gtk::ComboBox *placementcombo_;
38         GtkLengthEntry *widthlengthentry_;
39 };
40
41 } // namespace frontend
42 } // namespace lyx
43
44 #endif // GWRAP_H