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 const &, std::string const & layoutName);
28 docstring name() const { return from_utf8(name_); }
31 docstring editMessage() const;
33 InsetCode lyxCode() const { return FLEX_CODE; }
35 void write(std::ostream &) const;
38 int docbook(odocstream &, OutputParams const &) const;
39 /// the string that is passed to the TOC
40 void tocString(odocstream &) const;
42 /// should paragraph indendation be ommitted in any case?
43 bool neverIndent() const { return true; }
46 InsetFlex(InsetFlex const &);
49 Inset * clone() const { return new InsetFlex(*this); }