]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QInclude.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QInclude.h
1 // -*- C++ -*-
2 /**
3  * \file QInclude.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 Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QINCLUDE_H
13 #define QINCLUDE_H
14
15 #include "QDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlInclude;
21 class QIncludeDialog;
22
23 ///
24 class QInclude : public QController<ControlInclude, QView<QIncludeDialog> >
25 {
26 public:
27         ///
28         friend class QIncludeDialog;
29         ///
30         QInclude(Dialog &);
31 protected:
32         virtual bool isValid();
33 private:
34         /// Apply changes
35         virtual void apply();
36         /// update
37         virtual void update_contents();
38         /// build the dialog
39         virtual void build_dialog();
40
41         /// load the file
42         void load();
43
44         /// browse for a file
45         void browse();
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // QINCLUDE_H