]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QDocument.h
Minipage is no more (long live the box inset)
[lyx.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 "BranchList.h"
21
22 #include <boost/scoped_ptr.hpp>
23 #include <string>
24
25
26 class ControlDocument;
27 class QDocumentDialog;
28 class LengthCombo;
29 class  QLineEdit;
30
31 class QDocument
32         : public Qt2CB<ControlDocument, Qt2DB<QDocumentDialog> >
33 {
34 public:
35
36         friend class QDocumentDialog;
37
38         QDocument();
39
40         void showPreamble();
41
42 private:
43         /// Apply changes
44         void apply();
45         /// update
46         void update_contents();
47         /// build the dialog
48         void build_dialog();
49         /// save as default template
50         void saveDocDefault();
51         /// reset to default params
52         void useClassDefaults();
53
54         /// FIXME
55         std::vector<std::string> lang_;
56         /// Contains all legal branches for this doc
57         BranchList branchlist_;
58 };
59
60 #endif // QDOCUMENT_H