2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlGraphics.h
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
13 * \author Herbert Voss <voss@perce.de>
16 #ifndef CONTROLGRAPHICS_H
17 #define CONTROLGRAPHICS_H
23 #include "ControlInset.h"
26 class InsetGraphicsParams;
29 /** A controller for Graphics dialogs.
32 : public ControlInset<InsetGraphics, InsetGraphicsParams> {
35 ControlGraphics(LyXView &, Dialogs &);
38 string const Browse(string const &);
39 /// Read the Bounding Box from a eps or ps-file
40 string const readBB(string const & file);
47 /// Dispatch the changed parameters to the kernel.
48 virtual void applyParamsToInset();
50 virtual void applyParamsNoInset();
51 /// get the parameters from the string passed to createInset.
52 virtual InsetGraphicsParams const getParams(string const &);
53 /// get the parameters from the inset passed to showInset.
54 virtual InsetGraphicsParams const getParams(InsetGraphics const &);
57 #endif // CONTROLGRAPHICS_H