lyx_mirror/src/frontends/controllers/ControlFloat.C
Lars Gullik Bjønnes f1c24d1009 *duck*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4417 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-18 15:44:30 +00:00

52 lines
889 B
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 2001 The LyX Team.
*
* ======================================================
*
*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "ControlFloat.h"
ControlFloat::ControlFloat(LyXView & lv, Dialogs & d)
: ControlInset<InsetFloat, FloatParams>(lv, d)
{}
void ControlFloat::applyParamsToInset()
{
inset()->placement(params().placement);
}
void ControlFloat::applyParamsNoInset()
{}
FloatParams const ControlFloat::getParams(InsetFloat const & inset)
{
return FloatParams(inset);
}
FloatParams::FloatParams()
: placement("htbp"),
allow_here_definitely(true)
{}
FloatParams::FloatParams(InsetFloat const & inset)
: placement(inset.placement()),
allow_here_definitely(!inset.wide())
{}