]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiGraphics.h
45744ae38ecc079ea0b4bc6b816bb1f53f690e8a
[lyx.git] / src / frontends / qt4 / GuiGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file GuiGraphics.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 "GuiDialogView.h"
17 #include "GuiGraphicsDialog.h"
18
19 #include <vector>
20
21 namespace lyx {
22 namespace frontend {
23
24 class ControlGraphics;
25
26 ///
27 class GuiGraphics
28         : public QController<ControlGraphics, GuiView<GuiGraphicsDialog> >
29 {
30 public:
31         ///
32         friend class GuiGraphicsDialog;
33         ///
34         GuiGraphics(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