*/
class InsetCollapsable : public InsetText {
public:
- ///
- static int const TEXT_TO_TOP_OFFSET = 2;
- ///
- static int const TEXT_TO_BOTTOM_OFFSET = 2;
///
InsetCollapsable(BufferParams const &, CollapseStatus status = Inset::Open);
///
InsetCollapsable(InsetCollapsable const & rhs);
- ///
+
+ InsetCollapsable * asInsetCollapsable() { return this; }
+ InsetCollapsable const * asInsetCollapsable() const { return this; }
docstring name() const { return from_ascii("Collapsable"); }
///
void setLayout(BufferParams const &);
///
virtual void setButtonLabel() {}
///
- void setLabelFont(FontInfo const & f);
- ///
bool isOpen() const { return geometry() != ButtonOnly; }
///
CollapseStatus status() const;
Inset * editXY(Cursor & cur, int x, int y);
///
docstring floatName(std::string const & type, BufferParams const &) const;
+ ///
+ virtual void resetParagraphsFont();
protected:
///