#ifndef INSETCOLLAPSABLE_H
#define INSETCOLLAPSABLE_H
-#include "Inset.h"
#include "InsetText.h"
#include "Box.h"
-#include "TextClass.h"
+
+#include <map>
namespace lyx {
///
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 &);
///
/// Default looks
virtual InsetLayout::InsetDecoration decoration() const;
+ /// Inset font
+ virtual FontInfo getFont() const { return getLayout().font(); }
+ /// Label font
+ virtual FontInfo getLabelfont() const { return getLayout().labelfont(); }
///
enum Geometry {
TopButton,
///
virtual bool usePlainLayout() const { return true; }
///
- virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
+ std::string contextMenu(BufferView const & bv, int x, int y) const;
+ ///
+ std::string contextMenuName() const;
///
docstring floatName(std::string const & type) const;
protected: