#ifndef INSETFLEX_H
#define INSETFLEX_H
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
namespace lyx {
/** The Flex inset, e.g., CharStyle, Custom inset or XML short element
*/
-class InsetFlex : public InsetCollapsable {
+class InsetFlex : public InsetCollapsible {
public:
///
InsetFlex(Buffer *, std::string const & layoutName);
///
- docstring name() const { return from_utf8(name_); }
+ docstring layoutName() const { return from_utf8("Flex:" + name_); }
///
InsetLayout const & getLayout() const;
///
InsetLayout::InsetDecoration decoration() const;
///
void write(std::ostream &) const;
- /// should paragraph indendation be ommitted in any case?
- bool neverIndent() const { return true; }
+ /// should paragraph indentation be omitted in any case?
+ bool neverIndent() const { return true; }
///
bool hasSettings() const { return false; }
///
FuncStatus &) const;
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
+ ///
+ void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
protected:
///