1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 *======================================================
10 * \file ControlMinipage.h
11 * \author Juergen Vigna, jug@sad.it
12 * \author Angus Leeming, a.leeming@ic.ac.uk
15 #ifndef CONTROLMINIPAGE_H
16 #define CONTROLMINIPAGE_H
24 #include "ControlInset.h"
25 #include "insets/insetminipage.h" // InsetMinipage::Position
27 /** This should be moved back into insetminipage.h and InsetMinipage should
28 contain an instance of it. */
30 struct MinipageParams {
34 MinipageParams(InsetMinipage const &);
36 bool operator==(MinipageParams const &) const;
38 bool operator!=(MinipageParams const &) const;
45 InsetMinipage::Position pos;
52 /** A controller for Minipage dialogs.
54 class ControlMinipage : public ControlInset<InsetMinipage, MinipageParams> {
57 ControlMinipage(LyXView &, Dialogs &);
60 /// Dispatch the changed parameters to the kernel.
61 virtual void applyParamsToInset();
63 virtual void applyParamsNoInset();
64 /// get the parameters from the string passed to createInset.
65 virtual MinipageParams const getParams(string const &)
66 { return MinipageParams(); }
67 /// get the parameters from the inset passed to showInset.
68 virtual MinipageParams const getParams(InsetMinipage const &);
74 std::vector<string> const getUnits();
76 } // namespace minipage