///
void setLabelFont(LyXFont & f);
///
- int scroll(bool recursive = true) const;
- ///
bool isOpen() const { return status_ == Open || status_ == Inlined; }
///
bool inlined() const { return status_ == Inlined; }
///
- CollapseStatus status() const { return status_; }
+ CollapseStatus status() const;
///
bool allowSpellCheck() const { return true; }
///
void setStatus(LCursor & cur, CollapseStatus st);
protected:
-
///
virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
///
Dimension dimensionCollapsed() const;
///
- int getMaxTextWidth(Painter & pain, UpdatableInset const *) const;
- ///
Box const & buttonDim() const;
///
void edit(LCursor & cur, bool left);
mutable CollapseStatus status_;
/// a substatus of the Open status, determined automatically in metrics
mutable bool openinlined_;
+ /// the inset will automatically open when the cursor is inside
+ mutable bool autoOpen_;
///
mutable Dimension textdim_;
};