#ifndef INSETCOLLAPSABLE_H
#define INSETCOLLAPSABLE_H
-#include "InsetBase.h"
+#include "Inset.h"
#include "InsetText.h"
#include "Box.h"
-#include "LyXFont.h"
+#include "Font.h"
#include <string>
namespace lyx {
-class LyXText;
+class Text;
class Paragraph;
class CursorSlice;
///
InsetCollapsable(InsetCollapsable const & rhs);
///
- docstring getInsetName() const { return from_ascii("Collapsable"); }
+ docstring name() const { return from_ascii("Collapsable"); }
///
void read(Buffer const &, Lexer &);
///
///
virtual void setButtonLabel() {}
///
- void setLabelFont(LyXFont & f);
+ void setLabelFont(Font & f);
///
bool isOpen() const { return status_ == Open || status_ == Inlined; }
///
///
void edit(Cursor & cur, bool left);
///
- InsetBase * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y);
///
void setInlined() { status_ = Inlined; }
///
protected:
///
- LyXFont labelfont_;
+ Font labelfont_;
///
mutable Box button_dim;
///
};
// A helper function that pushes the cursor out of the inset.
-void leaveInset(Cursor & cur, InsetBase const & in);
+void leaveInset(Cursor & cur, Inset const & in);
} // namespace lyx