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
22 #include "ControlInset.h"
23 #include "insets/insetminipage.h" // InsetMinipage::Position
25 /** This should be moved back into insetminipage.h and InsetMinipage should
26 contain an instance of it. */
28 struct MinipageParams {
32 MinipageParams(InsetMinipage const &);
36 InsetMinipage::Position pos;
41 bool operator==(MinipageParams const &, MinipageParams const &);
43 bool operator!=(MinipageParams const &, MinipageParams const &);
46 /** A controller for Minipage dialogs.
48 class ControlMinipage : public ControlInset<InsetMinipage, MinipageParams> {
51 ControlMinipage(LyXView &, Dialogs &);
54 /// Dispatch the changed parameters to the kernel.
55 virtual void applyParamsToInset();
57 virtual void applyParamsNoInset();
58 /// get the parameters from the string passed to createInset.
59 virtual MinipageParams const getParams(string const &)
60 { return MinipageParams(); }
61 /// get the parameters from the inset passed to showInset.
62 virtual MinipageParams const getParams(InsetMinipage const &);