mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
f1c24d1009
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4417 a592a061-630c-0410-9148-cb99ea01b6c8
52 lines
889 B
C
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())
|
|
{}
|