#include "insettext.h"
#include "lyxfont.h"
#include "LColor.h"
-#if 1 // NEW_INSETS
-#include "lyxparagraph.h"
-#endif
class Painter;
class LyXText;
public:
///
enum UpdateCodes {
- NONE = 0,
- FULL
+ NONE = 0,
+ FULL
};
///
static int const TEXT_TO_TOP_OFFSET = 2;
///
InsetCollapsable();
///
- Inset * Clone(Buffer const &) const;
- ///
void Read(Buffer const *, LyXLex &);
///
void Write(Buffer const *, std::ostream &) const;
///
bool LockInsetInInset(BufferView *, UpdatableInset *);
///
- bool UnlockInsetInInset(BufferView *, UpdatableInset *, bool lr = false);
+ bool UnlockInsetInInset(BufferView *, UpdatableInset *,
+ bool lr = false);
///
bool UpdateInsetInInset(BufferView *, Inset *);
///
void InsetKeyPress(XKeyEvent *);
///
UpdatableInset::RESULT LocalDispatch(BufferView *, kb_action,
- string const &);
+ string const &);
///
int Latex(Buffer const *, std::ostream &,
bool fragile, bool free_spc) const;
void deleteLyXText(BufferView *, bool recursive=true) 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:
///
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;