3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
7 * \author Martin Vermeer
8 * \author Jürgen Spitzmüller
10 * Full author contact details are available in file CREDITS.
15 #include "InsetFlex.h"
18 #include "BufferParams.h"
21 #include "support/gettext.h"
30 InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName)
31 : InsetCollapsable(buf), name_(layoutName)
37 InsetFlex::InsetFlex(InsetFlex const & in)
38 : InsetCollapsable(in), name_(in.name_)
42 InsetLayout::InsetDecoration InsetFlex::decoration() const
44 InsetLayout::InsetDecoration const dec = getLayout().decoration();
45 return dec == InsetLayout::DEFAULT ? InsetLayout::CONGLOMERATE : dec;
49 void InsetFlex::write(ostream & os) const
52 (name_.empty() ? "undefined" : name_) << "\n";
53 InsetCollapsable::write(os);