#include "insettext.h"
#include "lyxfont.h"
#include "LColor.h"
-#if 1 // NEW_INSETS
-#include "lyxparagraph.h"
-#endif
class Painter;
class LyXText;
///
InsetCollapsable();
///
- //Inset * Clone(Buffer const &) const;
- ///
void Read(Buffer const *, LyXLex &);
///
void Write(Buffer const *, std::ostream &) const;
void resizeLyXText(BufferView *) const;
///
std::vector<string> const getLabelList() const;
+ ///
+ bool nodraw() const;
+ ///
+ int scroll(bool recursive=true) const;
+ ///
+ void scroll(BufferView *bv, float sx) const {
+ UpdatableInset::scroll(bv, sx);
+ }
+ ///
+ void scroll(BufferView *bv, int offset) const {
+ UpdatableInset::scroll(bv, offset);
+ }
+
protected:
///
int ascent_collapsed(Painter &, LyXFont const &) const;
LColor::color framecolor;
///
LyXFont labelfont;
-#ifdef NEW_INSETS
public:
-#endif
///
InsetText inset;
protected:
mutable int button_top_y;
///
mutable int button_bottom_y;
-
private:
///
string label;