]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QGraphics.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[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 "QGraphicsDialog.h"
18
19 #include <vector>
20
21 namespace lyx {
22 namespace frontend {
23
24 class ControlGraphics;
25
26 ///
27 class QGraphics
28         : public QController<ControlGraphics, QView<QGraphicsDialog> >
29 {
30 public:
31         ///
32         friend class QGraphicsDialog;
33         ///
34         QGraphics(Dialog &);
35 protected:
36         virtual bool isValid();
37 private:
38         /// Apply changes
39         virtual void apply();
40         /// update
41         virtual void update_contents();
42         /// build the dialog
43         virtual void build_dialog();
44         /// get bounding box from file
45         void getBB();
46
47         /// Store the LaTeX names for the rotation origins.
48         std::vector<std::string> origin_ltx;
49
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // QGRAPHICS_H