3 * \file ControlGraphics.h
4 * Read the file COPYING
7 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
13 #ifndef CONTROLGRAPHICS_H
14 #define CONTROLGRAPHICS_H
20 #include "ControlInset.h"
22 // needed to instatiate inset->hideDialog in ControlInset
23 #include "insets/insetgraphics.h"
29 class InsetGraphicsParams;
32 /** A controller for Graphics dialogs.
35 : public ControlInset<InsetGraphics, InsetGraphicsParams> {
38 ControlGraphics(LyXView &, Dialogs &);
41 string const Browse(string const &);
42 /// Read the Bounding Box from a eps or ps-file
43 string const readBB(string const & file);
46 /// test if file exist
47 bool isFilenameValid(string const & fname) const;
50 /// Dispatch the changed parameters to the kernel.
51 virtual void applyParamsToInset();
53 virtual void applyParamsNoInset();
54 /// get the parameters from the string passed to createInset.
55 virtual InsetGraphicsParams const getParams(string const &);
56 /// get the parameters from the inset passed to showInset.
57 virtual InsetGraphicsParams const getParams(InsetGraphics const &);
61 /// The (tranlated) GUI string and it's LaTeX equivalent.
62 typedef std::pair<string, string> RotationOriginPair;
64 std::vector<RotationOriginPair> getRotationOriginData();
67 #endif // CONTROLGRAPHICS_H