]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QExternal.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QExternal.h
1 // -*- C++ -*-
2 /**
3  * \file QExternal.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 QEXTERNAL_H
13 #define QEXTERNAL_H
14
15 #include "QDialogView.h"
16 #include <map>
17
18 namespace lyx {
19 namespace frontend {
20
21 class ControlExternal;
22 class QExternalDialog;
23
24
25 class QExternal
26         : public QController<ControlExternal, QView<QExternalDialog> >
27 {
28 public:
29         friend class QExternalDialog;
30
31         QExternal(Dialog &);
32
33         typedef std::map<std::string, QString> MapType;
34
35 private:
36         /// Apply changes
37         virtual void apply();
38         /// update
39         virtual void update_contents();
40         /// build the dialog
41         virtual void build_dialog();
42
43         /// Helper function called when the template is changed.
44         void updateTemplate();
45         /// get bounding box from file
46         void getBB();
47
48         MapType extra_;
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // QEXTERNAL_H