4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
8 * \author Martin Vermeer
10 * Full author contact details are available in file CREDITS.
16 #include "InsetCollapsable.h"
20 /** The Flex inset, e.g., CharStyle, Custom inset or XML short element
23 class InsetFlex : public InsetCollapsable {
26 InsetFlex(Buffer *, std::string const & layoutName);
28 docstring name() const { return from_utf8(name_); }
30 InsetLayout const & getLayout() const;
32 InsetCode lyxCode() const { return FLEX_CODE; }
34 InsetLayout::InsetDecoration decoration() const;
36 void write(std::ostream &) const;
37 /// should paragraph indendation be ommitted in any case?
38 bool neverIndent() const { return true; }
40 bool hasSettings() const { return false; }
42 bool getStatus(Cursor & cur, FuncRequest const & cmd,
45 void doDispatch(Cursor & cur, FuncRequest & cmd);
49 InsetFlex(InsetFlex const &);
53 Inset * clone() const { return new InsetFlex(*this); }