]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlGraphics.h
Controller-view split of Graphics and Index popups.
[lyx.git] / src / frontends / controllers / ControlGraphics.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlGraphics.h
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #ifndef CONTROLGRAPHICS_H
15 #define CONTROLGRAPHICS_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif 
20
21 #include "ControlInset.h"
22 #include "insets/insetgraphicsParams.h" // need operator!=()
23
24 class InsetGraphics;
25 class LyXView;
26
27 /** A controller for Graphics dialogs.
28  */
29 class ControlGraphics
30         : public ControlInset<InsetGraphics, InsetGraphicsParams> {
31 public:
32         ///
33         ControlGraphics(LyXView &, Dialogs &);
34
35         /// The file dialog popup requires a LyXView * ???
36         LyXView * lv() const;
37
38 private:
39         /// Dispatch the changed parameters to the kernel.
40         virtual void applyParamsToInset();
41         /// 
42         virtual void applyParamsNoInset();
43         /// get the parameters from the string passed to createInset.
44         virtual InsetGraphicsParams const getParams(string const &);
45         /// get the parameters from the inset passed to showInset.
46         virtual InsetGraphicsParams const getParams(InsetGraphics const &);
47 };
48
49 #endif // CONTROLGRAPHICS_H