]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTexinfo.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / qt2 / QTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file QTexinfo.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 QTEXINFO_H
13 #define QTEXINFO_H
14
15
16 #include "QDialogView.h"
17 #include "ControlTexinfo.h"
18
19 #include <map>
20 #include <vector>
21
22 class QTexinfoDialog;
23
24 ///
25 class QTexinfo
26          : public QController<ControlTexinfo, QView<QTexinfoDialog> > {
27 public:
28         ///
29         friend class QTexinfoDialog;
30         ///
31         QTexinfo(Dialog &);
32 private:
33         /// Apply changes
34         virtual void apply() {}
35         /// update (do we need this?)
36         virtual void update_contents() {}
37         /// build the dialog
38         virtual void build_dialog();
39         ///
40         void updateStyles(ControlTexinfo::texFileSuffix);
41         ///
42         void updateStyles();
43         ///
44         bool warningPosted;
45         ///
46         ControlTexinfo::texFileSuffix activeStyle;
47         ///
48         typedef std::vector<std::string> ContentsType;
49         std::map<ControlTexinfo::texFileSuffix, ContentsType> texdata_;
50 };
51
52 #endif // QTEXINFO_H