]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormGraphics.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / xforms / FormGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file FormGraphics.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Baruch Even
8  * \author Herbert Voß
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef FORMGRAPHICS_H
14 #define FORMGRAPHICS_H
15
16 #include "FormDialogView.h"
17 #include <boost/scoped_ptr.hpp>
18 #include <vector>
19
20 namespace lyx {
21 namespace frontend {
22
23 class ControlGraphics;
24 struct FD_graphics;
25 struct FD_graphics_file;
26 struct FD_graphics_bbox;
27 struct FD_graphics_extra;
28
29 /** This class provides an XForms implementation of the Graphics Dialog.
30  */
31 class FormGraphics
32         : public FormController<ControlGraphics, FormView<FD_graphics> > {
33 public:
34         ///
35         FormGraphics(Dialog &);
36 private:
37
38         /** Redraw the form (on receipt of a Signal indicating, for example,
39             that the xforms colours have been re-mapped). */
40         virtual void redraw();
41         /// Set the Params variable for the Controller.
42         virtual void apply();
43         /// Build the dialog.
44         virtual void build();
45         /// Update dialog before/whilst showing it.
46         virtual void update();
47         /// Update the BoundingBox info.
48         void updateBB(std::string const & filename, std::string const & bb_inset);
49         /// Filter the inputs on callback from xforms
50         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
51
52         /// Real GUI implementation.
53         boost::scoped_ptr<FD_graphics_file> file_;
54         ///
55         boost::scoped_ptr<FD_graphics_bbox> bbox_;
56         ///
57         boost::scoped_ptr<FD_graphics_extra> extra_;
58
59         /// Store the LaTeX names for the rotation origins.
60         std::vector<std::string> origins_;
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif  // FORMGRAPHICS_H