#include "Box.h"
#include "TextClass.h"
-#include <string>
-
namespace lyx {
class CursorSlice;
-class FontInfo;
class InsetLayout;
-class Paragraph;
-class Text;
namespace frontend { class Painter; }
class InsetCollapsable : public InsetText {
public:
///
- InsetCollapsable(BufferParams const &,
+ InsetCollapsable(Buffer const &,
CollapseStatus status = Inset::Open, DocumentClass * tc = 0);
///
InsetCollapsable(InsetCollapsable const & rhs);
///
docstring name() const { return from_ascii("Collapsable"); }
///
- InsetLayout const & getLayout(BufferParams const &) const { return *layout_; }
+ InsetLayout const & getLayout(BufferParams const &) const { return *layout_; }
///
InsetLayout const & getLayout() const { return *layout_; }
///
/// can we go further down on mouse click?
bool descendable() const;
///
- bool isMacroScope() const;
- ///
void setLabel(docstring const & l);
///
virtual void setButtonLabel() {}
///
bool setMouseHover(bool mouse_hover);
///
- virtual ColorCode backgroundColor() const {return layout_->bgcolor(); }
+ ColorCode backgroundColor() const { return layout_->bgcolor(); }
///
int latex(odocstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
- virtual InsetCode lyxCode() const { return COLLAPSABLE_CODE; }
+ InsetCode lyxCode() const { return COLLAPSABLE_CODE; }
/// Allow multiple blanks
virtual bool isFreeSpacing() const { return layout_->isFreeSpacing(); }
/// Is this inset's layout defined in the document's textclass?
/// May be wrong after textclass change or paste from another document
bool undefined() const;
+ ///
+ virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
protected:
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd);
///
void edit(Cursor & cur, bool front,
EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);