3 * \file updatableinset.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * \author Lars Gullik Bjønnes
10 * \author Matthias Ettrich
12 * Full author contact details are available in file CREDITS.
15 #ifndef UPDATABLEINSET_H
16 #define UPDATABLEINSET_H
18 // Updatable Insets. These insets can receive directly user interaction.
19 // Note that all pure methods from Inset class are pure here too.
24 class UpdatableInset : public InsetOld {
27 UpdatableInset() : scx(0) {}
29 virtual EDITABLE editable() const;
30 /// identification as text inset in a cursor slice
31 UpdatableInset * asUpdatableInset() { return this; }
33 /// return the cursor dim
34 virtual void getCursorDim(int &, int &) const;
36 virtual bool showInsetDialog(BufferView *) const { return false; }
39 /// scrolls offset pixels
40 void setScroll(int maxwidth, int offset) const;
41 /// returns the actual scroll value
42 virtual int scroll(bool recursive = true) const;