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