]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QGraphics.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file QGraphics.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  * \author Herbert Voß
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QGRAPHICS_H
14 #define QGRAPHICS_H
15
16 #include "QDialogView.h"
17 #include <vector>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlGraphics;
23 class QGraphicsDialog;
24
25 ///
26 class QGraphics
27         : public QController<ControlGraphics, QView<QGraphicsDialog> >
28 {
29 public:
30         ///
31         friend class QGraphicsDialog;
32         ///
33         QGraphics(Dialog &);
34 protected:
35         virtual bool isValid();
36 private:
37         /// Apply changes
38         virtual void apply();
39         /// update
40         virtual void update_contents();
41         /// build the dialog
42         virtual void build_dialog();
43         /// get bounding box from file
44         void getBB();
45
46         /// Store the LaTeX names for the rotation origins.
47         std::vector<std::string> origin_ltx;
48
49 };
50
51 } // namespace frontend
52 } // namespace lyx
53
54 #endif // QGRAPHICS_H