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"
25 // needed to instatiate inset->hideDialog in ControlInset
26 #include "insets/insetfloat.h"
35 FloatParams(InsetFloat const &);
44 bool operator==(FloatParams const & p1, FloatParams const & p2)
46 return p1.placement == p2.placement && p1.wide == p2.wide;
51 bool operator!=(FloatParams const & p1, FloatParams const & p2)
57 /** A controller for Minipage dialogs.
59 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
62 ControlFloat(LyXView &, Dialogs &);
64 /// Dispatch the changed parameters to the kernel.
65 virtual void applyParamsToInset();
67 virtual void applyParamsNoInset();
68 /// get the parameters from the string passed to createInset.
69 virtual FloatParams const getParams(string const &)
70 { return FloatParams(); }
71 /// get the parameters from the inset passed to showInset.
72 virtual FloatParams const getParams(InsetFloat const &);