]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
Joao latest bits
[lyx.git] / src / frontends / qt2 / 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
17 #include "QDialogView.h"
18 #include <vector>
19
20
21 class ControlGraphics;
22 class QGraphicsDialog;
23
24 ///
25 class QGraphics
26         : public QController<ControlGraphics, QView<QGraphicsDialog> >
27 {
28 public:
29         ///
30         friend class QGraphicsDialog;
31         ///
32         QGraphics(Dialog &);
33 protected:
34         virtual bool isValid();
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         /// get bounding box from file
43         void getBB();
44
45         /// Store the LaTeX names for the rotation origins.
46         std::vector<std::string> origin_ltx;
47
48 };
49
50 #endif // QGRAPHICS_H