]> git.lyx.org Git - features.git/blob - src/frontends/qt2/QDocument.h
4567612e78e6814b3c05a354c708c1cfc3449812
[features.git] / src / frontends / qt2 / 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
13 #ifndef QDOCUMENT_H
14 #define QDOCUMENT_H
15
16
17 #include "Qt2Base.h"
18 #include "Qt2BC.h"
19
20 #include <boost/scoped_ptr.hpp>
21
22 class ControlDocument;
23 class QDocumentDialog;
24 class LengthCombo;
25 class  QLineEdit;
26
27 class QDocument
28         : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
29 {
30 public:
31
32         friend class QDocumentDialog;
33
34         QDocument();
35
36         void showPreamble();
37
38 private:
39         /// Apply changes
40         void apply();
41         /// update
42         void update_contents();
43         /// build the dialog
44         void build_dialog();
45         /// save as default template
46         void saveDocDefault();
47         /// reset to default params
48         void useClassDefaults();
49
50         /// FIXME
51         std::vector<std::string> lang_;
52 };
53
54 #endif // QDOCUMENT_H