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