]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormGraphics.h
use more specific smart_ptr headers
[lyx.git] / src / frontends / xforms / FormGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file FormGraphics.h
4  * Copyright 2000-2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Baruch Even, baruch.even@writeme.com
8  * \author Herbert Voss, voss@lyx.org
9  */
10
11 #ifndef FORMGRAPHICS_H
12 #define FORMGRAPHICS_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19 #include "RadioButtonGroup.h"
20
21 #include <boost/scoped_ptr.hpp>
22
23 #include <vector>
24
25 class ControlGraphics;
26 struct FD_form_graphics;
27 struct FD_form_file;
28 struct FD_form_lyxview;
29 struct FD_form_size;
30 struct FD_form_bbox;
31 struct FD_form_special;
32
33 /** This class provides an XForms implementation of the Graphics Dialog.
34  */
35 class FormGraphics : public FormCB<ControlGraphics, FormDB<FD_form_graphics> > {
36 public:
37         ///
38         FormGraphics(ControlGraphics &);
39
40 private:
41
42         /** Redraw the form (on receipt of a Signal indicating, for example,
43             that the xforms colours have been re-mapped). */
44         virtual void redraw();
45         /// Set the Params variable for the Controller.
46         virtual void apply();
47         /// Build the dialog.
48         virtual void build();
49         /// Update dialog before/whilst showing it.
50         virtual void update();
51         /// Update the BoundingBox info.
52         void updateBB(string const & filename, string const & bb_inset);
53         /// Filter the inputs on callback from xforms
54         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
55
56         /// Fdesign generated method
57         FD_form_graphics * build_graphics();
58         ///
59         FD_form_file * build_file();
60         ///
61         FD_form_lyxview * build_lyxview();
62         ///
63         FD_form_size * build_size();
64         ///
65         FD_form_bbox * build_bbox();
66         ///
67         FD_form_special * build_special();
68
69         /// Real GUI implementation.
70         boost::scoped_ptr<FD_form_file> file_;
71         ///
72         boost::scoped_ptr<FD_form_lyxview> lyxview_;
73         ///
74         boost::scoped_ptr<FD_form_size> size_;
75         ///
76         boost::scoped_ptr<FD_form_bbox> bbox_;
77         ///
78         boost::scoped_ptr<FD_form_special> special_;
79
80         /// Store the LaTeX names for the rotation origins.
81         std::vector<string> origins_;
82 };
83
84 #endif  // FORMGRAPHICS_H