]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
QGraphics fixes
[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 Voss
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef QGRAPHICS_H
14 #define QGRAPHICS_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "insets/insetgraphics.h"
21 #include "Qt2Base.h"
22
23 class ControlGraphics;
24 class QGraphicsDialog;
25
26 ///
27 class QGraphics
28         : public Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> >
29 {
30 public:
31         ///
32         friend class QGraphicsDialog;
33         ///
34         QGraphics();
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<string> origin_ltx;
49
50 };
51
52 #endif // QGRAPHICS_H