3 * \file ControlMinipage.h
4 * Read the file COPYING
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLMINIPAGE_H
13 #define CONTROLMINIPAGE_H
21 #include "ControlInset.h"
22 #include "insets/insetminipage.h" // InsetMinipage::Position
24 /** This should be moved back into insetminipage.h and InsetMinipage should
25 contain an instance of it. */
27 struct MinipageParams {
31 MinipageParams(InsetMinipage const &);
35 InsetMinipage::Position pos;
40 bool operator==(MinipageParams const &, MinipageParams const &);
42 bool operator!=(MinipageParams const &, MinipageParams const &);
45 /** A controller for Minipage dialogs.
47 class ControlMinipage : public ControlInset<InsetMinipage, MinipageParams> {
50 ControlMinipage(LyXView &, Dialogs &);
53 /// Dispatch the changed parameters to the kernel.
54 virtual void applyParamsToInset();
56 virtual void applyParamsNoInset();
57 /// get the parameters from the string passed to createInset.
58 virtual MinipageParams const getParams(string const &)
59 { return MinipageParams(); }
60 /// get the parameters from the inset passed to showInset.
61 virtual MinipageParams const getParams(InsetMinipage const &);