]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QDocument.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QDocument.h
1 // -*- C++ -*-
2 /**
3  * \file QDocument.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QDOCUMENT_H
13 #define QDOCUMENT_H
14
15 #include "QDialogView.h"
16 #include "BranchList.h"
17 #include <boost/scoped_ptr.hpp>
18 #include <string>
19 #include <vector>
20
21 class LengthCombo;
22 class  QLineEdit;
23
24 namespace lyx {
25 namespace frontend {
26
27 class ControlDocument;
28 class QDocumentDialog;
29
30 class QDocument
31         : public QController<ControlDocument, QView<QDocumentDialog> >
32 {
33 public:
34
35         friend class QDocumentDialog;
36
37         QDocument(Dialog &);
38
39         void showPreamble();
40
41 private:
42         /// Apply changes
43         void apply();
44         /// update
45         void update_contents();
46         /// build the dialog
47         void build_dialog();
48         /// save as default template
49         void saveDocDefault();
50         /// reset to default params
51         void useClassDefaults();
52 };
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #endif // QDOCUMENT_H