2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 *======================================================
11 * \file ControlFloat.h
14 #ifndef CONTROLFLOAT_H
15 #define CONTROLFLOAT_H
23 #include "ControlInset.h"
32 FloatParams(InsetFloat const &);
36 bool allow_here_definitely;
41 bool operator==(FloatParams const & p1, FloatParams const & p2)
43 return p1.placement == p2.placement && p1.allow_here_definitely == p2.allow_here_definitely;
48 bool operator!=(FloatParams const & p1, FloatParams const & p2)
54 /** A controller for Minipage dialogs.
56 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
59 ControlFloat(LyXView &, Dialogs &);
61 /// Dispatch the changed parameters to the kernel.
62 virtual void applyParamsToInset();
64 virtual void applyParamsNoInset();
65 /// get the parameters from the string passed to createInset.
66 virtual FloatParams const getParams(string const &)
67 { return FloatParams(); }
68 /// get the parameters from the inset passed to showInset.
69 virtual FloatParams const getParams(InsetFloat const &);