3 * \file ControlMinipage.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
13 #ifndef CONTROLMINIPAGE_H
14 #define CONTROLMINIPAGE_H
19 #include "ControlInset.h"
20 #include "insets/insetminipage.h" // InsetMinipage::Position
22 /** This should be moved back into insetminipage.h and InsetMinipage should
23 contain an instance of it. */
25 struct MinipageParams {
29 MinipageParams(InsetMinipage const &);
33 InsetMinipage::Position pos;
38 bool operator==(MinipageParams const &, MinipageParams const &);
40 bool operator!=(MinipageParams const &, MinipageParams const &);
43 /** A controller for Minipage dialogs.
45 class ControlMinipage : public ControlInset<InsetMinipage, MinipageParams> {
48 ControlMinipage(LyXView &, Dialogs &);
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 MinipageParams const getParams(string const &)
56 { return MinipageParams(); }
57 /// get the parameters from the inset passed to showInset.
58 virtual MinipageParams const getParams(InsetMinipage const &);