#ifndef INSETCOLLAPSABLE_H
#define INSETCOLLAPSABLE_H
-#include "Inset.h"
#include "InsetText.h"
#include "Box.h"
-#include "TextClass.h"
+
+#include <map>
namespace lyx {
///
InsetCollapsable(InsetCollapsable const & rhs);
///
- ~InsetCollapsable();
+ virtual ~InsetCollapsable();
///
InsetCollapsable * asInsetCollapsable() { return this; }
///
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///
- docstring name() const { return from_ascii("Collapsable"); }
+ docstring layoutName() const { return from_ascii("Collapsable"); }
///
void read(Lexer &);
///
bool editable() const;
///
bool hasSettings() const { return true; }
+ ///
+ bool clickable(int x, int y) const;
/// can we go further down on mouse click?
bool descendable(BufferView const & bv) const;
///
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
- bool setMouseHover(BufferView const * bv, bool mouse_hover);
+ bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
///
ColorCode backgroundColor(PainterInfo const &) const
{ return getLayout().bgcolor(); }
///
virtual bool usePlainLayout() const { return true; }
///
- virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
+ docstring contextMenu(BufferView const & bv, int x, int y) const;
+ ///
+ docstring contextMenuName() const;
///
docstring floatName(std::string const & type) const;
protected: