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 &);
39 bool operator==(FloatParams const & p1, FloatParams const & p2)
41 return p1.placement == p2.placement;
45 /** A controller for Minipage dialogs.
47 class ControlFloat : public ControlInset<InsetFloat, FloatParams> {
50 ControlFloat(LyXView &, Dialogs &);
52 /// Dispatch the changed parameters to the kernel.
53 virtual void applyParamsToInset();
55 virtual void applyParamsNoInset();
56 /// get the parameters from the string passed to createInset.
57 virtual FloatParams const getParams(string const &)
58 { return FloatParams(); }
59 /// get the parameters from the inset passed to showInset.
60 virtual FloatParams const getParams(InsetFloat const &);